Skip to Content
avatar image
Former Member

java.lang.NoClassDefFoundError problem

Hi everyone

I have developed a login module class. In this class I call a webservice, so I have imported some external classes. And I export the jar file, create a library project and deploy the library project on to the server following the help document. After that I add my login module into the ticket template. When I want to logon to the portal, I always meet the "java.lang.NoClassDefFoundError: javax/xml/rpc/ServiceException" exception after I inputed the id and password.

I have tried many ways. For example in my login module project, I import the jars I used into my project and in build path choose "add jar..." not "add external jar...". Then export my project including all the jars I used. I also try to copy all the jars I used onto the server, under the <java home>/jre/lib/ext directory. I also have changed the MANIFEST.MF file of my project by adding the classpath to it. But nothing helps me.

So do you have any more method to solve my problem?


Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Apr 15, 2008 at 10:51 AM


    We had exact same problem with our login module, and couldn't find an easy solution. We eventually settled on modifying the Classpath used by J2EE engine to include our jar files. You can modify the Classpath using consoleconfig script.



    Add comment
    10|10000 characters needed characters exceeded

    • Hi Tsvetomir,

      I also want to use third-party API in my loginmodule, but was unable to add these jars to the SDA file using SAP Dev Studio. I don't know how to make SAP Dev Studio use the external third party jars as it says it can add jars only from workspace into provider.xml in LoginLibrary project.

      I know that changing the classpath using works but I don't like changing it because of the scope of the accessibility of these jars when added to classpath.

      Can you please let me know how the jars can be added as said (any link or instruction to do the same would be appreciated very much) :

      • Deploy the third-party jars together with your LM jar. Then the SDA file will pack all jars together.

      • Deploy the third-party stuff as a J2EE Library. Then you have to create a hard reference from your LM library to that J2EE library.


      Srinivas Cheruku