Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

web service call from servlet :getting following error

 
haripriya vedula
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13061
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic