It's just a bad day for me and XML tools, I guess. I'm trying out
the xbeans module, and when I try to load a DD using code like this, I get
the results below. It seems to be looking for an xsb file, which as far
as I can tell is not produced by the build. Any advice would be
appreciated.
Thanks,
Aaron
ClassLoader loader = new URLClassLoader(new URL[]{new File(args[0]).toURL()});
InputStream in = loader.getResourceAsStream("META-INF/ejb-jar.xml");
EjbJarDocument d = EjbJarDocument.Factory.parse(in);
Exception in thread "main" java.lang.ExceptionInInitializerError
at
org.apache.geronimo.xbeans.j2ee.EjbJarDocument.<clinit>(EjbJarDocument.java:19)
at
org.apache.geronimo.xbeans.j2ee.EjbJarDocument$Factory.parse(EjbJarDocument.java:68)
at
org.apache.geronimo.validator.ejb.EjbValidator.main(EjbValidator.java:32)
Caused by: java.lang.RuntimeException: Could not instantiate
SchemaTypeSystemImpl (java.lang.reflect.InvocationTargetException): is the
version of xbean.jar correct?
at
schema.system.s32045CE1B052DAEB808D9FD30E445196.TypeSystemHolder.loadTypeSystem(TypeSystemHolder.java:12)
at
schema.system.s32045CE1B052DAEB808D9FD30E445196.TypeSystemHolder.<clinit>(TypeSystemHolder.java:6)
... 3 more
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
at
schema.system.s32045CE1B052DAEB808D9FD30E445196.TypeSystemHolder.loadTypeSystem(TypeSystemHolder.java:10)
... 4 more
Caused by: com.bea.xml.SchemaTypeLoaderException: XML-BEANS compiled
schema: Could not locate compiled schema resource
schema/system/s32045CE1B052DAEB808D9FD30E445196/index.xsb
(schema.system.s32045CE1B052DAEB808D9FD30E445196.index) - code 0
at
com.bea.xbean.schema.SchemaTypeSystemImpl$XsbReader.<init>(SchemaTypeSystemImpl.java:1034)
at
com.bea.xbean.schema.SchemaTypeSystemImpl.initFromHeader(SchemaTypeSystemImpl.java:264)
at
com.bea.xbean.schema.SchemaTypeSystemImpl.<init>(SchemaTypeSystemImpl.java:144)
... 9 more
|