2 Replies Latest reply on Jun 13, 2013 6:24 AM by erasmo2 marciano2

    Missing[jboss.persistenceunit.\"App1.ear#Model\"jboss.naming.context.java.jdbc.as400]"]

    Gayratbek Komilov Newbie

      I tried to add xa_datasource for AS400 to standalone.xml file

        <xa-datasource jndi-name="java:/jdbc/as400XA" pool-name="as400xa-pool" enabled="true" use-ccm="false">

                          <xa-datasource-property name="URL">

                              jdbc:as400://122.212.243.75/mgolib;naming=sql;errors=full"

                          </xa-datasource-property>

                          <driver>as400XA</driver>

                          <xa-pool>

                              <is-same-rm-override>false</is-same-rm-override>

                              <interleaving>false</interleaving>

                              <pad-xid>false</pad-xid>

                              <wrap-xa-resource>false</wrap-xa-resource>

                          </xa-pool>

                           <security>

                              <user-name>usk</user-name>

                              <password>aa</password>

                          </security>

                          <validation>

                              <validate-on-match>false</validate-on-match>

                              <background-validation>false</background-validation>

                          </validation>

                          <statement>

                              <share-prepared-statements>false</share-prepared-statements>

                          </statement>

                      </xa-datasource>

                      <driver name="as400XA" module="com.ibm.as400">

                              <xa-datasource-class>com\ibm\as400\access\AS400JDBCXADataSource</xa-datasource-class>

                          </driver>

       

      but if I try to deply my project it does not deployed,

      persistent.xml:

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

      <persistence version="2.0" 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 http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd">

                <persistence-unit name="Model">

                          <jta-data-source>java:/jdbc/as400</jta-data-source>

                          <properties>

                <property name="hibernate.dialect" value="org.hibernate.dialect.DB2400Dialect"/>        

            </properties>

                </persistence-unit>

      </persistence>

       

       

      Текущая кодовая страница: 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

       

       

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

       

       

      14:06:17,764 INFO  [org.jboss.modules] JBoss Modules version 1.1.1.GA

      14:06:17,909 INFO  [org.jboss.msc] JBoss MSC version 1.0.2.GA

      14:06:17,945 INFO  [org.jboss.as] JBAS015899: JBoss AS 7.1.1.Final "Brontes" sta

      rting

      14:06:18,499 INFO  [org.xnio] XNIO Version 3.0.3.GA

      14:06:18,499 INFO  [org.jboss.as.server] JBAS015888: Creating http management se

      rvice using socket-binding (management-http)

      14:06:18,505 INFO  [org.xnio.nio] XNIO NIO Implementation Version 3.0.3.GA

      14:06:18,511 INFO  [org.jboss.remoting] JBoss Remoting version 3.2.3.GA

      14:06:18,519 INFO  [org.jboss.as.logging] JBAS011502: Removing bootstrap log han

      dlers

      14:06:18,521 INFO  [org.jboss.as.configadmin] (ServerService Thread Pool -- 26)

      JBAS016200: Activating ConfigAdmin Subsystem

      14:06:18,540 INFO  [org.jboss.as.connector] (MSC service thread 1-6) JBAS010408:

      Starting JCA Subsystem (JBoss IronJacamar 1.0.9.Final)

      14:06:18,550 INFO  [org.jboss.as.naming] (ServerService Thread Pool -- 38) JBAS0

      11800: Activating Naming Subsystem

      14:06:18,541 INFO  [org.jboss.as.clustering.infinispan] (ServerService Thread Po

      ol -- 31) JBAS010280: Activating Infinispan subsystem.

      14:06:18,557 INFO  [org.jboss.as.osgi] (ServerService Thread Pool -- 39) JBAS011

      940: Activating OSGi Subsystem

      14:06:18,575 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)

      14:06:18,580 INFO  [org.jboss.as.webservices] (ServerService Thread Pool -- 48)

      JBAS015537: Activating WebServices Extension

      14:06:18,586 INFO  [org.jboss.as.security] (ServerService Thread Pool -- 44) JBA

      S013101: Activating Security Subsystem

      14:06:18,593 INFO  [org.jboss.as.security] (MSC service thread 1-7) JBAS013100:

      Current PicketBox version=4.0.7.Final

      14:06:18,619 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)

      14:06:18,625 INFO  [org.jboss.as.mail.extension] (MSC service thread 1-3) JBAS01

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

      14:06:18,623 INFO  [org.jboss.as.naming] (MSC service thread 1-5) JBAS011802: St

      arting Naming Service

      14:06:18,633 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)

      14:06:18,678 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)

      14:06:18,826 INFO  [org.jboss.ws.common.management.AbstractServerConfig] (MSC se

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

      14:06:18,857 INFO  [org.apache.coyote.http11.Http11Protocol] (MSC service thread

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

      14:06:18,895 INFO  [org.jboss.as.server.deployment.scanner] (MSC service thread

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

      .1.1.Final\standalone\deployments

      14:06:18,897 INFO  [org.jboss.as.server.deployment.scanner] (DeploymentScanner-t

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

      14:06:18,899 INFO  [org.jboss.as.remoting] (MSC service thread 1-2) JBAS017100:

      Listening on /127.0.0.1:4447

      14:06:18,899 INFO  [org.jboss.as.remoting] (MSC service thread 1-8) JBAS017100:

      Listening on /127.0.0.1:9999

      14:06:19,018 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service

      thread 1-6) JBAS010400: Bound data source [java:/jdbc/as400XA]

      14:06:19,018 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service

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

      14:06:19,030 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-7) JBA

      S015876: Starting deployment of "App1.ear"

      14:06:19,096 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-8) JBA

      S015876: Starting deployment of "View.war"

      14:06:19,096 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-5) JBA

      S015876: Starting deployment of "Model.jar"

      14:06:19,125 INFO  [org.jboss.as.jpa] (MSC service thread 1-8) JBAS011401: Read

      persistence.xml for Model

      14:06:19,182 INFO  [org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeplo

      ymentUnitProcessor] (MSC service thread 1-4) 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

       

       

      14:06:19,307 INFO  [org.jboss.web] (MSC service thread 1-4) JBAS018210: Register

      ing web context: /View

      14:06:19,308 INFO  [org.jboss.as] (MSC service thread 1-6) JBAS015951: Admin con

      sole listening on http://127.0.0.1:9990

      14:06:19,309 ERROR [org.jboss.as] (MSC service thread 1-6) JBAS015875: JBoss AS

      7.1.1.Final "Brontes" started (with errors) in 1727ms - Started 229 of 318 servi

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

      mand)

      14:06:19,510 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS015

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

      014771: Services with missing/unavailable dependencies" => ["jboss.persistenceun

      it.\"App1.ear#Model\"jboss.naming.context.java.jdbc.as400Missing[jboss.persisten

      ceunit.\"App1.ear#Model\"jboss.naming.context.java.jdbc.as400]"]}

      14:06:19,540 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-5) JBA

      S015877: Stopped deployment Model.jar in 29ms

      14:06:19,545 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-5) JBA

      S015877: Stopped deployment View.war in 33ms

      14:06:19,550 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-1) JBA

      S015877: Stopped deployment App1.ear in 39ms

      14:06:19,551 INFO  [org.jboss.as.controller] (DeploymentScanner-threads - 2) JBA

      S014774: Service status report

      JBAS014775:    New missing/unsatisfied dependencies:

            service jboss.naming.context.java.jdbc.as400 (missing) dependents: [servic

      e jboss.persistenceunit."App1.ear#Model"]

       

       

      14:06:19,556 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" => {"JBAS014771: Services with missing/unav

      ailable dependencies" => ["jboss.persistenceunit.\"App1.ear#Model\"jboss.naming.

      context.java.jdbc.as400Missing[jboss.persistenceunit.\"App1.ear#Model\"jboss.nam

      ing.context.java.jdbc.as400]"]}}}