axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jarmo Doc" <>
Subject RE: Debugging Service
Date Wed, 18 Jan 2006 14:32:13 GMT
Here are a few very basic things that I do upfront to diagnose whether or 
not an Axis service is correctly deployed:

1. Is Apache alive? http://hostname
2. Is Tomcat alive? http://hostname:8080
3. Is Axis alive? http://hostname:8080/axis
4. Is Axis happy? http://hostname:8080/axis/happyaxis.jsp
5. Get Axis version 
6. List all Axis services http://hostname:8080/axis/servlet/AxisServlet
7. Is my service deployed and active? 
8. Get WSDL for my service http://hostname:8080/axis/services/myservice?wsdl

You should be aware that there is a bug in Axis (1.3 at least) AdminClient 
where it can fail to deploy a service yet does not indicate any error.  So 
you might think that the service has been deployed but in fact it hasn't.  I 
typically grep for my service name in server-config.wsdd and if not there 
then I assume that AdminClient failed and I check the Tomcat logs which 
usually contain an exception telling me what went wrong.

>From: "Sarel Botha" <>
>To: <>
>Subject: Debugging Service
>Date: Wed, 18 Jan 2006 08:19:21 -0500
>I'm trying to both implement a service and call it with AXIS. The client
>code executes and makes the SOAP call. I can see it with tcpmon, but the
>code on the server-side is never executed. I've attached pretty much
>everything I have.
>I have a class that implements these methods:
>     public void login( sessionId,
>String string, String string0) throws java.rmi.RemoteException;
>     public void logout( _sessionId)
>throws java.rmi.RemoteException;
>Then, this command is used to generate the wsdl:
>java org.apache.axis.wsdl.Java2WSDL -o autoSource\dvstore.wsdl -l
>http://localhost:8084/axis/services/DVStoreWebService -n urn:dvstore
> urn:dvstore
>Then this is used to generate the client code:
>java org.apache.axis.wsdl.WSDL2Java -o autoSource/ -d Application -s
>The compiled client classes are also copied to the webapp's classes dir.
>This is used to deploy the service:
>java org.apache.axis.client.AdminClient -p8084
>The client code looks like this:
>             url = new
>             WSEngine wsEngine = new
>             byte[] key = { 5, 5 };
>             SessionId sessionId = new SessionId(key);
>             wsEngine.login(sessionId, "dvstore", "dvstore");
>I've tried to get axis to log some debug info, but have been
>unsuccessful. I took the axis.jar and changed the first line to the
>following and then placed the file in the WEB-INF/classes dir. It
>created an axis.log file but it remains empty.
>log4j.rootCategory=DEBUG, CONSOLE, LOGFILE
>Any other ideas?
>Sarel Botha

Express yourself instantly with MSN Messenger! Download today - it's FREE!

View raw message