Re: Server side NoClassDefFoundError
[email protected] Mon, 1 Mar 2004 10:40:20 -0500
| Newsgroups | gmane.comp.java.enhydra.ksoap |
|---|---|
| Message-ID | <[email protected]> |
Hi Stefan, I did have it in my WEB-INF/lib directory and still got the error. When I put the ksoap-struts and kxml in my javahome/jre/lib/ext directory it finally worked. I'm assuming that this is the same as putting the files in your classpath? If I could get away with not putting them there, I would rather set it up that way. Any other suggestions? b Quoting Stefan Haustein <[email protected]>: > Hi, > > you can put the kSOAP JAR file in > > /webapps/"your servlet"/WEB-INF/lib > > Best regards, > Stefan Haustein > > > > > Brian Rook wrote: > > Hello, > > > > I have an existing server/client application that uses kXML and I'm > > converting over to kSOAP. I can build my server side code using the kSOAP > > libraries, but hit the servlet I get this error when I try to instantiate > my > > object: > > > > here's the line its blowing up at: > > SOAPLoginMessageBean loginMessage = new SOAPLoginMessageBean(); > > > > Here's the exception: > > java.lang.NoClassDefFoundError: org/kobjects/serialization/KvmSerializable > > at java.lang.ClassLoader.defineClass0(Native Method) > > at java.lang.ClassLoader.defineClass(ClassLoader.java:502) > > at > java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123) > > at > > > org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLo > > ader.java:1679) > > at > > > org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.jav > > a:968) > > at > > > org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav > > a:1409) > > at > > > org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav > > a:1289) > > at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315) > > > > I'm assuming that the application server is throwing the error because it > > needs to know about the kSOAP classes (?). Do I need to put the .jar in > my > > app server? Where would it go? I'm using Tomcat. > > > > brian > > > > _______________________________________________ > > Ksoap mailing list > > [email protected] > > http://www.enhydra.org/mailman/listinfo.cgi/ksoap > > > > _______________________________________________ > Ksoap mailing list > [email protected] > http://www.enhydra.org/mailman/listinfo.cgi/ksoap >