WEB Services in JAR in EAR are not picked by webservices subsystem in JBoss EAP 6.x
Issue
- A web service in a JAR in an EAR appears to be deployed as a web service but attempt to get the web service from
?wsdl give a 404 error -
A web service deployed in EJB JAR in an EAR, but mapped in
web.xmlin thews-web.wara context path for this WEB Service:<servlet> <servlet-name>HelloService</servlet-name> <servlet-class>com.redhat.gss.ws.HelloService</servlet-class> </servlet> <servlet-mapping> <servlet-name>HelloService</servlet-name> <url-pattern>/ws/changing/Hello</url-pattern> </servlet-mapping>However, when we access the WS in the mapped path, we have an 500 error saying that the mapped class is not a servlet. Also, the web service seems to be registered in the default context path, but when we access it we have a 404 (not found) error. The class is not a Stateless EJB.
Environment
- Red Hat Enterprise Application Platform (EAP)
- 6.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
