1 Reply Latest reply on Jun 12, 2013 11:59 PM by Gayratbek Komilov

    failed to start service jboss.persistence unit

    Gayratbek Komilov Newbie

      Текущая кодовая страница: 1251

      Calling "C:\jboss-as-7.1.1.Final\bin\standalone.conf.bat"

      JAVA_HOME is not set. Unexpected results may occur.

      Set JAVA_HOME to the directory of your local JDK to avoid this message.

      ===============================================================================

         JBoss Bootstrap Environment

        JBOSS_HOME: C:\jboss-as-7.1.1.Final

        JAVA: java

        JAVA_OPTS: -XX:+TieredCompilation -Dprogram.name=standalone.bat -Xms64M -Xmx51

      2M -XX:MaxPermSize=256M -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.se

      rver.gcInterval=3600000 -Djava.net.preferIPv4Stack=true -Dorg.jboss.resolver.war

      ning=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djboss.server.default.c

      onfig=standalone.xml

      ===============================================================================

      10:14:23,334 INFO  [org.jboss.modules] JBoss Modules version 1.1.1.GA

      10:14:23,474 INFO  [org.jboss.msc] JBoss MSC version 1.0.2.GA

      10:14:23,509 INFO  [org.jboss.as] JBAS015899: JBoss AS 7.1.1.Final "Brontes" sta

      rting

      10:14:24,057 INFO  [org.xnio] XNIO Version 3.0.3.GA

      10:14:24,058 INFO  [org.jboss.as.server] JBAS015888: Creating http management se

      rvice using socket-binding (management-http)

      10:14:24,064 INFO  [org.xnio.nio] XNIO NIO Implementation Version 3.0.3.GA

      10:14:24,069 INFO  [org.jboss.remoting] JBoss Remoting version 3.2.3.GA

      10:14:24,077 INFO  [org.jboss.as.logging] JBAS011502: Removing bootstrap log han

      dlers

      10:14:24,078 INFO  [org.jboss.as.configadmin] JBAS016200: Activating ConfigAdmin

      Subsystem

      10:14:24,083 INFO  [org.jboss.as.clustering.infinispan] (ServerService Thread Po

      ol -- 31) JBAS010280: Activating Infinispan subsystem.

      10:14:24,097 INFO  [org.jboss.as.osgi] (ServerService Thread Pool -- 39) JBAS011

      940: Activating OSGi Subsystem

      10:14:24,098 INFO  [org.jboss.as.naming] (ServerService Thread Pool -- 38) JBAS0

      11800: Activating Naming Subsystem

      10:14:24,116 INFO  [org.jboss.as.security] (ServerService Thread Pool -- 44) JBA

      S013101: Activating Security Subsystem

      10:14:24,124 INFO  [org.jboss.as.webservices] (ServerService Thread Pool -- 48)

      JBAS015537: Activating WebServices Extension

      10:14:24,127 INFO  [org.jboss.as.connector.subsystems.datasources] (ServerServic

      e Thread Pool -- 27) JBAS010403: Deploying JDBC-compliant driver class org.h2.Dr

      iver (version 1.3)

      10:14:24,142 INFO  [org.jboss.as.connector.subsystems.datasources] (ServerServic

      e Thread Pool -- 27) JBAS010403: Deploying JDBC-compliant driver class com.ibm.a

      s400.access.AS400JDBCDriver (version 7.0)

      10:14:24,148 INFO  [org.jboss.as.naming] (MSC service thread 1-7) JBAS011802: St

      arting Naming Service

      10:14:24,149 INFO  [org.jboss.as.security] (MSC service thread 1-4) JBAS013100:

      Current PicketBox version=4.0.7.Final

      10:14:24,152 INFO  [org.jboss.as.connector] (MSC service thread 1-5) JBAS010408:

      Starting JCA Subsystem (JBoss IronJacamar 1.0.9.Final)

      10:14:24,175 INFO  [org.jboss.as.mail.extension] (MSC service thread 1-5) JBAS01

      5400: Bound mail session [java:jboss/mail/Default]

      10:14:24,225 INFO  [org.jboss.as.connector.subsystems.datasources] (ServerServic

      e Thread Pool -- 27) JBAS010403: Deploying JDBC-compliant driver class oracle.jd

      bc.OracleDriver (version 11.2)

      10:14:24,322 INFO  [org.jboss.ws.common.management.AbstractServerConfig] (MSC se

      rvice thread 1-5) JBoss Web Services - Stack CXF Server 4.0.2.GA

      10:14:24,402 INFO  [org.apache.coyote.http11.Http11Protocol] (MSC service thread

      1-5) Starting Coyote HTTP/1.1 on http--127.0.0.1-8080

      10:14:24,437 INFO  [org.jboss.as.remoting] (MSC service thread 1-6) JBAS017100:

      Listening on /127.0.0.1:9999

      10:14:24,437 INFO  [org.jboss.as.remoting] (MSC service thread 1-4) JBAS017100:

      Listening on /127.0.0.1:4447

      10:14:24,438 INFO  [org.jboss.as.server.deployment.scanner] (MSC service thread

      1-2) JBAS015012: Started FileSystemDeploymentService for directory C:\jboss-as-7

      .1.1.Final\standalone\deployments

      10:14:24,444 INFO  [org.jboss.as.server.deployment.scanner] (DeploymentScanner-t

      hreads - 1) JBAS015014: Re-attempting failed deployment App1.ear

      10:14:24,551 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service

      thread 1-2) JBAS010400: Bound data source [java:jboss/datasources/ExampleDS]

      10:14:24,551 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service

      thread 1-3) JBAS010400: Bound data source [java:/jdbc/as400]

      10:14:24,563 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-8) JBA

      S015876: Starting deployment of "App1.ear"

      10:14:24,635 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-3) JBA

      S015876: Starting deployment of "Model.jar"

      10:14:24,635 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-5) JBA

      S015876: Starting deployment of "View.war"

      10:14:24,664 INFO  [org.jboss.as.jpa] (MSC service thread 1-3) JBAS011401: Read

      persistence.xml for Model

      10:14:24,724 INFO  [org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeplo

      ymentUnitProcessor] (MSC service thread 1-1) JNDI bindings for session bean name

      d Facade in deployment unit subdeployment "Model.jar" of deployment "App1.ear" a

      re as follows:

              java:global/App1/Model/Facade!ru.intf.Model.FacadeLocal

              java:app/Model/Facade!ru.intf.Model.FacadeLocal

              java:module/Facade!ru.intf.Model.FacadeLocal

              java:global/App1/Model/Facade

              java:app/Model/Facade

              java:module/Facade

      10:14:24,750 INFO  [org.jboss.as.jpa] (MSC service thread 1-6) JBAS011402: Start

      ing Persistence Unit Service 'App1.ear#Model'

      10:14:24,833 INFO  [org.hibernate.annotations.common.Version] (MSC service threa

      d 1-6) HCANN000001: Hibernate Commons Annotations {4.0.1.Final}

      10:14:24,838 INFO  [org.hibernate.Version] (MSC service thread 1-6) HHH000412: H

      ibernate Core {4.0.1.Final}

      10:14:24,839 INFO  [org.hibernate.cfg.Environment] (MSC service thread 1-6) HHH0

      00206: hibernate.properties not found

      10:14:24,841 INFO  [org.hibernate.cfg.Environment] (MSC service thread 1-6) HHH0

      00021: Bytecode provider name : javassist

      10:14:24,930 INFO  [org.hibernate.ejb.Ejb3Configuration] (MSC service thread 1-6

      ) HHH000204: Processing PersistenceUnitInfo [

              name: Model        ...]

      10:14:24,932 INFO  [org.jboss.web] (MSC service thread 1-2) JBAS018210: Register

      ing web context: /View

      10:14:24,972 INFO  [org.hibernate.service.jdbc.connections.internal.ConnectionPr

      oviderInitiator] (MSC service thread 1-6) HHH000130: Instantiating explicit conn

      ection provider: org.hibernate.ejb.connection.InjectedDataSourceConnectionProvid

      er

      10:14:25,291 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-6) MSC0000

      1: Failed to start service jboss.persistenceunit."App1.ear#Model": org.jboss.msc

      .service.StartException in service jboss.persistenceunit."App1.ear#Model": Faile

      d to start service

              at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceCont

      rollerImpl.java:1767) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

              at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [rt

      .jar:1.7.0_10]

              at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [r

      t.jar:1.7.0_10]

              at java.lang.Thread.run(Unknown Source) [rt.jar:1.7.0_10]

      Caused by: javax.persistence.PersistenceException: [PersistenceUnit: Model] Unab

      le to build EntityManagerFactory

              at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Con

      figuration.java:914)

              at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Con

      figuration.java:889)

              at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFa

      ctory(HibernatePersistence.java:73)

              at org.jboss.as.jpa.service.PersistenceUnitServiceImpl.createContainerEn

      tityManagerFactory(PersistenceUnitServiceImpl.java:162)

              at org.jboss.as.jpa.service.PersistenceUnitServiceImpl.start(Persistence

      UnitServiceImpl.java:85)

              at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(Se

      rviceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

              at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceCont

      rollerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

              ... 3 more

      Caused by: org.hibernate.HibernateException: Unable to determine Dialect to use

      [name=DB2 UDB for AS/400, majorVersion=5]; user must register resolver or explic

      itly set 'hibernate.dialect'

              at org.hibernate.service.jdbc.dialect.internal.DialectFactoryImpl.determ

      ineDialect(DialectFactoryImpl.java:105)

              at org.hibernate.service.jdbc.dialect.internal.DialectFactoryImpl.buildD

      ialect(DialectFactoryImpl.java:67)

              at org.hibernate.engine.jdbc.internal.JdbcServicesImpl.configure(JdbcSer

      vicesImpl.java:148)

              at org.hibernate.service.internal.StandardServiceRegistryImpl.configureS

      ervice(StandardServiceRegistryImpl.java:75)

              at org.hibernate.service.internal.AbstractServiceRegistryImpl.initialize

      Service(AbstractServiceRegistryImpl.java:159)

              at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService

      (AbstractServiceRegistryImpl.java:131)

              at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:

      71)

              at org.hibernate.cfg.Configuration.buildSettingsInternal(Configuration.j

      ava:2270)

              at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2266

      )

              at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.jav

      a:1735)

              at org.hibernate.ejb.EntityManagerFactoryImpl.<init>(EntityManagerFactor

      yImpl.java:84)

              at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Con

      figuration.java:904)

              ... 9 more

      10:14:25,345 INFO  [org.jboss.as] (MSC service thread 1-3) JBAS015951: Admin con

      sole listening on http://127.0.0.1:9990

      10:14:25,346 ERROR [org.jboss.as] (MSC service thread 1-3) JBAS015875: JBoss AS

      7.1.1.Final "Brontes" started (with errors) in 2194ms - Started 227 of 315 servi

      ces (4 services failed or missing dependencies, 82 services are passive or on-de

      mand)

      10:14:25,546 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS015

      870: Deploy of deployment "App1.ear" was rolled back with failure message {"JBAS

      014671: Failed services" => {"jboss.persistenceunit.\"App1.ear#Model\"" => "org.

      jboss.msc.service.StartException in service jboss.persistenceunit.\"App1.ear#Mod

      el\": Failed to start service"}}

      10:14:25,573 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-4) JBA

      S015877: Stopped deployment Model.jar in 26ms

      10:14:25,576 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-5) JBA

      S015877: Stopped deployment View.war in 28ms

      10:14:25,580 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-4) JBA

      S015877: Stopped deployment App1.ear in 33ms

      10:14:25,581 INFO  [org.jboss.as.controller] (DeploymentScanner-threads - 2) JBA

      S014774: Service status report

      JBAS014777:   Services which failed to start:      service jboss.persistenceunit

      ."App1.ear#Model": org.jboss.msc.service.StartException in service jboss.persist

      enceunit."App1.ear#Model": Failed to start service

      10:14:25,586 ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-t

      hreads - 1) {"JBAS014653: Composite operation failed and was rolled back. Steps

      that failed:" => {"Operation step-2" => {"JBAS014671: Failed services" => {"jbos

      s.persistenceunit.\"App1.ear#Model\"" => "org.jboss.msc.service.StartException i

      n service jboss.persistenceunit.\"App1.ear#Model\": Failed to start service"}}}}