aspose file tools
The moose likes JBoss and the fly likes Unable to expose a method as webservice EJB3.0 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 "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: 8143
    
  52

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: 8143
    
  52

Are you packaging any jar file(s) containing javax.jws.* classes within your application package? If yes, remove such jar(s) from your deployment.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Unable to expose a method as webservice EJB3.0"org.jboss.ws.WSException: No exposable methods found"
 
Similar Threads
can we expose only required methods of EJB into Web service ?
return type in web service
GWT Error+ XFire Webservice
Webservices and Request/Response
how write webservice using ejb 3.0