I am having no luck deploying my application that uses JPA 2.0
API to a WebLogic 10 instance.
   
  The application is deployed as an EAR as 
explained in the Eclipselink wiki.  The
error I see at startup suggests that WebLogic is continuing
to use its (internal) JPA 1.0.  The error is:
 
   
  <Nov 30, 2010 10:46:03 AM EST> <Error> <J2EE>
<BEA-160197> <Unable to load descriptor
weblogic.utils.classloaders.ChangeAwareClassLoader@64bc1e finder
  
  
          at
weblogic.descriptor.internal.MarshallerFactory$1.evaluateResults(MarshallerFactory.java:234)
          at
weblogic.descriptor.internal.MarshallerFactory$1.evaluateResults(MarshallerFactory.java:221)
          at
weblogic.descriptor.internal.MarshallerFactory$1.createDescriptor(MarshallerFactory.java:146)
   
  It is almost as if WebLogic is ignoring JARs in the APP-INF/lib
directory of the EAR.  
   
  If I were to downgrade my persistence.xml to version 1.0, the
above error is replaced by a ClassCastException
   
  <Nov 30, 2010 10:57:30 AM EST> <Error>
<Deployer> <BEA-149205> <Failed to initialize the
application 'viporear23' due to error
weblogic.application.ModuleException:
.weblogic.application.ModuleException:
          at
weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:317)
          at
weblogic.application.internal.flow.ScopedModuleDriver.prepare(ScopedModuleDriver.java:176)
          at
weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:93)
          at
weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:360)
          at
weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
          Truncated. see log file for complete stacktrace
  weblogic.deployment.EnvironmentException: Error processing
persitence unit GporsPU of module apps/vipor: Error instantiating the
Persistence Provider
  class org.eclipse.persistence.jpa.PersistenceProvider of the
PersistenceUnit GporsPU: java.lang.ClassCastException:
org.eclipse.persistence.jpa.PersistenceProvider
          at
weblogic.deployment.PersistenceUnitInfoImpl.createEntityManagerFactory(PersistenceUnitInfoImpl.java:258)
          at
weblogic.deployment.PersistenceUnitInfoImpl.<init>(PersistenceUnitInfoImpl.java:110)
          at
weblogic.deployment.AbstractPersistenceUnitRegistry.storeDescriptors(AbstractPersistenceUnitRegistry.java:316)
          at
weblogic.deployment.AbstractPersistenceUnitRegistry.loadPersistenceDescriptors(AbstractPersistenceUnitRegistry.java:96)
          at
weblogic.deployment.ModulePersistenceUnitRegistry.<init>(ModulePersistenceUnitRegistry.java:53)
          Truncated. see log file for complete stacktrace
  >
   
  I realize that this is not an Eclipselink problem per se.  I am
writing in the hope that al fellow subscriber to this list has
encountered this problem and has a workaround.  I have 
posted
this issue to Oracle’s WebLogic forum as well.
 
   
  Sri