Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ClassCastException

 
Abdul Basit Munda
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi i m trying to use one of the webservices, for some odd reason it is giving me problem, i know for sure that login service which i m trying to use is perfectly fine because i used it somewhere else and it works. here is the error i get



and my code to use this service is

 
Eric Dubuis
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I had the same problem when using JWSDP 2.0 with JDK 1.5 and Tomcat 5.0.
(I was using Tomcat 5.0 since it is recommended by JWSDP 2.0.)

The problem was that the following classes that were loaded came from
a different location. For example (read everythind between [] on one
line, and substitute <tomcat.home> by the actual Tomcat installation
directory):

[Loaded com.sun.xml.messaging.saaj.soap.ver1_1.Message1_1Impl from
file:C:<tomcat.home>/common/endorsed/saaj-impl.jar]
[Loaded com.sun.xml.messaging.saaj.soap.MessageImpl from
file:/C:<tomcat.home>/webapps/webclient/WEB-INF/lib/saaj-impl.jar]

After having redeployed the web client WITHOUT saaj-impl.jar in its
WEB-INF/lib directory, the class loading was:

[Loaded com.sun.xml.messaging.saaj.soap.MessageImpl from
file:C:<tomcat.home>/common/endorsed/saaj-impl.jar]
[Loaded com.sun.xml.messaging.saaj.soap.ver1_1.Message1_1Impl from
file:C:<tomcat.home>/common/endorsed/saaj-impl.jar]

And it worked!

Regards,
Eric
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic