I am trying to run through the Caculator example, and am having trouble getting Axis to deploy correctly on WebSphere 3.5.2
I have mapped *.jws to AxisServlet and then when I call URL/Calculator.jws, I get:
/ice/axis/Calculator.jws
C:\WebSphere\AppServer\ICE\webapps\WEB-INF
Hi there, this is an AXIS service!
Perhaps there will be a form for invoking the service here...
============================================================
The Calculator.jws, or Calculator.java did not get compiled by AxisServlet as noted in the user guide. Then I tried to call the CalcClient from the command line and got:
C:\WebSphere\AppServer\ICE\webapps\axis>java CalcClient add -p80 2 5
Create service obj
create Call obj
set target
set Operation
Add param 1
Add param 2
Invoke the call.
Exception in thread "main" The AXIS engine could not find a target service to invoke! targetService
is
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java:237)
at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:120)
at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:67
1)
at org.apache.xerces.parsers.SAXParser.endElement(SAXParser.java:1403)
at org.apache.xerces.validators.common.XMLValidator.callEndElement(XMLValidator.java:1436)
at org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XMLDocumentScan
ner.java:1260)
at org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:381)
at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1035)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:374)
at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:204)
at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:378)
at org.apache.axis.client.Call.invoke(Call.java:1268)
at org.apache.axis.client.Call.invoke(Call.java:1113)
at org.apache.axis.client.Call.invoke(Call.java:1043)
at org.apache.axis.client.Call.invoke(Call.java:1069)
at org.apache.axis.client.Call.invoke(Call.java:674)
at CalcClient.main(CalcClient.java:45)
C:\WebSphere\AppServer\ICE\webapps\axis>
============================================================
Then I also tried to list the deployed services, and got:
C:\WebSphere\AppServer\ICE\webapps\axis>java org.apache.axis.client.AdminClient list
Doing a list
AxisFault
faultCode: http://xml.apache.org/axis/:Server.userException
faultString: java.net.ConnectException: Connection refused: connect
faultActor: null
faultDetail:
exceptionName: java.net.ConnectException
stackTrace: java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:355)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:142)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:129)
at java.net.Socket.<init>(Socket.java:273)
at java.net.Socket.<init>(Socket.java:100)
at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:265)
at org.apache.axis.SimpleTargetedChain.invoke(SimpleTargetedChain.java:104)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:178)
at org.apache.axis.client.Call.invoke(Call.java:1254)
at org.apache.axis.client.Call.invoke(Call.java:658)
at org.apache.axis.client.AdminClient.process(AdminClient.java:323)
at org.apache.axis.client.AdminClient.process(AdminClient.java:294)
at org.apache.axis.client.AdminClient.list(AdminClient.java:156)
at org.apache.axis.client.AdminClient.list(AdminClient.java:149)
at org.apache.axis.client.AdminClient.process(AdminClient.java:242)
at org.apache.axis.client.AdminClient.main(AdminClient.java:344)
============================================================
I created a calc.wsdd:
<!-- Use this file to deploy some handlers/chains and services -->
<!-- Two ways to do this: -->
<!-- java org.apache.axis.utils.Admin deploy.wsdd -->
<!-- from the same dir that the Axis engine runs -->
<!-- or -->
<!-- java org.apache.axis.client.http.AdminClient deploy.wsdd -->
<!-- after the axis server is running -->
<deployment xmlns="http://localhost/ice/axis/Calculator"
xmlns:java="http://localhost/ice/axis/AxisServlet">
<service name="Calculator" provider="java:RPC">
<parameter name="className" value="Calculator"/>
<parameter name="methodName" value="*"/>
</service>
</deployment>
============================================================
Tried to deploy it, but got this:
C:\WebSphere\AppServer\ICE\webapps\axis>java org.apache.axis.client.AdminClient calc.wsdd
Processing file calc.wsdd
AxisFault
faultCode: http://xml.apache.org/axis/:Server.userException
faultString: java.net.ConnectException: Connection refused: connect
faultActor: null
faultDetail:
exceptionName: java.net.ConnectException
stackTrace: java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:355)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:142)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:129)
at java.net.Socket.<init>(Socket.java:273)
at java.net.Socket.<init>(Socket.java:100)
at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:265)
at org.apache.axis.SimpleTargetedChain.invoke(SimpleTargetedChain.java:104)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:178)
at org.apache.axis.client.Call.invoke(Call.java:1254)
at org.apache.axis.client.Call.invoke(Call.java:658)
at org.apache.axis.client.AdminClient.process(AdminClient.java:323)
at org.apache.axis.client.AdminClient.process(AdminClient.java:303)
at org.apache.axis.client.AdminClient.process(AdminClient.java:310)
at org.apache.axis.client.AdminClient.process(AdminClient.java:261)
at org.apache.axis.client.AdminClient.main(AdminClient.java:344)
============================================================
Please help!
---
Thanks
Mick Knutson
mknutson at baselogic dot com
-
WebSphere 3.5.2 help needed for deploying Axis Services (0 messages)
- Posted by: Mick Knutson
- Posted on: January 29 2002 16:47 EST