1 2 Previous Next 15 Replies Latest reply on Apr 25, 2014 2:51 PM by Juan Gonzales

    PARSE: org.jboss.msc.service.StartException: Failed to start service jboss.deployment.unit.“nbaCommunity-web.war”?

    David Modino de la Pisa Newbie

      Hi everybody,

      I'm trying to deploy my war file on JBoss 7.1 but I'm not able to solve it. I was searching for this error... but the answers I've found it didn't resolve my problem.

      The tools I am used are Maven 2, JSF 2.1, Hibernate 4, PrettyFaces and JBoss 7.1

      If anybody could help me. Thanks in advance.

      10:14:20,240 INFO [org.jboss.as.server.deployment] (MSC service thread 1-5) JBAS015876: Starting deployment of "nbaCommunity-web.war" 10:14:22,834 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-6) MSC00001: Failed to start service jboss.deployment.unit."nbaCommunity-web.war".PARSE: org.jboss.msc.service.StartException in service jboss.deployment.unit."nbaCommunity-web.war".PARSE: Failed to process phase PARSE of deployment "nbaCommunity-web.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:895) [classes.jar:1.6.0_43] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918) [classes.jar:1.6.0_43] at java.lang.Thread.run(Thread.java:680) [classes.jar:1.6.0_43] Caused by: java.lang.NullPointerException at org.jboss.metadata.parser.jbossweb.JBossWebMetaDataParser.parse(JBossWebMetaDataParser.java:119) at org.jboss.as.web.deployment.JBossWebParsingDeploymentProcessor.deploy(JBossWebParsingDeploymentProcessor.java:69) 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

      10:14:22,851 INFO [org.jboss.as] (MSC service thread 1-6) JBAS015951: Admin console listening onhttp://localhost:9990 10:14:22,852 ERROR [org.jboss.as] (MSC service thread 1-6) JBAS015875: JBoss AS 7.1.1.Final "Brontes" started (with errors) in 5296ms - Started 140 of 217 services (1 services failed or missing dependencies, 74 services are passive or on-demand) 10:14:22,856 INFO [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS015870: Deploy of deployment "nbaCommunity-web.war" was rolled back with failure message {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"nbaCommunity-web.war\".PARSE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"nbaCommunity-web.war\".PARSE: Failed to process phase PARSE of deployment \"nbaCommunity-web.war\""}} 10:14:22,858 INFO [org.jboss.as.controller] (DeploymentScanner-threads - 2) JBAS014774: Service status report JBAS014777: Services which failed to start: service jboss.deployment.unit."nbaCommunity-web.war".PARSE: org.jboss.msc.service.StartException in service jboss.deployment.unit."nbaCommunity-web.war".PARSE: Failed to process phase PARSE of deployment "nbaCommunity-web.war"

      10:14:22,874 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.\"nbaCommunity-web.war\".PARSE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"nbaCommunity-web.war\".PARSE: Failed to process phase PARSE of deployment \"nbaCommunity-web.war\""}}}} 10:14:23,008 INFO [org.jboss.as.server.deployment] (MSC service thread 1-5) JBAS015877: Stopped deployment nbaCommunity-web.war in 122ms

        • 1. Re: PARSE: org.jboss.msc.service.StartException: Failed to start service jboss.deployment.unit.“nbaCommunity-web.war”?
          jaikiran pai Master

          David, welcome to the forums.

           

          Would it be possible to try this against the latest released version http://www.jboss.org/jbossas/downloads.html and see if it works there. If it still fails there, please post the new exception stacktrace.

          • 3. Re: PARSE: org.jboss.msc.service.StartException: Failed to start service jboss.deployment.unit.“nbaCommunity-web.war”?
            David Modino de la Pisa Newbie

            Thanks jaikirian,

             

            I have checked I'm developed over jboss-as-7.1.1.Final version! The latest version!

             

            Jboss version.png

            • 5. Re: PARSE: org.jboss.msc.service.StartException: Failed to start service jboss.deployment.unit.“nbaCommunity-web.war”?
              David Modino de la Pisa Newbie

              Hi Nicklass,

               

              Ok, I am downloading 6.1.0 Alpha version

               

              I was searching for the jar file in the war file in the lib folder... but I didn't understand -tf output

              How could I search and saw you.

               

              Thanks

              • 8. Re: PARSE: org.jboss.msc.service.StartException: Failed to start service jboss.deployment.unit.“nbaCommunity-web.war”?
                David Modino de la Pisa Newbie

                Hi Nicklas,

                 

                I have already installed 6.1.0 Alpha version and I've deployed my war file. Later, I've run the command you told me. And this is result:

                 

                 

                MacBook-Pro-de-david:~ david$ jar tf /usr/local/jboss-eap-6.1/standalone/deployments/nbaCommunity-web.war/WEB-INF/lib/nbaCommunity-model-0.0.1-SNAPSHOT.jar

                META-INF/

                META-INF/maven/

                META-INF/maven/org.modino.nbaCommunity.model/

                META-INF/maven/org.modino.nbaCommunity.model/nbaCommunity-model/

                META-INF/maven/org.modino.nbaCommunity.model/nbaCommunity-model/pom.properties

                META-INF/maven/org.modino.nbaCommunity.model/nbaCommunity-model/pom.xml

                META-INF/MANIFEST.MF

                META-INF/persistence.xml

                hibernate.cfg.xml

                scriptBD.sql

                 

                 

                ---------------------------------------------

                 

                I've copied the trace of the server

                 

                [0m[31m13:47:37,015 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-4) MSC00001: Failed to start service jboss.deployment.unit."nbaCommunity-web.war".PARSE: org.jboss.msc.service.StartException in service jboss.deployment.unit."nbaCommunity-web.war".PARSE: JBAS018733: Failed to process phase PARSE of deployment "nbaCommunity-web.war"

                          at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:127) [jboss-as-server-7.2.0.Alpha1-redhat-4.jar:7.2.0.Alpha1-redhat-4]

                          at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.4.GA.jar:1.0.4.GA]

                          at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.4.GA.jar:1.0.4.GA]

                          at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895) [classes.jar:1.6.0_43]

                          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918) [classes.jar:1.6.0_43]

                          at java.lang.Thread.run(Thread.java:680) [classes.jar:1.6.0_43]

                Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS011448: Failed to parse "/usr/local/jboss-eap-6.1/standalone/deployments/nbaCommunity-web.war/WEB-INF/lib/nbaCommunity-model-0.0.1-SNAPSHOT.jar/META-INF/persistence.xml"

                          at org.jboss.as.jpa.processor.PersistenceUnitParseProcessor.parse(PersistenceUnitParseProcessor.java:214)

                          at org.jboss.as.jpa.processor.PersistenceUnitParseProcessor.handleWarDeployment(PersistenceUnitParseProcessor.java:141)

                          at org.jboss.as.jpa.processor.PersistenceUnitParseProcessor.deploy(PersistenceUnitParseProcessor.java:83)

                          at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:120) [jboss-as-server-7.2.0.Alpha1-redhat-4.jar:7.2.0.Alpha1-redhat-4]

                          ... 5 more

                Caused by: com.ctc.wstx.exc.WstxParsingException: Received non-all-whitespace CHARACTERS or CDATA event in nextTag().

                at [row,col {unknown-source}]: [19,80]

                          at com.ctc.wstx.sr.StreamScanner.constructWfcException(StreamScanner.java:606)

                          at com.ctc.wstx.sr.StreamScanner.throwParseError(StreamScanner.java:479)

                          at com.ctc.wstx.sr.StreamScanner.throwParseError(StreamScanner.java:464)

                          at com.ctc.wstx.sr.BasicStreamReader.nextTag(BasicStreamReader.java:1137)

                          at org.jboss.as.jpa.puparser.PersistenceUnitXmlParser.parseProperties(PersistenceUnitXmlParser.java:293)

                          at org.jboss.as.jpa.puparser.PersistenceUnitXmlParser.parsePU(PersistenceUnitXmlParser.java:232)

                          at org.jboss.as.jpa.puparser.PersistenceUnitXmlParser.parse(PersistenceUnitXmlParser.java:120)

                          at org.jboss.as.jpa.processor.PersistenceUnitParseProcessor.parse(PersistenceUnitParseProcessor.java:209)

                          ... 8 more

                 

                 

                Thanks

                • 9. Re: PARSE: org.jboss.msc.service.StartException: Failed to start service jboss.deployment.unit.“nbaCommunity-web.war”?
                  Nicklas Karlsson Master

                  Show the persistence.xml of that jar. It would also be good to have a jar tf of the war itself.

                  • 10. Re: PARSE: org.jboss.msc.service.StartException: Failed to start service jboss.deployment.unit.“nbaCommunity-web.war”?
                    David Modino de la Pisa Newbie

                    This is my persitence.xml:

                     

                     

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

                    <persistence xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence persistence_2_0.xsd" version="2.0">

                        <persistence-unit name="persistenceUnit" transaction-type="RESOURCE_LOCAL">

                            <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>       

                                        <provider>org.hibernate.ejb.HibernatePersistence</provider>

                      <jta-data-source>java:jboss/datasources/MySQLDS</jta-data-source> 

                    <!--                     <non-jta-data-source>java:jboss/datasources/MySQLDS</non-jta-data-source> -->

                             <class>org.modino.nbaCommunity.domain.pojo.User</class>

                             <class>org.modino.nbaCommunity.domain.pojo.Address</class>

                             <class>org.modino.nbaCommunity.domain.pojo.Team</class>

                             <class>org.modino.nbaCommunity.domain.pojo.League</class>

                             <class>org.modino.nbaCommunity.domain.pojo.Player</class>

                             <class>org.modino.nbaCommunity.domain.pojo.Match</class>

                             <class>org.modino.nbaCommunity.domain.pojo.Scoring</class>

                             <class>org.modino.nbaCommunity.domain.pojo.NBATeam</class>

                             <class>org.modino.nbaCommunity.domain.pojo.NBAPlayer</class>

                            <properties>

                    <!--             <property name="javax.persistence.jdbc.driver" value="oracle.jdbc.OracleDriver"/> -->

                                <property name="javax.persistence.jdbc.driver">com.mysql.jdbc.Driver</property>

                                <property name="javax.persistence.jdbc.url" value="jdbc:mysql://localhost:3306/nbaCommunity"/>

                                <property name="javax.persistence.jdbc.user" value="root"/>

                                <property name="javax.persistence.jdbc.password" value=""/>

                                <property name="eclipselink.logging.level" value="FINEST"/>

                                      

                                <property name="eclipselink.ddl-generation" value="none"/>

                                <property name="eclipselink.ddl-generation.output-mode" value="database"/>

                               

                                <property name="eclipselink.ddl-generation" value="drop-and-create-tables"/>

                                <property name="eclipselink.create-ddl-jdbc-file-name" value="create_nbaCommunity_bbdd.jdbc"/>

                                <property name="eclipselink.drop-ddl-jdbc-file-name" value="delete_nbaCommunity.jdbc"/>

                                <property name="eclipselink.ddl-generation.output-mode" value="sql-script"/>

                               

                                <!-- Properties for Hibernate -->

                             <property name="hibernate.hbm2ddl.auto" value="create-drop" />

                             <property name="hibernate.show_sql" value="false" />

                            

                            </properties>

                        </persistence-unit>

                    </persistence>

                     

                    I'm trying to have a jar tf of the war, but it cannot be possible ¿it is possible to make it with that command?

                    jar tf war.png

                    • 12. Re: PARSE: org.jboss.msc.service.StartException: Failed to start service jboss.deployment.unit.“nbaCommunity-web.war”?
                      David Modino de la Pisa Newbie

                      Ok. I did it some changes in persistence.xml, I've just put the DataSource and Provider of HibernatePersistence.

                       

                      Although, I would like to generate the jdbc files with the sql code of the tables. But, I am not able to get it! ¿I don't know why it is not possible?

                       

                      Anyway, I've got to solve the problem of deploying the project and is reading from DataSource among Persitence Unit. It's wonderful!!

                       

                      But, there are some warnings I would like to solve... I've marked in bold. ¿are there important to solve it?

                       

                       

                      [0m[0m18:15:03,303 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-6) JBAS015876: Starting deployment of "nbaCommunity-web.war" (runtime-name: "nbaCommunity-web.war")

                      [0m[0m18:15:03,330 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-6) JBAS010400: Bound data source [java:jboss/datasources/ExampleDS]

                      [0m[0m18:15:03,344 INFO  [org.jboss.as.remoting] (MSC service thread 1-8) JBAS017100: Listening on 127.0.0.1:4447

                      [0m[0m18:15:03,345 INFO  [org.jboss.as.remoting] (MSC service thread 1-3) JBAS017100: Listening on 127.0.0.1:9999

                      [0m[0m18:15:03,377 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-7) JBAS010400: Bound data source [java:jboss/datasources/MySQLDS]

                      [0m[0m18:15:06,381 INFO  [org.jboss.as.jpa] (MSC service thread 1-6) JBAS011401: Read persistence.xml for persistenceUnit

                      [0m[33m18:15:07,039 WARN  [org.jboss.as.ee] (MSC service thread 1-3) JBAS011006: Not installing optional component org.springframework.web.context.request.async.StandardServletAsyncWebRequest due to exception: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS011054: Could not find default constructor for class org.springframework.web.context.request.async.StandardServletAsyncWebRequest

                                at org.jboss.as.ee.component.ComponentDescription$DefaultComponentConfigurator.configure(ComponentDescription.java:607) [jboss-as-ee-7.2.0.Alpha1-redhat-4.jar:7.2.0.Alpha1-redhat-4]

                                at org.jboss.as.ee.component.deployers.EEModuleConfigurationProcessor.deploy(EEModuleConfigurationProcessor.java:80) [jboss-as-ee-7.2.0.Alpha1-redhat-4.jar:7.2.0.Alpha1-redhat-4]

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

                                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:895) [classes.jar:1.6.0_43]

                                at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918) [classes.jar:1.6.0_43]

                                at java.lang.Thread.run(Thread.java:680) [classes.jar:1.6.0_43]

                       

                      [0m[0m18:15:07,434 INFO  [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-3) JBAS010404: Deploying non-JDBC-compliant driver class com.mysql.jdbc.Driver (version 5.1)

                      [0m[33m18:15:07,436 WARN  [org.jboss.weld.deployer] (MSC service thread 1-3) JBAS016012: Deployment deployment "nbaCommunity-web.war" contains CDI annotations but beans.xml was not found.

                      [0m[0m18:15:07,522 INFO  [org.jboss.as.jpa] (ServerService Thread Pool -- 48) JBAS011402: Starting Persistence Unit Service 'nbaCommunity-web.war#persistenceUnit'

                      [0m[0m18:15:08,077 INFO  [org.hibernate.annotations.common.Version] (ServerService Thread Pool -- 48) HCANN000001: Hibernate Commons Annotations {4.0.1.Final}

                      [0m[0m18:15:08,104 INFO  [org.hibernate.Version] (ServerService Thread Pool -- 48) HHH000412: Hibernate Core {4.2.0.CR1}

                      [0m[0m18:15:08,106 INFO  [org.hibernate.cfg.Environment] (ServerService Thread Pool -- 48) HHH000206: hibernate.properties not found

                      [0m[0m18:15:08,108 INFO  [org.hibernate.cfg.Environment] (ServerService Thread Pool -- 48) HHH000021: Bytecode provider name : javassist

                      [0m[0m18:15:08,155 INFO  [org.hibernate.ejb.Ejb3Configuration] (ServerService Thread Pool -- 48) HHH000204: Processing PersistenceUnitInfo [

                                name: persistenceUnit

                                ...]

                       

                      ---

                       

                      Persistence.xml file:

                       

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

                      <persistence xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence persistence_2_0.xsd" version="2.0">

                          <persistence-unit name="persistenceUnit" transaction-type="RESOURCE_LOCAL">

                         

                          <!-- DATA SOURCE -->

                                    <jta-data-source>java:jboss/datasources/MySQLDS</jta-data-source>

                          

                          <!-- PROVIDER -->

                                          <provider>org.hibernate.ejb.HibernatePersistence</provider>

                              

                               <!-- PROPERTIES -->

                              <properties>

                                  <!-- Properties for Hibernate -->

                                         <property name="hibernate.hbm2ddl.auto" value="create-drop" />

                                         <property name="hibernate.show_sql" value="false" />

                              

                              </properties>

                          </persistence-unit>

                      </persistence>

                      • 13. Re: PARSE: org.jboss.msc.service.StartException: Failed to start service jboss.deployment.unit.“nbaCommunity-web.war”?
                        Nicklas Karlsson Master

                        The CDI warning will go away with an empty beans.xml in the WEB-INF

                        1 of 1 people found this helpful
                        • 14. Re: PARSE: org.jboss.msc.service.StartException: Failed to start service jboss.deployment.unit.“nbaCommunity-web.war”?
                          David Modino de la Pisa Newbie

                          Finally, I solved all the problems and now I can deploy the war file and watch home page of my application.

                           

                          Thanks for all Nicklas.

                          1 of 1 people found this helpful
                          1 2 Previous Next