cancel
Showing results for 
Search instead for 
Did you mean: 

NoClassDefFoundError

Former Member
0 Kudos

Hi,

I deployed a working .ear file to the portal server. When I try to run this application, I get the following error.

I couldn't trace out the problem.

Please help me solve this.

<i>500 Internal Server Error

SAP J2EE Engine/6.40

Application error occurs during processing the request.

Details: java.lang.NoClassDefFoundError

at jsp_index1157450703317._jspService(jsp_index1157450703317.java:20)

at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.service(JSPServlet.java:538)

at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.service(JSPServlet.java:186)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:392)

at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)

at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:345)

at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:323)

at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:865)

at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:240)

at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)

at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)

at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:37)

at com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run(UnorderedChannel.java:71)

at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)

at java.security.AccessController.doPrivileged(Native Method)

at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:95)

at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:159)</i>

Regards,

Harini S

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

You are probably missing some libraries and classes. Double check all your references, imports, build paths and libraries. Make sure everything exists and is accesible from your jsp.

Former Member
0 Kudos

Hi,

It is a working ear file given to me. I just directly deployed it to the server from visual administrator. It has successfully deployed. Now when I run to check the home page, I get the above error. Please suggest me if I have to include anything in the classpath or include the jars in any other location. All the jars are present in the war file itself. I can understand from NoClassDefFound error that some jar reference is missing somewhere but I couldn't trace which one and where I have to put that jar.

Kindly suggest me.

Regards,

Harini S

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

You can get the erroneous file "jsp_index1157450703317.java" from the server location or from the war file. Check the line 20 of it to find which Class or Object is not being able to resolved.

Then you can locate in which jar that class file is occuring.

Also you can try deploying it in some other application server, and check whether the application works fine.

Regards,

P.Venkat

Former Member
0 Kudos

Hi all,

I created the ear project from NWDS and created web appl project with jars added and added the web proj to the enterprise project. Now when I deployed, it works. Thank you for all your help.

Regards,

Harini S