users@glassfish.java.net

Re: Stateful web service manager resource injection not working

From: <glassfish_at_javadesktop.org>
Date: Thu, 15 Jul 2010 06:30:29 PDT

I'm trying something to deal with my problem with the web service:
Since the web service is in practice a Servlet, I tried to add it to the web.xml
<servlet>
        <display-name>myService_Stateful</display-name>
        <servlet-name>myService_Stateful</servlet-name>
        <servlet-class>com.sun.enterprise.webservice.JAXWSServlet</servlet-class>
        <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet-mapping>
        <servlet-name>myService_Stateful</servlet-name>
        <url-pattern>/myService_StatefulService</url-pattern>
    </servlet-mapping>


When I try to deploy it I get:
Deploying application in domain failed; Fatal Error from EJB Compiler -- Service myService_StatefulService seems to be a JAXRPC based web service but without the mandatory WSDL and Mapping file. Deployment cannot proceed

Why does glassfish think it's JAX-RPC and not JAX-WS?

Is there anyway to make the web service load on startup?

Thanks in advance
Sigal
[Message sent by forum member 'sshahar1']

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