aspose file tools*
The moose likes Web Services and the fly likes web service call from servlet :getting following error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "web service call from servlet :getting following error" Watch "web service call from servlet :getting following error" New topic
Author

web service call from servlet :getting following error

haripriya vedula
Greenhorn

Joined: May 31, 2008
Posts: 24
Hi,

I have generated a test client from wsdl. and if i am trying to call that client from servlet i am getting following error:

java.lang.IncompatibleClassChangeError: Implementing class
java.lang.ClassLoader.defineClass1(Native Method)
java.lang.ClassLoader.defineClass(Unknown Source)
java.security.SecureClassLoader.defineClass(Unknown Source)
org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1847)
org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:890)
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1354)
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)
java.lang.ClassLoader.loadClassInternal(Unknown Source)
com.lh.example.StockInfoServlet.service(StockInfoServlet.java:62)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)


can anyone help on this?

Thanks in advance
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12823
    
    5
i am trying to call that client from servlet


What exactly do you mean here? Normally one would have a client call a service.

Where is the web service you are trying to use?

Which version of Java? Which toolkit are you using to generate the client?

Bill
haripriya vedula
Greenhorn

Joined: May 31, 2008
Posts: 24
Hi,

I am using Tomcat 6.0 . and eclipse to generate web service client.
Actually web service will have two operations insert() details into DB and get() stockdetails from DB .

so the values i am entering from Jsp should go to servlet where my web service methods are called.

I also exported jar of the client and placed in stockdetails project.

the error i am getting was above.

Thanks in advance.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: web service call from servlet :getting following error