This week's book giveaway is in the OCMJEA forum. We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line! See this thread for details.
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.
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.