File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Services and the fly likes [client] NoClassDefFoundError: javax/xml/soap/FactoryLoader Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "[client] NoClassDefFoundError: javax/xml/soap/FactoryLoader" Watch "[client] NoClassDefFoundError: javax/xml/soap/FactoryLoader" New topic

[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 eu.virtualLab.busSchedule.webservice.artifacts.BusSessionBeanService.<init>(
at eu.virtualLab.busSchedule.webservice.client.Main.main(
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

Joined: Jul 20, 2005
Posts: 10441

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.


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,

I know where my towel is. (SCJP 5, OCPJWCD)
[Free Quiz Tips for a fun night with friends or family] Flash games
I agree. Here's the link:
subject: [client] NoClassDefFoundError: javax/xml/soap/FactoryLoader
jQuery in Action, 3rd edition