• 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

[client] NoClassDefFoundError: javax/xml/soap/FactoryLoader

 
Ranch Hand
Posts: 218
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi there,
I'm new with web services and JAX-WS. I'm trying to call a web service from a simple client application, but I'm getting this error.


Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/soap/FactoryLoader
at javax.xml.ws.spi.Provider.provider(Provider.java:91)
at javax.xml.ws.Service.<init>(Service.java:83)
at eu.virtualLab.busSchedule.webservice.artifacts.BusSessionBeanService.<init>(BusSessionBeanService.java:46)
at eu.virtualLab.busSchedule.webservice.client.Main.main(Main.java:38)
Java Result: 1



I tried to follow step by step the tutorials and keep it simple as much as I could, but I don't understand the error.
Below the clent code, the artifacts have been made by JBOSS tools.

Any help is appreciate.
Thanks in advance
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Looks like you are missing the jar file which contains javax/xml/soap/FactoryLoader class. I dont know the name of the jar (most probably its saaj.jar). You will have to place it in your applications classpath.
 
Alessandro Ilardo
Ranch Hand
Posts: 218
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I spent some time on the Internet trying to figure out where I could find those classes.

saaj-api.jar
saaj-impl.jar

don't have it.
I can't even find the API docs.

 
Alessandro Ilardo
Ranch Hand
Posts: 218
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Solved it.
Don't use jboss client jars.

Thanks anyway for any help.
 
Ranch Hand
Posts: 159
Eclipse IDE C++ Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Although you've solved it this way, it can be done with the jboss libraries.
There is also a 'client' folder in your jboss home, and there there is a jboss-saaj jar file.

Best regards,
Mark
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic