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

Hello Harini

One of the likely reason for this kind of an error could be

1 The backend to which you connect at Runtime is not the same as the backend from which you

imported the model. This could cause inconsistencies. You need to run with the same backend from

where you imported your model or the version of the RFC in the backend used at runtime must be

compatible to the one used to import the model.

2 Data types have changed in the backend, such that the “Type” you imported earlier no longer exists.

You need to re-import the model again.

Solution:

• In case 1 above you need to have one backend from where you have imported the model to where

you run this. This avoids inconsistencies.

• In case 2 above you need to re-import the model again as suggested.

Please check for the above cases and try out the solutions. I hope it helps you.

Regards

Kapil

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Harini,

Check the jar files that your have added.

Some jar files will have the same name but with different set of class files.

Hope it helps you.

Regards,

Maheswaran.B

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

Former Member
0 Kudos

1. Which Version and Patchlevel of J2EE Engine you use?

2. What is your NWDS version?

3. Which Version of JDK you use?

Former Member
0 Kudos

Hi,

I have directly deployed the working ear file given to me to the server. When I run the application to check, it gives the above error. I don't think there is any problem with NWDS since I dont do anything there. I am using j2sdk1.4.2_11. J2EE engine is the one with latest version.

Regards,

Harini S

Former Member
0 Kudos

Hello Harini,

In that case, specify the version of the environment in which the ear (application) was developed. If that version of the IDE is higher than that of the J2EE engine, then you will get this error.

To be in the safer side, always ensure that the IDE and J2EE engine are at the same SP level.

Bala

Former Member
0 Kudos

Hi,

I am not sure of the environment it was created. I will check on it.

Regards,

Harini S

Former Member
0 Kudos

Generally This exception comes when class is not present.