IBM C2180-319 - IBM WebSphere Application Server Developer Tools V8.5 with Liberty Profile Exam
Page: 2 / 15
Total 75 questions
Question #6 (Topic: )
The manifest file of an OSGi application project contains the following headers:
Application-Content: BundleA;version=1.0.0,BundleB;version=1.0.0
Use-Bundle: BundleC;version=1.0.0
Which statement is true about the bundle content ofthis OSGi application?
Application-Content: BundleA;version=1.0.0,BundleB;version=1.0.0
Use-Bundle: BundleC;version=1.0.0
Which statement is true about the bundle content ofthis OSGi application?
A. BundleA,BundleBandBundleCare directly contained in the application.
B. BundleA,BundleBandBundleCare references to bundles that are hosted in an OSGibundle repository.
C. BundleAandBundleBare directly contained in the application whileBundleCis areference to a bundle that is hosted inan OSGi bundle repository.
D. BundleCis directly contained in the application whileBundleAandBundleBarereferences to bundles that are hosted inan OSGi bundle repository.
Answer: C
Question #7 (Topic: )
A developer has created a Liberty server in WebSphere Application Server Developer
Tools forEclipse.
How can the developer start the Liberty server fromthe Servers view using a JRE different
fromthe default JRE?
Tools forEclipse.
How can the developer start the Liberty server fromthe Servers view using a JRE different
fromthe default JRE?
A. Open the Runtime Explorer view, select the runtime and click the Properties contextsensitive menu item. Change the JRE setting under the Server category in theProperties dialog.
B. Open the Server Configuration editor by double clicking the server configuration in the Servers view, add a JVM configuration element and specify the JRE location in theLocation field.
C. Open the Server editor by double clicking the server in the Servers view, selectthe Runtime Environments link and change the JRE setting in the Liberty ProfileRuntime Environment dialog.
D. Open the Server Configuration editor by double clicking the server configuration in theServers view, add a Variable configuration element with the Name field set tojava.homeand the Value field set to the location of the JRE.
Answer: C
Question #8 (Topic: )
A developer is testing a web application using a Liberty profile server. The application will
alsoneed to run on a Tomcat server and cannot make useof any APIs that are specific to
the Libertyprofile server.How can the user ensure that no classes outside ofthe
specification classes are used by theapplication during the test?
alsoneed to run on a Tomcat server and cannot make useof any APIs that are specific to
the Libertyprofile server.How can the user ensure that no classes outside ofthe
specification classes are used by theapplication during the test?
A. Create a file server.env under the same directory as the server.xml file and add thefollowing line: Class-Path-Visibility=spec
B. Open themeta-inf/manifest.mffile under the web project, add the following line: Class-Path-Visibility: specification
C. On the Server > Runtime Environment preference page, edit the Liberty profile runtimeentry and select only the Specificationcheckbox under the API visibility section.
D. In the Server Configuration editor, create a Classloader Service item under theapplication element and add the attributeapiTypeVisibilitywith the value ofspec.
Answer: D
Question #9 (Topic: )
In WebSphere Application Server Developer Tools with default settings, which situation
willcause validation errors instead of warnings in theProblems view?
willcause validation errors instead of warnings in theProblems view?
A. The closing</form>tag of a form element in an HTML page is omitted and the file issaved.
B. An optional header of a bundle manifest file ismisspelled in the Source view, and the fileis then saved.
C. A user is added to a basic user registry in theLibertyserver.xmlfile with a name anda password, without the password beingencoded.
D. A package is used and specified in anImport-Packageheader of a bundlemanifest file, and no correspondingExport-Packageheader exists for the samepackage in the manifest file of anotherbundle in the workspace.
Answer: D
Question #10 (Topic: )
A developer runs a servlet from an OSGi web projectnamedCounterWebBundleon a
Libertyserver and gets the following error message when thedoGetmethod of the servlet is
run:
[ERROR ] SRVE0777E: Exception thrown by application class
'com.ibm.ws.eba.servlet.CounterServlet.doGet():42'java.lang.NoClassDefFoundError:
javax.naming.InitialContext
How should the developer resolve the problem?
Libertyserver and gets the following error message when thedoGetmethod of the servlet is
run:
[ERROR ] SRVE0777E: Exception thrown by application class
'com.ibm.ws.eba.servlet.CounterServlet.doGet():42'java.lang.NoClassDefFoundError:
javax.naming.InitialContext
How should the developer resolve the problem?
A. Ensure thatjndi-1.0andserverStatus-1.0are added to the Feature Managerin the server configuration.
B. Ensure thatjndi-1.0is added to the Feature Manager in the server configurationand thejavax.namingpackage is added to theImport-PackageofCounterWebBundle.
C. Ensure thatjndi-1.0is added to the Feature Manager in the server configuration andWeb 2.0is selected in the Project Facets of the PropertiesforCounterWebBundle.
D. Ensure thatjndi-1.0is added to the Feature Manager in the server configuration andthejavax.naming.InitialContextis specified in theinit-methodof the beanspecified in theblueprint.xmlfile ofCounterWebBundle.
Answer: B