9 Replies Latest reply on Jan 4, 2016 11:48 AM by ctomc

    Deployment error on wildfly 9.0.2

    bonatech

      Hi all,

      I am having a problem deploying my ear that contains one jar and one war. The error trace is this:

       

      2015-12-28 09:30:55,448 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-3) MSC000001: Failed to start service jboss.deployment.subunit."myFile.ear"."myWeb.war".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.subunit."myFile.ear"."myWeb.war".POST_MODULE: WFLYSRV0153: Failed to process phase POST_MODULE of subdeployment "myWeb.war" of deployment "myFile.ear"

          at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:163)

          at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948)

          at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881)

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

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

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

      Caused by: java.lang.IllegalArgumentException: Cannot compare relative and absolute paths

          at org.jboss.modules.PathUtils.isDirectChild(PathUtils.java:241)

          at org.jboss.modules.JarFileResourceLoader$1.hasNext(JarFileResourceLoader.java:267)

          at org.jboss.modules.ModuleClassLoader$2.hasNext(ModuleClassLoader.java:689)

          at org.jboss.modules.Module$4.hasNext(Module.java:772)

          at org.jboss.modules.filter.PathFilters$1.hasNext(PathFilters.java:223)

          at org.wildfly.extension.undertow.deployment.ExternalTldParsingDeploymentProcessor.deploy(ExternalTldParsingDeploymentProcessor.java:84)

          at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:156)

          ... 5 more

       

      I will be glad if someone has an idea of what can be the problem here.

      Thanks

        • 1. Re: Deployment error on wildfly 9.0.2
          jaikiran

          Are there any TLDs referenced within your war file?

          • 2. Re: Deployment error on wildfly 9.0.2
            bonatech

            Thanks jaikiran for your answer,

            Yes There are TLDs,

            c-rt.tld,

            fmt.tld,

            fmt-rt.tld

            project.tld

            sql.tld

            sql-rt.tld

            structs-bean.tld

            structs-bean-el.tld

            structs-html.tld

            structs-html-el.tld

            structs-logic.tld

            structs-logic-el.tld

            structs-nested.tld

            syructs-templates.tld

            structs-tiles.tld

            x.tld

            x-rt.tld

             

            I am using structs for the project. The deployment is ok with wildfly 8.2.0 but when I tried to deploy on wildfly 9.0.2, I get that error.

             

            Thanks

            • 3. Re: Deployment error on wildfly 9.0.2
              jaikiran

              Where exactly in the deployment are those tlds located?

               

              P.S: Could someone with relevant permissions move this thread to WildFly forum?

              • 4. Re: Deployment error on wildfly 9.0.2
                bonatech

                There are located in WEB-INF folder of my Web project.

                Sorry if I posted in the wrong forum, I am new and I don't know exactly how it works.

                I just moved it to Wildfly forum.

                Thanks

                • 5. Re: Deployment error on wildfly 9.0.2
                  jaikiran

                  Joel SIMO wrote:

                   

                  There are located in WEB-INF folder of my Web project.

                  I don't have the WildFly code open right now, so can't confirm whether this is a bug in the code or a deployment issue. In the meantime, can you try and reproduce this against the latest released 10.0.0.CR5 version of WildFly? If it still an issue there, can you please attach a sample application to reproduce this? (For attaching, click on the "Use advanced editor" link on the top right corner of the window, when you click reply. That will open a advanced editor which has a button that allows uploading attachments).

                   

                  Joel SIMO wrote:

                   

                   

                  Sorry if I posted in the wrong forum, I am new and I don't know exactly how it works.

                   

                   

                  That's alright. Usually, someone with admin permissions help out with such threads.

                   

                   

                  Joel SIMO wrote:


                  I just moved it to Wildfly forum.

                   

                  Thanks!

                  • 6. Re: Deployment error on wildfly 9.0.2
                    bonatech

                    I have tried but still have the same error.

                    The attachment contains a simple app that reproduce the same error.

                    Thanks in advance.

                    • 7. Re: Deployment error on wildfly 9.0.2
                      jaikiran

                      Which operating system are you on? Windows OS? Can you post the exact OS vendor and version and also the Java vendor and version. FWIW, this does look like a bug, but I haven't been able to reproduce this on *nix OS yet.

                      • 8. Re: Deployment error on wildfly 9.0.2
                        mayerw01
                        • 9. Re: Deployment error on wildfly 9.0.2
                          ctomc

                          Not sure exactly what is going on but your jboss-deployment-structure.xml is for sure wrong.

                           

                          <jboss-deployment-structure>

                              <ear-subdeployments-isolated>false</ear-subdeployments-isolated>

                              <deployment>

                                <exclusions> <-- this only excludes on top level deployment, not also for sub deployment, so your war & jar module, add sub-deployment tag -->

                                      <module name="org.hibernate" slot="main" />   

                                      <module name="org.javassist" slot="main" />             

                                      <module name="org.jboss.as.jsf-injection" slot="mojarra-1.2_15" />

                                      <module name="org.glassfish.javax.el" slot="main" />

                                      <module name="javax.el.api"/>

                                  </exclusions>

                                  <exclude-subsystems>

                                        <subsystem name="weld" />

                                      <subsystem name="org.hibernate" /> <-- there is no such subsystem, that is module name -->

                                      <subsystem name="org.hibernate.validator" /> <-- there is no such subsystem, that is module name -->

                                      <subsystem name="org.glassfish.javax.el" /> <-- there is no such subsystem, that is module name -->

                                  </exclude-subsystems>

                              </deployment>

                          </jboss-deployment-structure>

                          if you want to exclude hibernate validator & default hibernate being activated subsystem, than  exclude subsystems "jpa" and "bean-validation"