You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openjpa.apache.org by "Ivan Jensen (JIRA)" <ji...@apache.org> on 2007/10/14 22:59:50 UTC

[jira] Commented: (OPENJPA-384) ClassCastException when trying to load OpenJPA 1.0.0 based webapp in WebLogic 10

    [ https://issues.apache.org/jira/browse/OPENJPA-384?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12534675 ] 

Ivan Jensen commented on OPENJPA-384:
-------------------------------------

This blog entry may provide some background information into this problem, the fact that Kodo builds upon OpenJPA 0.9.2 and is installed within Weblogic 10.0 suggests one of those "interesting" classloading issues.

http://dev2dev.bea.com/blog/pinaki.poddar/archive/2007/06/the_promise_of.html

> ClassCastException when trying to load OpenJPA 1.0.0 based webapp in WebLogic 10
> --------------------------------------------------------------------------------
>
>                 Key: OPENJPA-384
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-384
>             Project: OpenJPA
>          Issue Type: Bug
>    Affects Versions: 1.0.0
>         Environment: WebLogic 10
>            Reporter: Simon Droscher
>
> I am trying to deploy a web application which uses OpenJPA 1.0.0 into a WebLogic 10 environment. The application deployment (and subsequent startup) fails with the following error:
> {code}java.lang.ClassCastException: weblogic.kodo.WebLogicLogFactory
> 	at org.apache.openjpa.lib.conf.ConfigurationImpl.getLogFactory(ConfigurationImpl.java:207)
> 	at org.apache.openjpa.lib.conf.ConfigurationImpl.getLog(ConfigurationImpl.java:225)
> 	at org.apache.openjpa.conf.OpenJPAConfigurationImpl.getConfigurationLog(OpenJPAConfigurationImpl.java:1471)
> 	at org.apache.openjpa.persistence.PersistenceProductDerivation$ConfigurationProviderImpl.setInto(PersistenceProductDerivation.java:425)
> 	at org.apache.openjpa.jdbc.kernel.JDBCBrokerFactory.newInstance(JDBCBrokerFactory.java:59)
> 	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:585)
> 	at org.apache.openjpa.kernel.Bootstrap.invokeFactory(Bootstrap.java:124)
> 	at org.apache.openjpa.kernel.Bootstrap.newBrokerFactory(Bootstrap.java:62)
> 	at org.apache.openjpa.persistence.PersistenceProviderImpl.createContainerEntityManagerFactory(PersistenceProviderImpl.java:119)
> 	at org.apache.openjpa.persistence.PersistenceProviderImpl.createContainerEntityManagerFactory(PersistenceProviderImpl.java:52)
> 	at weblogic.deployment.PersistenceUnitInfoImpl.createEntityManagerFactory(PersistenceUnitInfoImpl.java:264)
> 	at weblogic.deployment.PersistenceUnitInfoImpl.<init>(PersistenceUnitInfoImpl.java:110)
> {code}
> There doesn't seem to be any details or documentation on running apps based on newer versions of OpenJPA under WebLogic 10 (which packages OpenJPA 0.9.7 as part of Kodo).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.