users@glassfish.java.net

JAX-WS deploy Tomcat is Fine but on GlassFish no fine an error

From: <glassfish_at_javadesktop.org>
Date: Tue, 02 Dec 2008 22:05:17 PST

this is glassfish error logs

|WSSERVLET11: failed to parse runtime descriptor: runtime modeler error: Wrapper class [com.test.ws.demo.jaxws.GetUserById] is not found. Have you run APT to generate them?
com.sun.xml.ws.model.RuntimeModelerException: runtime modeler error: Wrapper class [com.test.ws.demo.jaxws.GetUserById]is not found. Have you run APT to generate them?
        at com.sun.xml.ws.model.RuntimeModeler.getClass(RuntimeModeler.java:287)
        at com.sun.xml.ws.model.RuntimeModeler.processDocWrappedMethod(RuntimeModeler.java:596)
        at com.sun.xml.ws.model.RuntimeModeler.processMethod(RuntimeModeler.java:543)
        at com.sun.xml.ws.model.RuntimeModeler.processClass(RuntimeModeler.java:371)
        at com.sun.xml.ws.model.RuntimeModeler.buildRuntimeModel(RuntimeModeler.java:258)
        at com.sun.xml.ws.server.EndpointFactory.createSEIModel(EndpointFactory.java:322)


but in tomcat is fine ,that tomcat logs

INFO: WSSERVLET12: JAX-WS context listener initializing
Dec 3, 2008 2:01:48 PM com.sun.xml.ws.model.RuntimeModeler getRequestWrapperClass
INFO: Dynamically creating request wrapper Class com.test.ws.demo.jaxws.GetUserById
Dec 3, 2008 2:01:48 PM com.sun.xml.ws.model.WrapperBeanGenerator createBeanImage
INFO:
@XmlRootElement(name=getUserById, namespace=http://demo.ws.test.com/)
@XmlType(name=getUserById, namespace=http://demo.ws.test.com/)
public class com.test.ws.demo.jaxws.GetUserById {

    @XmlRootElement(name=arg0, namespace=)
    public J arg0

}
Dec 3, 2008 2:01:48 PM com.sun.xml.ws.model.RuntimeModeler getResponseWrapperClass
INFO: Dynamically creating response wrapper bean Class com.test.ws.demo.jaxws.GetUserByIdResponse
Dec 3, 2008 2:01:48 PM com.sun.xml.ws.model.WrapperBeanGenerator createBeanImage
INFO:
@XmlRootElement(name=getUserByIdResponse, namespace=http://demo.ws.test.com/)
@XmlType(name=getUserByIdResponse, namespace=http://demo.ws.test.com/)
public class com.test.ws.demo.jaxws.GetUserByIdResponse {

    @XmlRootElement(name=UserResult, namespace=)
    public Lcom/test/ws/demo/entity/User; userResult

}
Dec 3, 2008 2:01:49 PM com.sun.xml.ws.transport.http.servlet.WSServletDelegate <init>
INFO: WSSERVLET14: JAX-WS servlet initializing


this is my java code:

@WebService(endpointInterface = "com.test.ws.demo.IUserService")
@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.WRAPPED)
@Path("userservice")
@Produces("application/xml")
@Consumes("application/xml")
public class UserServiceImpl implements IUserService {

    @GET
    @Path("user/{id}")
    @WebResult(name = "UserResult")
    @WebMethod(operationName = "getUserById")
    public User getUserById(@PathParam("id") long id) {
        User u = new User();
        if (id > 0) {
            u.setAlias("test list");
            u.setId(id);
            return u;
        } else return u;
    }
}
[Message sent by forum member 'leoo' (leoo)]

http://forums.java.net/jive/thread.jspa?messageID=319700