Hi I am Alberto,
I tried to create a web service using Netbeans 6.8 and glass fish.
I tried the simple "new"->"WebService" etc..
then I deploy all, and gone to see my application on Glass Fish Administration Console.
I found:
Applications
->myApplication
Very good and easy i think! At the first time a take a look at the wsdl path:
http://localhost:8080/myApplication/WSService?wsdl
The PROBLEM is:
At first time the wsdl is perfectly present and visible by browser.
But when I shut down GLASSFISH web server and restart it when I try to see the same wsdl
at
http://localhost:8080/myApplication/WSService?wsdl
Glass fish returns this error on browser
HTTP Status 500 -
type Exception report
message
descriptionThe server encountered an internal error () that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: javax.servlet.ServletException
root cause
javax.servlet.ServletException
root cause
java.lang.IllegalArgumentException: class org.glassfish.webservices.JAXWSServlet has neither @WebService nor @WebServiceProvider annotation
and in glass fish log I fund:
INFO: WS00018: Webservice Endpoint deployed
WS listening at address at
http://localhost:8080/myApplication/WSService
INFO: Loading application myApplication#myApplication.war at myApplication
INFO: myApplication was successfully deployed in 351 milliseconds.
AVVERTENZA: Servlet web service endpoint 'WS' failure
java.lang.IllegalArgumentException: class org.glassfish.webservices.JAXWSServlet has neither @WebService nor @WebServiceProvider annotation
at com.sun.xml.ws.server.EndpointFactory.verifyImplementorClass(EndpointFactory.java:303)
at com.sun.xml.ws.server.EndpointFactory.createEndpoint(EndpointFactory.java:120)
at com.sun.xml.ws.api.server.WSEndpoint.create(WSEndpoint.java:505)
at com.sun.xml.ws.api.server.WSEndpoint.create(WSEndpoint.java:560)
at org.glassfish.webservices.JAXWSServlet.registerEndpoint(JAXWSServlet.java:394)
at org.glassfish.webservices.JAXWSServlet.doInit(JAXWSServlet.java:262)
at org.glassfish.webservices.JAXWSServlet.init(JAXWSServlet.java:97)
thanks in advance
Alberto.
[Message sent by forum member 'alberto13' (bobboz84_at_libero.it)]
http://forums.java.net/jive/thread.jspa?messageID=389980