1 2 3 Previous Next 41 Replies Latest reply on Sep 19, 2012 8:11 AM by avneesh Go to original post
      • 30. Re: "org.jboss.msc.service.StartException in service jboss.persistenceunit.\"jbpm-spring-quickstart.war#jbpm\": Failed to start service"
        marco.rietveld

        Hi Avneesh Sisodi,

         

        The error you post above is different than the one you posted before -- I'm not seeing any error about dom4j.

         

        Is the error with dom4j still happening?

         

        If so, please double check if hibernate 3 is still being included in your war.

         

        Thanks,

        Marco

        • 31. Re: "org.jboss.msc.service.StartException in service jboss.persistenceunit.\"jbpm-spring-quickstart.war#jbpm\": Failed to start service"
          jaikiran

          It's becoming difficult to be able to help in this thread because of the various different issues that you are using this thread for. Right now, I have no clue what the problem is. In fact, the server logs that you posted, belong to 7.0.0 version of JBoss AS. Please run this against either 7.1.1 or the latest nightly builds of AS7 and if it fails there please explain what exactly fails and attach those new logs.

          • 32. Re: "org.jboss.msc.service.StartException in service jboss.persistenceunit.\"jbpm-spring-quickstart.war#jbpm\": Failed to start service"
            marco.rietveld

            Avneesh,

             

            Please see Jaikiran's advice above: at the very least, it might be worth it to try your war on 7.1.1 since that might fix your problem.

             

            You are not getting the same error as before, the error is now:

            13:35:50,881 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC00001: Failed to start service jboss.naming.context.java.jboss.datasources/RI.jboss.deployment.unit."jbpm-spring-quickstart.war".module.jbpm-spring-quickstart.jbpm-spring-quickstart.0: org.jboss.msc.service.StartException in service jboss.naming.context.java.jboss.datasources/RI.jboss.deployment.unit."jbpm-spring-quickstart.war".module.jbpm-spring-quickstart.jbpm-spring-quickstart.0: Failed to start service
                 at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1786)
                 at org.jboss.msc.service.ServiceControllerImpl$ClearTCCLTask.run(ServiceControllerImpl.java:2291)
                 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]
            Caused by: java.lang.NullPointerException
                 at org.jboss.as.naming.service.BindingHandleService.start(BindingHandleService.java:88)
                 at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1765)
                 ... 4 more

             

            Looking at the code seems to imply well.. Hmm.. uhm, maybe something's not being named?

             

            There might be a problem in your spring configuration (wrt application server integration)? Regardless, I think trying 7.1.1 will probably give you a better error message.

            • 33. Re: "org.jboss.msc.service.StartException in service jboss.persistenceunit.\"jbpm-spring-quickstart.war#jbpm\": Failed to start service"
              avneesh

              No, error with dom4j is not happeninf now. But datasource binding is cause of rollback...

              • 34. Re: "org.jboss.msc.service.StartException in service jboss.persistenceunit.\"jbpm-spring-quickstart.war#jbpm\": Failed to start service"
                avneesh

                Thanks Macro,

                But when I am using this configuration same as in this apllication in other spring project, working very fine.

                • 35. Re: "org.jboss.msc.service.StartException in service jboss.persistenceunit.\"jbpm-spring-quickstart.war#jbpm\": Failed to start service"
                  avneesh

                  When I deploy it on JBoss AS 7.1.1 it show error :

                   

                   

                  14:07:21,719 INFO  [org.jboss.as.jpa] (MSC service thread 1-1) JBAS011401: Read persistence.xml for jbpm
                  14:07:21,959 INFO  [org.jboss.weld.deployer] (MSC service thread 1-1) JBAS016002: Processing weld deployment jbpm-spring-quickstart.war
                  14:07:22,938 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-1) MSC00001: Failed to start service jboss.deployment.unit."jbpm-spring-quickstart.war".INSTALL: 
                  org.jboss.msc.service.StartException in service jboss.deployment.unit."jbpm-spring-quickstart.war".INSTALL: Failed to process phase INSTALL of deployment "jbpm-spring-quickstart.war"
                      at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:119) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
                      at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
                      at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
                      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_25]
                      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_25]
                      at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_25]
                  Caused by: java.lang.NullPointerException
                      at org.jboss.as.ee.component.deployers.ModuleJndiBindingProcessor.addJndiBinding(ModuleJndiBindingProcessor.java:261)
                      at org.jboss.as.ee.component.deployers.ModuleJndiBindingProcessor.deploy(ModuleJndiBindingProcessor.java:118)
                      at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:113) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
                      ... 5 more
                  
                  14:07:22,991 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS015870: Deploy of deployment "jbpm-spring-quickstart.war" 
                  was rolled back with failure message {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"jbpm-spring-quickstart.war\".INSTALL" => 
                  "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"jbpm-spring-quickstart.war\".INSTALL: Failed to process phase INSTALL of deployment \"jbpm-spring-quickstart.war\""}}
                  14:07:23,132 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015877: Stopped deployment jbpm-spring-quickstart.war in 139ms
                  14:07:23,137 INFO  [org.jboss.as.controller] (DeploymentScanner-threads - 2) JBAS014774: Service status report
                  JBAS014775:    New missing/unsatisfied dependencies:
                        service jboss.deployment.unit."jbpm-spring-quickstart.war".WeldService (missing) dependents: [service jboss.deployment.unit.
                  "jbpm-spring-quickstart.war".component."org.springframework.web.servlet.tags.form.PasswordInputTag".WeldInstantiator, 
                  service jboss.deployment.unit."jbpm-spring-quickstart.war".component."org.apache.taglibs.standard.tlv.JstlXmlTLV".WeldInstantiator, service jboss.deployment.unit.
                  "jbpm-spring-quickstart.war".component."org.apache.taglibs.standard.tag.rt.fmt.FormatNumberTag".WeldInstantiator, service jboss.deployment.unit.
                  "jbpm-spring-quickstart.war".component."org.apache.taglibs.standard.tag.el.core.RedirectTag".WeldInstantiator, JBAS014799: ... and 109 more ] 
                  JBAS014777:   Services which failed to start:      service jboss.deployment.unit."jbpm-spring-quickstart.war".INSTALL: org.jboss.msc.service.
                  StartException in service jboss.deployment.unit."jbpm-spring-quickstart.war".INSTALL: Failed to process phase INSTALL of deployment "jbpm-spring-quickstart.war"
                  
                  14:07:23,164 ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) {"JBAS014653: Composite operation failed and was rolled back. Steps that failed:" => 
                  {"Operation step-2" => {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"jbpm-spring-quickstart.war\".INSTALL" => "org.jboss.msc.service.StartException in 
                  service jboss.deployment.unit.\"jbpm-spring-quickstart.war\".INSTALL: Failed to process phase INSTALL of deployment \"jbpm-spring-quickstart.war\""}}}}
                  
                  • 36. Re: "org.jboss.msc.service.StartException in service jboss.persistenceunit.\"jbpm-spring-quickstart.war#jbpm\": Failed to start service"
                    marco.rietveld

                    Avsheen,

                     

                    If the datasource binding is the cause of the problem, then you need to compare your standalone.xml to the persistence.xml files you're using.

                     

                    I think datasource bindings can fail because of the following:

                     

                    1. typo in standalone.xml or persistence.xml (one file refers to "java:jboss/dataDs" and the other to "java:jboss/dataDS".. )

                    2. The datasource can not be created because it can not connect to the database it wants to use (user, password, url mistakes).

                    3. The jdbc driver is not on the classpath.

                     

                    There are probably others, but those are the first ones that come to mind.

                    • 37. Re: "org.jboss.msc.service.StartException in service jboss.persistenceunit.\"jbpm-spring-quickstart.war#jbpm\": Failed to start service"
                      avneesh

                      Unfotunately I checked many times thse all things.

                      But probably root cause is something other.

                      • 38. Re: "org.jboss.msc.service.StartException in service jboss.persistenceunit.\"jbpm-spring-quickstart.war#jbpm\": Failed to start service"
                        jaikiran

                        Stick with 7.1.1 and their logs for now. Post/attach the persistence.xml, the standalone configuration xml file you are using and the web.xml. If you have a jboss-web.xml, post that too.

                        • 39. Re: "org.jboss.msc.service.StartException in service jboss.persistenceunit.\"jbpm-spring-quickstart.war#jbpm\": Failed to start service"
                          jaikiran

                          Did someone delete a response from this thread. I saw the original poster replying around an hour back that the problem was solved by fixing the web.xml, but I no longer see that reply here.

                          • 40. Re: "org.jboss.msc.service.StartException in service jboss.persistenceunit.\"jbpm-spring-quickstart.war#jbpm\": Failed to start service"
                            marco.rietveld

                            Yes, it looks like Avneesh deleted his response, which is a pity -- or otherwise, maybe he deleted it because it wasn't the solution?

                             

                            IIRC, in his post, he said that he was using his JNDI name for the .. <res-ref-name> (? not sure of element name) of his main datasource in his standalone.xml, instead of just "RI", which he was probably referencing somewhere else in his standalone.xml or in his persistence.xml.

                            • 41. Re: "org.jboss.msc.service.StartException in service jboss.persistenceunit.\"jbpm-spring-quickstart.war#jbpm\": Failed to start service"
                              avneesh

                              Sorry guys, That post was deleted by mistake.

                              Here isthe solution for my problem.

                              I was using this in my web.xml

                               

                              <resource-ref>
                                      <res-ref-name>java:jboss/datasources/RI</res-ref-name>
                                      <res-type>javax.sql.DataSource</res-type>
                                      <res-auth>Container</res-auth>
                                      <res-sharing-scope>Shareable</res-sharing-scope>
                                      <lookup-name>java:jboss/datasources/RI</lookup-name>
                               </resource-ref>
                              

                               

                              but this one is working fine for me...

                               

                              <resource-ref>
                                      <res-ref-name>RI</res-ref-name>
                                      <res-type>javax.sql.DataSource</res-type>
                                      <res-auth>Container</res-auth>
                                      <res-sharing-scope>Shareable</res-sharing-scope>
                                      <lookup-name>java:jboss/datasources/RI</lookup-name>
                              </resource-ref>
                              
                              1 2 3 Previous Next