Hi
Since posting the original message (pls refer to the mail below), I have
scanned the whole mailing list archive, searched google - and used up
all suggestions that I could find - like defining CATALINA_OPTS,
modifying server.xml etc etc - nothing worked. The weird bit is, when I
call a remote web service from another small web service (on Axis 1.0)
and deployed on Tomcat 4.1.18, I do not even need to set up the proxies
etc in configuration files or environment variables - simply a couple
System.setProperty() statements in the web service code does the trick
and accesses the remote web service.
But the same piece of code doesn't work inside an OGSA service. I am
always getting an exception - mostly it is "connection timed out" - in
couple of cases I have seen "network unreachable". Following is the
exception I get:
48078 [Thread-55] INFO org.apache.axis.enterprise - Mapping Exception
to AxisFault AxisFault
faultCode: {http://xml.apache.org/axis/}Server.userException
faultString: java.net.ConnectException: Connection timed out: connect
faultActor: null
faultDetail:
stackTrace: java.net.ConnectException: Connection timed out:
connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:295)
at
java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:161)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:148)
at java.net.Socket.connect(Socket.java:425)
at java.net.Socket.connect(Socket.java:375)
at java.net.Socket.<init>(Socket.java:290)
at java.net.Socket.<init>(Socket.java:118)
at
org.apache.axis.components.net.DefaultSocketFactory.create(DefaultSocket
Factory.java:131)
at
org.apache.axis.transport.http.HTTPSender.getSocket(HTTPSender.java:158)
at
org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:115)
at
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.j
ava:71)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:156)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:126)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:182)
at org.apache.axis.client.Call.invokeEngine(Call.java:2376)
at org.apache.axis.client.Call.invoke(Call.java:2365)
at org.apache.axis.client.Call.invoke(Call.java:2062)
at org.apache.axis.client.Call.invoke(Call.java:1986)
at org.apache.axis.client.Call.invoke(Call.java:1509)
at
uk.org.ogsadai.dqp.gqes.operators.OperationCallOp.testFunction(Unknown
Source)
Can anyone help please?
Regards
Arijit
> -----Original Message-----
> From: Arijit Mukherjee
> Sent: 11 February 2003 15:19
> To: '[EMAIL PROTECTED]'
> Subject: Configuring TOMCAT to work behind a proxy
>
> Hi
>
> I am trying to write some Grid Services (OGSA) which will run on
> TOMCAT (version 4.18 - windows 2000) and access external web services
> (over the internet). I am behind a proxy server. A simple java client
> can access the web services when I set the system properties specific
> for my proxy host and port - but setting the same inside the OGSA
> service doesn't work. I searched the internet about help in running
> Tomcat behind a proxy - and one solution was to define CATALINA_OPTS
> as "-DproxyHost=<host> -DproxyPort=<port>" - tried it - but the same
> problem - my request to connect to the web service times out. If I
> change this option to -Dhttp.proxyHost and -Dhttp.proxyPort then there
> are whole lot of errors when my OGSA services are reading namespaces
> from the schema or wsdl files - seems like it is trying to get
> everything onto the proxy server when I set -Dhttp.proxyHost and
> -Dhttp.proxyPort.
>
> Actually, I need to configure TOMCAT in such a way that it recognizes
> the applications running on localhost and those that are on a remote
> host. For remote host, it would go through the proxy, for localhost -
> it wouldn't. It would be even better if it doesn't go to the proxy for
> local addresses - like within the same network. I tries to do some
> fiddling with the server.xml file - but couldn't make it work.
>
> How is this possible?
>
> Regards
> Arijit
>
> "And when the night is cloudy,
> There is still a light that shines on me,
> Shine on until tomorrow, let it be. "
>
> John Lennon/Paul McCartney
>