Hello,
I have successfully deployed a very simple aar archive ("hello world") into my axis tomcat server.
I started from an implementation class and so I didn't write any wsdl file.
I cannot generate the axis2 client stubs. Here is the exception
I get (The entity "nbsp" was referenced, but not declared.) when executing :
WSDL2Java.bat -uri http://localhost.urssaf.fr:8080/axis2/services/ SimpleService?wsdl -o c:\axis2bis\bin\
Using AXIS2_HOME: C:\axis2bis
Using JAVA_HOME: C:\Program Files\Java\jdk1.5.0_06
Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException
: Error parsing WSDL
at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerat
ionEngine.java:125)
at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
Caused by: WSDLException: faultCode=PARSER_ERROR: Parser SAX Error: Fatal Error:
URI=http://localhost.urssaf.fr:8080/axis2/services/ Line=32: The entity "nbsp"
was referenced, but not declared.: org.xml.sax.SAXException: Fatal Error: URI=ht
tp://localhost.urssaf.fr:8080/axis2/services/ Line=32: The entity "nbsp" was referenced, but not declared.
at org.apache.axis2.util.XMLUtils$ParserErrorHandler.fatalError(XMLUtils
.java:361)
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalErro
r(ErrorHandlerWrapper.java:218)
at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(
XMLErrorReporter.java:386)
at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(
XMLErrorReporter.java:316)
at com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(X
MLScanner.java:1438)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
l.scanEntityReference(XMLDocumentFragmentScannerImpl.java:1332)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
l$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1756)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
l.scanDocument(XMLDocumentFragmentScannerImpl.java:368)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(X
ML11Configuration.java:834)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(X
ML11Configuration.java:764)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.
java:148)
at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.
java:250)
at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Doc
umentBuilderImpl.java:292)
at org.apache.axis2.util.XMLUtils.newDocument(XMLUtils.java:178)
at org.apache.axis2.util.XMLUtils.newDocument(XMLUtils.java:223)
at org.apache.axis2.util.XMLUtils.newDocument(XMLUtils.java:206)
at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.readInTheWSDLFile(
CodeGenerationEngine.java:274)
at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerat
ionEngine.java:108)
at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.readInTheWSDLFile(
CodeGenerationEngine.java:280)
at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerat
ionEngine.java:108)
... 2 more
C:\axis2bis\bin>WSDL2Java.bat -uri http://localhost.urssaf.fr:8080/axis2/service
s/ SimpleService?wsdl -o c:\axis2bis\bin\
What should I do please??????
cheers
Extract of the generated WSDL file:
I have successfully deployed a very simple aar archive ("hello world") into my axis tomcat server.
I started from an implementation class and so I didn't write any wsdl file.
I cannot generate the axis2 client stubs. Here is the exception
I get (The entity "nbsp" was referenced, but not declared.) when executing :
WSDL2Java.bat -uri http://localhost.urssaf.fr:8080/axis2/services/ SimpleService?wsdl -o c:\axis2bis\bin\
Using AXIS2_HOME: C:\axis2bis
Using JAVA_HOME: C:\Program Files\Java\jdk1.5.0_06
Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException
: Error parsing WSDL
at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerat
ionEngine.java:125)
at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
Caused by: WSDLException: faultCode=PARSER_ERROR: Parser SAX Error: Fatal Error:
URI=http://localhost.urssaf.fr:8080/axis2/services/ Line=32: The entity "nbsp"
was referenced, but not declared.: org.xml.sax.SAXException: Fatal Error: URI=ht
tp://localhost.urssaf.fr:8080/axis2/services/ Line=32: The entity "nbsp" was referenced, but not declared.
at org.apache.axis2.util.XMLUtils$ParserErrorHandler.fatalError(XMLUtils
.java:361)
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalErro
r(ErrorHandlerWrapper.java:218)
at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(
XMLErrorReporter.java:386)
at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(
XMLErrorReporter.java:316)
at com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(X
MLScanner.java:1438)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
l.scanEntityReference(XMLDocumentFragmentScannerImpl.java:1332)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
l$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1756)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
l.scanDocument(XMLDocumentFragmentScannerImpl.java:368)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(X
ML11Configuration.java:834)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(X
ML11Configuration.java:764)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.
java:148)
at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.
java:250)
at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Doc
umentBuilderImpl.java:292)
at org.apache.axis2.util.XMLUtils.newDocument(XMLUtils.java:178)
at org.apache.axis2.util.XMLUtils.newDocument(XMLUtils.java:223)
at org.apache.axis2.util.XMLUtils.newDocument(XMLUtils.java:206)
at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.readInTheWSDLFile(
CodeGenerationEngine.java:274)
at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerat
ionEngine.java:108)
at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.readInTheWSDLFile(
CodeGenerationEngine.java:280)
at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerat
ionEngine.java:108)
... 2 more
C:\axis2bis\bin>WSDL2Java.bat -uri http://localhost.urssaf.fr:8080/axis2/service
s/ SimpleService?wsdl -o c:\axis2bis\bin\
What should I do please??????
cheers
Extract of the generated WSDL file:
<wsdl:definitions
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:axis2="http://ws.apache.org/axis2"
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:ns1="http://org.apache.axis2/xsd"
xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" targetNamespace="http://ws.apache.org/axis2">
<wsdl:types />
<wsdl:message name="echoMessage" />
<wsdl:message name="echoResponse" />
<wsdl:input message="axis2:echoMessage" />
<wsdl:output message="axis2:echoResponse" />
</wsdl:operation>
</wsdl:portType>
<soap:operation style="document" soapAction="urn:echo"
/>
</wsdl:input>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<soap12:operation style="document" soapAction="urn:echo"
/>
</wsdl:input>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
</wsdl:port>
</wsdl:port>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
Victory favors those who take pains