Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 76059 invoked from network); 9 Jun 2008 10:24:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Jun 2008 10:24:44 -0000 Received: (qmail 97760 invoked by uid 500); 9 Jun 2008 10:24:44 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 97734 invoked by uid 500); 9 Jun 2008 10:24:44 -0000 Mailing-List: contact user-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: user@geronimo.apache.org List-Id: Delivered-To: mailing list user@geronimo.apache.org Received: (qmail 97723 invoked by uid 99); 9 Jun 2008 10:24:44 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Jun 2008 03:24:44 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of sainathdreams@gmail.com designates 209.85.198.229 as permitted sender) Received: from [209.85.198.229] (HELO rv-out-0506.google.com) (209.85.198.229) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Jun 2008 10:23:55 +0000 Received: by rv-out-0506.google.com with SMTP id f6so1910180rvb.55 for ; Mon, 09 Jun 2008 03:24:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type:references; bh=kqZgtbiPuhmjDqtp1Y2fNy2hJFW5P+O2qXzeNCxEaUA=; b=qc/8R0w9HYcSi63FNl3PI0D64M2m5KVd1+fIliWmI2d0yEigOGVzIIa5MeTvdDyn5n QNWbz4EBxOpqhN5yeQ03mfPcS1BDDbzyUtuhw+Knr6q3vHmFkR7+/t/Gy3HHDOmJXpOd jn5V1frpjztDpT2geY1xxDfSMQO7BUyEKX6gI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:references; b=bB5XjphwKDJuw0rNy3XTD4SngsaeWnDlFfqipaeyG0CZl5DzIDF2H3LMpkB5HYk3NB UZVeKWjaobeo/KRAJkMqFFgGb+e/6G9+EsKhueAE/lU4twP6d8kULqj0hJvdkDzrJPzR WIyyjdAbg8Ph6l8MLRLqXuohrxnU6x8ApR0HI= Received: by 10.141.20.7 with SMTP id x7mr1957337rvi.34.1213007052448; Mon, 09 Jun 2008 03:24:12 -0700 (PDT) Received: by 10.140.140.17 with HTTP; Mon, 9 Jun 2008 03:24:12 -0700 (PDT) Message-ID: <435270830806090324q4598de32qe0f0f9ed789b9065@mail.gmail.com> Date: Mon, 9 Jun 2008 15:54:12 +0530 From: "sainath chowdary" To: user@geronimo.apache.org Subject: Re: Webservices client problem In-Reply-To: <435270830806082325l556307baw691536ae17170b96@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_10341_152856.1213007052439" References: <435270830806060041x2a36af93ob0eea0df222b4fa8@mail.gmail.com> <5eb405c70806060734s61d1afa4laff8054585952d6a@mail.gmail.com> <435270830806082249p55119fa4v941fa5a27e241a6e@mail.gmail.com> <5eb405c70806082303s75f2d43dr2c57687fb619a343@mail.gmail.com> <435270830806082325l556307baw691536ae17170b96@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_10341_152856.1213007052439 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Also if I try running from jaxws-tools.bat utility in server bin directory..then i get a error message like this: Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/geronimo/c ommon/DeploymentException at org.apache.geronimo.jaxws.builder.JAXWSToolsCLI.run(JAXWSToolsCLI.jav a:71) at org.apache.geronimo.jaxws.builder.JAXWSToolsCLI.main(JAXWSToolsCLI.ja va:61) Kindly clarify me in this regard On Mon, Jun 9, 2008 at 11:55 AM, sainath chowdary wrote: > I just wanted to give this information to know whether this has any > relation with the problem. > > http://cwiki.apache.org/GMOxDOC21/developing-a-simple-calculator-web-service.html > As pointed by the above link, when i start gsh and i type jaxws/wsgen its > giving me an error > Error: NotFoundException: jaxws/wsgen. > > Wont it work if I add the geronimo server runtime to the java build path? > Isnt there a easy way to build a java client that can access a webservice > deployed on server? > > > > On Mon, Jun 9, 2008 at 11:33 AM, Jarek Gawor wrote: > >> You have to figure out what sort of jars you need based on the >> NoClassDefFoundError exceptions. This error indicates that you need >> wsdl4j.jar. You might also need to add a few axiom-*.jar, >> XmlSchema-*.jar, neethi-*.jar, etc. >> >> Jarek >> >> On Mon, Jun 9, 2008 at 1:49 AM, sainath chowdary >> wrote: >> > Ya, Its a standalone client in Java 5. I have added all the jar's from >> the >> > directory org/apache/axis2 in geronimo installation directory. Now its >> > throwing me a new error >> > >> > Exception in thread "main" java.lang.NoClassDefFoundError: >> > javax/wsdl/xml/WSDLLocator >> > at >> > >> org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContextFromFileSystem(ConfigurationContextFactory.java:180) >> > at >> > >> org.apache.axis2.jaxws.ClientConfigurationFactory.getClientConfigurationContext(ClientConfigurationFactory.java:49) >> > at >> > >> org.apache.axis2.jaxws.description.impl.DescriptionFactoryImpl.createServiceDescription(DescriptionFactoryImpl.java:74) >> > at >> > >> org.apache.axis2.jaxws.description.DescriptionFactory.createServiceDescription(DescriptionFactory.java:69) >> > at >> > >> org.apache.axis2.jaxws.spi.ServiceDelegate.(ServiceDelegate.java:87) >> > at >> > >> org.apache.axis2.jaxws.spi.Provider.createServiceDelegate(Provider.java:45) >> > at javax.xml.ws.Service.(Service.java:36) >> > at javax.xml.ws.Service.create(Service.java:88) >> > at abc.CalculatorClient.main(CalculatorClient.java:25) >> > >> > What could be possibly going wrong? >> > >> > On Fri, Jun 6, 2008 at 8:04 PM, Jarek Gawor wrote: >> >> >> >> That's a standalone client on Java 5, right? You will need to add a >> >> bunch of Axis2 (or CXF depending which engine you want to use) jars to >> >> the classpath. For example, for Axis2 you will need to add >> >> axis2-jaxws-*.jar, axis2-kernel-*.jar, axis2-saaj-*.jar, and a bunch >> >> of others jars. >> >> Also, if possible, you could try running the client on Java 6 and not >> >> worry about Axis2 or CXF jars since Java 6 has JAX-WS engine built-in. >> >> >> >> Jarek >> >> >> >> On Fri, Jun 6, 2008 at 3:41 AM, sainath chowdary >> >> wrote: >> >> > hi, >> >> > >> >> > I have the following code in my java class which basically is trying >> to >> >> > access the webservice deployed. >> >> > -->URL url = new >> >> > URL("http://localhost:8080/jaxws-calculator-1.0/calculator?wsdl"); >> >> > QName qname = new QName("http://jws.samples.geronimo.apache.org", >> >> > "Calculator"); >> >> > Service service = Service.create(url, qname); >> >> > >> >> > But when i try to run it is a java applicaton I get the following >> error: >> >> > Exception in thread "main" >> >> > javax.xml.ws.spi.FactoryFinder$ConfigurationError: Provider >> >> > org.apache.axis2.jaxws.spi.Provider not found >> >> > at javax.xml.ws.spi.FactoryFinder$2.run(FactoryFinder.java:138) >> >> > at >> >> > javax.xml.ws.spi.FactoryFinder.doPrivileged(FactoryFinder.java:267) >> >> > at >> >> > javax.xml.ws.spi.FactoryFinder.newInstance(FactoryFinder.java:125) >> >> > at >> javax.xml.ws.spi.FactoryFinder.access$200(FactoryFinder.java:44) >> >> > at javax.xml.ws.spi.FactoryFinder$3.run(FactoryFinder.java:258) >> >> > at >> >> > javax.xml.ws.spi.FactoryFinder.doPrivileged(FactoryFinder.java:267) >> >> > at javax.xml.ws.spi.FactoryFinder.find(FactoryFinder.java:168) >> >> > at javax.xml.ws.spi.Provider.provider(Provider.java:32) >> >> > at javax.xml.ws.Service.(Service.java:36) >> >> > at javax.xml.ws.Service.create(Service.java:88) >> >> > at abc.CalculatorClient.main(CalculatorClient.java:25) >> >> > >> >> > But, when I use the same code to access a web service from a servlet >> it >> >> > works fine.. >> >> > Dont know where i am going wrong. Do we need to specify any other >> >> > details? >> >> > Kindly clarify me in this regard >> >> > >> >> > -- >> >> > Sainath Chowdary >> >> > B.Tech III yr, Spring Semester >> >> > Electronics & Communication Engg >> >> > Indian Institute of Technology Roorkee >> > >> > >> > >> > -- >> > Sainath Chowdary >> > B.Tech III yr, Spring Semester >> > Electronics & Communication Engg >> > Indian Institute of Technology Roorkee >> > > > > -- > Sainath Chowdary > B.Tech III yr, Spring Semester > Electronics & Communication Engg > Indian Institute of Technology Roorkee > -- Sainath Chowdary B.Tech III yr, Spring Semester Electronics & Communication Engg Indian Institute of Technology Roorkee ------=_Part_10341_152856.1213007052439 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Also if I try running from jaxws-tools.bat utility in server bin directory..then i get a error message like this:
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/geronimo/c
ommon/DeploymentException
        at org.apache.geronimo.jaxws.builder.JAXWSToolsCLI.run(JAXWSToolsCLI.jav
a:71)
        at org.apache.geronimo.jaxws.builder.JAXWSToolsCLI.main(JAXWSToolsCLI.ja
va:61)

Kindly clarify me in this regard

On Mon, Jun 9, 2008 at 11:55 AM, sainath chowdary <sainathdreams@gmail.com> wrote:
I just wanted to give this information to know whether this has any relation with the problem.
http://cwiki.apache.org/GMOxDOC21/developing-a-simple-calculator-web-service.html
As pointed by the above link, when i start gsh and i type jaxws/wsgen its giving me an error
Error: NotFoundException:  jaxws/wsgen.

Wont it work if I add the geronimo server runtime to the java build path?
Isnt there a easy way to build a java client that can access a webservice deployed on server?



On Mon, Jun 9, 2008 at 11:33 AM, Jarek Gawor <jgawor@gmail.com> wrote:
You have to figure out what sort of jars you need based on the
NoClassDefFoundError exceptions. This error indicates that you need
wsdl4j.jar. You might also need to add a few axiom-*.jar,
XmlSchema-*.jar, neethi-*.jar, etc.

Jarek

On Mon, Jun 9, 2008 at 1:49 AM, sainath chowdary
<sainathdreams@gmail.com> wrote:
> Ya, Its a standalone client in Java 5. I have added all the jar's from the
> directory org/apache/axis2 in geronimo installation directory. Now its
> throwing me a new error
>
> Exception in thread "main" java.lang.NoClassDefFoundError:
> javax/wsdl/xml/WSDLLocator
>     at
> org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContextFromFileSystem(ConfigurationContextFactory.java:180)
>     at
> org.apache.axis2.jaxws.ClientConfigurationFactory.getClientConfigurationContext(ClientConfigurationFactory.java:49)
>     at
> org.apache.axis2.jaxws.description.impl.DescriptionFactoryImpl.createServiceDescription(DescriptionFactoryImpl.java:74)
>     at
> org.apache.axis2.jaxws.description.DescriptionFactory.createServiceDescription(DescriptionFactory.java:69)
>     at
> org.apache.axis2.jaxws.spi.ServiceDelegate.<init>(ServiceDelegate.java:87)
>     at
> org.apache.axis2.jaxws.spi.Provider.createServiceDelegate(Provider.java:45)
>     at javax.xml.ws.Service.<init>(Service.java:36)
>     at javax.xml.ws.Service.create(Service.java:88)
>     at abc.CalculatorClient.main(CalculatorClient.java:25)
>
> What could be possibly going wrong?
>
> On Fri, Jun 6, 2008 at 8:04 PM, Jarek Gawor <jgawor@gmail.com> wrote:
>>
>> That's a standalone client on Java 5, right? You will need to add a
>> bunch of Axis2 (or CXF depending which engine you want to use) jars to
>> the classpath. For example, for Axis2 you will need to add
>> axis2-jaxws-*.jar, axis2-kernel-*.jar, axis2-saaj-*.jar, and a bunch
>> of others jars.
>> Also, if possible, you could try running the client on Java 6 and not
>> worry about Axis2 or CXF jars since Java 6 has JAX-WS engine built-in.
>>
>> Jarek
>>
>> On Fri, Jun 6, 2008 at 3:41 AM, sainath chowdary
>> <sainathdreams@gmail.com> wrote:
>> > hi,
>> >
>> > I have the following code in my java class which basically is trying to
>> > access the webservice deployed.
>> > -->URL url = new
>> > URL("http://localhost:8080/jaxws-calculator-1.0/calculator?wsdl");
>> >    QName qname = new QName("http://jws.samples.geronimo.apache.org",
>> > "Calculator");
>> >    Service service = Service.create(url, qname);
>> >
>> > But when i try to run it is a java applicaton I get the following error:
>> > Exception in thread "main"
>> > javax.xml.ws.spi.FactoryFinder$ConfigurationError: Provider
>> > org.apache.axis2.jaxws.spi.Provider not found
>> >     at javax.xml.ws.spi.FactoryFinder$2.run(FactoryFinder.java:138)
>> >     at
>> > javax.xml.ws.spi.FactoryFinder.doPrivileged(FactoryFinder.java:267)
>> >     at
>> > javax.xml.ws.spi.FactoryFinder.newInstance(FactoryFinder.java:125)
>> >     at javax.xml.ws.spi.FactoryFinder.access$200(FactoryFinder.java:44)
>> >     at javax.xml.ws.spi.FactoryFinder$3.run(FactoryFinder.java:258)
>> >     at
>> > javax.xml.ws.spi.FactoryFinder.doPrivileged(FactoryFinder.java:267)
>> >     at javax.xml.ws.spi.FactoryFinder.find(FactoryFinder.java:168)
>> >     at javax.xml.ws.spi.Provider.provider(Provider.java:32)
>> >     at javax.xml.ws.Service.<init>(Service.java:36)
>> >     at javax.xml.ws.Service.create(Service.java:88)
>> >     at abc.CalculatorClient.main(CalculatorClient.java:25)
>> >
>> > But, when I use the same code to access a web service from a servlet it
>> > works fine..
>> > Dont know where i am going wrong. Do we need to specify any other
>> > details?
>> > Kindly clarify me in this regard
>> >
>> > --
>> > Sainath Chowdary
>> > B.Tech III yr, Spring Semester
>> > Electronics & Communication Engg
>> > Indian Institute of Technology Roorkee
>
>
>
> --
> Sainath Chowdary
> B.Tech III yr, Spring Semester
> Electronics & Communication Engg
> Indian Institute of Technology Roorkee



--
Sainath Chowdary
B.Tech III yr, Spring Semester
Electronics & Communication Engg
Indian Institute of Technology Roorkee



--
Sainath Chowdary
B.Tech III yr, Spring Semester
Electronics & Communication Engg
Indian Institute of Technology Roorkee ------=_Part_10341_152856.1213007052439--