Deploy OpenCMS on JBoss 7.1.1 Final
fendorn Dec 13, 2013 4:23 PMDear all,
I am trying to deploy OpenCMS 9.0 on JBoss 7.1.1.
Deploying the extracted opencms.war resulted in a failure due to
{{{
Caused by: javax.persistence.PersistenceException: JBAS011466: PersistenceProvider 'org.apache.openjpa.persistence.PersistenceProviderImpl' not found
}}}
After some investigation I created a module under JBOSS_HOME\modules\org\apache\openjpa\main\module.xml
{{{
<?xml version="1.0" encoding="UTF-8"?>
<module xmlns="urn:jboss:module:1.1" name="org.apache.openjpa">
<resources>
<resource-root path="openjpa-all-2.2.0.jar"/>
<resource-root path="serp-1.13.1.jar"/>
</resources>
<dependencies>
<module name="javax.persistence.api"/>
<module name="javax.transaction.api"/>
<module name="javax.validation.api"/>
<module name="org.apache.commons.lang"/>
<module name="org.apache.log4j"/>
</dependencies>
</module>
}}}
and placed the openjpa-all-2.2.0.jar and serp-1.13.1.jar in that directory.
Finally I added a property to the persistence.xml of the war
{{{
<property name="jboss.as.jpa.providerModule" value="org.apache.openjpa" />
}}}
Now I get this error:
22:07:34,053 INFO [org.jboss.as.configadmin] (ServerService Thread Pool -- 26) JBAS016200: Activating ConfigAdmin Subsystem
22:07:34,053 INFO [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 31) JBAS010280: Activating Infinispan subsystem.
22:07:34,065 INFO [org.jboss.as.naming] (ServerService Thread Pool -- 38) JBAS011800: Activating Naming Subsystem
22:07:34,073 INFO [org.jboss.as.security] (ServerService Thread Pool -- 44) JBAS013101: Activating Security Subsystem
22:07:34,080 INFO [org.jboss.as.osgi] (ServerService Thread Pool -- 39) JBAS011940: Activating OSGi Subsystem
22:07:34,083 INFO [org.jboss.as.security] (MSC service thread 1-14) JBAS013100: Current PicketBox version=4.0.7.Final
22:07:34,087 INFO [org.jboss.as.webservices] (ServerService Thread Pool -- 48) JBAS015537: Activating WebServices Extension
22:07:34,112 INFO [org.jboss.as.connector] (MSC service thread 1-11) JBAS010408: Starting JCA Subsystem (JBoss IronJacamar 1.0.9.Final)
22:07:34,116 INFO [org.jboss.as.naming] (MSC service thread 1-16) JBAS011802: Starting Naming Service
22:07:34,129 INFO [org.jboss.as.mail.extension] (MSC service thread 1-11) JBAS015400: Bound mail session [java:jboss/mail/Default]
22:07:34,129 INFO [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 27) JBAS010403: Deploying JDBC-compliant driver class org.h2.Driver (version 1.3)
22:07:34,203 INFO [org.jboss.ws.common.management.AbstractServerConfig] (MSC service thread 1-11) JBoss Web Services - Stack CXF Server 4.0.2.GA
22:07:34,216 INFO [org.apache.coyote.http11.Http11Protocol] (MSC service thread 1-1) Starting Coyote HTTP/1.1 on http--127.0.0.1-8080
22:07:34,374 INFO [org.jboss.as.server.deployment.scanner] (MSC service thread 1-9) JBAS015012: Started FileSystemDeploymentService for directory D:\Installation\jboss-as-7.1.1.Final\standalone\deployments
22:07:34,374 INFO [org.jboss.as.remoting] (MSC service thread 1-5) JBAS017100: Listening on /127.0.0.1:9999
22:07:34,374 INFO [org.jboss.as.remoting] (MSC service thread 1-13) JBAS017100: Listening on /127.0.0.1:4447
22:07:34,376 INFO [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) JBAS015014: Re-attempting failed deployment opencms.war
22:07:34,407 INFO [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) JBAS015003: Found opencms.war in deployment directory. To trigger deployment create a file called opencms.war.dodeploy
22:07:34,460 INFO [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-13) JBAS010400: Bound data source [java:jboss/datasources/ExampleDS]
22:07:34,476 INFO [org.jboss.as.server.deployment] (MSC service thread 1-7) JBAS015876: Starting deployment of "opencms.war"
22:07:37,856 WARN [org.jboss.as.server.deployment] (MSC service thread 1-8) Class Path entry derbyLocale_cs.jar in "/D:/Installation/jboss-as-7.1.1.Final/standalone/deployments/opencms.war/WEB-INF/lib/derby-10.6.2.1.jar" does not point to a valid jar for a Class-Path reference.
22:07:37,857 WARN [org.jboss.as.server.deployment] (MSC service thread 1-8) Class Path entry derbyLocale_de_DE.jar in "/D:/Installation/jboss-as-7.1.1.Final/standalone/deployments/opencms.war/WEB-INF/lib/derby-10.6.2.1.jar" does not point to a valid jar for a Class-Path reference.
22:07:37,858 WARN [org.jboss.as.server.deployment] (MSC service thread 1-8) Class Path entry derbyLocale_es.jar in "/D:/Installation/jboss-as-7.1.1.Final/standalone/deployments/opencms.war/WEB-INF/lib/derby-10.6.2.1.jar" does not point to a valid jar for a Class-Path reference.
22:07:37,859 WARN [org.jboss.as.server.deployment] (MSC service thread 1-8) Class Path entry derbyLocale_fr.jar in "/D:/Installation/jboss-as-7.1.1.Final/standalone/deployments/opencms.war/WEB-INF/lib/derby-10.6.2.1.jar" does not point to a valid jar for a Class-Path reference.
22:07:37,860 WARN [org.jboss.as.server.deployment] (MSC service thread 1-8) Class Path entry derbyLocale_hu.jar in "/D:/Installation/jboss-as-7.1.1.Final/standalone/deployments/opencms.war/WEB-INF/lib/derby-10.6.2.1.jar" does not point to a valid jar for a Class-Path reference.
22:07:37,861 WARN [org.jboss.as.server.deployment] (MSC service thread 1-8) Class Path entry derbyLocale_it.jar in "/D:/Installation/jboss-as-7.1.1.Final/standalone/deployments/opencms.war/WEB-INF/lib/derby-10.6.2.1.jar" does not point to a valid jar for a Class-Path reference.
22:07:37,862 WARN [org.jboss.as.server.deployment] (MSC service thread 1-8) Class Path entry derbyLocale_ja_JP.jar in "/D:/Installation/jboss-as-7.1.1.Final/standalone/deployments/opencms.war/WEB-INF/lib/derby-10.6.2.1.jar" does not point to a valid jar for a Class-Path reference.
22:07:37,863 WARN [org.jboss.as.server.deployment] (MSC service thread 1-8) Class Path entry derbyLocale_ko_KR.jar in "/D:/Installation/jboss-as-7.1.1.Final/standalone/deployments/opencms.war/WEB-INF/lib/derby-10.6.2.1.jar" does not point to a valid jar for a Class-Path reference.
22:07:37,864 WARN [org.jboss.as.server.deployment] (MSC service thread 1-8) Class Path entry derbyLocale_pl.jar in "/D:/Installation/jboss-as-7.1.1.Final/standalone/deployments/opencms.war/WEB-INF/lib/derby-10.6.2.1.jar" does not point to a valid jar for a Class-Path reference.
22:07:37,865 WARN [org.jboss.as.server.deployment] (MSC service thread 1-8) Class Path entry derbyLocale_pt_BR.jar in "/D:/Installation/jboss-as-7.1.1.Final/standalone/deployments/opencms.war/WEB-INF/lib/derby-10.6.2.1.jar" does not point to a valid jar for a Class-Path reference.
22:07:37,866 WARN [org.jboss.as.server.deployment] (MSC service thread 1-8) Class Path entry derbyLocale_ru.jar in "/D:/Installation/jboss-as-7.1.1.Final/standalone/deployments/opencms.war/WEB-INF/lib/derby-10.6.2.1.jar" does not point to a valid jar for a Class-Path reference.
22:07:37,867 WARN [org.jboss.as.server.deployment] (MSC service thread 1-8) Class Path entry derbyLocale_zh_CN.jar in "/D:/Installation/jboss-as-7.1.1.Final/standalone/deployments/opencms.war/WEB-INF/lib/derby-10.6.2.1.jar" does not point to a valid jar for a Class-Path reference.
22:07:37,868 WARN [org.jboss.as.server.deployment] (MSC service thread 1-8) Class Path entry derbyLocale_zh_TW.jar in "/D:/Installation/jboss-as-7.1.1.Final/standalone/deployments/opencms.war/WEB-INF/lib/derby-10.6.2.1.jar" does not point to a valid jar for a Class-Path reference.
22:07:37,870 WARN [org.jboss.as.server.deployment] (MSC service thread 1-8) Class Path entry jaxb-api.jar in "/D:/Installation/jboss-as-7.1.1.Final/standalone/deployments/opencms.war/WEB-INF/lib/jaxb-impl-2.1.11.jar" does not point to a valid jar for a Class-Path reference.
22:07:37,871 WARN [org.jboss.as.server.deployment] (MSC service thread 1-8) Class Path entry activation.jar in "/D:/Installation/jboss-as-7.1.1.Final/standalone/deployments/opencms.war/WEB-INF/lib/jaxb-impl-2.1.11.jar" does not point to a valid jar for a Class-Path reference.
22:07:37,872 WARN [org.jboss.as.server.deployment] (MSC service thread 1-8) Class Path entry jsr173_1.0_api.jar in "/D:/Installation/jboss-as-7.1.1.Final/standalone/deployments/opencms.war/WEB-INF/lib/jaxb-impl-2.1.11.jar" does not point to a valid jar for a Class-Path reference.
22:07:37,873 WARN [org.jboss.as.server.deployment] (MSC service thread 1-8) Class Path entry jaxb1-impl.jar in "/D:/Installation/jboss-as-7.1.1.Final/standalone/deployments/opencms.war/WEB-INF/lib/jaxb-impl-2.1.11.jar" does not point to a valid jar for a Class-Path reference.
22:07:37,875 WARN [org.jboss.as.server.deployment] (MSC service thread 1-8) Class Path entry jaxws-api.jar in "/D:/Installation/jboss-as-7.1.1.Final/standalone/deployments/opencms.war/WEB-INF/lib/jaxws-rt-2.1.7.jar" does not point to a valid jar for a Class-Path reference.
22:07:37,876 WARN [org.jboss.as.server.deployment] (MSC service thread 1-8) Class Path entry jsr181-api.jar in "/D:/Installation/jboss-as-7.1.1.Final/standalone/deployments/opencms.war/WEB-INF/lib/jaxws-rt-2.1.7.jar" does not point to a valid jar for a Class-Path reference.
22:07:37,877 WARN [org.jboss.as.server.deployment] (MSC service thread 1-8) Class Path entry jsr250-api.jar in "/D:/Installation/jboss-as-7.1.1.Final/standalone/deployments/opencms.war/WEB-INF/lib/jaxws-rt-2.1.7.jar" does not point to a valid jar for a Class-Path reference.
22:07:37,878 WARN [org.jboss.as.server.deployment] (MSC service thread 1-8) Class Path entry saaj-api.jar in "/D:/Installation/jboss-as-7.1.1.Final/standalone/deployments/opencms.war/WEB-INF/lib/jaxws-rt-2.1.7.jar" does not point to a valid jar for a Class-Path reference.
22:07:37,879 WARN [org.jboss.as.server.deployment] (MSC service thread 1-8) Class Path entry saaj-impl.jar in "/D:/Installation/jboss-as-7.1.1.Final/standalone/deployments/opencms.war/WEB-INF/lib/jaxws-rt-2.1.7.jar" does not point to a valid jar for a Class-Path reference.
22:07:37,880 WARN [org.jboss.as.server.deployment] (MSC service thread 1-8) Class Path entry jsr173_api.jar in "/D:/Installation/jboss-as-7.1.1.Final/standalone/deployments/opencms.war/WEB-INF/lib/jaxws-rt-2.1.7.jar" does not point to a valid jar for a Class-Path reference.
22:07:37,881 WARN [org.jboss.as.server.deployment] (MSC service thread 1-8) Class Path entry sjsxp.jar in "/D:/Installation/jboss-as-7.1.1.Final/standalone/deployments/opencms.war/WEB-INF/lib/jaxws-rt-2.1.7.jar" does not point to a valid jar for a Class-Path reference.
22:07:37,882 WARN [org.jboss.as.server.deployment] (MSC service thread 1-8) Class Path entry woodstox.jar in "/D:/Installation/jboss-as-7.1.1.Final/standalone/deployments/opencms.war/WEB-INF/lib/jaxws-rt-2.1.7.jar" does not point to a valid jar for a Class-Path reference.
22:07:37,883 WARN [org.jboss.as.server.deployment] (MSC service thread 1-8) Class Path entry resolver.jar in "/D:/Installation/jboss-as-7.1.1.Final/standalone/deployments/opencms.war/WEB-INF/lib/jaxws-rt-2.1.7.jar" does not point to a valid jar for a Class-Path reference.
22:07:37,884 WARN [org.jboss.as.server.deployment] (MSC service thread 1-8) Class Path entry jaxb-api.jar in "/D:/Installation/jboss-as-7.1.1.Final/standalone/deployments/opencms.war/WEB-INF/lib/jaxws-rt-2.1.7.jar" does not point to a valid jar for a Class-Path reference.
22:07:37,884 WARN [org.jboss.as.server.deployment] (MSC service thread 1-8) Class Path entry jaxb-impl.jar in "/D:/Installation/jboss-as-7.1.1.Final/standalone/deployments/opencms.war/WEB-INF/lib/jaxws-rt-2.1.7.jar" does not point to a valid jar for a Class-Path reference.
22:07:37,885 WARN [org.jboss.as.server.deployment] (MSC service thread 1-8) Class Path entry activation.jar in "/D:/Installation/jboss-as-7.1.1.Final/standalone/deployments/opencms.war/WEB-INF/lib/jaxws-rt-2.1.7.jar" does not point to a valid jar for a Class-Path reference.
22:07:37,886 WARN [org.jboss.as.server.deployment] (MSC service thread 1-8) Class Path entry stax-ex.jar in "/D:/Installation/jboss-as-7.1.1.Final/standalone/deployments/opencms.war/WEB-INF/lib/jaxws-rt-2.1.7.jar" does not point to a valid jar for a Class-Path reference.
22:07:37,887 WARN [org.jboss.as.server.deployment] (MSC service thread 1-8) Class Path entry streambuffer.jar in "/D:/Installation/jboss-as-7.1.1.Final/standalone/deployments/opencms.war/WEB-INF/lib/jaxws-rt-2.1.7.jar" does not point to a valid jar for a Class-Path reference.
22:07:37,888 WARN [org.jboss.as.server.deployment] (MSC service thread 1-8) Class Path entry stax-utils.jar in "/D:/Installation/jboss-as-7.1.1.Final/standalone/deployments/opencms.war/WEB-INF/lib/jaxws-rt-2.1.7.jar" does not point to a valid jar for a Class-Path reference.
22:07:37,890 WARN [org.jboss.as.server.deployment] (MSC service thread 1-8) Class Path entry jcifs.jar in "/D:/Installation/jboss-as-7.1.1.Final/standalone/deployments/opencms.war/WEB-INF/lib/mssql-jtds-1.2.jar" does not point to a valid jar for a Class-Path reference.
22:07:37,892 WARN [org.jboss.as.server.deployment] (MSC service thread 1-8) Class Path entry jaxp-api.jar in "/D:/Installation/jboss-as-7.1.1.Final/standalone/deployments/opencms.war/WEB-INF/lib/saaj-api-1.3.jar" does not point to a valid jar for a Class-Path reference.
22:07:37,893 WARN [org.jboss.as.server.deployment] (MSC service thread 1-8) Class Path entry jax-qname.jar in "/D:/Installation/jboss-as-7.1.1.Final/standalone/deployments/opencms.war/WEB-INF/lib/saaj-api-1.3.jar" does not point to a valid jar for a Class-Path reference.
22:07:37,894 WARN [org.jboss.as.server.deployment] (MSC service thread 1-8) Class Path entry activation.jar in "/D:/Installation/jboss-as-7.1.1.Final/standalone/deployments/opencms.war/WEB-INF/lib/saaj-api-1.3.jar" does not point to a valid jar for a Class-Path reference.
22:07:37,895 WARN [org.jboss.as.server.deployment] (MSC service thread 1-8) Class Path entry servlet.jar in "/D:/Installation/jboss-as-7.1.1.Final/standalone/deployments/opencms.war/WEB-INF/lib/saaj-api-1.3.jar" does not point to a valid jar for a Class-Path reference.
22:07:37,896 WARN [org.jboss.as.server.deployment] (MSC service thread 1-8) Class Path entry saaj-api.jar in "/D:/Installation/jboss-as-7.1.1.Final/standalone/deployments/opencms.war/WEB-INF/lib/saaj-impl-1.3.3.jar" does not point to a valid jar for a Class-Path reference.
22:07:37,897 WARN [org.jboss.as.server.deployment] (MSC service thread 1-8) Class Path entry activation.jar in "/D:/Installation/jboss-as-7.1.1.Final/standalone/deployments/opencms.war/WEB-INF/lib/saaj-impl-1.3.3.jar" does not point to a valid jar for a Class-Path reference.
22:07:37,982 INFO [org.jboss.as.jpa] (MSC service thread 1-15) JBAS011401: Read persistence.xml for OpenCmsJPAPool
22:07:37,986 INFO [org.jboss.as.jpa] (MSC service thread 1-15) JBAS011401: Read persistence.xml for OpenCmsJPAPool
22:07:38,296 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-10) MSC00001: Failed to start service jboss.deployment.unit."opencms.war".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.unit."opencms.war".INSTALL: Failed to process phase INSTALL of deployment "opencms.war"
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:119) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
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]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_45]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_45]
at java.lang.Thread.run(Thread.java:744) [rt.jar:1.7.0_45]
Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS011446: Failed to add persistence unit service for OpenCmsJPAPool
at org.jboss.as.jpa.processor.PersistenceUnitDeploymentProcessor.deployPersistenceUnit(PersistenceUnitDeploymentProcessor.java:383)
at org.jboss.as.jpa.processor.PersistenceUnitDeploymentProcessor.addPuService(PersistenceUnitDeploymentProcessor.java:258)
at org.jboss.as.jpa.processor.PersistenceUnitDeploymentProcessor.handleWarDeployment(PersistenceUnitDeploymentProcessor.java:194)
at org.jboss.as.jpa.processor.PersistenceUnitDeploymentProcessor.deploy(PersistenceUnitDeploymentProcessor.java:118)
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:113) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
... 5 more
Caused by: org.jboss.msc.service.DuplicateServiceException: Service jboss.persistenceunit."opencms.war#OpenCmsJPAPool" is already registered
at org.jboss.msc.service.ServiceRegistrationImpl.setInstance(ServiceRegistrationImpl.java:154) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at org.jboss.msc.service.ServiceControllerImpl.startInstallation(ServiceControllerImpl.java:227) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at org.jboss.msc.service.ServiceContainerImpl.install(ServiceContainerImpl.java:560) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at org.jboss.msc.service.ServiceTargetImpl.install(ServiceTargetImpl.java:201) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at org.jboss.msc.service.ServiceControllerImpl$ChildServiceTarget.install(ServiceControllerImpl.java:2228) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at org.jboss.msc.service.ServiceTargetImpl.install(ServiceTargetImpl.java:201) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at org.jboss.msc.service.ServiceControllerImpl$ChildServiceTarget.install(ServiceControllerImpl.java:2228) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at org.jboss.msc.service.ServiceBuilderImpl.install(ServiceBuilderImpl.java:307) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at org.jboss.as.jpa.processor.PersistenceUnitDeploymentProcessor.deployPersistenceUnit(PersistenceUnitDeploymentProcessor.java:374)
... 9 more
22:07:38,319 INFO [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS015870: Deploy of deployment "opencms.war" was rolled back with failure message {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"opencms.war\".INSTALL" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"opencms.war\".INSTALL: Failed to process phase INSTALL of deployment \"opencms.war\""}}
22:07:38,453 INFO [org.jboss.as.server.deployment] (MSC service thread 1-13) JBAS015877: Stopped deployment opencms.war in 134ms
22:07:38,454 INFO [org.jboss.as.controller] (DeploymentScanner-threads - 2) JBAS014774: Service status report
JBAS014777: Services which failed to start: service jboss.deployment.unit."opencms.war".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.unit."opencms.war".INSTALL: Failed to process phase INSTALL of deployment "opencms.war"
22:07:38,456 ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) {"JBAS014653: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"opencms.war\".INSTALL" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"opencms.war\".INSTALL: Failed to process phase INSTALL of deployment \"opencms.war\""}}}}
22:07:49,833 INFO [org.apache.catalina.core.StandardContext] (MSC service thread 1-7) Container org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/] has not been started
I have no clue where the persistence unit is registered already !?
Why is the persistence.xml read twice?
Any help would be greatly appreciated.