[
https://issues.apache.org/jira/browse/OPENJPA-1452?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12806511#action_12806511
]
Jeremy Bauer commented on OPENJPA-1452:
---------------------------------------
OpenJPA 2.0 is backward compatible with OpenJPA 1.0 from an application
standpoint (ie. your apps that run on OpenJPA 1.x will continue to run on
OpenJPA 2.0), but not from an environment perspective. Your runtime
environment must have the correct libraries and versions of those libraries
required by OpenJPA 2.0. This typically isn't a problem in JSE environments
since you just include the required jars in your classpath and run the app.
However, it is often a problem in JEE environments since the app server vendors
provide the libraries for whatever JEE spec level they support and typically
don't provide a way to plug in a newer spec level of those libraries. Thus,
you need to pick up a new release of the app server with support for the newer
spec level. OpenJPA 2.0 should work with the JEE6 version of Glassfish. (But,
I haven't tried it) There's also a WebSphere JPA 2.0 alpha[1] available that
is based on OpenJPA 2.0.
[1]
https://www14.software.ibm.com/iwm/web/cc/earlyprograms/websphere/wsasjpaoa/
> OpenJPA 2.0.0-M3 attempts to mutate unmodifiable map in Glassfish
> -----------------------------------------------------------------
>
> Key: OPENJPA-1452
> URL: https://issues.apache.org/jira/browse/OPENJPA-1452
> Project: OpenJPA
> Issue Type: Bug
> Components: jpa
> Affects Versions: 2.0.0-M3
> Environment: Ubuntu-karmic koala
> SLES 10.2
> Using sailfin v1 b60g (based on glassfish v2.1)
> Reporter: [email protected]
> Assignee: Donald Woods
> Fix For: 2.0.0-beta
>
> Attachments: Configurations.java
>
>
> OpenJPA Attempts to modiy an umodifiable map in Glassfish.
> Similar issue to:
> https://issues.apache.org/jira/browse/OPENJPA-498
> To reproduce:
> + Place the open jpa libs in [glassfish]/domain/domains1/lib
> + Deploy any app or jar using openjpa as the persistence provider
>
> <provider>org.apache.openjpa.persistence.PersistenceProviderImpl</provider>
> trace:
> [#|2010-01-02T19:42:27.581+0100|INFO|sun-glassfish-comms-server1.5|javax.enterprise.system.tools.deployment|_ThreadID=17;_ThreadName=Timer-12;|deployed
> with moduleid = gs-apps_EJB|#]
> [#|2010-01-02T19:42:27.834+0100|WARNING|sun-glassfish-comms-server1.5|javax.enterprise.system.core.classloading|_ThreadID=17;_ThreadName=Timer-12;_RequestID=68741cc4-049e-4f05-a6f5-fab7d336f48e;|The
> log message is null.
> java.lang.UnsupportedOperationException
> at java.util.Collections$UnmodifiableMap.remove(Collections.java:1288)
> at
> org.apache.openjpa.lib.conf.Configurations.removeProperty(Configurations.java:681)
> at
> org.apache.openjpa.persistence.PersistenceProviderImpl.createContainerEntityManagerFactory(PersistenceProviderImpl.java:157)
> at
> org.apache.openjpa.persistence.PersistenceProviderImpl.createContainerEntityManagerFactory(PersistenceProviderImpl.java:59)
> at
> com.sun.enterprise.server.PersistenceUnitLoaderImpl.load(PersistenceUnitLoaderImpl.java:149)
> at
> com.sun.enterprise.server.PersistenceUnitLoaderImpl.load(PersistenceUnitLoaderImpl.java:84)
> at
> com.sun.enterprise.server.AbstractLoader.loadPersistenceUnits(AbstractLoader.java:895)
> at
> com.sun.enterprise.server.EJBModuleLoader.doLoad(EJBModuleLoader.java:165)
> at
> com.sun.enterprise.server.AbstractLoader.load(AbstractLoader.java:238)
> at
> com.sun.enterprise.server.StandAloneEJBModulesManager.moduleDeployed(StandAloneEJBModulesManager.java:233)
> at
> com.sun.enterprise.server.StandAloneEJBModulesManager.moduleDeployed(StandAloneEJBModulesManager.java:188)
> at
> com.sun.enterprise.server.StandAloneEJBModulesManager.moduleDeployed(StandAloneEJBModulesManager.java:420)
> at
> com.sun.enterprise.admin.event.AdminEventMulticaster.invokeModuleDeployEventListener(AdminEventMulticaster.java:1005)
> at
> com.sun.enterprise.admin.event.AdminEventMulticaster.handleModuleDeployEvent(AdminEventMulticaster.java:992)
> at
> com.sun.enterprise.admin.event.AdminEventMulticaster.processEvent(AdminEventMulticaster.java:470)
> at
> com.sun.enterprise.admin.event.AdminEventMulticaster.multicastEvent(AdminEventMulticaster.java:182)
> at
> com.sun.enterprise.admin.server.core.DeploymentNotificationHelper.multicastEvent(DeploymentNotificationHelper.java:308)
> at
> com.sun.enterprise.deployment.phasing.DeploymentServiceUtils.multicastEvent(DeploymentServiceUtils.java:231)
> at
> com.sun.enterprise.deployment.phasing.ServerDeploymentTarget.sendStartEvent(ServerDeploymentTarget.java:298)
> at
> com.sun.enterprise.deployment.phasing.ApplicationStartPhase.runPhase(ApplicationStartPhase.java:132)
> at
> com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:108)
> at
> com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:966)
> at
> com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:280)
> at
> com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:298)
> at
> com.sun.enterprise.admin.mbeans.ApplicationsConfigMBean.deploy(ApplicationsConfigMBean.java:584)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at
> com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:381)
> at
> com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:364)
> at
> com.sun.enterprise.admin.config.BaseConfigMBean.invoke(BaseConfigMBean.java:477)
> at
> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836)
> at
> com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761)
> at sun.reflect.GeneratedMethodAccessor14.invoke(Unknown Source)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at
> com.sun.enterprise.admin.util.proxy.ProxyClass.invoke(ProxyClass.java:90)
> at $Proxy1.invoke(Unknown Source)
> at
> com.sun.enterprise.admin.server.core.jmx.SunoneInterceptor.invoke(SunoneInterceptor.java:304)
> at
> com.sun.enterprise.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:174)
> at
> com.sun.enterprise.deployment.autodeploy.AutoDeployer.invokeDeploymentService(AutoDeployer.java:583)
> at
> com.sun.enterprise.deployment.autodeploy.AutoDeployer.deployJavaEEArchive(AutoDeployer.java:564)
> at
> com.sun.enterprise.deployment.autodeploy.AutoDeployer.deploy(AutoDeployer.java:495)
> at
> com.sun.enterprise.deployment.autodeploy.AutoDeployer.deployAll(AutoDeployer.java:270)
> at
> com.sun.enterprise.deployment.autodeploy.AutoDeployControllerImpl$AutoDeployTask.run(AutoDeployControllerImpl.java:374)
> at java.util.TimerThread.mainLoop(Timer.java:512)
> at java.util.TimerThread.run(Timer.java:462)
> |#]
> [#|2010-01-02T19:42:27.837+0100|WARNING|sun-glassfish-comms-server1.5|javax.enterprise.system.core|_ThreadID=17;_ThreadName=Timer-12;_RequestID=68741cc4-049e-4f05-a6f5-fab7d336f48e;|CORE5020:
> Error while loading ejb module|#]
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.