cancel
Showing results for 
Search instead for 
Did you mean: 

java.lang.NoClassDefFoundError in WebService

Former Member
0 Kudos

Hi,

i have developed my Java Classed to access a LDAP Server in a Simple Java Project. For this i have added the ldapjdk.jar as a external JAR in the Build Path. Then i was creating in the WebService Perspective directly from one of my classes a Webservice.

I was building the project.ear file an deploying it to WAS 6.40 SP10. I tested with the Web Service Navigator but i reached a Error java.lang.NoClassDefFoundError where he couldn't find the classes located in the JAR-File ldapjdk.jar.

Error Message:

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ><SOAP-ENV:Body><SOAP-ENV:Fault><faultcode>SOAP-ENV:Server</faultcode><faultstring><b>netscape/ldap/LDAPException</faultstring><detail><ns1:java.lang.NoClassDefFoundError</b> xmlns:ns1='http://sap-j2ee-engine/error'>netscape/ldap/LDAPException</ns1:java.lang.NoClassDefFoundError></detail></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope>

The ldapjdk.jar was properly deployed with the EAR-FILE within the WSAR-File.

I think the there is a Problem in WAS 6.40 to find the class in the JAR File.

Is there an solution?

Thanks for help

Vincent

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Could someone explain how to solve this matter?

I've got the same problem, my web service uses the endpoint class which uses another class in the same package. First class is visible for web service. The second one can not be loaded, debug shows that the system attempts to load class with name "com.sap/j2eComp". It's not needed class but container in which required class situated.

Thanks in advance

Former Member
0 Kudos

Hi Vincent,

I am having the same problem. could you tell me how you resolved it.

Thanks,

Wael

Former Member
0 Kudos

Hi Wael,

i did a little Example Document in German but i can't send you as attachement

send me your email adress

Vince

Former Member
0 Kudos

Hi,

I have the same problem too. Did anybody found solution or workaround?

Thanks in advance

Victor

Message was edited by: Victor Shafran