axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nicolas Urien <nicolas_ur...@yahoo.fr>
Subject Re: cannot generate axis2 client stubs
Date Thu, 29 Jun 2006 15:12:19 GMT
Suddenly the script started to work!

Thanks for your help,

----- Original Message ----
From: Nicolas Urien <nicolas_urien@yahoo.fr>
To: axis-user@ws.apache.org
Sent: Thursday, June 29, 2006 4:08:02 PM
Subject: Re: cannot generate axis2 client stubs

Hi,

Sorry but what do you mean exactly please?

I am using the axis bundled war ( version 1.0 released on 05-05-06) on tomcat 5.

thank you,

----- Original Message ----
From: Ajith Ranabahu <ajith.ranabahu@gmail.com>
To: axis-user@ws.apache.org; Nicolas Urien <nicolas_urien@yahoo.fr>
Sent: Thursday, June 29, 2006 3:32:33 PM
Subject: Re: cannot generate axis2 client stubs

Hi,
is the adb-codegen module in class path

Ajith

On 6/29/06, Nicolas Urien <nicolas_urien@yahoo.fr> wrote:
>
>
> Hi,
>
> I have just found out what the problem was : I had  added an extra space on
> the command line with:
> WSDL2Java.bat -uri
> http://localhost.urssaf.fr:8080/axis2/services/PojoDao?wsdl
> -o c:\axis2bis\bin
>
> Now I get a different stack trace (maybe easier to fix?). (PojoDao is
> another web service)
>
> Thanks for helping
>
>
> 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
> : java.lang.RuntimeException:
> java.lang.ClassNotFoundException:
> org.apache.axis2.schema.ExtensionUtility
>         at
>  org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:235)
>
>         at
> org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
>         at
> org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
> Caused by: java.lang.RuntimeException:
> java.lang.ClassNotFoundException: org.apa
> che.axis2.schema.ExtensionUtility
>         at
> org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(Simp
> leDBExtension.java:52)
>         at
> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGener
> ationEngine.java:188)
>         ... 2 more
> Caused by: java.lang.ClassNotFoundException:
>  org.apache.axis2.schema.ExtensionUt
> ility
>         at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
>         at
> java.security.AccessController.doPrivileged(Native Method)
>         at
> java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>         at
> sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
>         at
> java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
>         at  java.lang.Class.forName0(Native Method)
>         at java.lang.Class.forName(Class.java:164)
>         at
> org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(Simp
> leDBExtension.java:44)
>         ... 3 more
>
>
>
>
> ----- Original Message ----
> From: Kinichiro Inoguchi <ingc1968@yahoo.com>
> To: axis-user@ws.apache.org; Nicolas Urien <nicolas_urien@yahoo.fr>
> Sent: Thursday, June 29, 2006 1:35:10 PM
> Subject: Re: cannot generate axis2 client stubs
>
> Hi Nicolas,
>
> could you post your service aar file ?
>
> Regards,
> kinichiro
>
> --- Nicolas Urien <nicolas_urien@yahoo.fr> wrote:
>
> > Hi Kinichiro,
> >
> > No it has parameters :
>  >
> > public String echo(String value) {
> >         return value;
> >     }
> >
> > cheers
> >
> >   Nicolas Urien
> >
> > Mobile phone : +33-6 75 77 15 42
> >
> >  Victory favors those who take pains
> >
> >
> >
> >
> >
> >
> > ----- Original Message ----
> > From: Kinichiro Inoguchi <ingc1968@yahoo.com>
> > To: axis-user@ws.apache.org
> > Sent: Wednesday, June 28, 2006 8:19:13 PM
> > Subject: Re: cannot generate axis2 client stubs
> >
> > Nicolas,
> >
> > Does your service class method have no in/out parameter, like this ?
> >
> > public void echo () {
> >     System.out.println("hello world");
> >  }
> >
> >
> > --- Nicolas Urien <nicolas_urien@yahoo.fr> wrote:
> >
> > > 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:
> > >
> > >  <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:portType name="SimpleServicePortType">
> > >    - <wsdl:operation name="echo">
> > >      <wsdl:input message="axis2:echoMessage" />
> > >
> > >     <wsdl:output message="axis2:echoResponse" />
> > >
> > >    </wsdl:operation>
>  > >
> > >
> > >    </wsdl:portType>
> > >
> > >
> > >   - <wsdl:binding type="axis2:SimpleServicePortType"
> > > name="SimpleServiceSOAP11Binding">
> > >      <soap:binding style="document"
> > > transport="http://schemas.xmlsoap.org/soap/http";;; />
> > >
> > >   - <wsdl:operation name="echo">
> > >      <soap:operation style="document" soapAction="urn:echo"  />
> > >
> > >   - <wsdl:input>
> > >      <soap:body namespace="http://ws.apache.org/axis2";;;
> > use="literal"
>  > > />
> > >
> > >    </wsdl:input>
> > >
> > >
> > >   - <wsdl:output>
> > >      <soap:body namespace="http://ws.apache.org/axis2";;;
> > use="literal"
> > > />
> > >
> > >    </wsdl:output>
> > >
> > >
> > >    </wsdl:operation>
> > >
> > >
> > >    </wsdl:binding>
> > >
> > >
> > >   - <wsdl:binding type="axis2:SimpleServicePortType"
> > > name="SimpleServiceSOAP12Binding">
> > >      <soap12:binding style="document"
> > > transport="http://schemas.xmlsoap.org/soap/http";;; />
> > >
> > >   - <wsdl:operation name="echo">
> > >      <soap12:operation style="document" soapAction="urn:echo"  />
> > >
> > >   - <wsdl:input>
> > >      <soap12:body namespace="http://ws.apache.org/axis2";;;
> > > use="literal" />
> > >
> > >    </wsdl:input>
> > >
> > >
> > >   - <wsdl:output>
> > >      <soap12:body namespace="http://ws.apache.org/axis2";;;
> > > use="literal"  />
> > >
> > >    </wsdl:output>
> > >
> > >
> > >    </wsdl:operation>
> > >
> > >
> > >    </wsdl:binding>
> > >
> > >
> > >   - <wsdl:binding type="axis2:SimpleServicePortType"
> > > name="SimpleServiceHttpBinding">
> > >      <http:binding verb="POST" />
> > >
> > >   - <wsdl:operation name="echo">
> > >      <http:operation location="echo" />
> > >
> > >   - <wsdl:input>
> > >      <mime:content type="text/xml" />
> > >
> > >    </wsdl:input>
> >  >
> > >
> > >   - <wsdl:output>
> > >      <mime:content type="text/xml" />
> > >
> > >    </wsdl:output>
> > >
> > >
> > >    </wsdl:operation>
> > >
> > >
> > >    </wsdl:binding>
> > >
> > >
> > >   - <wsdl:service name="SimpleService">
> > >    - <wsdl:port
> binding="axis2:SimpleServiceSOAP11Binding"
> > > name="SimpleServiceSOAP11port0">
> > >      <soap:address
> > >
> >
> location="http://localhost.urssaf.fr:8080/axis2/services/SimpleService";;;
> > > />
> > >
> > >    </wsdl:port>
> > >
> > >
> > >   - <wsdl:port
> binding="axis2:SimpleServiceSOAP12Binding"
> > > name="SimpleServiceSOAP12port0">
> > >      <soap12:address
> > >
> >
> location="http://localhost.urssaf.fr:8080/axis2/services/SimpleService";;;
> > > />
> > >
> > >    </wsdl:port>
> > >
> > >
> > >   - <wsdl:port binding="axis2:SimpleServiceHttpBinding"
> > >  name="SimpleServiceHttpport0">
> > >      <http:address
> > >
> >
> location="http://localhost.urssaf.fr:8080/axis2/rest/SimpleService";;;
> > > />
> > >
> > >    </wsdl:port>
> > >
> > >
> > >    </wsdl:service>
> > >
> > >
> > >    </wsdl:definitions>
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >  Victory favors those who take pains
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> >
> >
> >  __________________________________________________
> > Do You Yahoo!?
> > Tired of spam?  Yahoo! Mail has the best spam protection around
> > http://mail.yahoo.com
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Tired of spam?  Yahoo! Mail has the best spam protection around
> > http://mail.yahoo.com
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> axis-user-unsubscribe@ws.apache.org
> > For additional commands, e-mail: axis-user-help@ws.apache.org
> >
> >
> >
> >
> >
> >
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of  spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
>


-- 
Ajith Ranabahu

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










Mime
View raw message