3 Replies Latest reply on Apr 11, 2014 2:44 AM by werrenmi

    Problem Deploying errai app on OpenShift

    ekambos24

      I get the following error while deploying on openshift. Please what to do ?

       

       

      2014/04/09 20:39:22,185 INFO  [org.jboss.weld.deployer] (MSC service thread 1-2) JBAS016005: Starting Services for CDI deployment: ROOT.war

      2014/04/09 20:39:22,582 INFO  [org.jboss.weld.Version] (MSC service thread 1-2) WELD-000900 1.1.5 (AS71)

      2014/04/09 20:39:23,264 INFO  [org.jboss.as.jpa] (MSC service thread 1-1) JBAS011402: Starting Persistence Unit Service 'ROOT.war#forge-default'

      2014/04/09 20:39:24,820 INFO  [org.hibernate.annotations.common.Version] (MSC service thread 1-1) HCANN000001: Hibernate Commons Annotations {4.0.1.Final}

      2014/04/09 20:39:24,915 INFO  [org.hibernate.Version] (MSC service thread 1-1) HHH000412: Hibernate Core {4.0.1.Final}

      2014/04/09 20:39:24,967 INFO  [org.hibernate.cfg.Environment] (MSC service thread 1-1) HHH000206: hibernate.properties not found

      2014/04/09 20:39:24,994 INFO  [org.hibernate.cfg.Environment] (MSC service thread 1-1) HHH000021: Bytecode provider name : javassist

      2014/04/09 20:39:25,173 INFO  [org.hibernate.ejb.Ejb3Configuration] (MSC service thread 1-1) HHH000204: Processing PersistenceUnitInfo [

        name: forge-default

        ...]

      2014/04/09 20:39:25,287 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-1) MSC00001: Failed to start service jboss.persistenceunit."ROOT.war#forge-default": org.jboss.msc.service.StartException in service jboss.persistenceunit."ROOT.war#forge-default": Failed to start service

        at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1767) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

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

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

        at java.lang.Thread.run(Thread.java:744) [rt.jar:1.7.0_51]

      Caused by: java.lang.RuntimeException: error trying to scan <jar-file>: vfs:/content/ROOT.war/WEB-INF/classes/

        at org.hibernate.ejb.Ejb3Configuration.scanForClasses(Ejb3Configuration.java:854)

        at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:596)

        at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:72)

        at org.jboss.as.jpa.service.PersistenceUnitServiceImpl.createContainerEntityManagerFactory(PersistenceUnitServiceImpl.java:162)

        at org.jboss.as.jpa.service.PersistenceUnitServiceImpl.start(PersistenceUnitServiceImpl.java:85)

        at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

        at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

        ... 3 more

      Caused by: java.lang.RuntimeException: JBAS011431: Could not load entity class 'org.jboss.errai.marshalling.server.impl.ServerMarshallingFactoryImpl$11' with PersistenceUnitInfo.getClassLoader()

        at org.jboss.as.jpa.hibernate4.HibernateAnnotationScanner.getPackagesInJar(HibernateAnnotationScanner.java:175)

        at org.hibernate.ejb.Ejb3Configuration.addScannedEntries(Ejb3Configuration.java:489)

        at org.hibernate.ejb.Ejb3Configuration.scanForClasses(Ejb3Configuration.java:851)

        ... 9 more

      Caused by: java.lang.ClassNotFoundException: org.jboss.errai.marshalling.server.impl.ServerMarshallingFactoryImpl$11 from [Module "deployment.ROOT.war:main" from Service Module Loader]

        at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190)

        at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468)

        at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456)

        at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)

        at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120)

        at org.jboss.as.jpa.hibernate4.HibernateAnnotationScanner.getPackagesInJar(HibernateAnnotationScanner.java:171)

        • 1. Re: Problem Deploying errai app on OpenShift
          werrenmi

          Hello

           

          The during GWT compilation generated Servermarshaller is missing

           

          Did it run locally?

           

          Do you build with maven? When yes, has you a Maven configuration in there your module thats executes the GWT compilation is a sub module ... and you starts the build over the parent? I ask, because i was running also in an issue like this.

          Maybe you can try the following:

           

          Add this properties to the pom.xml:

           

          <errai.source.path>-Derrai.devel.debugCacheDir=${project.basedir}/.errai</errai.source.path>

          <errai.dest.path>-Derrai.marshalling.server.classOutput=${project.build.outputDirectory}</errai.dest.path>

           

          And add this to the gwt maven plugin:

          <extraJvmArgs>... ${errai.source.path} ${errai.dest.path} ...</extraJvmArgs>

           

          In our case, the problem was, that's the generated .errai folder was located in the folder of the parent module, and therefore not really present for this module.

           

          Hope this helps.

           

          Regards

          Michel

          • 2. Re: Problem Deploying errai app on OpenShift
            ekambos24

            Thank you !

            That fixed the problem

             

            Thx !!!!

            • 3. Re: Problem Deploying errai app on OpenShift
              werrenmi

              Glad to can help :-)

               

              Regards

              Michel