Group Abstract Group Abstract

Message Boards Message Boards

Web services - what is wrong?

GROUPS:
When I run

InstallService["http://localhost:8080/webMathematica/Examples/WebServices/Hello.m?wsdl"]


I am getting the below error message - What is wrong?

All the best
Christian

Java::excptn: A Java exception occurred: _java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:519)
at java.net.Socket.connect(Socket.java:469)
at java.net.Socket.(Socket.java:366)
at java.net.Socket.(Socket.java:240)
at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:79)
at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:121)
at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:706)
at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.open(MultiThreadedHttpConnectionManager.java:1321)
at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:386)
at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:324)_.
$Failed 
POSTED BY: Christian Damgaard
Answer
8 months ago
This message simply means that the socket cannot be connected. The documentation page says this function installs a web service operation into Mathematica. Thus, the web service must be running before Mathematica can install the service. If you have apache tomcat and webMathematica install on your machine and you have the permission to run it (without using sudo or admin level), you must start the web service first.

Here is a fresh example:   


If you have question about the configuration and launch process, please read the instruction and consult the Wolfram Technology Group for detailed assistance. 
POSTED BY: Shenghui Yang
Answer
8 months ago
Thanks - now it works

Christian
POSTED BY: Christian Damgaard
Answer
7 months ago