geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rick McGuire <rick...@gmail.com>
Subject 3.0 classloading problem with Persistence document.
Date Fri, 23 Oct 2009 13:31:39 GMT
I'm working on getting the openjpa2 plugin to build on 3.0, and I'm 
stumped again.  I'm getting an ExceptionInInitializerError with the 
org.apache.geronimo.xbeans.persistence.PersistenceDocument (see below).  
A possible explanation is we're picking up an out-of-date version of 
org.apache.geronimo.xbeans.persistence.PersistenceDocument.  
Unfortunately, I haven't been able to figure out where this class even 
comes from.  Does anybody have an ideas on how/where this gets generated?

Rick

java.lang.ExceptionInInitializerError
        at sun.misc.Unsafe.ensureClassInitialized(Native Method)
        at 
sun.reflect.UnsafeFieldAccessorFactory.newFieldAccessor(UnsafeFieldAc
cessorFactory.java:25)
        at 
sun.reflect.ReflectionFactory.newFieldAccessor(ReflectionFactory.java
:122)
        at java.lang.reflect.Field.acquireFieldAccessor(Field.java:918)
        at java.lang.reflect.Field.getFieldAccessor(Field.java:899)
        at java.lang.reflect.Field.get(Field.java:358)
        at 
org.apache.xmlbeans.XmlBeans.typeSystemForClassLoader(XmlBeans.java:7
70)
        at 
org.apache.geronimo.xbeans.persistence.PersistenceDocument.<clinit>(U
nknown Source)
        at 
org.apache.geronimo.persistence.builder.PersistenceUnitBuilder.<clini
t>(PersistenceUnitBuilder.java:66)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at 
org.apache.geronimo.gbean.BasicGBeanInfoFactory.getGBeanInfo(BasicGBe
anInfoFactory.java:113)
        at 
org.apache.geronimo.gbean.MultiGBeanInfoFactory.getGBeanInfo(MultiGBe
anInfoFactory.java:66)
        at 
org.apache.geronimo.deployment.service.GBeanBuilder.addGBeanData(GBea
nBuilder.java:113)
        at 
org.apache.geronimo.deployment.service.GBeanBuilder.build(GBeanBuilde
r.java:108)
        at 
org.apache.geronimo.deployment.NamespaceDrivenBuilderCollection.build
(NamespaceDrivenBuilderCollection.java:46)
        at 
org.apache.geronimo.deployment.service.ServiceConfigBuilder.buildConf
iguration(ServiceConfigBuilder.java:250)
        at 
org.apache.geronimo.deployment.service.ServiceConfigBuilder.buildConf
iguration(ServiceConfigBuilder.java:209)
        at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:257)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at 
org.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(Refl
ectionMethodInvoker.java:34)
        at 
org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperatio
n.java:131)
        at 
org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.
java:854)
        at 
org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:
245)
        at 
org.apache.geronimo.mavenplugins.car.PackageMojo.invokeDeployer(Packa
geMojo.java:519)
        at 
org.apache.geronimo.mavenplugins.car.PackageMojo.buildPackage(Package
Mojo.java:337)
        at 
org.apache.geronimo.mavenplugins.car.PackageMojo.execute(PackageMojo.
java:234)
        at 
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
nManager.java:490)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:694)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
fecycle(DefaultLifecycleExecutor.java:556)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
ltLifecycleExecutor.java:535)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
dleFailures(DefaultLifecycleExecutor.java:387)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
ts(DefaultLifecycleExecutor.java:348)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
fecycleExecutor.java:180)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
        at 
org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:6
0)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at 
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at 
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)

        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: java.lang.RuntimeException: Cannot load 
org.apache.xmlbeans.impl.Sche
maTypeSystemImpl: make sure xbean.jar is on the classpath.
        at 
schemaorg_apache_xmlbeans.system.sE122FCBD07E14D88499C12C4D17B5625.Ty
peSystemHolder.loadTypeSystem(Unknown Source)
        at 
schemaorg_apache_xmlbeans.system.sE122FCBD07E14D88499C12C4D17B5625.Ty
peSystemHolder.<clinit>(Unknown Source)
        ... 51 more
Caused by: java.lang.ClassNotFoundException: 
org.apache.xmlbeans.impl.schema.Sch
emaTypeSystemImpl
        at 
org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation
(ModuleImpl.java:720)
        at 
org.apache.felix.framework.ModuleImpl.access$100(ModuleImpl.java:60)
        at 
org.apache.felix.framework.ModuleImpl$ModuleClassLoader.loadClass(Mod
uleImpl.java:1627)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:247)
        ... 53 more

Mime
View raw message