At runtime you need axiom jars anyway. (irrespective of the binding you use) Axis2 heavily use axiom. you need all axiom jars to compile the MessageReceiver class.
It seems even axiom jars needed in codegeneration as well. but I can not really figureout the place. Amila. On 8/22/07, Pantvaidya, Vishwajit <[EMAIL PROTECTED]> wrote: > > Upon adding axiom-api-1.2.5.jar and other jars as required, wsdl2java > completed successfully. I see that it has generated a class that extends > org.apache.axis2.receivers.AbstractInMessageReceiver and uses > org.apache.axiom.soap.SOAPEnvelope - so now I am getting compile errors. > So is axiom-api-1.2.5.jar needed even though I am using xmlbeans binding? > > > > > ------------------------------ > > *From:* Pantvaidya, Vishwajit [mailto:[EMAIL PROTECTED] > *Sent:* Monday, August 20, 2007 10:38 AM > *To:* axis-user@ws.apache.org > *Subject:* RE: [AXIS2] wsdl2java for xmlbeans needs axiom jars? > > > > No – it is the same wsdl that I used in Axis1 with minor changes to work > with axsi2. So I have no policies in it. > > > > > ------------------------------ > > *From:* Amila Suriarachchi [mailto:[EMAIL PROTECTED] > *Sent:* Wednesday, August 15, 2007 9:19 PM > *To:* axis-user@ws.apache.org > *Subject:* Re: [AXIS2] wsdl2java for xmlbeans needs axiom jars? > > > > do you have polices in your wsdl? > > On 8/16/07, *Pantvaidya, Vishwajit* <[EMAIL PROTECTED]> wrote: > > I don't get any stack trace – just the message "Exception in thread "main" > java.lang.NoClassDefFoundError: org/apache/axiom/om/OMNode" > > > > > ------------------------------ > > *From:* Amila Suriarachchi [mailto:[EMAIL PROTECTED] > *Sent:* Tuesday, August 14, 2007 7:59 PM > *To:* axis-user@ws.apache.org > *Subject:* Re: [AXIS2] wsdl2java for xmlbeans needs axiom jars? > > > > > > On 8/15/07, *Pantvaidya, Vishwajit* <[EMAIL PROTECTED]> wrote: > > I was running axis2 wsdl2java task with the xmlbeans binding option – and > got the error "Exception in thread "main" java.lang.NoClassDefFoundError: > org/apache/axiom/om/OMNode". My impression is that I do not need axiom jars > since I am using xmlbeans binding. Can someone clarify? > > > can you send the full stacktrace? you got this when running wsdl2java tool > right? > > > > Secondly - the wsdl2java task has a binding option to specify xmlbeans. But I > cannot find any such option on the Axis2 Codegen ant task (<codegen …) – > which I desire to use. How can I specify xmlbeans there? > > > xmlbeans produces java classess (i.e it is a java binding). but there is > no xmlbeans C version. if you > use C the only option is to use the ADB. ADB has a C version. > > if you interested more on C codegen please ask this question in Axis2 C > list. > > > > - Vish. > > > > > -- > Amila Suriarachchi, > WSO2 Inc. > > > > > -- > Amila Suriarachchi, > WSO2 Inc. > -- Amila Suriarachchi, WSO2 Inc.