I am using JBOSS 4.2.2 GA, EJB3 Stateless session Bean exposed as a web service.
The service is deployed on JBoss and successfully running on the same machine (where JBOSS is installed). However when I try to access the service (through Java client) from a network connected different machine, the service throws Exception as follows : Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/xerces/xs/XSModel at org.jboss.ws.metadata.builder.jaxrpc.JAXRPCClientMetaDataBuilder.buildMetaData(JAXRPCClientMetaDataBuilder.java:111) at org.jboss.ws.metadata.builder.jaxrpc.JAXRPCClientMetaDataBuilder.buildMetaData(JAXRPCClientMetaDataBuilder.java:86) at org.jboss.ws.core.jaxrpc.client.ServiceImpl.<init>(ServiceImpl.java:111) at org.jboss.ws.core.jaxrpc.client.ServiceFactoryImpl.createService(ServiceFactoryImpl.java:157) at org.jboss.ws.core.jaxrpc.client.ServiceFactoryImpl.createService(ServiceFactoryImpl.java:128 at com.client.Client.main(Client.java:20)
I think I have all the jars in place. I say so since, the webservice can be accessed locally (the same machine that hosts JBOSS) but is not accessible from a remotely connected machine.
Prasad Shindikar
Ranch Hand
Joined: Feb 18, 2007
Posts: 114
posted
0
I had not added the xercesimpl.jar file to the remote client machine!