Adhamh,

Have you tried using the AdminClient tool to deploy and/or view your
deployed services?

To deploy use:
java org.apache.axis.client.AdminClient -l
http://host:port/axis/classes/serviceName path\to\deploy.wsdd

Then to list the deployed services use:
java org.apache.axis.client.AdminClient list-l
http://host:port/axis/classes/serviceName

(watch out for line wrapping on both of the above)

Another acid test (and as I have found a much easier way to deploy services)
is to take a look at the server-config.wsdd file. This is the file that axis
uses to hold the descriptions of all the deployed services. On a windows
machine it resides in TomcatDir/webapps/axis/WEB-INF.

Look for a <service> tag which specifies the name of your service. If there
isn't one then your service is not deployed. You can manually edit this file
to deploy your services (which I find easier than messing around with
AdminClient), though you will need to restart tomcat to affect any changes,
I believe.

As an example, you might add the following to the server-config.wsdd file to
deploy a new service:
<service name="TestService" provider="java:RPC">
        <parameter name="allowedMethods" value="aMethod anotherMethod"/>
        <parameter name="className" value="org.my.package.TestService"/>
</service>

Its as simple as that (don't forget the Tomcat restart though!). Any other
problems just ask again.

HTH
Jim

> -----Original Message-----
> From: Adhamh Findlay [mailto:[EMAIL PROTECTED]
> Sent: 05 August 2003 20:02
> To: [EMAIL PROTECTED]
> Subject: Can't list services after deploying test class
>
>
> Hello,
>
> I'm trying to deploy a simple test class, but I can't seem to get it to
> work.  I can deploy example3 from the user guide using
> deploy.wsdd with any
> problems, but I can't deploy any of my own classes.
>
> Currently, when I got to http://localhost:8080/axis/servlet/AxisServlet to
> view the deployed services, I get a blank page.  Okay is not completely
> blank here is all it contains:
>
> "And now... Some Services"
>
> I have in the past gotten class not found errors, but I seem to have
> corrected those...  :-)
>
> Does anyone have suggestion on what could cause this?  I've pasted in my
> deploy.wsdd file and the path to the class.
>
> Thanks,
>
> Adhamh
>
> # pwd
> /usr/local/jakarta-tomcat-4.1.24/webapps/axis/WEB-INF/classes/test
>
> # cd /usr/local/jakarta-tomcat-4.1.24/webapps/axis/WEB-INF/classes/test
>
> # ls -al
> total 8
> drwxr-xr-x  4 root  wheel  136 Aug  5 13:46 .
> drwxr-xr-x  4 root  wheel  136 Aug  5 13:44 ..
> -rw-r--r--  1 root  wheel  472 Aug  5 13:51 SoapTest.class
> -rw-r--r--  1 root  wheel  125 Aug  5 13:51 SoapTest.java
>
> <deployment xmlns="http://xml.apache.org/axis/wsdd/";
>             xmlns:java="http://xml.apache.org/axis/wsdd/providers/java";>
>  <service name="SoapTest" provider="java:RPC">
>   <parameter name="className" value="test.SoapTest"/>
>   <parameter name="allowedMethods" value="*"/>
>  </service>
> </deployment>
>


Reply via email to