It's not a secret anymore!*
The moose likes JBoss/WildFly and the fly likes Unable to expose a method as webservice EJB3.0 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Unable to expose a method as webservice EJB3.0"org.jboss.ws.WSException: No exposable methods found"" Watch "Unable to expose a method as webservice EJB3.0"org.jboss.ws.WSException: No exposable methods found"" New topic
Author

Unable to expose a method as webservice EJB3.0"org.jboss.ws.WSException: No exposable methods found"

Naresh gangishetty
Greenhorn

Joined: Sep 24, 2008
Posts: 14
Hi,

I have created an application using maven, Ejb3.0. I am using annotations @Remote, @Webservice and trying to expose the methods. When I am trying to deploy the application in Jboss getting the error org.jboss.ws.WSException: No exposable methods found" and deployment fails.

Can any one let me know the reason. I am almost blocked here. Thanks in advance

Regards,
Naresh Gangishetty
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9937
    
159

Please post the relevant code and the exception stacktrace. Which version of JBoss AS is this?

P.S: While posting code, xml or logs, wrap them in a code block. You can use the Code button in the message editor window.

[My Blog] [JavaRanch Journal]
Naresh gangishetty
Greenhorn

Joined: Sep 24, 2008
Posts: 14
Hi,

I am using jboss jboss-4.2.0.GA. Please find code and stack trace as below.

Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9937
    
159

Are you packaging any jar file(s) containing javax.jws.* classes within your application package? If yes, remove such jar(s) from your deployment.
 
Consider Paul's rocket mass heater.
 
subject: Unable to expose a method as webservice EJB3.0"org.jboss.ws.WSException: No exposable methods found"
 
Similar Threads
return type in web service
Webservices and Request/Response
can we expose only required methods of EJB into Web service ?
how write webservice using ejb 3.0
GWT Error+ XFire Webservice