6 Replies Latest reply on Feb 4, 2015 3:04 PM by Nikhil Yadav

    EJB Application failed to deploy on JBoss AS 7.0

    Nikhil Yadav Newbie

      For some reason I'm not able to deploy my project .

      I get the following error message:

      03:33:38,474 INFO  [org.jboss.as.jpa] (MSC service thread 1-3) JBAS011402: Starting Persistence Unit Service 'EmployeeManagementEjb.jar#EmpMgmtPU'

      03:33:38,825 INFO  [org.hibernate.annotations.common.Version] (MSC service thread 1-3) HCANN000001: Hibernate Commons Annotations {4.0.1.Final}

      03:33:38,841 INFO  [org.hibernate.Version] (MSC service thread 1-3) HHH000412: Hibernate Core {4.0.1.Final}

      03:33:38,846 INFO  [org.hibernate.cfg.Environment] (MSC service thread 1-3) HHH000206: hibernate.properties not found

      03:33:38,851 INFO  [org.hibernate.cfg.Environment] (MSC service thread 1-3) HHH000021: Bytecode provider name : javassist

      03:33:38,877 INFO  [org.hibernate.ejb.Ejb3Configuration] (MSC service thread 1-3) HHH000204: Processing PersistenceUnitInfo [

        namepersistence.jpgStandalone.jpg@

        • 1. Re: EJB Application failed to deploy on JBoss AS 7.0
          Frank Langelage Master

          "error message" ? Where?

          So far only see INFO messages.

          • 2. Re: EJB Application failed to deploy on JBoss AS 7.0
            Nikhil Yadav Newbie

            this is the error that i am getting . .don't know what to do

            Here EmpMgmtPU is the name of the database

            --

            Caused by: javax.resource.ResourceException: Wrong driver class [class com.mysql.jdbc.Driver] for this connection URL [jdbcmysql://localhost:2345/EmpMgmtPU]

            • 3. Re: Re: EJB Application failed to deploy on JBoss AS 7.0
              Frank Langelage Master

              Seems you're missing a colon in your database URL: jdbc:mysql://localhost:2345/EmpMgmtPU

              1 of 1 people found this helpful
              • 4. Re: Re: EJB Application failed to deploy on JBoss AS 7.0
                Nikhil Yadav Newbie

                Hey

                thanks for the instant reply

                this is my connection url in standalone.xml

                <connection-url>jdbcmysql://localhost:2345/EmpMgntPU</connection-url>

                 

                U mean i shud change this url as u suggest.

                • 5. Re: Re: EJB Application failed to deploy on JBoss AS 7.0
                  Frank Langelage Master

                  Yes, as I wrote before. Change jdbcmysql to jdbc:mysql.

                  • 6. Re: Re: EJB Application failed to deploy on JBoss AS 7.0
                    Nikhil Yadav Newbie

                    when i changed the connection url in my standalone xml

                    now i am facing new error...but i guess this error i coming earlier also

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

                    01:30:26,562 WARN  [org.jboss.jca.core.connectionmanager.pool.strategy.OnePool] (HttpManagementService-threads - 3) IJ000604: Throwable while attempting to get a new connection: null: javax.resource.ResourceException: Could not create connection

                      at org.jboss.jca.adapters.jdbc.local.LocalManagedConnectionFactory.getLocalManagedConnection(LocalManagedConnectionFactory.java:277) [ironjacamar-jdbc-1.0.9.Final.jar:1.0.9.Final]

                      at org.jboss.jca.adapters.jdbc.local.LocalManagedConnectionFactory.createManagedConnection(LocalManagedConnectionFactory.java:235) [ironjacamar-jdbc-1.0.9.Final.jar:1.0.9.Final]

                      at org.jboss.jca.core.connectionmanager.pool.mcp.SemaphoreArrayListManagedConnectionPool.createConnectionEventListener(SemaphoreArrayListManagedConnectionPool.java:761) [ironjacamar-core-impl-1.0.9.Final.jar:1.0.9.Final]

                      at org.jboss.jca.core.connectionmanager.pool.mcp.SemaphoreArrayListManagedConnectionPool.getConnection(SemaphoreArrayListManagedConnectionPool.java:343) [ironjacamar-core-impl-1.0.9.Final.jar:1.0.9.Final]

                      at org.jboss.jca.core.connectionmanager.pool.AbstractPool.getSimpleConnection(AbstractPool.java:397) [ironjacamar-core-impl-1.0.9.Final.jar:1.0.9.Final]

                      at org.jboss.jca.core.connectionmanager.pool.AbstractPool.getConnection(AbstractPool.java:365) [ironjacamar-core-impl-1.0.9.Final.jar:1.0.9.Final]

                      at org.jboss.jca.core.connectionmanager.pool.AbstractPool.internalTestConnection(AbstractPool.java:627) [ironjacamar-core-impl-1.0.9.Final.jar:1.0.9.Final]

                      at org.jboss.jca.core.connectionmanager.pool.strategy.OnePool.testConnection(OnePool.java:88) [ironjacamar-core-impl-1.0.9.Final.jar:1.0.9.Final]

                      at org.jboss.as.connector.pool.PoolOperations$TestConnectionInPool.invokeCommandOn(PoolOperations.java:121) [jboss-as-connector-7.1.1.Final.jar:7.1.1.Final]

                      at org.jboss.as.connector.pool.PoolOperations$1.execute(PoolOperations.java:60) [jboss-as-connector-7.1.1.Final.jar:7.1.1.Final]

                      at org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:385) [jboss-as-controller-7.1.1.Final.jar:7.1.1.Final]

                      at org.jboss.as.controller.AbstractOperationContext.doCompleteStep(AbstractOperationContext.java:272) [jboss-as-controller-7.1.1.Final.jar:7.1.1.Final]

                      at org.jboss.as.controller.AbstractOperationContext.completeStep(AbstractOperationContext.java:200) [jboss-as-controller-7.1.1.Final.jar:7.1.1.Final]

                      at org.jboss.as.connector.pool.PoolOperations.execute(PoolOperations.java:74) [jboss-as-connector-7.1.1.Final.jar:7.1.1.Final]

                      at org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:385) [jboss-as-controller-7.1.1.Final.jar:7.1.1.Final]

                      at org.jboss.as.controller.AbstractOperationContext.doCompleteStep(AbstractOperationContext.java:272) [jboss-as-controller-7.1.1.Final.jar:7.1.1.Final]

                      at org.jboss.as.controller.AbstractOperationContext.completeStep(AbstractOperationContext.java:200) [jboss-as-controller-7.1.1.Final.jar:7.1.1.Final]

                      at org.jboss.as.controller.ModelControllerImpl$DefaultPrepareStepHandler.execute(ModelControllerImpl.java:466) [jboss-as-controller-7.1.1.Final.jar:7.1.1.Final]

                      at org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:385) [jboss-as-controller-7.1.1.Final.jar:7.1.1.Final]

                      at org.jboss.as.controller.AbstractOperationContext.doCompleteStep(AbstractOperationContext.java:272) [jboss-as-controller-7.1.1.Final.jar:7.1.1.Final]

                      at org.jboss.as.controller.AbstractOperationContext.completeStep(AbstractOperationContext.java:200) [jboss-as-controller-7.1.1.Final.jar:7.1.1.Final]

                      at org.jboss.as.controller.ModelControllerImpl.execute(ModelControllerImpl.java:121) [jboss-as-controller-7.1.1.Final.jar:7.1.1.Final]

                      at org.jboss.as.controller.ModelControllerImpl$1.execute(ModelControllerImpl.java:309) [jboss-as-controller-7.1.1.Final.jar:7.1.1.Final]

                      at org.jboss.as.controller.ModelControllerImpl$1.execute(ModelControllerImpl.java:299) [jboss-as-controller-7.1.1.Final.jar:7.1.1.Final]

                      at org.jboss.as.domain.http.server.DomainApiHandler.processRequest(DomainApiHandler.java:294)

                      at org.jboss.as.domain.http.server.DomainApiHandler.doHandle(DomainApiHandler.java:201)

                      at org.jboss.as.domain.http.server.DomainApiHandler.handle(DomainApiHandler.java:208)

                      at org.jboss.as.domain.http.server.security.SubjectAssociationHandler.handle(SubjectAssociationHandler.java:51)

                      at org.jboss.com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:78)

                      at org.jboss.sun.net.httpserver.AuthFilter.doFilter(AuthFilter.java:69)

                      at org.jboss.com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:81)

                      at org.jboss.sun.net.httpserver.ServerImpl$Exchange$LinkHandler.handle(ServerImpl.java:710)

                      at org.jboss.com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:78)

                      at org.jboss.as.domain.http.server.RealmReadinessFilter.doFilter(RealmReadinessFilter.java:54)

                      at org.jboss.com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:81)

                      at org.jboss.sun.net.httpserver.ServerImpl$Exchange.run(ServerImpl.java:682)

                      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_17]

                      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_17]

                      at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_17]

                      at org.jboss.threads.JBossThread.run(JBossThread.java:122) [jboss-threads-2.0.0.GA.jar:2.0.0.GA]

                    Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure