Wednesday, December 5, 2012

Error deploying a Web Service

I resolve, now I can deploy it correctly.

In java class web service I expose the @WebMethod as follow:
public String[] myMethod( @WebParam(name = "name") String param ) throws SQLException

as in the method I use SQL class to query data on a DB.
To resolve the problem I change "throws SQLException" in "throws Exception" and now it work.

Why "throws SQLException" get deploy error ?

https://community.jboss.org/thread/153375

No comments:

Post a Comment