axis-c-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Samisa Abeysinghe <samisa.abeysin...@gmail.com>
Subject Re: Errors running wsdl2ws
Date Sat, 18 Mar 2006 02:35:21 GMT
Seems like you are using gcj.
I suggest you use JDK from Sun, or try to compile the whole WSDL2WS Java 
tool, including the required jars from Axis Java using gcj.

I have never been able to use gcj with Axis successfully :-(

Samisa...

Lei Tang wrote:

> I installed latest Axis C++ 1.6b on linux (Fedora 4).  When I used 
> wsdl2ws to generat the C++ code for the sample calculator.wsdl file 
> with following command
>
> */java org.apache.axis.wsdl.wsdl2ws.WSDL2Ws 
> /usr/local/axiscpp_deploy/wsdls/calcul
> ator.wsdl -lc++ -sserver -o/tests/ltang/calculator//*
>  
> I got the following errors:
>
> */java.lang.NullPointerException
>    at gnu.xml.dom.ls.ReaderInputStream.close() (/usr/lib/libgcj.so.6.0.0)
>    at gnu.xml.aelfred2.XmlParser.doParse(java.lang.String, 
> java.lang.String, jav
> a.io.Reader, java.io.InputStream, java.lang.String) 
> (/usr/lib/libgcj.so.6.0.0)
>    at gnu.xml.aelfred2.SAXDriver.parse(org.xml.sax.InputSource) 
> (/usr/lib/libgcj
> .so.6.0.0)
>    at gnu.xml.aelfred2.XmlReader.parse(org.xml.sax.InputSource) 
> (/usr/lib/libgcj
> .so.6.0.0)
>    at gnu.xml.dom.ls.DomLSParser.doParse(org.w3c.dom.ls.LSInput) 
> (/usr/lib/libgc
> j.so.6.0.0)
>    at gnu.xml.dom.ls.DomLSParser.parse(org.w3c.dom.ls.LSInput) 
> (/usr/lib/libgcj.
> so.6.0.0)
>    at gnu.xml.dom.DomDocumentBuilder.parse(org.xml.sax.InputSource) 
> (/usr/lib/li
> bgcj.so.6.0.0)
>    at 
> org.apache.axis.utils.XMLUtils.newDocument(org.xml.sax.InputSource) (Unkno
> wn Source)
>    at org.apache.axis.utils.XMLUtils.newDocument(java.lang.String, 
> java.lang.Str
> ing, java.lang.String) (Unknown Source)
>    at 
> org.apache.axis.wsdl.symbolTable.SymbolTable.populate(java.lang.String, ja
> va.lang.String, java.lang.String) (Unknown Source)
>    at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run() (Unknown Source)
>    at java.lang.Thread.run() (/usr/lib/libgcj.so.6.0.0)
> org.apache.axis.wsdl.wsdl2ws.WrapperFault: java.lang.NullPointerException
>    at 
> org.apache.axis.wsdl.wsdl2ws.WSDL2Ws.WSDL2Ws(org.apache.axis.wsdl.wsdl2ws.
> CLArgParser) (Unknown Source)
>    at org.apache.axis.wsdl.wsdl2ws.WSDL2Ws.main(java.lang.String[]) 
> (Unknown Sou
> rce)
>    at gnu.java.lang.MainThread.call_main() (/usr/lib/libgcj.so.6.0.0)
>    at gnu.java.lang.MainThread.run() (/usr/lib/libgcj.so.6.0.0)
> Caused by: java.lang.NullPointerException
>    at gnu.xml.dom.ls.ReaderInputStream.close() (/usr/lib/libgcj.so.6.0.0)
>    at gnu.xml.aelfred2.XmlParser.doParse(java.lang.String, 
> java.lang.String, jav
> a.io.Reader, java.io.InputStream, java.lang.String) 
> (/usr/lib/libgcj.so.6.0.0)
>    at gnu.xml.aelfred2.SAXDriver.parse(org.xml.sax.InputSource) 
> (/usr/lib/libgcj
> .so.6.0.0)
>    at gnu.xml.aelfred2.XmlReader.parse(org.xml.sax.InputSource) 
> (/usr/lib/libgcj
> .so.6.0.0)
>    at gnu.xml.dom.ls.DomLSParser.doParse(org.w3c.dom.ls.LSInput) 
> (/usr/lib/libgc
> j.so.6.0.0)
>    at gnu.xml.dom.ls.DomLSParser.parse(org.w3c.dom.ls.LSInput) 
> (/usr/lib/libgcj.
> so.6.0.0)
>    at gnu.xml.dom.DomDocumentBuilder.parse(org.xml.sax.InputSource) 
> (/usr/lib/li
> bgcj.so.6.0.0)
>    at 
> org.apache.axis.utils.XMLUtils.newDocument(org.xml.sax.InputSource) (Unkno
> wn Source)
>    at org.apache.axis.utils.XMLUtils.newDocument(java.lang.String, 
> java.lang.Str
> ing, java.lang.String) (Unknown Source)
>    at 
> org.apache.axis.wsdl.symbolTable.SymbolTable.populate(java.lang.String, ja
> va.lang.String, java.lang.String) (Unknown Source)
>    at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run() (Unknown Source)
>    at java.lang.Thread.run() (/usr/lib/libgcj.so.6.0.0)/*
> *//* 
> */Code generation failed. Please see errors above./*
>  
>  
> I set my my classpath as following:
>  
> */declare -x 
> CLASSPATH="/usr/local/axiscpp_home/lib/axisjava/wsdl4j.jar:/usr/local
> /axiscpp_home/lib/axisjava/saaj.jar:/usr/local/axiscpp_home/lib/axisjava/jaxrpc.
> jar:/usr/local/axiscpp_home/lib/axisjava/commons-logging.jar:/usr/local/axiscpp_
> home/lib/axisjava/commons-discovery.jar:/usr/local/axiscpp_home/lib/axisjava/axi
> s.jar:/usr/local/axiscpp_deploy/lib/wsdl2ws.jar:"/*
>  
> Could anybody please help me figure out what was wrong?
>  
> Thanks,
>  
> Lei



Mime
View raw message