Hi Gerry,

Are you certain you didn't have another copy of the classes somewhere in your classpath? This looks like you had a copy of the com.taw.cca.data.languages.DataLanguagesResult class somewhere which had not been processed by the binding compiler, and that copy was being loaded in preference to the copy which had been processed.

In other words, I suspect your classpath had this type of structure:

boot classloader<-...<-classloader with unbound DataLanguagesResult class<-...<-classloader with bound DataLangaguesResult class (and JiBX_bindingDataLanguagesResult_access.marshal class, etc.)

 - Dennis

--
Dennis M. Sosnoski
SOA and Web Services in Java
Axis2 Training and Consulting
http://www.sosnoski.com - http://www.sosnoski.co.nz
Seattle, WA +1-425-939-0576 - Wellington, NZ +64-4-298-6117



Gerry Holly wrote:
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] <mailto:[EMAIL PROTECTED]>> wrote:

    Tomcat 5.5.23


    On Jan 8, 2008 4:11 PM, Alberto Patino <[EMAIL PROTECTED]
    <mailto:[EMAIL PROTECTED]>> wrote:

        What is the application server you are using?

        On 1/8/08, Gerry Holly <[EMAIL PROTECTED]
        <mailto:[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
        <http://www.sosnoski.com/jibx-wiki/space/axis2-jibx/jibx2wsdl>.
        >
        > Gerry
        >
        > On Jan 8, 2008 3:28 PM, Martin Gainty <[EMAIL PROTECTED]
        <mailto:[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
        <http://sourceforge.net/project/showfiles.php?group_id=69358>
        > >
        > > M--
        > >
        > > ----- Original Message -----
        > > *From:* Gerry Holly <[EMAIL PROTECTED]
        <mailto:[EMAIL PROTECTED]>>
        > > *To:* [EMAIL PROTECTED]
        <mailto:[EMAIL PROTECTED]> ;
        [email protected] <mailto:[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]
        <mailto:[EMAIL PROTECTED]>
        For additional commands, e-mail: [EMAIL PROTECTED]
        <mailto:[EMAIL PROTECTED]>





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to