Câu 7: C9510-319: IBM WebSphere Application Server Developer Tools V8.5 with Liberty Profile
A developer runs a servlet from an OSGi web project named CounterWebBundle on a Liberty server and gets the following error message when the doGet method of the servlet is run:[ERROR ] SRVE0777E: Exception thrown by application class'com.ibm.ws.eba.servlet.CounterServlet.doGet():42' java.lang.NoClassDefFoundError: jav…
Nội dung câu hỏi
A developer runs a servlet from an OSGi web project named CounterWebBundle on a Liberty server and gets the following error message when the doGet method 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.InitialContextHow should the developer resolve the problem?
Các lựa chọn
Đáp án được giữ gọn theo nhãn A, B, C, D trong phần bình chọn tương tác.
- A. Ensure that jndi-1.0 and serverStatus-1.0 are added to the Feature Manager in the server configuration.
- B. Ensure that jndi-1.0 is added to the Feature Manager in the server configuration and the javax.naming package is added to the Import-Package of CounterWebBundle. — đáp án hiện tại
- C. Ensure that jndi-1.0 is added to the Feature Manager in the server configuration and Web 2.0 is selected in the Project Facets of the Properties for CounterWebBundle.
- D. Ensure that jndi-1.0 is added to the Feature Manager in the server configuration and the javax.naming.InitialContext is specified in the init-method of the bean
Cộng đồng
0 bình luận công khai. Tên thành viên được ẩn một phần.