14 Replies Latest reply on Aug 4, 2011 12:57 PM by nick.graves

    Simple WAR deployment error in AS7 "jboss.deployment.unit.\"...\".POST_MODULE"

    nick.graves

      Hello all.

      I am using AS7 Final web profile in standalone mode and am trying to deploy a simple web application with a data source.  I finally resolved the jndi name problem and resolved that issue, but now I am experiencing the error below on deployment.  Does anyone have an idea of what this error message means?  Is there a way for me to get a more detailed error message?

       

      Thank you in advance for your assistance.

      -Nick G.

       

      Error during deployment:

       

      11:45:03,320 ERROR [org.jboss.as.deployment] (DeploymentScanner-threads - 1) {"Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"Failed services" => {"jboss.deployment.unit.\"simple.war\".POST_MODULE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"simple.war\".POST_MODULE: Failed to process phase POST_MODULE of deployment \"simple.war\""}}}}

        • 1. Re: Simple WAR deployment error in AS7 "jboss.deployment.unit.\"...\".POST_MODULE"
          jaikiran

          How are you deploying it? Ideally, the exception stacktrace should be available in the server.log and/or on the console.

          • 2. Re: Simple WAR deployment error in AS7 "jboss.deployment.unit.\"...\".POST_MODULE"
            nick.graves

            Jaikiran,

            I am using JDeveloper 11 to create the simple JSF project and I have added a jboss-web.xml file.  I compile to a war file and paste in the jboss_home\standalone\deployments directory.

             

            Any thoughts on missing config files?

             

            Nick

            • 3. Re: Simple WAR deployment error in AS7 "jboss.deployment.unit.\"...\".POST_MODULE"
              nick.graves

              I just found a more detailed error:

               

              Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: Could not determine type for resource-ref java:module/env/jboss/datasources/FISDEV2

               

              I am confused on the data source setup.  Any suggestions would be greatly appreciated:

               

              web.xml

              <resource-ref>

                      <res-ref-name>java:jboss/datasources/FISDEV2</res-ref-name>

                      <res-type>javax.sql.DataSource</res-type>

                      <res-auth>Container</res-auth>

                      <res-sharing-scope>Shareable</res-sharing-scope>

                  </resource-ref>

               

              standalone.xml

              <datasource jndi-name="java:jboss/datasources/FISDEV2"

              • 4. Re: Simple WAR deployment error in AS7 "jboss.deployment.unit.\"...\".POST_MODULE"
                swd847

                What exactly are you trying to do with that res-ref entry? as the res-ref-name shadows the existing jndi name, it would have no effect anyway, just having the <datasource> entry in standalone.xml will make java:jboss/datasources/FISDEV2 availble.

                 

                If you actually want to make it avaible as an resource-ref entry the following should work (I just tested it):

                 

                <resource-ref>

                   <res-ref-name>myBinding</res-ref-name>

                   <lookup-name>java:jboss/datasources/FISDEV2</lookup-name>

                   <res-type>javax.sql.DataSource</res-type>

                </resource-ref>\n" +

                • 5. Re: Simple WAR deployment error in AS7 "jboss.deployment.unit.\"...\".POST_MODULE"
                  nick.graves

                  Stuart, thank you for your response. I will make the adjustment now.  Will you please list the required files in the WEB-INF folder for a simple JSF 2 app with CDI? Is the jboss-web.xml needed.  I have one datasource that is configured in the app server.  That's it.  It's just not clear what is required.  I am using the @Resource annotation in my managed bean and performing a query.

                  Thank you.

                  Nick G.

                  • 6. Re: Simple WAR deployment error in AS7 "jboss.deployment.unit.\"...\".POST_MODULE"
                    nick.graves

                    Stuart, I have made the adjustment to the web.xml and have a new error.  I think this is progress.  Any idea what is happening at this point:

                     

                    11:45:09,708 ERROR [org.jboss.as.deployment] (DeploymentScanner-threads - 1) {"Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => "Operation handler failed to complete"}}

                     

                    Thank you.

                    Nick G.

                    • 7. Re: Simple WAR deployment error in AS7 "jboss.deployment.unit.\"...\".POST_MODULE"
                      swd847

                      Can you post the full log? There should be an exception further up that explains the error.

                      • 8. Re: Simple WAR deployment error in AS7 "jboss.deployment.unit.\"...\".POST_MODULE"
                        nick.graves

                        Stuart, this is the full log:

                        11:45:07,927 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-2) Starting deployment of

                        "FISTransaction.war"

                        11:45:09,098 INFO  [org.jboss.weld] (MSC service thread 1-2) Processing CDI deployment: FISTransacti

                        on.war

                        11:45:09,411 INFO  [org.jboss.weld] (MSC service thread 1-2) Starting Services for CDI deployment: F

                        ISTransaction.war

                        11:45:09,411 INFO  [org.jboss.weld] (MSC service thread 1-4) Starting weld service

                        11:45:09,676 INFO  [org.jboss.as.server.controller] (DeploymentScanner-threads - 2) Deployment of "F

                        ISTransaction.war" was rolled back with failure message Operation handler failed to complete

                        11:45:09,676 INFO  [org.jboss.weld] (MSC service thread 1-4) Stopping weld service

                        11:45:09,708 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-3) Stopped deployment FIST

                        ransaction.war in 38ms

                        11:45:09,708 ERROR [org.jboss.as.deployment] (DeploymentScanner-threads - 1) {"Composite operation f

                        ailed and was rolled back. Steps that failed:" => {"Operation step-2" => "Operation handler failed t

                        o complete"}}

                         

                        Is there a server setting I can enable to display more error details?

                        • 9. Re: Simple WAR deployment error in AS7 "jboss.deployment.unit.\"...\".POST_MODULE"
                          swd847

                          That is an odd looking failure, it should provide more detail than that, is there any chance you could attach this archive so I can investigate further?

                          • 10. Re: Simple WAR deployment error in AS7 "jboss.deployment.unit.\"...\".POST_MODULE"
                            nick.graves

                            That would be great. I will zip the project and attach soon. 

                            Thank you!

                            • 11. Re: Simple WAR deployment error in AS7 "jboss.deployment.unit.\"...\".POST_MODULE"
                              nick.graves

                              not sure how to attach to this forum.  Please let me know if I can email to you.

                              Thank you.

                              • 12. Re: Simple WAR deployment error in AS7 "jboss.deployment.unit.\"...\".POST_MODULE"
                                jaikiran

                                Nick Graves wrote:

                                 

                                not sure how to attach to this forum.

                                Click on the "Use Advanced Editor" link at the top right of the message editor window. The new window that opens will have a "Attach" button at the bottom left.

                                • 13. Re: Simple WAR deployment error in AS7 "jboss.deployment.unit.\"...\".POST_MODULE"
                                  ard

                                  I am trying to deploy a war file to JBOSS AS7 , and getting below error

                                   

                                   

                                  11:59:25,125 INFO  [org.jboss.as] (Controller Boot Thread) JBoss AS 7.0.0.Final "Lightning" started in 2467ms - Started 92 of 147 services (55 services are passive or on-demand)
                                  12:00:20,148 ERROR [org.jboss.as.controller] (DeploymentScanner-threads - 2) Operation ("composite") failed - address: (undefined): java.lang.IllegalArgumentException: Invalid value specification  AppSMLT.war
                                         at org.jboss.as.controller.PathElement.<init>(PathElement.java:87)
                                         at org.jboss.as.controller.PathAddress.pathAddress(PathAddress.java:93)
                                         at org.jboss.as.controller.CompositeOperationHandler.execute(CompositeOperationHandler.java:66)
                                         at org.jboss.as.controller.OperationContextImpl.executeStep(OperationContextImpl.java:351)
                                         at org.jboss.as.controller.OperationContextImpl.doCompleteStep(OperationContextImpl.java:298)
                                         at org.jboss.as.controller.OperationContextImpl.completeStep(OperationContextImpl.java:223)
                                         at org.jboss.as.controller.CompositeOperationHandler.execute(CompositeOperationHandler.java:83)
                                         at org.jboss.as.controller.OperationContextImpl.executeStep(OperationContextImpl.java:351)
                                         at org.jboss.as.controller.OperationContextImpl.doCompleteStep(OperationContextImpl.java:298)
                                         at org.jboss.as.controller.OperationContextImpl.completeStep(OperationContextImpl.java:223)
                                         at org.jboss.as.controller.ModelControllerImpl$DefaultPrepareStepHandler.execute(ModelControllerImpl.java:350)
                                         at org.jboss.as.controller.OperationContextImpl.executeStep(OperationContextImpl.java:351)
                                         at org.jboss.as.controller.OperationContextImpl.doCompleteStep(OperationContextImpl.java:298)
                                         at org.jboss.as.controller.OperationContextImpl.completeStep(OperationContextImpl.java:223)
                                         at org.jboss.as.controller.ModelControllerImpl.execute(ModelControllerImpl.java:119)
                                         at org.jboss.as.controller.ModelControllerImpl$1.execute(ModelControllerImpl.java:209)
                                         at org.jboss.as.controller.ModelControllerImpl$1.execute(ModelControllerImpl.java:199)
                                         at org.jboss.as.server.deployment.scanner.FileSystemDeploymentService$DeploymentTask.call(FileSystemDeploymentService.java:1190)
                                         at org.jboss.as.server.deployment.scanner.FileSystemDeploymentService$DeploymentTask.call(FileSystemDeploymentService.java:1180)
                                         at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) [:1.6.0_25]
                                         at java.util.concurrent.FutureTask.run(FutureTask.java:138) [:1.6.0_25]
                                         at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98) [:1.6.0_25]
                                         at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:206) [:1.6.0_25]
                                         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_25]
                                         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_25]
                                         at java.lang.Thread.run(Thread.java:662) [:1.6.0_25]
                                         at org.jboss.threads.JBossThread.run(JBossThread.java:122)
                                   
                                  12:00:20,148 ERROR [org.jboss.as.deployment] (DeploymentScanner-threads - 1) Operation handler failed: java.lang.IllegalArgumentException: Invalid value specification  AppSMLT.war
                                  
                                  
                                  
                                  • 14. Re: Simple WAR deployment error in AS7 "jboss.deployment.unit.\"...\".POST_MODULE"
                                    nick.graves

                                    Hello all.

                                    Just to confirm, my deployment issue was caused by using the Oracle 10g jdbc driver.  It is not Type-4, so I used the Oracle 11g jdbc driver and all is well.

                                     

                                    a d,

                                    Does your application use a data source?  If so, which vendor/DB?

                                     

                                    Nick