You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Robert Whitehead <ro...@gmail.com> on 2007/06/26 09:49:03 UTC

[Axis2] StAX error when using WSDL2Java?

Hi Axis2 users.

I've been developing with Axis2 for a while. I've been creating services
with WSDL2Java for some WSDLs given to me some time ago and I had no
problems at all. Right now I'm using again WSDL2Java with a self made WSDL
which Eclipse validates but this time I can't get a compilation and I get an
error like this:


Exception in thread main: java.lang.NoSuchMethodError:
javax.xml.stream.XMLOutputFactory.newInstance(Ljava/lang/String;Ljava/lang/ClassLoader;)Ljavax/xml/stream/XMLOutputFactory;
at org.apache.axiom.om.util.StAXUtils.getXMLOutputFactory(StAXUtils.java:97)
at org.apache.axiom.om.util.StAXUtils.createXMLStreamWriter(StAXUtils.java:111)
at org.apache.axiom.om.impl.llom.OMNodeImpl.serialize(OMNodeImpl.java:381)
at org.apache.axis2.description.AxisService.getWSDL(AxisService.java:732)


etc...

Any ideas? Thanks in advance.

Robert.

Re: [Axis2] StAX error when using WSDL2Java?

Posted by Alexey Zavizionov <al...@exoplatform.com.ua>.
Hi,
I think cause of it maybe wrong deps.
Which virsion of axis do you use?

Regards,
Alexey

On 6/26/07, Davanum Srinivas <da...@gmail.com> wrote:
> Is this from the command line wsdl2java bat/sh?
>
> thanks,
> dims
>
> On 6/26/07, Robert Whitehead <ro...@gmail.com> wrote:
> > Hi Axis2 users.
> >
> > I've been developing with Axis2 for a while. I've been creating services
> > with WSDL2Java for some WSDLs given to me some time ago and I had no
> > problems at all. Right now I'm using again WSDL2Java with a self made WSDL
> > which Eclipse validates but this time I can't get a compilation and I get an
> > error like this:
> >
> > Exception in thread main: java.lang.NoSuchMethodError:
> > javax.xml.stream.XMLOutputFactory.newInstance(Ljava/lang/String;Ljava/lang/ClassLoader;)Ljavax/xml/stream/XMLOutputFactory;
> > at org.apache.axiom.om.util.StAXUtils.getXMLOutputFactory
> > (StAXUtils.java:97)
> > at
> > org.apache.axiom.om.util.StAXUtils.createXMLStreamWriter(StAXUtils.java:111)
> > at
> > org.apache.axiom.om.impl.llom.OMNodeImpl.serialize(OMNodeImpl.java:381)
> > at org.apache.axis2.description.AxisService.getWSDL
> > (AxisService.java:732)
> >
> > etc...
> >
> > Any ideas? Thanks in advance.
> >
> > Robert.
> >
>
>
> --
> Davanum Srinivas :: http://davanum.wordpress.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: [Axis2] StAX error when using WSDL2Java?

Posted by Davanum Srinivas <da...@gmail.com>.
Is this from the command line wsdl2java bat/sh?

thanks,
dims

On 6/26/07, Robert Whitehead <ro...@gmail.com> wrote:
> Hi Axis2 users.
>
> I've been developing with Axis2 for a while. I've been creating services
> with WSDL2Java for some WSDLs given to me some time ago and I had no
> problems at all. Right now I'm using again WSDL2Java with a self made WSDL
> which Eclipse validates but this time I can't get a compilation and I get an
> error like this:
>
> Exception in thread main: java.lang.NoSuchMethodError:
> javax.xml.stream.XMLOutputFactory.newInstance(Ljava/lang/String;Ljava/lang/ClassLoader;)Ljavax/xml/stream/XMLOutputFactory;
> at org.apache.axiom.om.util.StAXUtils.getXMLOutputFactory
> (StAXUtils.java:97)
> at
> org.apache.axiom.om.util.StAXUtils.createXMLStreamWriter(StAXUtils.java:111)
> at
> org.apache.axiom.om.impl.llom.OMNodeImpl.serialize(OMNodeImpl.java:381)
> at org.apache.axis2.description.AxisService.getWSDL
> (AxisService.java:732)
>
> etc...
>
> Any ideas? Thanks in advance.
>
> Robert.
>


-- 
Davanum Srinivas :: http://davanum.wordpress.com

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org