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 Venkat Reddy <vr...@gmail.com> on 2005/08/23 05:49:32 UTC

Re: Problem with WSDL2Java

What is the error??

WSDL2Java doesn't need tomcat to be running unless you have any
references to wsdl imports or the wsdl itself, fetched from a URL
served by tomcat, which is not the case in your example.

- venkat

On 8/22/05, Arun Bhandari <ab...@gmail.com> wrote:
> Hi Venkat,
> 
> Thanks for your help. I made the correction, but I am still facing an issue.
> 
> Here is the command line that I am using:
> 
> java -classpath
> .\webapps\axis\WEB-INF\lib\axis.jar;.\webapps\axis\WEB-INF\lib\log4j-1.2.8.jar;.\webapps\axis\WEB-INF\lib\commons-discovery-0.2.jar;.\webapps\axis\WEB-INF\lib\commons-logging-1.0.4.jar;.\webapps\axis\WEB-INF\lib\wsdl4j-1.5.1.jar;.\webapps\axis\WEB-INF\lib\saaj.jar;.\webapps\axis\WEB-INF\lib\axis-ant.jar;.\webapps\axis\WEB-INF\lib\jaxrpc.jar;"C:\Sun\jwsdp-1.6\jaxp\lib\jaxp-api.jar";"C:\Sun\jwsdp-1.6\jwsdp-shared\lib\mail.jar";"C:\Sun\jwsdp-1.6\jwsdp-shared\lib\activation.jar"
> org.apache.axis.wsdl.WSDL2Java SaleOrder.wsdl
> 
> I am executing this command line from my container (tomcat) home folder.
> Please let me know if  you have an idea for this error.
> 
> Thanks,
> Arun.
> 
> 
> On 8/22/05, Venkat Reddy <vr...@gmail.com> wrote:
> > Your WSDL has a <wsdl:fault> element in binding section which doesn't
> > correspond to the one defined in portType section. After correcting
> > this error, I could run WSDL2Java without any issues. Here is the
> > corrected version of <wsdl:fault> inside binding section of your WSDL.
> >
> >            <wsdl:fault name="SaleError">
> >                <soap:fault use="literal"
> > namespace="http://FaultMessageNamespace" name="SaleError"/>
> >            </wsdl:fault>
> >
> > - venkat
> >
> >
> > On 8/22/05, Arun Bhandari <ab...@gmail.com> wrote:
> > > Hi,
> > >
> > > I have attached my WSDL. Thanks for your response
> > >
> > > On 8/22/05, Venkat Reddy <vr...@gmail.com> wrote:
> > > > please post your WSDL.
> > > >
> > > > - venkat
> > > >
> > > > On 8/22/05, Arun Bhandari <ab...@gmail.com> wrote:
> > > > > I am using Apache Axis 1.2 with java jdk 1.5, Tomcat as my web container.
> > > > > I have ensured that all the Axis jars in my classpath.
> > > > >
> > > > > I am trying to generate a client stub using a WSDL, but I get the
> > > > > following error:
> > > > >
> > > > > ****************************************************************
> > > > > java.lang.NullPointerException
> > > > >       at javax.wsdl.OperationType.equals(Unknown Source)
> > > > >       at org.apache.axis.wsdl.toJava.JavaGeneratorFactory.constructSignat=
> > > > > ures(
> > > > > JavaGeneratorFactory.java:1393)
> > > > >       at org.apache.axis.wsdl.toJava.JavaGeneratorFactory.generatorPass(J=
> > > > > avaGe
> > > > > neratorFactory.java:213)
> > > > >       at org.apache.axis.wsdl.gen.Parser.generate(Parser.java:424)
> > > > >       at org.apache.axis.wsdl.gen.Parser.access$000(Parser.java:44)
> > > > >       at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:361=
> > > > > )
> > > > >       at java.lang.Thread.run(Unknown Source)
> > > > > ****************************************************************
> > > > > Any help will be appreciated.
> > > > >
> > > > > --
> > > > > Thanks & Regards,
> > > > >
> > > > > Arun Bhandari
> > > > >
> > > >
> > >
> > >
> > > --
> > > Thanks & Regards,
> > >
> > > Arun Bhandari
> > >
> > >
> > >
> >
> 
> 
> --
> Thanks & Regards,
> 
> Arun Bhandari
>