esb 4.4 xbean conflict with existing applications
lfhaddix Oct 2, 2008 3:26 PMI am trying to upgrade from jboss-esb 4.2MR2 to 4.4.
My problem is I use xmlbeans 2.3.0 in all of my applications and esb 4.4
uses version 2.2. Now every time I try to run my applications, I get this message:
Could not instantiate SchemaTypeSystemImpl (java.lang.reflect.InvocationTargetException): is the version of xbean.jar correct? Incompatible minor version - expecting up to 23, got 24
I have tried putting xbean.jar for 2.3.0 and my custom classes inside the esb, but I still get the same message. I have even tried to replace the xbean.xml in jbossesb.sar with the newer version. Then I get a reqistry exception on all of the .esb applications.
Can someone tell me how I get my application to look at one version of xbean.xml while jboss-esb looks at another ?
I see something about setting "archive scope" in the deployment.xml but I don't see how to do it, or if that is what I need to do.
myApp.esb
META-INF
MANIFEST.MF
jboss-esb.xml
deployment.xml -- nothing in it.
com.myClasse.class
classesGeneratedbyXMLBeans.jar
at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.RuntimeException: Could not instantiate SchemaTypeSystemImp
l (java.lang.reflect.InvocationTargetException): is the version of xbean.jar cor
rect?
at schemaorg_apache_xmlbeans.system.sD04B97363F60B8883493D4375B0F7C5B.Ty
peSystemHolder.loadTypeSystem(Unknown Source)
at schemaorg_apache_xmlbeans.system.sD04B97363F60B8883493D4375B0F7C5B.Ty
peSystemHolder.(Unknown Source)
... 21 more
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
orAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
onstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
... 23 more
Caused by: org.apache.xmlbeans.SchemaTypeLoaderException: XML-BEANS compiled sch
ema: Incompatible minor version - expecting up to 23, got 24 (schemaorg_apache_x
mlbeans.system.sD04B97363F60B8883493D4375B0F7C5B.index) - code 3
at org.apache.xmlbeans.impl.schema.SchemaTypeSystemImpl$XsbReader.
(SchemaTypeSystemImpl.java:1522)
at org.apache.xmlbeans.impl.schema.SchemaTypeSystemImpl.initFromHeader(S
chemaTypeSystemImpl.java:260)
at org.apache.xmlbeans.impl.schema.SchemaTypeSystemImpl.(SchemaTyp
eSystemImpl.java:183)
... 27 more