It's not a secret anymore!
The moose likes JBoss and the fly likes Web Service deployed on JBOSS is not accessible Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Products » JBoss
Reply Bookmark "Web Service deployed on JBOSS is not accessible" Watch "Web Service deployed on JBOSS is not accessible" New topic
Author

Web Service deployed on JBOSS is not accessible

Prasad Shindikar
Ranch Hand

Joined: Feb 18, 2007
Posts: 114
Hello,

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)

Pl. explain.
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5536

Please read the readme.html file, first bullet under Configuration Issues > JBossAS 4.2.0.GA. Or see the 4.2 FAQ..


JBoss In Action
Prasad Shindikar
Ranch Hand

Joined: Feb 18, 2007
Posts: 114
Hi,

Even after starting the JBOSS Server with -b 0.0.0.0 option, I am unable to access the deployed web service from a remotely connected machine.

Sorry, should have mentioned this point earlier itself.

Is there something else that I need to configure, to run the service remotely ?
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 8145
    
  52

Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/xerces/xs/XSModel


This exception is being thrown on the client side. Do you have all the necessary jar files in the client (com.client.Client) classpath?


[My Blog] [JavaRanch Journal]
Prasad Shindikar
Ranch Hand

Joined: Feb 18, 2007
Posts: 114
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
I had not added the xercesimpl.jar file to the remote client machine!

My mistake..

thanks for your inputs.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Web Service deployed on JBOSS is not accessible
 
Similar Threads
Calling .net webservice from java swing application
JBoss WS client exception
Exception occuring while accessing web services
Issue occuring while executing Web Service Client after deploying EJB WEBSERVICE
Caused by: org.jboss.ws.WSException: Cannot obtain java type mapping for: {http://loc