1 2 3 Previous Next 41 Replies Latest reply on Sep 19, 2012 8:11 AM by Avneesh Sisodia

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

    Avneesh Sisodia Newbie

      Hi all,

       

      When I am deploying JBPM+SPRING web App on JBoss AS 7.0. It shows error.

      18:12:13,120 WARN  [org.jboss.as.ee.component.ResourceInjectionAnnotationParsingProcessor] (MSC service thread 1-1) 
      Can't handle @Resource for ENC name: org.apache.cxf.transport.http.HTTPTransportFactory/bus on class 
      org.apache.cxf.transport.http.HTTPTransportFactory since it's missing a "lookup" (or "mappedName") value and isn't of any known type
      18:12:13,136 INFO  [org.jboss.weld] (MSC service thread 1-1) Processing CDI deployment: jbpm-spring-quickstart.war
      18:12:13,858 INFO  [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-1) Deploying JDBC-compliant driver 
      class com.microsoft.sqlserver.jdbc.SQLServerDriver (version 3.0)
      18:12:13,858 INFO  [org.jboss.weld] (MSC service thread 1-1) Starting Services for CDI deployment: jbpm-spring-quickstart.war
      18:12:13,888 INFO  [org.jboss.weld.Version] (MSC service thread 1-1) WELD-000900 1.1.2 (AS7)
      18:12:14,238 INFO  [org.jboss.jpa] (MSC service thread 1-2) starting Persistence Unit Service 'jbpm-spring-quickstart.war#jbpm' 
      18:12:14,338 INFO  [org.hibernate.annotations.common.Version] (MSC service thread 1-2) Hibernate Commons Annotations 3.2.0.Final
      18:12:14,338 INFO  [org.hibernate.cfg.Environment] (MSC service thread 1-2) HHH00412:Hibernate [WORKING]
      18:12:14,348 INFO  [org.hibernate.cfg.Environment] (MSC service thread 1-2) HHH00206:hibernate.properties not found
      18:12:14,348 INFO  [org.hibernate.cfg.Environment] (MSC service thread 1-2) HHH00021:Bytecode provider name : javassist
      18:12:14,428 INFO  [org.jboss.weld] (MSC service thread 1-1) Starting weld service
      18:12:14,498 INFO  [org.hibernate.ejb.Ejb3Configuration] (MSC service thread 1-2) HHH00204:Processing PersistenceUnitInfo [
          name: jbpm
          ...]
      18:12:14,538 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC00001: Failed to start service jboss.persistenceunit.
      "jbpm-spring-quickstart.war#jbpm": org.jboss.msc.service.StartException in service jboss.persistenceunit."jbpm-spring-quickstart.war#jbpm": 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: org.hibernate.InvalidMappingException: Unable to read XML
          at org.hibernate.internal.util.xml.MappingReader.readMappingDocument(MappingReader.java:102)
          at org.hibernate.ejb.Ejb3Configuration.addXMLEntities(Ejb3Configuration.java:724)
          at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:593)
          at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:72)
          at org.jboss.as.jpa.service.PersistenceUnitService.createContainerEntityManagerFactory(PersistenceUnitService.java:170)
          at org.jboss.as.jpa.service.PersistenceUnitService.start(PersistenceUnitService.java:80)
          at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1765)
          ... 4 more
      Caused by: org.dom4j.DocumentException: org.dom4j.DocumentFactory cannot be cast to org.dom4j.DocumentFactory Nested exception: org.dom4j
      .DocumentFactory cannot be cast to org.dom4j.DocumentFactory
          at org.dom4j.io.SAXReader.read(SAXReader.java:484)
          at org.hibernate.internal.util.xml.MappingReader.readMappingDocument(MappingReader.java:76)
          ... 10 more
      
      18:12:17,555 INFO  [org.jboss.weld] (MSC service thread 1-1) Stopping weld service
      18:12:17,565 INFO  [org.jboss.as.server.controller] (DeploymentScanner-threads - 2) Deployment of "jbpm-spring-quickstart.war" was rolled back with failure message
       {"Failed services" => {"jboss.persistenceunit.\"jbpm-spring-quickstart.war#jbpm\"" => "org.jboss.msc.service.StartException in service jboss.persistenceunit.\"jbpm-spring-quickstart.war#jbpm\":
       Failed to start service"}}
      18:12:18,265 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-2) Stopped deployment jbpm-spring-quickstart.war in 766ms
      18:12:18,265 ERROR [org.jboss.as.deployment] (DeploymentScanner-threads - 1) {"Composite operation failed and was rolled back. Steps that failed:" => 
      {"Operation step-2" => {"Failed services" => {"jboss.persistenceunit.\"jbpm-spring-quickstart.war#jbpm\"" => "org.jboss.msc.service.StartException in service 
      jboss.persistenceunit.\"jbpm-spring-quickstart.war#jbpm\": Failed to start service"}}}}
      18:34:27,473 INFO  [org.jboss.as.osgi] (MSC service thread 1-2) Stopping OSGi Framework
      

       

      please hlp me...

      Thanks,,,

        • 4. Re: "org.jboss.msc.service.StartException in service jboss.persistenceunit.\"jbpm-spring-quickstart.war#jbpm\": Failed to start service"
          Avneesh Sisodia Newbie

          here are the dependencies:::

          <dependencies>
                  <dependency>
                      <groupId>org.slf4j</groupId>
                      <artifactId>slf4j-api</artifactId>
                      <version>${version.slf4j}</version>
                  </dependency>
                  <dependency>
                      <groupId>org.slf4j</groupId>
                      <artifactId>slf4j-log4j12</artifactId>
                      <version>${version.slf4j}</version>
                  </dependency>
          
                  <dependency>
                      <groupId>javax.servlet</groupId>
                      <artifactId>jstl</artifactId>
                      <version>${version.jstl}</version>
                  </dependency>
          
                  <dependency>
                      <groupId>org.codehaus.btm</groupId>
                      <artifactId>btm</artifactId>
                      <version>${version.bitronix}</version>
                  </dependency>
          
                  <dependency>
                      <groupId>org.hibernate.javax.persistence</groupId>
                      <artifactId>hibernate-jpa-2.0-api</artifactId>
                      <version>${version.hibernate.jpa2.api}</version>
                  </dependency>
          
                  <dependency>
                      <groupId>org.hibernate</groupId>
                      <artifactId>hibernate-core</artifactId>
                      <version>${version.hibernate}</version>
                  </dependency>
                  <dependency>
                      <groupId>org.hibernate</groupId>
                      <artifactId>hibernate-entitymanager</artifactId>
                      <version>${version.hibernate}</version>
                      <exclusions>
                          <exclusion>
                              <groupId>cglib</groupId>
                              <artifactId>cglib</artifactId>
                          </exclusion>
                      </exclusions>
                  </dependency>
          
                  <dependency>
                      <groupId>org.springframework</groupId>
                      <artifactId>spring-aop</artifactId>
                      <version>${version.spring}</version>
                  </dependency>
                  <dependency>
                      <groupId>org.springframework</groupId>
                      <artifactId>spring-asm</artifactId>
                      <version>${version.spring}</version>
                  </dependency>
                  <dependency>
                      <groupId>org.springframework</groupId>
                      <artifactId>spring-beans</artifactId>
                      <version>${version.spring}</version>
                  </dependency>
                  <dependency>
                      <groupId>org.springframework</groupId>
                      <artifactId>spring-context</artifactId>
                      <version>${version.spring}</version>
                  </dependency>
                  <dependency>
                      <groupId>org.springframework</groupId>
                      <artifactId>spring-context-support</artifactId>
                      <version>${version.spring}</version>
                  </dependency>
                  <dependency>
                      <groupId>org.springframework</groupId>
                      <artifactId>spring-core</artifactId>
                      <version>${version.spring}</version>
                  </dependency>
                  <dependency>
                      <groupId>org.springframework</groupId>
                      <artifactId>spring-expression</artifactId>
                      <version>${version.spring}</version>
                  </dependency>
                  <dependency>
                      <groupId>org.springframework</groupId>
                      <artifactId>spring-jdbc</artifactId>
                      <version>${version.spring}</version>
                  </dependency>
                  <dependency>
                      <groupId>org.springframework</groupId>
                      <artifactId>spring-orm</artifactId>
                      <version>${version.spring}</version>
                  </dependency>
                  <dependency>
                      <groupId>org.springframework</groupId>
                      <artifactId>spring-tx</artifactId>
                      <version>${version.spring}</version>
                  </dependency>
                  <dependency>
                      <groupId>org.springframework</groupId>
                      <artifactId>spring-test</artifactId>
                      <version>${version.spring}</version>
                      <scope>test</scope>
                  </dependency>
                  <dependency>
                      <groupId>org.springframework</groupId>
                      <artifactId>spring-web</artifactId>
                      <version>${version.spring}</version>
                  </dependency>
                  <dependency>
                      <groupId>org.springframework</groupId>
                      <artifactId>spring-webmvc</artifactId>
                      <version>${version.spring}</version>
                  </dependency>
                  <dependency>
                      <groupId>aopalliance</groupId>
                      <artifactId>aopalliance</artifactId>
                      <version>${version.aopalliance}</version>
                  </dependency>
          
                  <dependency>
                      <groupId>junit</groupId>
                      <artifactId>junit</artifactId>
                      <version>${version.junit}</version>
                      <scope>test</scope>
                  </dependency>
          
                  <dependency>
                      <groupId>org.codehaus.jackson</groupId>
                      <artifactId>jackson-mapper-asl</artifactId>
                      <version>${version.jackson}</version>
                  </dependency>
          
                  <dependency>
                      <groupId>org.codehaus.jackson</groupId>
                      <artifactId>jackson-core-asl</artifactId>
                      <version>${version.jackson}</version>
                  </dependency>
          
                  <dependency>
                      <groupId>org.jbpm</groupId>
                      <artifactId>jbpm-bam</artifactId>
                      <version>${version.jbpm}</version>
                  </dependency>
                  <dependency>
                      <groupId>org.jbpm</groupId>
                      <artifactId>jbpm-bpmn2</artifactId>
                      <version>${version.jbpm}</version>
                  </dependency>
                  <dependency>
                      <groupId>org.jbpm</groupId>
                      <artifactId>jbpm-flow</artifactId>
                      <version>${version.jbpm}</version>
                  </dependency>
                  <dependency>
                      <groupId>org.jbpm</groupId>
                      <artifactId>jbpm-flow-builder</artifactId>
                      <version>${version.jbpm}</version>
                  </dependency>
                  <dependency>
                      <groupId>org.jbpm</groupId>
                      <artifactId>jbpm-human-task-core</artifactId>
                      <version>${version.jbpm}</version>
                  </dependency>
                  <dependency>
                      <groupId>org.jbpm</groupId>
                      <artifactId>jbpm-persistence-jpa</artifactId>
                      <version>${version.jbpm}</version>
                  </dependency>
                  <dependency>
                      <groupId>org.jbpm</groupId>
                      <artifactId>jbpm-workitems</artifactId>
                      <version>${version.jbpm}</version>
                  </dependency>
          
                  <dependency>
                      <groupId>org.drools</groupId>
                      <artifactId>drools-core</artifactId>
                      <version>${version.drools}</version>
                  </dependency>
                  <dependency>
                      <groupId>org.drools</groupId>
                      <artifactId>drools-compiler</artifactId>
                      <version>${version.drools}</version>
                  </dependency>
                  <dependency>
                      <groupId>org.drools</groupId>
                      <artifactId>knowledge-api</artifactId>
                      <version>${version.drools}</version>
                  </dependency>
                  <dependency>
                      <groupId>org.drools</groupId>
                      <artifactId>drools-persistence-jpa</artifactId>
                      <version>${version.drools}</version>
                  </dependency>
                  <dependency>
                      <groupId>org.drools</groupId>
                      <artifactId>drools-spring</artifactId>
                      <version>${version.drools}</version>
                  </dependency>
                  <dependency>
                      <groupId>org.drools</groupId>
                      <artifactId>drools-decisiontables</artifactId>
                      <version>${version.drools}</version>
                  </dependency>
                  <dependency>
                      <groupId>org.drools</groupId>
                      <artifactId>drools-templates</artifactId>
                      <version>${version.drools}</version>
                  </dependency>
          
                  <dependency>
                      <groupId>org.mvel</groupId>
                      <artifactId>mvel2</artifactId>
                      <version>${version.mvel}</version>
                  </dependency>
          
                  <dependency>
                      <groupId>org.antlr</groupId>
                      <artifactId>antlr</artifactId>
                      <version>${version.antlr}</version>
                  </dependency>
                  <dependency>
                      <groupId>org.antlr</groupId>
                      <artifactId>antlr-runtime</artifactId>
                      <version>${version.antlr}</version>
                  </dependency>
          
                  <dependency>
                      <groupId>com.google.protobuf</groupId>
                      <artifactId>protobuf-java</artifactId>
                      <version>${version.protobuf}</version>
                  </dependency>
                  <dependency>
                          <groupId>commons-dbcp</groupId>
                          <artifactId>commons-dbcp</artifactId>
                          <version>1.2.2</version>
                  </dependency>
              </dependencies>
          
          • 5. Re: "org.jboss.msc.service.StartException in service jboss.persistenceunit.\"jbpm-spring-quickstart.war#jbpm\": Failed to start service"
            Nicklas Karlsson Master

            As my brain-to-maven2 mapping for transitive deps is a bit bad, could you list the deps as they are actually included in the application? foo.jar, bar.jar etc.

            • 6. Re: "org.jboss.msc.service.StartException in service jboss.persistenceunit.\"jbpm-spring-quickstart.war#jbpm\": Failed to start service"
              Avneesh Sisodia Newbie

              But could you please highlight the main reason behind my problem.

              I have not included and dependency for dom4j.jar. but it is being downloaded during maven build.

              I haven't any idea why this is happening.

              • 7. Re: "org.jboss.msc.service.StartException in service jboss.persistenceunit.\"jbpm-spring-quickstart.war#jbpm\": Failed to start service"
                Avneesh Sisodia Newbie

                Why this error is coming while deploying???

                18:12:18,265 ERROR [org.jboss.as.deployment] (DeploymentScanner-threads - 1) {"Composite operation failed and was rolled back. Steps that failed:" =>
                {"Operation step-2" => {"Failed services" => {"jboss.persistenceunit.\"jbpm-spring-quickstart.war#jbpm\"" => "org.jboss.msc.service.StartException in service
                jboss.persistenceunit.\"jbpm-spring-quickstart.war#jbpm\": Failed to start service"}}}}

                 

                • 8. Re: "org.jboss.msc.service.StartException in service jboss.persistenceunit.\"jbpm-spring-quickstart.war#jbpm\": Failed to start service"
                  Nicklas Karlsson Master

                  Ther root cause appears to be

                   

                  Caused by: org.dom4j.DocumentException: org.dom4j.DocumentFactory cannot be cast to org.dom4j.DocumentFactory Nested exception: org.dom4j
                  .DocumentFactory cannot be cast to org.dom4j.DocumentFactory

                   

                  which probably comes from classloader interaction between two different dom4j:s (app and server side). You might want to check with maven what brings it in and change the scope so it doesn't get included with the app (possibly using a MANIFEST dependency to add the server-dom4j)

                  1 of 1 people found this helpful
                  • 9. Re: "org.jboss.msc.service.StartException in service jboss.persistenceunit.\"jbpm-spring-quickstart.war#jbpm\": Failed to start service"
                    Avneesh Sisodia Newbie

                    Yes I solve that dom4j issu.

                    It resolved when i use JBoss AS 7.1.1 Final.

                    But second problem is still there.

                     

                    17:31:53,449 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015877: Stopped deployment jbpm-spring-quickstart.war in 171ms
                    17:31:53,453 INFO  [org.jboss.as.controller] (DeploymentScanner-threads - 2) JBAS014774: Service status report
                    JBAS014775:    New missing/unsatisfied dependencies:
                          service jboss.naming.context.java.jboss.datasources.RI (missing) dependents: [service jboss.persistenceunit."jbpm-spring-quickstart.war#jbpm"] 
                    
                    17:31:53,464 ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) {"JBAS014653: 
                    Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"JBAS014771: 
                    Services with missing/unavailable dependencies" => ["jboss.persistenceunit.\"jbpm-spring-quickstart.war#jbpm\"jboss.naming.context.java.jboss.datasources.RIMissing[jboss.persistenceunit.
                    \"jbpm-spring-quickstart.war#jbpm\"jboss.naming.context.java.jboss.datasources.RI]"]}}}
                    
                    • 10. Re: "org.jboss.msc.service.StartException in service jboss.persistenceunit.\"jbpm-spring-quickstart.war#jbpm\": Failed to start service"
                      Nicklas Karlsson Master

                      Looks like a missing datasource, check various persistence.xml files (or @Resource injections on DataSource:s)

                      • 11. Re: "org.jboss.msc.service.StartException in service jboss.persistenceunit.\"jbpm-spring-quickstart.war#jbpm\": Failed to start service"
                        Avneesh Sisodia Newbie

                        I am using this datasource "java:jboss/datasources/RI" in all persistence.xml files and in jboss also.

                        • 13. Re: "org.jboss.msc.service.StartException in service jboss.persistenceunit.\"jbpm-spring-quickstart.war#jbpm\": Failed to start service"
                          Avneesh Sisodia Newbie

                          Yes server is able to bind datasource everytime.

                           

                          17:47:54,301 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-1) JBAS010400: Bound data source [java:jboss/datasources/RI]
                          
                          • 14. Re: "org.jboss.msc.service.StartException in service jboss.persistenceunit.\"jbpm-spring-quickstart.war#jbpm\": Failed to start service"
                            Nicklas Karlsson Master

                            Hmm. The error message looks more complex than just a missing DS, perhaps a missing driver module (can you see the driver deployed at boot)?

                            1 2 3 Previous Next