java.lang.NoSuchMethodError: org.exolab.castor.xml.util.XMLFieldDescriptorImpl.setClassDescriptor(Lorg/exolab/castor/xml/XMLClassDescriptor;)V^M
at org.jboss.mq.il.xil2.schema.Xil2messageDescriptor.<init>(Xil2messageDescriptor.java:218)^M
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)^M
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)^M
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)^M
...
First, jboss distro does not even include a castor.jar anymore, yet does include jbossmq-xil2, which won't even work without castor in the classpath.
Second that jbossmq-xil2.jar included into jboss 4.2.1 seems to be compiled against some castor version that does not even exist anymore.
I checked 1.1, 1.1M1 and 1.1.2.1 - all three have a setClassDescriptor() function that takes org.exolab.castor.mapping.ClassDescriptor, but not XMLClassDescriptor (which is a subclass of ClassDescriptor, so it should compile fine, but the binary doesn't work, because it is looking for the exact signature).
--Dima