Hello!
I have the following problem: I keep getting errors and exceptions when
I try to deploy a webservice using SimpleAxisServer. I have searched
around in the archives of this list and on other websites, but couldn't
find the answer.
Here's what I do and what exceptions I get:
I start an instance of SimpleAxisServer like this:
SimpleAxisServer sas = new SimpleAxisServer();
sas.setServerSocket(new ServerSocket(8878));
sas.start(true);
then I deploy the service like this:
AdminClient ac = new AdminClient();
ac.process(new String[] {"-lhttp://xxx.xxx.xxx.xxx:8878/AxTestSer",
"deploy.wsdd"});
the contents of the "deploy.wsdd" file are as follows:
<deployment name="test" xmlns="http://xml.apache.org/axis/wsdd/"
xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
<service name="AxTestSer" provider="java:RPC">
<parameter name="className" value="AxTestSer"/>
<parameter name="allowedMethods" value="*"/>
</service>
</deployment>
I also have a "AxTestSer.jws" file which looks like that:
public class AxTestSer {
public int test() {
return 555;
}
}
I don't have Tomcat. All I do is put the class that starts the server
and deploys the webservice (let's call it Run.java) into one directory
with the "deploy.wsdd" file and the "AxTestSer.jws" file. I run Run.java
with the following files on the classpath:
axis.jar, log4j-1.2.9.jar, dom4j-1.6.1.jar,
commons-collections-2.1.1.jar, commons-logging-1.0.4.jar,
commons-discovery.jar, tools.jar, activation.jar,
Xerces-J-bin.2.5.0.jar, wsdl4j.jar, saaj.jar, activation.jar.
(Some of these files might not be needed by Axis)
I don't do anything else (I want to underline this, because my guess is
that I may have forgotten something important at the beginning or
somewhere along the way).
Run.java puts the following error into the log:
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<soapenv:Fault>
<faultcode
xmlns:ns1="http://xml.apache.org/axis/">ns1:Server.NoService</faultcode>
<faultstring>The AXIS engine could not find a target service to
invoke! targetService is null</faultstring>
<detail>
<ns2:stackTrace xmlns:ns2="http://xml.apache.org/axis/">AxisFault
faultCode: {http://xml.apache.org/axis/}Server.NoService
faultSubcode:
faultString: The AXIS engine could not find a target service to
invoke! targetService is null
faultActor:
faultNode:
faultDetail:
The AXIS engine could not find a target service to invoke!
targetService is null
at org.apache.axis.server.AxisServer.invoke(AxisServer.java:308)
at
org.apache.axis.transport.http.SimpleAxisWorker.run(SimpleAxisWorker.java:424)
at java.lang.Thread.run(Thread.java:534)
</ns2:stackTrace>
</detail>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>
Can someone please help me with this? I have already spent so much time
trying to fix this...
thanks in advance
Sergiusz Zielinski
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]