Ralph,

If the message is returned from the server, you should see the following
string prepended to the message:

"Received problem response from server: ....."

See line 123 of GetQuote.java.

When I ran the same program with my tomcat server down, I got a similar
exception: java.net.ConnectException. Though I got a connection refused
instead of a connection timeout. I suggest you check your server side
configuration again. If you are using tomcat, make sure you copy jaxrpc.jar
from the axis package to the common/lib directory in tomcat. The instruction
didn't mention it. Good luck.

-pam


-----Original Message-----
From: Ralph Sakhr [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 26, 2002 8:36 AM
To: [EMAIL PROTECTED]
Subject: installation: why a failure is actually a success.


Hello axis group!  I have a guess for analyzing what a problem is, and if
anyone could say if they agree or if they have reason to believe i'm way off
mark i would appreciate it.

When I run the Step 7 from the Axis Installation Guide on the web site,
which client invocation is pasted below:

        java samples.stock.GetQuote
-lhttp://localhost:8080/axis/servlet/AxisServlet -uuser1 -wpass1 XXX 

I get an exception back from the server, which is pasted at the end of this
message. I think that the service is working, it's just that the service
needs to access a different remote site (For the xml namespace maybe) and
THAT site is down.  So my installation and deployment of the sample web
service has succeeded.  is this an accurate assessment?



<faultcode
xmlns:ns1="http://xml.apache.org/axis/";>ns1:Server.userException</faultcode>
   <faultstring>java.net.ConnectException: Connection timed out:
connect</faultstring>
   <detail>
    <ns2:stackTrace
xmlns:ns2="http://xml.apache.org/axis/";>java.net.ConnectException:
Connection timed out: connect&#xd;
        at java.net.PlainSocketImpl.socketConnect(Native Method)&#xd;
        at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:295)&#xd;
        at
java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:161)&#xd;
        at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:148)&#xd;
        at java.net.Socket.connect(Socket.java:425)&#xd;
        at java.net.Socket.connect(Socket.java:375)&#xd;
        at sun.net.NetworkClient.doConnect(NetworkClient.java:139)&#xd;
        at sun.net.www.http.HttpClient.openServer(HttpClient.java:366)&#xd;
        at sun.net.www.http.HttpClient.openServer(HttpClient.java:582)&#xd;
        at
sun.net.www.http.HttpClient.&lt;init&gt;(HttpClient.java:292)&#xd;
        at
sun.net.www.http.HttpClient.&lt;init&gt;(HttpClient.java:253)&#xd;
        at sun.net.www.http.HttpClient.New(HttpClient.java:321)&#xd;
        at sun.net.www.http.HttpClient.New(HttpClient.java:306)&#xd;
        at sun.net.www.http.HttpClient.New(HttpClient.java:301)&#xd;
        at
sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.j
ava:463)&#xd;
        at
sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:4
54)&#xd;
        at
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection
.java:556)&#xd;
        at java.net.URL.openStream(URL.java:955)&#xd;
        at
org.apache.xerces.impl.XMLEntityManager.startEntity(XMLEntityManager.java:73
1)&#xd;
        at
org.apache.xerces.impl.XMLEntityManager.startDocumentEntity(XMLEntityManager
.java:676)&#xd;
        at
org.apache.xerces.impl.XMLDocumentScannerImpl.setInputSource(XMLDocumentScan
nerImpl.java:252)&#xd;
        at
org.apache.xerces.parsers.StandardParserConfiguration.parse(StandardParserCo
nfiguration.java:499)&#xd;
        at
org.apache.xerces.parsers.StandardParserConfiguration.parse(StandardParserCo
nfiguration.java:581)&#xd;
        at
org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:147)&#xd;
        at
org.apache.xerces.parsers.DOMParser.parse(DOMParser.java:221)&#xd;
        at
org.apache.xerces.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:20
9)&#xd;
        at javax.xml.parsers.DocumentBuilder.parse(Unknown Source)&#xd;
        at
samples.stock.StockQuoteService.getQuote(StockQuoteService.java:90)&#xd;
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)&#xd;
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)&#xd;
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)&#xd;
        at java.lang.reflect.Method.invoke(Method.java:324)&#xd;
        at
org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:2
29)&#xd;
        at
org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:262)&#x
d;
        at
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:
71)&#xd;
        at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:154)&#xd;
        at org.apache.axis.SimpleChain.invoke(SimpleChain.java:121)&#xd;
        at
org.apache.axis.server.AxisServer.invoke(AxisServer.java:288)&#xd;
        at
org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:576)&#xd;
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)&#xd;
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)&#xd;
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)&#xd;
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)&#xd;
        at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243)&#xd;
        at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)&#xd;
        at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)&
#xd;
        at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)&#xd;
        at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:190)&#xd;
        at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)&#xd;
        at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2
46)&#xd;
        at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)&#xd;
        at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)&
#xd;
        at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)&#xd;
        at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)&#
xd;
        at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)&#xd;
        at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)&#xd;
        at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)&#xd;
        at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)&#xd;
        at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
)&#xd;
        at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)&#xd;
        at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)&#x
d;
        at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)&#xd;
        at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)&
#xd;
        at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)&#xd;
        at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)&#xd;
        at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)&#xd;
        at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)&
#xd;
        at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)&#xd;
        at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
1012)&#xd;
        at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107
)&#xd;
        at java.lang.Thread.run(Thread.java:536)&#xd;
</ns2:stackTrace>
   </detail>

Reply via email to