[opencms-dev] Has anyone succesfully installed opencms 9 on JBoss 7.1+
Stephan Schrader
zstephanz at gmail.com
Thu Apr 10 14:32:19 CEST 2014
Hey Christian,
we're still sticking to JBossAS 7.0.2. The last time I tried 7.1.x, this
version was unable to reload JSPs, which might haven been fixed in 7.2. But
I haven't tested this version. May be you the option to use WildFly?
When deploying OpenCms 9.x to a JBossAS, you have to remove the
"persistence.xml" from: opencms-setup.jar:/META-INF. Otherwise you'll get a
Duplicate ... Exception.
Stephan
2014-04-08 16:51 GMT+02:00 Christian Bjørnbak <cbj at touristonline.dk>:
> Hi,
>
> If anyone has succesfully installed opencms 9 on JBoss 7.1+ please share
> how you solved this openjpa issue:
>
> 2014-04-08 16:49:57,519: [WARN] modules - Failed to define
> class org.jboss.as.jpa.openjpa.JBossPersistenceMetaDataFactory in Module
> "org.jboss.as.jpa.openjpa:main" from local module loader @876d42 (finder:
> local module finder @1160a60 (roots:
> /srv/jboss/8180/modules,/srv/jboss/8180/modules/system/layers/base)):
> java.lang.LinkageError: Failed to link
> org/jboss/as/jpa/openjpa/JBossPersistenceMetaDataFactory (Module
> "org.jboss.as.jpa.openjpa:main" from local module loader @876d42 (finder:
> local module finder @1160a60 (roots:
> /srv/jboss/8180/modules,/srv/jboss/8180/modules/system/layers/base)))
> at
> org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:407)
> at
> org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:254)
> at
> org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:73)
> at org.jboss.modules.Module.loadModuleClass(Module.java:518)
> at
> org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:182)
> 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.openjpa.OpenJPAPersistenceProviderAdaptor.addProviderProperties(OpenJPAPersistenceProviderAdaptor.java:56)
> at
> org.jboss.as.jpa.processor.PersistenceUnitServiceHandler.deployPersistenceUnit(PersistenceUnitServiceHandler.java:319)
> at
> org.jboss.as.jpa.processor.PersistenceUnitServiceHandler.addPuService(PersistenceUnitServiceHandler.java:273)
> at
> org.jboss.as.jpa.processor.PersistenceUnitServiceHandler.handleWarDeployment(PersistenceUnitServiceHandler.java:188)
> at
> org.jboss.as.jpa.processor.PersistenceUnitServiceHandler.deploy(PersistenceUnitServiceHandler.java:114)
> at
> org.jboss.as.jpa.processor.PersistenceBeginInstallProcessor.deploy(PersistenceBeginInstallProcessor.java:48)
> at
> org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:120)
> at
> org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)
> at
> org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> at java.lang.Thread.run(Thread.java:744)
> Caused by: java.lang.NoClassDefFoundError:
> org/apache/openjpa/persistence/PersistenceMetaDataFactory
> at java.lang.ClassLoader.defineClass1(Native Method)
> at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
> at
> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
> at
> org.jboss.modules.ModuleClassLoader.doDefineOrLoadClass(ModuleClassLoader.java:338)
> at
> org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:402)
> ... 20 more
> Caused by: java.lang.ClassNotFoundException:
> org.apache.openjpa.persistence.PersistenceMetaDataFactory from [Module
> "org.jboss.as.jpa.openjpa:main" from local module loader @876d42 (finder:
> local module finder @1160a60 (roots:
> /srv/jboss/8180/modules,/srv/jboss/8180/modules/system/layers/base))]
> 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)
> ... 25 more
>
>
>
> Kind regards,
>
> Christian Bjørnbak
>
> Chefudvikler / Lead Developer
> TouristOnline A/S
> Islands Brygge 43
> 2300 København S
> Denmark
> TLF: +45 32888230
> Dir. TLF: +45 32888235
>
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev
>
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20140410/25ed688a/attachment.htm>
More information about the opencms-dev
mailing list