OK so I found a workaround to this problem. The Axis2 service classes are located under WEB-INF/classes. BUT the generated JiBX data binding classes WERE packaged as " databinding.jar" under WEB-INF/lib. When moving the generated JiBX data binding classes under WEB-INF/classes and getting rid of "databinding.jar", it worked. Hopefully someone from the JiBX team can figure out where the bug is and fix it.
Gerry On Jan 8, 2008 4:15 PM, Gerry Holly <[EMAIL PROTECTED]> wrote: > Tomcat 5.5.23 > > > On Jan 8, 2008 4:11 PM, Alberto Patino <[EMAIL PROTECTED]> wrote: > > > What is the application server you are using? > > > > On 1/8/08, Gerry Holly <[EMAIL PROTECTED]> wrote: > > > Sorry...the JiBX jars (jibx-bind.jar and jibx-run.jar) come from > > jibx2wsdl4. > > > Followed the instructions at > > > http://www.sosnoski.com/jibx-wiki/space/axis2-jibx/jibx2wsdl . > > > > > > Gerry > > > > > > On Jan 8, 2008 3:28 PM, Martin Gainty <[EMAIL PROTECTED]> wrote: > > > > > > > havent seen that version of JIBX package in at least 3 years > > > > Mind if I asked where you acquired the jars? > > > > JiBX 1.1.5 is the latest > > > > http://sourceforge.net/project/showfiles.php?group_id=69358 > > > > > > > > M-- > > > > > > > > ----- Original Message ----- > > > > *From:* Gerry Holly <[EMAIL PROTECTED] > > > > > *To:* [EMAIL PROTECTED] ; [email protected] > > > > *Sent:* Tuesday, January 08, 2008 6:00 PM > > > > *Subject:* NoSuchMethodError when service classes and JiBX data > > binding > > > > classes are located in WEB-INF/classes > > > > > > > > Hi, > > > > > > > > I'm getting a NoSuchMethodError when service classes and JiBX data > > binding > > > > classes (com.taw.cca.data.languages.*) are located in > > WEB-INF/classes. > > > > The service classes MUST be there because they are shared with a > > legacy > > > > framework. > > > > > > > > java.lang.NoSuchMethodError : > > > > > > com.taw.cca.data.languages.DataLanguagesResult.JiBX_binding_marshal_1_0 > > > > (Lorg/jibx/runtime/impl/MarshallingContext;)V > > > > at > > > > > > > > > com.taw.cca.data.languages.JiBX_bindingDataLanguagesResult_access.marshal() > > > > at org.apache.axis2.jibx.JiBXDataSource.marshal( > > JiBXDataSource.java > > > > :189) > > > > at org.apache.axis2.jibx.JiBXDataSource.serialize( > > JiBXDataSource.java > > > > :259) > > > > at > > > > > > > > > org.apache.axiom.om.impl.llom.OMSourcedElementImpl.internalSerializeAndConsume > > ( > > > > OMSourcedElementImpl.java:583) > > > > > > > > I've verified the class in question and the method is there. And > > I'm > > > > pretty sure it's the same ClassLoader that loads all classes. Maybe > > > because > > > > the class hasn't been resolved? I'm just starting to learn about > > > > ClassLoaders... > > > > > > > > Environment: > > > > Java 1.5 > > > > Axis2 1.2 > > > > JiBX 1.1 > > > > > > > > Gerry > > > > > > > > > > > > > > > > > -- > > Don't be evil!!! > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > >
