I need to deploy web service on Tomcat with installed OpenEJB. I compiled simple Hello service that just prints "Hello" with JAX-WS and tried to deploy on tomcat, but got errors while deployment : ERROR - Error deploying CXF webservice for servlet helloservice.endpoint.Hello java.lang.IllegalArgumentException: Could not find servlet helloservice in web application context /helloservice
Please, help what is done wrong here. Is tomcat + openejb is sufficient for web service deployment?
Thanks.
Please, help what is done wrong here. Is tomcat + openejb is sufficient for web service deployment?
A servlet/JSP engine is sufficient for web development. You don't need OpenEJB for that.
"Service" is a loaded term. Do you mean "SOAP web service"? Or "EJB stateless session bean"?
Check your web.xml. Sounds like you failed to declare a servlet named helloservice. It ought to look like this:
<servlet>
<servlet-name>helloservlet</servlet-name>
<servlet-class>com.your.package.HelloServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>helloservlet</servlet-name> <!-- names must match -->
<url-pattern>*.html</url-pattern>
</servlet-mapping>