cancel
Showing results for 
Search instead for 
Did you mean: 

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>netscape/ldap/LDAPException</faultstring><detail><ns1:java.lang.NoClassDefFoundError 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 (1)

Answers (1)

Former Member
0 Kudos

Hi, Vincent. I'm running into a similar problem with my own web service. Were you able to solve this? And if so, how?

TIA,

- Bill

Former Member
0 Kudos

Hi Bill,

Have you resolved the problem, I am running into the same thing. Could you please tell me the workaround if you have it?

Thanks,

Wael

Former Member
0 Kudos

Hi,

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

Thanks in advance.

Victor