Hi,

I’m currently learning web services. I have a question about simple_webservice 
example. I’ve downloaded Tomee+ so that it includes JAX-WS. Why is there a need 
to use a stateless EJB for web services to work in Tomee+? Is it necessary to 
use EJB as web service for Tomee? I’ve tried running it without @Stateless and 
even tried to create my own simple class without it but I keep getting the 
following:

        SEVERE - Error deploying CXF webservice for servlet 
com.service.MyService
        javax.xml.ws.WebServiceException: Service resource injection failed

I’ve tried with Wildfly and all I have to do is annotate my POJO with 
@Webservice.

I’m also confused as to how to generate WSDL or the java source. I’m using 
IntelliJ and I can’t add a CXF engine. I thought Tomee+ already includes CXF? 
Do I need to download CXF separately along with Tomee+ for web service support? 

Reply via email to