<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle">P {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
P {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
</style>
</head>
<body fPStyle="1" ocsi="0">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">
<p>Georgi</p>
<p> </p>
<p>After adding transaction-type="RESOURCE_LOCAL" and removed jta-data-source and web.xm changes. I am getting below error.<br>
</p>
<p> </p>
<p>14:36:58,538 INFO  [PersistenceUnitDeployment] Starting persistence unit persistence.unit:unitName=#OpenCmsJPAPool<br>
14:36:58,553 ERROR [AbstractKernelController] Error installing to Start: name=persistence.unit:unitName=#OpenCmsJPAPool state=Create<br>
java.lang.RuntimeException: Specification violation [EJB3 JPA 6.2.1.2] - You have not defined a non-jta-data-source for a RESOURCE_LOCAL enabled persistence context named: OpenCmsJPAPool<br>
        at org.jboss.jpa.deployment.PersistenceUnitInfoImpl.<init>(PersistenceUnitInfoImpl.java:124)<br>
        at org.jboss.jpa.deployment.PersistenceUnitDeployment.start(PersistenceUnitDeployment.java:275)<br>
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br>
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)<br>
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)<br>
        at java.lang.reflect.Method.invoke(Method.java:592)<br>
        at org.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:59)<br>
        at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:150)<br>
        at org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:66)<br>
        at org.jboss.kernel.plugins.dependency.KernelControllerContextAction$JoinpointDispatchWrapper.execute(KernelControllerContextAction.java:241)<br>
        at org.jboss.kernel.plugins.dependency.ExecutionWrapper.execute(ExecutionWrapper.java:47)<br>
        at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchExecutionWrapper(KernelControllerContextAction.java:109)<br>
        at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchJoinPoint(KernelControllerContextAction.java:70)<br>
        at org.jboss.kernel.plugins.dependency.LifecycleAction.installActionInternal(LifecycleAction.java:221)<br>
        at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:54)<br>
        at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:42)<br>
        at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)<br>
        at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)<br>
        at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)<br>
        at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)<br>
        at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)<br>
        at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)<br>
        at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)<br>
        at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)<br>
        at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:774)<br>
        at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:540)<br>
        at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.java:121)<br>
        at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.java:51)<br>
        at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)<br>
        at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)<br>
        at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)<br>
        at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)<br>
        at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)<br>
        at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1178)<br>
        at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)<br>
        at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)<br>
        at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)<br>
        at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)<br>
        at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)<br>
        at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)<br>
        at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)<br>
        at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)<br>
        at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)<br>
        at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:702)<br>
        at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)<br>
        at org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(ProfileDeployAction.java:70)<br>
        at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53)<br>
        at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:361)<br>
        at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)<br>
        at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)<br>
        at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)<br>
        at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)<br>
        at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)<br>
        at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)<br>
        at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)<br>
        at org.jboss.system.server.profileservice.repository.AbstractProfileService.activateProfile(AbstractProfileService.java:306)<br>
        at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:271)<br>
        at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)<br>
        at org.jboss.Main.boot(Main.java:221)<br>
        at org.jboss.Main$1.run(Main.java:556)<br>
        at java.lang.Thread.run(Thread.java:595)<br>
14:36:58,678 INFO  [TomcatDeployment] deploy, ctxPath=/opencms<br>
14:36:59,131 ERROR [[/opencms]] Servlet /opencms threw load() exceptionjavax.servlet.ServletException: Critical error during OpenCms initialization: The OpenCms setup wizard is still enabled.<br>
        at org.opencms.main.OpenCmsServlet.init(OpenCmsServlet.java:249)<br>
        at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1048)<br>
        at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:950)<br>
        at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4122)<br>
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4421)<br>
        at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:310)<br>
        at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:142)<br>
        at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:461)<br>
        at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)<br>
        at org.jboss.web.deployers.WebModule.start(WebModule.java:97)<br>
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br>
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)<br>
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)<br>
        at java.lang.reflect.Method.invoke(Method.java:592)<br>
        at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)<br>
        at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)<br>
        at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)<br>
        at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)<br>
        at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)<br>
        at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)<br>
        at $Proxy38.start(Unknown Source)<br>
        at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42)<br>
        at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:37)<br>
        at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)<br>
        at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)<br>
        at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)<br>
        at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)<br>
        at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:286)<br>
        at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)<br>
        at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)<br>
        at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)<br>
        at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)<br>
        at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)<br>
        at org.jboss.dependency.plugins.AbstractController.change(AbstractContro<br>
</p>
<p>Thanks,</p>
<p>Hemen</p>
<div>
<p> </p>
<div style="FONT-FAMILY: Tahoma; FONT-SIZE: 13px">
<div style="FONT-FAMILY: Tahoma; FONT-SIZE: 13px"><strong>
<hr>
</strong></div>
<div style="FONT-FAMILY: Tahoma; FONT-SIZE: 13px"><strong>Hemen Thacker</strong><br>
<strong>Aon Hewitt  </strong>|  4 Overlook Point, Lincolnshire, IL 60069<br>
<a tabindex="0" href="mailto:hemen.thacker@aonhewitt.com" target="">hemen.thacker@aonhewitt.com</a>  | <font face="Wingdings">(</font> +1 (847) 442-9425 |<a tabindex="0" href="http://www.aonhewitt.com/" target="">http://www.aonhewitt.com/</a></div>
</div>
</div>
<div style="FONT-FAMILY: Times New Roman; COLOR: #000000; FONT-SIZE: 16px">
<hr tabindex="-1">
<div style="DIRECTION: ltr" id="divRpF332192"><font color="#000000" size="2" face="Tahoma"><b>From:</b> Hemen Thacker<br>
<b>Sent:</b> Friday, May 11, 2012 4:19 PM<br>
<b>To:</b> opencms-dev@opencms.org<br>
<b>Subject:</b> RE: OpenJPA issue<br>
</font><br>
</div>
<div></div>
<div>
<div style="FONT-FAMILY: Tahoma; DIRECTION: ltr; COLOR: #000000; FONT-SIZE: 10pt">
<p>After moving to openJPA 2.0.1 I am getting the error as attached. Please advise on how do I fix this issue.
</p>
<p> </p>
<p>Following were the changes made to get opencms working on jboss. </p>
<p> </p>
<ul>
<li>replaced jstl with jar shipped with jboss. </li><li><span style="WIDOWS: 2; TEXT-TRANSFORM: none; BACKGROUND-COLOR: rgb(255,255,255); TEXT-INDENT: 0px; DISPLAY: inline !important; FONT: 13px/19px sans-serif; WHITE-SPACE: normal; ORPHANS: 2; FLOAT: none; LETTER-SPACING: normal; COLOR: rgb(0,0,0); WORD-SPACING: 0px">created
 jboss-web.xml</span> </li><li>removed <span style="WIDOWS: 2; TEXT-TRANSFORM: none; BACKGROUND-COLOR: rgb(255,255,255); TEXT-INDENT: 0px; DISPLAY: inline !important; FONT: 13px/19px sans-serif; WHITE-SPACE: normal; ORPHANS: 2; FLOAT: none; LETTER-SPACING: normal; COLOR: rgb(0,0,0); WORD-SPACING: 0px">
xerces and xml-apis jars from opecms lib</span> </li><li><span style="WIDOWS: 2; TEXT-TRANSFORM: none; BACKGROUND-COLOR: rgb(255,255,255); TEXT-INDENT: 0px; DISPLAY: inline !important; FONT: 13px/19px sans-serif; WHITE-SPACE: normal; ORPHANS: 2; FLOAT: none; LETTER-SPACING: normal; COLOR: rgb(0,0,0); WORD-SPACING: 0px">added
 following to web.xml</span></li></ul>
<p><span style="WIDOWS: 2; TEXT-TRANSFORM: none; BACKGROUND-COLOR: rgb(255,255,255); TEXT-INDENT: 0px; DISPLAY: inline !important; FONT: 13px/19px sans-serif; WHITE-SPACE: normal; ORPHANS: 2; FLOAT: none; LETTER-SPACING: normal; COLOR: rgb(0,0,0); WORD-SPACING: 0px"> <resource-ref><br>
  <description>Oracle Datasource example</description><br>
  <res-ref-name>OpencmsDS</res-ref-name><br>
  <res-type>javax.sql.DataSource</res-type><br>
  <res-auth>Container</res-auth><br>
  <res-sharing-scope>Shareable</res-sharing-scope><br>
 </resource-ref></span></p>
<p><span style="WIDOWS: 2; TEXT-TRANSFORM: none; BACKGROUND-COLOR: rgb(255,255,255); TEXT-INDENT: 0px; DISPLAY: inline !important; FONT: 13px/19px sans-serif; WHITE-SPACE: normal; ORPHANS: 2; FLOAT: none; LETTER-SPACING: normal; COLOR: rgb(0,0,0); WORD-SPACING: 0px"></span> </p>
<ul style="FONT-FAMILY: Arial; FONT-SIZE: 10pt">
<li><span style="WIDOWS: 2; TEXT-TRANSFORM: none; BACKGROUND-COLOR: rgb(255,255,255); TEXT-INDENT: 0px; DISPLAY: inline !important; FONT: 13px/19px sans-serif; WHITE-SPACE: normal; ORPHANS: 2; FLOAT: none; LETTER-SPACING: normal; COLOR: rgb(0,0,0); WORD-SPACING: 0px">added
 following after  <persistence-unit name="OpenCmsJPAPool"></span><span style="WIDOWS: 2; TEXT-TRANSFORM: none; BACKGROUND-COLOR: rgb(255,255,255); TEXT-INDENT: 0px; DISPLAY: inline !important; FONT: 13px/19px sans-serif; WHITE-SPACE: normal; ORPHANS: 2; FLOAT: none; LETTER-SPACING: normal; COLOR: rgb(0,0,0); WORD-SPACING: 0px"><br>
     <jta-data-source>java:/OpencmsDS</jta-data-source></span> </li><li><span style="WIDOWS: 2; TEXT-TRANSFORM: none; BACKGROUND-COLOR: rgb(255,255,255); TEXT-INDENT: 0px; DISPLAY: inline !important; FONT: 13px/19px sans-serif; WHITE-SPACE: normal; ORPHANS: 2; FLOAT: none; LETTER-SPACING: normal; COLOR: rgb(0,0,0); WORD-SPACING: 0px">Created
 jdbc connection pool.</span></li></ul>
<span style="WIDOWS: 2; TEXT-TRANSFORM: none; BACKGROUND-COLOR: rgb(255,255,255); TEXT-INDENT: 0px; DISPLAY: inline !important; FONT: 13px/19px sans-serif; WHITE-SPACE: normal; ORPHANS: 2; FLOAT: none; LETTER-SPACING: normal; COLOR: rgb(0,0,0); WORD-SPACING: 0px">
<p>    <local-tx-datasource><br>
        <jndi-name>OpencmsDS</jndi-name><br>
        <use-java-context>true</use-java-context><br>
        <connection-definition>javax.sql.DataSource</connection-definition><br>
        <min-pool-size>2</min-pool-size><br>
        <max-pool-size>10</max-pool-size><br>
        <blocking-timeout-millis>30000</blocking-timeout-millis><br>
        <idle-timeout-minutes>30</idle-timeout-minutes><br>
        <prefill>false</prefill><br>
        <user-name>xxxx</user-name><br>
        <password>xxxx</password><br>
        <check-valid-connection-sql>SELECT 1</check-valid-connection-sql><br>
        <driver-class>org.gjt.mm.mysql.Driver</driver-class><br>
        <connection-url>jdbc:mysql://localhost:3306/opencms</connection-url><br>
    </local-tx-datasource><br>
<br>
</p>
<p>Thanks,</p>
<p>Hemen<br>
</p>
</span>
<p> </p>
<div>
<p> </p>
<div style="FONT-FAMILY: Tahoma; FONT-SIZE: 13px">
<div style="FONT-FAMILY: Tahoma; FONT-SIZE: 13px"><strong>
<hr>
</strong></div>
<div style="FONT-FAMILY: Tahoma; FONT-SIZE: 13px"><strong>Hemen Thacker</strong><br>
<strong>Aon Hewitt  </strong>|  4 Overlook Point, Lincolnshire, IL 60069<br>
<a tabindex="0" href="mailto:hemen.thacker@aonhewitt.com" target="_blank">hemen.thacker@aonhewitt.com</a>  | <font face="Wingdings">(</font> +1 (847) 442-9425 |<a tabindex="0" href="http://www.aonhewitt.com/" target="_blank">http://www.aonhewitt.com/</a></div>
</div>
</div>
<div style="FONT-FAMILY: Times New Roman; COLOR: #000000; FONT-SIZE: 16px">
<hr tabindex="-1">
<div style="DIRECTION: ltr" id="divRpF742818"><font color="#000000" size="2" face="Tahoma"><b>From:</b> Hemen Thacker<br>
<b>Sent:</b> Friday, May 11, 2012 4:05 PM<br>
<b>To:</b> opencms-dev@opencms.org<br>
<b>Subject:</b> OpenJPA issue<br>
</font><br>
</div>
<div></div>
<div>
<div style="FONT-FAMILY: Tahoma; DIRECTION: ltr; COLOR: #000000; FONT-SIZE: 10pt">
<div>
<p>I am trying to deploy OpenCMS 8.0.4 on JBoss 5.10 which is java 5 compatible. OpenJPA2.2.0.jar is built on java 6 making it uncompatible with java 1.5 server.</p>
<p> </p>
<p>OpenJPA 2.0.x is java 1.5 compatible. Can you fix this issue or I will manually replace it.</p>
<p> </p>
<p>-Hemen</p>
<p> </p>
<div style="FONT-FAMILY: Tahoma; FONT-SIZE: 13px">
<div style="FONT-FAMILY: Tahoma; FONT-SIZE: 13px"><strong>
<hr>
</strong></div>
<div style="FONT-FAMILY: Tahoma; FONT-SIZE: 13px"><strong>Hemen Thacker</strong><br>
<strong>Aon Hewitt  </strong>|  4 Overlook Point, Lincolnshire, IL 60069<br>
<a tabindex="0" href="mailto:hemen.thacker@aonhewitt.com" target="_blank">hemen.thacker@aonhewitt.com</a>  | <font face="Wingdings">(</font> +1 (847) 442-9425 |<a tabindex="0" href="http://www.aonhewitt.com/" target="_blank">http://www.aonhewitt.com/</a></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>