| Author |
[client] NoClassDefFoundError: javax/xml/soap/FactoryLoader
|
Alessandro Ilardo
Ranch Hand
Joined: Dec 23, 2005
Posts: 218
|
|
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
|
trying to decode a woman mind....
|
 |
Jaikiran Pai
Marshal
Joined: Jul 20, 2005
Posts: 8147
|
|
|
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.
|
[My Blog] [JavaRanch Journal]
|
 |
Alessandro Ilardo
Ranch Hand
Joined: Dec 23, 2005
Posts: 218
|
|
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
Joined: Dec 23, 2005
Posts: 218
|
|
Solved it. Don't use jboss client jars. Thanks anyway for any help.
|
 |
Mark Uppeteer
Ranch Hand
Joined: Mar 02, 2004
Posts: 159
|
|
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
|
I know where my towel is. (SCJP 5, OCPJWCD)
[Free Quiz Tips for a fun night with friends or family] Flash games
|
 |
 |
|
|
subject: [client] NoClassDefFoundError: javax/xml/soap/FactoryLoader
|
|
|