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 Sudipta Duttaroy <Su...@Signaltreesolutions.com> on 2002/06/20 21:07:26 UTC

Just learning Axis. Kindly help !

Hi All

I have downloaded axis and installed it in m/c. I was trying to publish a
java class as webservice from the calculator example from the axis-beta2
download. My axis home is C:\xml-axis-beta2. I have copied(renamed as in
axis doc) the Calculator.jws into the directory
C:\xml-axis-beta2\webapps\axis. When I am trying to access the service thru
http://localhost:8080/axis/Calculator.jws I get "Page Cannot be found". Can
anyone help me ? 
Also my tomcat webserver is running at 8080. Do I need to do any
configuration in axis for that. 


Thanks
SDRoy

Re: Accessing Axis server through internet behind firewall

Posted by santhosh <sa...@cominsights.com>.
It is throwing UnknownHostException. Tell me, how can I set my ProxyHost and
ProxyPort for HTTP request.
----- Original Message -----
From: "Sam Ruby" <ru...@us.ibm.com>
To: <ax...@xml.apache.org>
Sent: Friday, June 21, 2002 5:53 PM
Subject: Re: Accessing Axis server through internet behind firewall


> santhosh wrote:
>
> >Can anyone help me in accessing service from axis server through internet
> >behind the firewall. I am not able to find any proxy setting in the Call
> >object. If possible, let me know any other way to do this.
> >
>
> Try
>
>     System.setProperty("http.proxyUser", "username");
>     System.setProperty("http.proxyPassword", "password");
>
>
> - Sam Ruby
>
>


Re: Accessing Axis server through internet behind firewall

Posted by Sam Ruby <ru...@us.ibm.com>.
santhosh wrote:

>Can anyone help me in accessing service from axis server through internet
>behind the firewall. I am not able to find any proxy setting in the Call
>object. If possible, let me know any other way to do this.
>

Try

    System.setProperty("http.proxyUser", "username");
    System.setProperty("http.proxyPassword", "password");


- Sam Ruby


Accessing Axis server through internet behind firewall

Posted by santhosh <sa...@cominsights.com>.
Can anyone help me in accessing service from axis server through internet
behind the firewall. I am not able to find any proxy setting in the Call
object. If possible, let me know any other way to do this.

Regards,
santhosh


Package names in JWS (Re: Just learning Axis. Kindly help !)

Posted by Miguel A Paraz <ma...@free.net.ph>.
On Thu, Jun 20, 2002 at 02:47:57PM -0500, John Gregg wrote:
> Just learning Axis. Kindly help !I had problems with the source code being
> part of a package other than the default package.  I tried various
> combinations of jws file location changes and endpoint url changes but
> nothing worked until I removed "package samples.userguide.example1;" from
> the jws file.

The heart of it is from the error:

  java.io.FileNotFoundException: /home/map/java/lib/jakarta-tomcat-4.0.4/webapps/axis/WEB-INF/jwsClasses/Calculator.class (No such file or directory)

when it was compiled to be in:

  webapps/axis/WEB-INF/jwsClasses/samples/userguide/example2/Calculator.class 

then if I change the endpoint in CalcClient.java:

       String endpoint = "http://localhost:" + options.getPort() +
                         "/axis/samples/userguide/example2/Calculator.jws";

the error is now:

  java.lang.NoClassDefFoundError: Calculator (wrong name: samples/userguide/example2/Calculator


I guess the 'JWS' system did not have packages in mind?




-- 
Miguel A Paraz
+63-916-423-7922



RE: Just learning Axis. Kindly help !

Posted by John Gregg <jo...@techarch.com>.
Just learning Axis. Kindly help !I had problems with the source code being
part of a package other than the default package.  I tried various
combinations of jws file location changes and endpoint url changes but
nothing worked until I removed "package samples.userguide.example1;" from
the jws file.

john
  -----Original Message-----
  From: axis-user-return-4598-john.gregg=techarch.com@xml.apache.org
[mailto:axis-user-return-4598-john.gregg=techarch.com@xml.apache.org]On
Behalf Of Sudipta Duttaroy
  Sent: Thursday, June 20, 2002 2:07 PM
  To: 'axis-user@xml.apache.org'
  Subject: Just learning Axis. Kindly help !


  Hi All

  I have downloaded axis and installed it in m/c. I was trying to publish a
java class as webservice from the calculator example from the axis-beta2
download. My axis home is C:\xml-axis-beta2. I have copied(renamed as in
axis doc) the Calculator.jws into the directory
C:\xml-axis-beta2\webapps\axis. When I am trying to access the service thru
http://localhost:8080/axis/Calculator.jws I get "Page Cannot be found". Can
anyone help me ?

  Also my tomcat webserver is running at 8080. Do I need to do any
configuration in axis for that.



  Thanks
  SDRoy