4 Replies Latest reply on Oct 16, 2015 3:45 AM by Arpit Thakkar

    JBoss Seam

    Giovanni Perazzo Newbie

      I'm trying to make my first application with JBoss Seam With MySQL DataBase. When I run the server gives the following errors:


      [code]

      23:48:20,475 INFO  [org.jboss.modules] JBoss Modules version 1.1.1.GA

      23:48:22,372 INFO  [org.jboss.msc] JBoss MSC version 1.0.2.GA

      23:48:22,528 INFO  [org.jboss.as] JBAS015899: JBoss AS 7.1.1.Final "Brontes" starting

      23:48:34,474 INFO  [org.jboss.as.server] JBAS015888: Creating http management service using socket-binding (management-http)

      23:48:34,489 INFO  [org.xnio] XNIO Version 3.0.3.GA

      23:48:34,510 INFO  [org.xnio.nio] XNIO NIO Implementation Version 3.0.3.GA

      23:48:34,674 INFO  [org.jboss.remoting] JBoss Remoting version 3.2.3.GA

      23:48:35,021 INFO  [org.jboss.as.logging] JBAS011502: Removing bootstrap log handlers

      23:48:35,305 INFO  [org.jboss.as.naming] (ServerService Thread Pool -- 55) JBAS011800: Activating Naming Subsystem

      23:48:35,385 INFO  [org.jboss.as.connector] (MSC service thread 1-8) JBAS010408: Starting JCA Subsystem (JBoss IronJacamar 1.0.9.Final)

      23:48:35,810 INFO  [org.jboss.as.naming] (MSC service thread 1-2) JBAS011802: Starting Naming Service

      23:48:36,065 INFO  [org.jboss.as.mail.extension] (MSC service thread 1-4) JBAS015400: Bound mail session [java:jboss/mail/Default]

      23:48:36,908 INFO  [org.apache.coyote.http11.Http11Protocol] (MSC service thread 1-2) Starting Coyote HTTP/1.1 on http-localhost-127.0.0.1-8080

      23:48:37,185 INFO  [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 44) JBAS010403: Deploying JDBC-compliant driver class org.h2.Driver (version 1.3)

      23:48:37,499 INFO  [org.jboss.ws.common.management.AbstractServerConfig] (MSC service thread 1-1) JBoss Web Services - Stack CXF Server 4.0.2.GA

      23:48:38,071 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-5) JBAS010400: Bound data source [java:jboss/datasources/ExampleDS]

      23:48:38,452 INFO  [org.jboss.as.server.deployment.scanner] (MSC service thread 1-3) JBAS015012: Started FileSystemDeploymentService for directory E:\Ambiente\jboss-as-7.1.1.Final\standalone\deployments

      23:48:38,458 INFO  [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) JBAS015014: Re-attempting failed deployment Teste_JBoss-ds.xml

      23:48:38,476 INFO  [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) JBAS015014: Re-attempting failed deployment Teste_JBoss.war

      23:48:38,496 WARN  [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) JBAS015002: Deployment of 'mysql-connector-java-5.1.20-bin.jar' requested, but the deployment is not present

      23:48:38,497 INFO  [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) JBAS015003: Found Teste_JBoss.war in deployment directory. To trigger deployment create a file called Teste_JBoss.war.dodeploy

      23:48:38,502 INFO  [org.jboss.as.remoting] (MSC service thread 1-8) JBAS017100: Listening on /127.0.0.1:9999

      23:48:38,504 INFO  [org.jboss.as.remoting] (MSC service thread 1-1) JBAS017100: Listening on localhost/127.0.0.1:4447

      23:48:39,022 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-5) JBAS015876: Starting deployment of "Teste_JBoss-ds.xml"

      23:48:39,022 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-8) JBAS015876: Starting deployment of "Teste_JBoss.war"

      23:48:41,051 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-3) MSC00001: Failed to start service jboss.deployment.unit."Teste_JBoss-ds.xml".PARSE: org.jboss.msc.service.StartException in service jboss.deployment.unit."Teste_JBoss-ds.xml".PARSE: Failed to process phase PARSE of deployment "Teste_JBoss-ds.xml"

      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(Unknown Source) [rt.jar:1.6.0_26]

      at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [rt.jar:1.6.0_26]

      at java.lang.Thread.run(Unknown Source) [rt.jar:1.6.0_26]

      Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: IJ010061: Unexpected element: local-tx-datasource

      at org.jboss.as.connector.deployers.processors.DsXmlDeploymentParsingProcessor.deploy(DsXmlDeploymentParsingProcessor.java:85)

      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

      Caused by: org.jboss.jca.common.metadata.ParserException: IJ010061: Unexpected element: local-tx-datasource

      at org.jboss.jca.common.metadata.ds.DsParser.parseDataSources(DsParser.java:183)

      at org.jboss.jca.common.metadata.ds.DsParser.parse(DsParser.java:119)

      at org.jboss.jca.common.metadata.ds.DsParser.parse(DsParser.java:82)

      at org.jboss.as.connector.deployers.processors.DsXmlDeploymentParsingProcessor.deploy(DsXmlDeploymentParsingProcessor.java:80)

      ... 6 more


      23:48:44,370 INFO  [org.jboss.as.jpa] (MSC service thread 1-5) JBAS011401: Read persistence.xml for Teste_JBoss

      23:48:45,261 INFO  [org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeploymentUnitProcessor] (MSC service thread 1-1) JNDI bindings for session bean named EjbSynchronizations in deployment unit deployment "Teste_JBoss.war" are as follows:


      java:global/Teste_JBoss/EjbSynchronizations!org.jboss.seam.transaction.LocalEjbSynchronizations

      java:app/Teste_JBoss/EjbSynchronizations!org.jboss.seam.transaction.LocalEjbSynchronizations

      java:module/EjbSynchronizations!org.jboss.seam.transaction.LocalEjbSynchronizations

      java:global/Teste_JBoss/EjbSynchronizations

      java:app/Teste_JBoss/EjbSynchronizations

      java:module/EjbSynchronizations


      23:48:45,265 INFO  [org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeploymentUnitProcessor] (MSC service thread 1-1) JNDI bindings for session bean named TimerServiceDispatcher in deployment unit deployment "Teste_JBoss.war" are as follows:


      java:global/Teste_JBoss/TimerServiceDispatcher!org.jboss.seam.async.LocalTimerServiceDispatcher

      java:app/Teste_JBoss/TimerServiceDispatcher!org.jboss.seam.async.LocalTimerServiceDispatcher

      java:module/TimerServiceDispatcher!org.jboss.seam.async.LocalTimerServiceDispatcher

      java:global/Teste_JBoss/TimerServiceDispatcher

      java:app/Teste_JBoss/TimerServiceDispatcher

      java:module/TimerServiceDispatcher


      23:48:45,993 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS015871: Deploy of deployment "Teste_JBoss.war" was rolled back with no failure message

      23:48:45,996 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS015870: Deploy of deployment "Teste_JBoss-ds.xml" was rolled back with failure message {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"Teste_JBoss-ds.xml\".PARSE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"Teste_JBoss-ds.xml\".PARSE: Failed to process phase PARSE of deployment \"Teste_JBoss-ds.xml\""}}

      23:48:46,010 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-6) JBAS015877: Stopped deployment Teste_JBoss-ds.xml in 14ms

      23:48:46,083 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-5) JBAS015877: Stopped deployment Teste_JBoss.war in 88ms

      23:48:46,085 INFO  [org.jboss.as.controller] (DeploymentScanner-threads - 2) JBAS014774: Service status report

      JBAS014775:    New missing/unsatisfied dependencies:

            service jboss.naming.context.java.Teste_JBossDatasource (missing) dependents: [service jboss.persistenceunit."Teste_JBoss.war#Teste_JBoss"]

      JBAS014777:   Services which failed to start:      service jboss.deployment.unit."Teste_JBoss-ds.xml".PARSE: org.jboss.msc.service.StartException in service jboss.deployment.unit."Teste_JBoss-ds.xml".PARSE: Failed to process phase PARSE of deployment "Teste_JBoss-ds.xml"


      23:48:46,090 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.\"Teste_JBoss-ds.xml\".PARSE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"Teste_JBoss-ds.xml\".PARSE: Failed to process phase PARSE of deployment \"Teste_JBoss-ds.xml\""}}}}

      23:48:46,101 ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) JBAS014654: Composite operation was rolled back

      [/code]


      I'm starting now with JBoss, then I have no idea what may be the error.

        • 1. Re: JBoss Seam
          Wolf-Dieter Fink Master

          Looks like  a misconfigured datasource:

          IJ010061: Unexpected element: local-tx-datasource

          can you check your several steps, or provide mroe informations?

          • 2. Re: JBoss Seam
            Giovanni Perazzo Newbie

            I have not found any tutorial on setting up JBoss Seam with MySQl. So I was trying.

            The local-tx-datasource is of the MySQL? Where do I find this file?

            • 3. Re: JBoss Seam
              Wolf-Dieter Fink Master

              the error is about this file

              23:48:39,022 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-8) JBAS015876: Starting deployment of "Teste_JBoss.war"

              23:48:41,051 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-3) MSC00001: Failed to start service jboss.deployment.unit."Teste_JBoss-ds.xml".PARSE: org.jboss.msc.service.StartException in service jboss.deployment.unit."Teste_JBoss-ds.xml".PARSE: Failed to process phase PARSE of deployment "Teste_JBoss-ds.xml"

               

              I suppose you add thie to the deployment folder.

               

              Start a fresh JBoss and deploy step-by-step.

              I suppose the *-ds.xml file is of an older example.

              You might have a look to this wiki how to configure datasources in AS7

               

              • 4. Re: JBoss Seam
                Arpit Thakkar Newbie

                Hi i m also facing the same issue with jboss 7.1

                my datasource.xml will be like this

                 

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

                <!DOCTYPE datasources PUBLIC "-//JBoss//DTD JBOSS JCA Config 1.5//EN"

                                             "http://www.jboss.org/j2ee/dtd/jboss-ds_1_5.dtd">

                <datasources>

                 

                 

                 

                 

                  <local-tx-datasource>

                   <jndi-name>RsntDatasource</jndi-name>

                   <use-java-context>true</use-java-context>

                     <!--   <connection-url>jdbc:mysql://localhost:3306/buzzbell_qa</connection-url>

                   <driver-class>com.mysql.jdbc.Driver</driver-class>

                   <user-name>root</user-name>

                   <password>root</password> -->

                    <connection-url>jdbc:mysql://localhost:3306/buzzbell_qa</connection-url>

                   <driver-class>com.mysql.jdbc.Driver</driver-class>

                   <user-name>roo</user-name>

                   <password>root</password> 

                   <min-pool-size>10</min-pool-size>

                   <max-pool-size>20</max-pool-size>

                   <idle-timeout-minutes>0</idle-timeout-minutes>

                   <exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.MySQLExceptionSorter</exception-sorter-class-name>

                 

                  

                   <!--  <valid-connection-checker-class-name>org.jboss.resource.adapter.jdbc.vendor.MySQLValidConnectionChecker</valid-connection-checker-class-name>

                    <background-validation>true</background-validation>

                  <background-validation-millis>10000</background-validation-millis>

                  <check-valid-connection-sql>Select 1;</check-valid-connection-sql> -->

                 

                  </local-tx-datasource>

                </datasources>

                 

                Please help me to solve these error.