0 Replies Latest reply on Jan 12, 2016 8:26 AM by Vineeth V Nair

    Deployment Issue with ear in wildfly 8.2.1.Final

    Vineeth V Nair Newbie

      Hi,

       

      I am having an ear file which contains a war file. If I am having the libraries inside the war/WEB_INNF/lib folder, the rest web services are working fine. Now if i moved the libraries to a module and added the module in the jboss-depoyment.xml structure of the ear its saying the rest services are not found.

       

      2016-01-12 18:48:21,004 WARN  [default task-26]-[org.jboss.resteasy.core.ExceptionHandler] failed to execute: javax.ws.rs.NotFoundException: Could not find resource for full path: https://135.250.17.117:8443/webapps/rest/myservice

        at org.jboss.resteasy.core.registry.ClassNode.match(ClassNode.java:73)

        at org.jboss.resteasy.core.registry.RootClassNode.match(RootClassNode.java:48)

        at org.jboss.resteasy.core.ResourceMethodRegistry.getResourceInvoker(ResourceMethodRegistry.java:444)

        at org.jboss.resteasy.core.SynchronousDispatcher.getInvoker(SynchronousDispatcher.java:234)

        at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:171)

        at org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:220)

        at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:56)

        at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:51)

        at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)

        at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:86)

        at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:130)

        at com.mycompany.axs.webapps.filters.LoginFilter.doFilter(LoginFilter.java:77)

        at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:60)

        at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:132)

        at io.undertow.servlet.handlers.FilterHandler.handleRequest(FilterHandler.java:85)

        at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:62)

        at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)

        at org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:78)

        at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)

        at io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:131)

        at io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:57)

        at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)

        at io.undertow.security.handlers.AuthenticationConstraintHandler.handleRequest(AuthenticationConstraintHandler.java:51)

        at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:46)

        at io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:64)

        at io.undertow.servlet.handlers.security.ServletSecurityConstraintHandler.handleRequest(ServletSecurityConstraintHandler.java:56)

        at io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:58)

        at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:70)

        at io.undertow.security.handlers.SecurityInitialHandler.handleRequest(SecurityInitialHandler.java:76)

        at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)

        at org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61)

        at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)

        at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)

        at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:261)

        at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:248)

        at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:77)

        at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:167)

        at io.undertow.server.Connectors.executeRootHandler(Connectors.java:199)

        at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:761)

        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)

        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)

        at java.lang.Thread.run(Thread.java:745)

       

      my jboss-deployment.xml is like below

       

      <?xml version="1.0" encoding="UTF-8"?>

      <jboss-deployment-structure>

          <deployment>

              <dependencies>

                  <module name="org.apache.log4j" export="true" />

                  <module name="org.springframework" export="true">

                      <imports>

                          <include path="META-INF**" />

                          <include path="org**" />

                      </imports>

                  </module>

                  <module name="org.apache.commons.logging" />

                  <module name="com.mycompany.axs.lib">

                      <imports>

                          <include path="META-INF**" />

                      </imports>

                  </module>

                  <module name="com.mycompany.axs.webapps" export="true">

                      <imports>

                          <include path="META-INF**"/>

                          <include path="/**"/>

                      </imports>

                  </module>

              </dependencies>

          </deployment>

      <sub-deployment name="webapps.war">

              <dependencies>

                  <module name="org.apache.log4j" export="true" />

                  <module name="org.springframework" export="true">

                      <imports>

                          <include path="META-INF**" />

                          <include path="org**" />

                      </imports>

                  </module>

                  <module name="com.mycompany.axs.webapps" export="true">

                      <imports>

                          <include path="META-INF**"/>

                          <include path="/**"/>

                      </imports>

                  </module>

                  <module name="org.apache.commons.logging" />

                  <module name="com.mycompany.axs.lib">

                      <imports>

                          <include path="META-INF**" />

                      </imports>

                  </module>

              </dependencies>

          </sub-deployment>

      </jboss-deployment-structure>