0 Replies Latest reply on Sep 26, 2014 10:13 AM by Daniele Trabucco

    use EclipseLink with Jboss 7.1.1 Final

    Daniele Trabucco Newbie

      Hi,

      i have a problem for to implement EclipseLink with AS7

      I followed this guide: How to use EclipseLink with AS7 but i have problems...

      1 - when downloading from here http://www.eclipse.org/eclipselink/downloads/nightly.php (i use this eclipselink-2.5.3.v20140822-bf5e094) in the archive i copy only eclipselink.jar into C:\jboss\jboss-as-7.1.1.Final\modules\org\eclipse\persistence\main whit module.xml settings:

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

      <module xmlns="urn:jboss:module:1.1" name="org.eclipse.persistence">

      <resources>

        <resource-root path="eclipselink.jar"/>

      </resources>

      <dependencies>

        <!-- If the integration module is installed use it and expose it on the classpath

             of users of org.eclipse.persistence. This is necessary because EclipseLink will

             use their classloader to instantiate the logger classes, etc. -->

        <module name="id.au.ringerc.as7.eclipselinkintegration" export="true" optional="true"/>

        <module name="asm.asm"/>

        <module name="javax.api"/>

        <module name="javax.persistence.api"/>

        <module name="javax.transaction.api"/>

        <module name="javax.validation.api"/>

        <module name="javax.xml.bind.api"/>

        <module name="org.antlr"/>

        <module name="org.apache.ant" optional="true"/>

        <module name="org.apache.commons.collections"/>

        <module name="org.dom4j"/>

        <module name="org.javassist"/>

      </dependencies>

      </module>

      I have to add another in this path?

       

      2 - in my jar i have add the persistence.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" version="1.0"

          xsi:schemaLocation="http://java.sun.com/xml/ns/persistence

      http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd">

          <persistence-unit name="DL_DSB" transaction-type="JTA">

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

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

              <properties>

                  <!-- Toplink properties (GF2) -->

               <property name="toplink.cache.shared.default" value="false"/>

            <property name="toplink.logging.level" value="INFO" />

            <property name="toplink.target-database" value="Oracle" />

            <property name="toplink.target-server" value="JBoss" />

            <!-- Eclipselink properties (GF3) -->

            <property name="eclipselink.cache.shared.default" value="false" />

            <property name="eclipselink.target-server" value="JBoss" />

            <property name="eclipselink.target-database" value="Oracle" />

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

            <property name="eclipselink.logging.exceptions" value="true" />

       

              </properties>

          </persistence-unit>

      </persistence>

      but when enable my ear i have this exception:

      16:10:16,813 INFO  [org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeplo

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

      d DashBoardServerBean in deployment unit subdeployment "DL-IMA-DSB-Core_1.0.jar"

      of deployment "DL-IMA-DSB_1.0.ear" are as follows:

       

              java:global/DL-IMA-DSB_1.0/DL-IMA-DSB-Core_1.0/DashBoardServerBean!com.d

      ueltv.ima.dsb.api.DashBoardServer

              java:app/DL-IMA-DSB-Core_1.0/DashBoardServerBean!com.dueltv.ima.dsb.api.

      DashBoardServer

              java:module/DashBoardServerBean!com.dueltv.ima.dsb.api.DashBoardServer

              java:jboss/exported/DL-IMA-DSB_1.0/DL-IMA-DSB-Core_1.0/DashBoardServerBe

      an!com.dueltv.ima.dsb.api.DashBoardServer

              java:global/DL-IMA-DSB_1.0/DL-IMA-DSB-Core_1.0/DashBoardServerBean

              java:app/DL-IMA-DSB-Core_1.0/DashBoardServerBean

              java:module/DashBoardServerBean

       

      16:10:16,834 INFO  [org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeplo

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

      d DashBoardDatabaseBean in deployment unit subdeployment "DL-IMA-DSB-Core_1.0.ja

      r" of deployment "DL-IMA-DSB_1.0.ear" are as follows:

       

              java:global/DL-IMA-DSB_1.0/DL-IMA-DSB-Core_1.0/DashBoardDatabaseBean!com

      .dueltv.ima.dsb.api.DashBoardDatabase

              java:app/DL-IMA-DSB-Core_1.0/DashBoardDatabaseBean!com.dueltv.ima.dsb.ap

      i.DashBoardDatabase

              java:module/DashBoardDatabaseBean!com.dueltv.ima.dsb.api.DashBoardDataba

      se

              java:jboss/exported/DL-IMA-DSB_1.0/DL-IMA-DSB-Core_1.0/DashBoardDatabase

      Bean!com.dueltv.ima.dsb.api.DashBoardDatabase

              java:global/DL-IMA-DSB_1.0/DL-IMA-DSB-Core_1.0/DashBoardDatabaseBean

              java:app/DL-IMA-DSB-Core_1.0/DashBoardDatabaseBean

              java:module/DashBoardDatabaseBean

       

      16:10:16,947 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC0000

      1: Failed to start service jboss.deployment.subunit."DL-IMA-DSB_1.0.ear"."DL-IMA

      -DSB-Core_1.0.jar".INSTALL: org.jboss.msc.service.StartException in service jbos

      s.deployment.subunit."DL-IMA-DSB_1.0.ear"."DL-IMA-DSB-Core_1.0.jar".INSTALL: Fai

      led to process phase INSTALL of subdeployment "DL-IMA-DSB-Core_1.0.jar" of deplo

      yment "DL-IMA-DSB_1.0.ear"

              at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(Deplo

      ymentUnitPhaseService.java:119) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]

              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]

              at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExec

      utor.java:886) [rt.jar:1.6.0_23]

              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor

      .java:908) [rt.jar:1.6.0_23]

              at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_23]

      Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBA

      S011047: Component class com.dueltv.ima.dsb.core.DashBoardServerBean for compone

      nt DashBoardServerBean has errors:

      JBAS011440: Can't find a persistence unit named DL_DSB_EM in subdeployment "DL-I

      MA-DSB-Core_1.0.jar" of deployment "DL-IMA-DSB_1.0.ear"

              at org.jboss.as.ee.component.deployers.ModuleJndiBindingProcessor$1.hand

      le(ModuleJndiBindingProcessor.java:169)

              at org.jboss.as.ee.component.ClassDescriptionTraversal.run(ClassDescript

      ionTraversal.java:54)

              at org.jboss.as.ee.component.deployers.ModuleJndiBindingProcessor.proces

      sClassConfigurations(ModuleJndiBindingProcessor.java:162)

              at org.jboss.as.ee.component.deployers.ModuleJndiBindingProcessor.deploy

      (ModuleJndiBindingProcessor.java:155)

              at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(Deplo

      ymentUnitPhaseService.java:113) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]

              ... 5 more

       

      16:10:17,202 INFO  [org.jboss.as.server] (HttpManagementService-threads - 2) JBA

      S015870: Deploy of deployment "DL-IMA-DSB_1.0.ear" was rolled back with failure

      message {"JBAS014671: Failed services" => {"jboss.deployment.subunit.\"DL-IMA-DS

      B_1.0.ear\".\"DL-IMA-DSB-Core_1.0.jar\".INSTALL" => "org.jboss.msc.service.Start

      Exception in service jboss.deployment.subunit.\"DL-IMA-DSB_1.0.ear\".\"DL-IMA-DS

      B-Core_1.0.jar\".INSTALL: Failed to process phase INSTALL of subdeployment \"DL-

      IMA-DSB-Core_1.0.jar\" of deployment \"DL-IMA-DSB_1.0.ear\""},"JBAS014771: Servi

      ces with missing/unavailable dependencies" => ["jboss.naming.context.java.comp.\

      "DL-IMA-DSB_1.0\".\"DL-IMA-DSB-Core_1.0\".DashBoardDatabaseBean.ValidatorFactory

      jboss.naming.context.java.comp.\"DL-IMA-DSB_1.0\".\"DL-IMA-DSB-Core_1.0\".DashBo

      ardDatabaseBeanMissing[jboss.naming.context.java.comp.\"DL-IMA-DSB_1.0\".\"DL-IM

      A-DSB-Core_1.0\".DashBoardDatabaseBean.ValidatorFactoryjboss.naming.context.java

      .comp.\"DL-IMA-DSB_1.0\".\"DL-IMA-DSB-Core_1.0\".DashBoardDatabaseBean]","jboss.

      naming.context.java.comp.\"DL-IMA-DSB_1.0\".\"DL-IMA-DSB-Core_1.0\".DashBoardSer

      verBean.ValidatorFactoryjboss.naming.context.java.comp.\"DL-IMA-DSB_1.0\".\"DL-I

      MA-DSB-Core_1.0\".DashBoardServerBeanMissing[jboss.naming.context.java.comp.\"DL

      -IMA-DSB_1.0\".\"DL-IMA-DSB-Core_1.0\".DashBoardServerBean.ValidatorFactoryjboss

      .naming.context.java.comp.\"DL-IMA-DSB_1.0\".\"DL-IMA-DSB-Core_1.0\".DashBoardSe

      rverBean]","jboss.naming.context.java.comp.\"DL-IMA-DSB_1.0\".\"DL-IMA-DSB-Core_

      1.0\".DashBoardDatabaseBean.Validatorjboss.naming.context.java.comp.\"DL-IMA-DSB

      _1.0\".\"DL-IMA-DSB-Core_1.0\".DashBoardDatabaseBeanMissing[jboss.naming.context

      .java.comp.\"DL-IMA-DSB_1.0\".\"DL-IMA-DSB-Core_1.0\".DashBoardDatabaseBean.Vali

      datorjboss.naming.context.java.comp.\"DL-IMA-DSB_1.0\".\"DL-IMA-DSB-Core_1.0\".D

      ashBoardDatabaseBean]","jboss.naming.context.java.comp.\"DL-IMA-DSB_1.0\".\"DL-I

      MA-DSB-Core_1.0\".DashBoardServerBean.Validatorjboss.naming.context.java.comp.\"

      DL-IMA-DSB_1.0\".\"DL-IMA-DSB-Core_1.0\".DashBoardServerBeanMissing[jboss.naming

      .context.java.comp.\"DL-IMA-DSB_1.0\".\"DL-IMA-DSB-Core_1.0\".DashBoardServerBea

      n.Validatorjboss.naming.context.java.comp.\"DL-IMA-DSB_1.0\".\"DL-IMA-DSB-Core_1

      .0\".DashBoardServerBean]"]}

      16:10:17,220 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-4) JBA

      S015877: Stopped deployment DL-IMA-DSB-Core_1.0.jar in 15ms

      16:10:17,309 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-4) JBA

      S015877: Stopped deployment DL-IMA-DSB_1.0.ear in 106ms

      16:10:17,314 INFO  [org.jboss.as.controller] (HttpManagementService-threads - 2)

      JBAS014774: Service status report

      JBAS014775:    New missing/unsatisfied dependencies:

            service jboss.naming.context.java.comp."DL-IMA-DSB_1.0"."DL-IMA-DSB-Core_1

      .0".DashBoardDatabaseBean (missing) dependents: [service jboss.naming.context.ja

      va.comp."DL-IMA-DSB_1.0"."DL-IMA-DSB-Core_1.0".DashBoardDatabaseBean.Validator,

      service jboss.naming.context.java.comp."DL-IMA-DSB_1.0"."DL-IMA-DSB-Core_1.0".Da

      shBoardDatabaseBean.ValidatorFactory]

            service jboss.naming.context.java.comp."DL-IMA-DSB_1.0"."DL-IMA-DSB-Core_1

      .0".DashBoardServerBean (missing) dependents: [service jboss.naming.context.java

      .comp."DL-IMA-DSB_1.0"."DL-IMA-DSB-Core_1.0".DashBoardServerBean.ValidatorFactor

      y, service jboss.naming.context.java.comp."DL-IMA-DSB_1.0"."DL-IMA-DSB-Core_1.0"

      .DashBoardServerBean.Validator]

      JBAS014777:   Services which failed to start:      service jboss.deployment.subu

      nit."DL-IMA-DSB_1.0.ear"."DL-IMA-DSB-Core_1.0.jar".INSTALL: org.jboss.msc.servic

      e.StartException in service jboss.deployment.subunit."DL-IMA-DSB_1.0.ear"."DL-IM

      A-DSB-Core_1.0.jar".INSTALL: Failed to process phase INSTALL of subdeployment "D

      L-IMA-DSB-Core_1.0.jar" of deployment "DL-IMA-DSB_1.0.ear"

       

      depends on what?

      thanks