1 Reply Latest reply on Sep 14, 2007 11:08 PM by Juan Manuel Medina Apodaca

    404 error when WS deployed in EAR

    isotope1145 Newbie

      I deploy a JSR-181 EJB endpoint web-service in an .ear file and it works.

      However, when I embed a .war file in the ear I can no longer access the web-service. There are no deployment errors in the console, but when I try to access the WSDL I get an HTTP 404:
      The requested resource (/elixir-service/AppManagerBean) is not available" error.

      The ear file is named elixir-service.ear and the embedded war file is named elixir-service.war. The application.xml is as follows:

      <application xmlns="http://java.sun.com/xml/ns/j2ee" version="1.4"
       xsi:schemaLocation="http://java.sun.com /xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/application_1_4.xsd">

      If I change the <context-root> name in the application.xml file to something other than "elixir-service", then the web serivce works again. So there appears to be a conflict between the web-service root and the .war root.

      The following topic reports a similar problem:

      Is this a bug? If not, what conventions should I follow when deploying an .ear that contains both web-services and .war web resources?