5 Replies Latest reply on Jun 3, 2015 8:50 AM by Scott Marlow

    Wildfly and Eclipselink problems!

    Henrik Schulz Newbie

      Hi all

      I hope this is the correct place, - - otherwise please feel free to tell me.

      My problem is I get the problems showed below. ( I think it can't find the class: org.jipijapa.eclipselink.JBossAS7ServerPlatform, but I'm not sure...)

       

      1) The datasource is setup and tested before continue with the problem below

      I've use eclipselink and deploying this in the wildfly-8.2.0. I've followed the JPA Reference Guide - WildFly 8 - Project Documentation Editor, - but I'm still in problem , I've done it twice to be sure...

       

      Here is the log:

      21:32:18,324 INFO  [org.jboss.as.jpa] (MSC service thread 1-9) JBAS011401: Read persistence.xml for checkin

      21:32:18,469 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-16) MSC000001: Failed to start service jboss.deployment.unit.checkin2.POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.unit.checkin2.POST_MODULE: JBAS018733: Failed to process phase POST_MODULE of deployment "checkin2"

          at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:166) [wildfly-server-8.2.0.Final.jar:8.2.0.Final]

          at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]

          at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]

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

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

          at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_75]

      Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: java.lang.ClassNotFoundException: dk.kindergarden.ParentService from [Module "deployment.checkin2:main" from Service Module Loader]

          at org.jboss.as.ejb3.deployment.processors.BusinessViewAnnotationProcessor.getEjbClass(BusinessViewAnnotationProcessor.java:231)

          at org.jboss.as.ejb3.deployment.processors.BusinessViewAnnotationProcessor.deploy(BusinessViewAnnotationProcessor.java:89)

          at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:159) [wildfly-server-8.2.0.Final.jar:8.2.0.Final]

          ... 5 more

      Caused by: java.lang.ClassNotFoundException: dk.kindergarden.ParentService from [Module "deployment.checkin2:main" from Service Module Loader]

          at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:213) [jboss-modules.jar:1.3.3.Final]

          at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:459) [jboss-modules.jar:1.3.3.Final]

          at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:408) [jboss-modules.jar:1.3.3.Final]

          at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:389) [jboss-modules.jar:1.3.3.Final]

          at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:134) [jboss-modules.jar:1.3.3.Final]

          at org.jboss.as.ejb3.deployment.processors.BusinessViewAnnotationProcessor.getEjbClass(BusinessViewAnnotationProcessor.java:229)

          ... 7 more

       

      21:32:18,489 INFO  [org.jboss.as.jpa] (ServerService Thread Pool -- 50) JBAS011402: Starting Persistence Unit Service 'checkin2.war#checkin'

      21:32:18,535 INFO  [org.jboss.ws.common.management] (MSC service thread 1-1) JBWS022052: Starting JBoss Web Services - Stack CXF Server 4.3.2.Final

      21:32:18,577 ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool -- 50) MSC000001: Failed to start service jboss.persistenceunit."checkin2.war#checkin": org.jboss.msc.service.StartException in service jboss.persistenceunit."checkin2.war#checkin": javax.persistence.PersistenceException: Exception [EclipseLink-28018] (Eclipse Persistence Services - 2.5.2.v20140319-9ad6abd): org.eclipse.persistence.exceptions.EntityManagerSetupException

      Exception Description: Predeployment of PersistenceUnit [checkin] failed.

      Internal Exception: Exception [EclipseLink-28006] (Eclipse Persistence Services - 2.5.2.v20140319-9ad6abd): org.eclipse.persistence.exceptions.EntityManagerSetupException

      Exception Description: ClassNotFound: [org.jipijapa.eclipselink.JBossAS7ServerPlatform] specified in [eclipselink.target-server] property.

      Internal Exception: java.lang.ClassNotFoundException: org.jipijapa.eclipselink.JBossAS7ServerPlatform from [Module "deployment.checkin2.war:main" from Service Module Loader]

          at org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1$1.run(PersistenceUnitServiceImpl.java:172) [wildfly-jpa-8.2.0.Final.jar:8.2.0.Final]

          at org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1$1.run(PersistenceUnitServiceImpl.java:117) [wildfly-jpa-8.2.0.Final.jar:8.2.0.Final]

          at java.security.AccessController.doPrivileged(Native Method) [rt.jar:1.7.0_75]

          at org.wildfly.security.manager.WildFlySecurityManager.doChecked(WildFlySecurityManager.java:474)

          at org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1.run(PersistenceUnitServiceImpl.java:182) [wildfly-jpa-8.2.0.Final.jar:8.2.0.Final]

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

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

          at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_75]

          at org.jboss.threads.JBossThread.run(JBossThread.java:122)

      Caused by: javax.persistence.PersistenceException: Exception [EclipseLink-28018] (Eclipse Persistence Services - 2.5.2.v20140319-9ad6abd): org.eclipse.persistence.exceptions.EntityManagerSetupException

      Exception Description: Predeployment of PersistenceUnit [checkin] failed.

      Internal Exception: Exception [EclipseLink-28006] (Eclipse Persistence Services - 2.5.2.v20140319-9ad6abd): org.eclipse.persistence.exceptions.EntityManagerSetupException

      Exception Description: ClassNotFound: [org.jipijapa.eclipselink.JBossAS7ServerPlatform] specified in [eclipselink.target-server] property.

      Internal Exception: java.lang.ClassNotFoundException: org.jipijapa.eclipselink.JBossAS7ServerPlatform from [Module "deployment.checkin2.war:main" from Service Module Loader]

          at org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.createPredeployFailedPersistenceException(EntityManagerSetupImpl.java:1954)

          at org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.predeploy(EntityManagerSetupImpl.java:1945)

          at org.eclipse.persistence.jpa.PersistenceProvider.createContainerEntityManagerFactory(PersistenceProvider.java:322)

          at org.jboss.as.jpa.service.PersistenceUnitServiceImpl.createContainerEntityManagerFactory(PersistenceUnitServiceImpl.java:318) [wildfly-jpa-8.2.0.Final.jar:8.2.0.Final]

          at org.jboss.as.jpa.service.PersistenceUnitServiceImpl.access$1100(PersistenceUnitServiceImpl.java:67) [wildfly-jpa-8.2.0.Final.jar:8.2.0.Final]

          at org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1$1.run(PersistenceUnitServiceImpl.java:167) [wildfly-jpa-8.2.0.Final.jar:8.2.0.Final]



      My configuration:

      persistence.xml

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

      <persistence version="2.1" xmlns="http://xmlns.jcp.org/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/persistence http://xmlns.jcp.org/xml/ns/persistence/persistence_2_1.xsd">

          <persistence-unit name="checkin">

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

              <jta-data-source>java:jboss/datasources/checkin</jta-data-source>       

              <class>dk.kindergarden.entities.Calendar</class>

              <class>dk.kindergarden.entities.Checkin</class>

              <class>dk.kindergarden.entities.Kid</class>

              <class>dk.kindergarden.entities.Parent</class>

              <class>dk.kindergarden.entities.Picture</class>

              <class>dk.kindergarden.entities.Sequence</class>

              <properties>                   

                  <property name="jboss.as.jpa.providerModule" value="org.apache.openjpa"/>

                  <property name="javax.persistence.jdbc.url" value="jdbc:mysql://192.168.1.3:3306/checkin"/>

                  <property name="javax.persistence.jdbc.user" value="hs"/>

                  <property name="javax.persistence.jdbc.driver" value="com.mysql.jdbc.Driver"/>

                  <property name="javax.persistence.jdbc.password" value="******"/>   

                  <!-- EclipseLink should create the database schema automatically -->

                   <property name="eclipselink.ddl-generation" value="create-tables" />

                   <property name="eclipselink.ddl-generation.output-mode" value="database" />

               </properties>

          </persistence-unit>

      </persistence>

       

      D:\development\wildfly-8.2.0.Final\modules\system\layers\base\org\eclipse\persistence\main\module.xml

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

          <resources>

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

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

          </resources>

          <dependencies>

              <module name="asm.asm"/>

              <module name="javax.api"/>

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

              <module name="javax.enterprise.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.commons.collections"/>

              <module name="org.dom4j"/>

              <module name="org.javassist"/>

              <module name="org.jboss.as.jpa.spi"/>

              <module name="org.jboss.logging"/>

              <module name="org.jboss.vfs"/>

              <module name="javax.ws.rs.api"/>

          </dependencies>

      </module>

       

      Standalone.xml

      ...

      <system-properties>

              <property name="eclipselink.archive.factory" value="org.jipijapa.eclipselink.JBossArchiveFactoryImpl"/>

          </system-properties>

      ...

       

       

      I seem to have two problems:

      1) Wildfly seem not to be able to find the class JBossAS7Srverplatform, - that is part of the jar file jipijapa-eclipselink-1.0.1.Final.jar, because I get the the error:

      2) and the first one when deploying that I can't figure out what is....