• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

ClassCastException

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Water! People swim in water! Even tiny ads swim in water:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic