RE: Debugging Service
It is working now. I somehow missed that I had to put code in the *Impl.java class that WSDL2Java creates. So it was calling this class and executing the code there, hence no errors. Thanks for all the help! Sarel > -Original Message- > From: Jarmo Doc [mailto:[EMAIL PROTECTED] > Sent: Thursday, January 19, 2006 7:31 AM > To: axis-user@ws.apache.org > Subject: RE: Debugging Service > > Ouch. If you haven't akready, then I'd read the FAQ about log4j at > http://wiki.apache.org/ws/FrontPage/Axis/ViewSOAPMessages. > > And I'd probably go back to basics, build the simplest possible service > with > one operation such as: > > public class echotest > { > public echotest() > { > } > public String echo(String text) > { > System.out.println("Invoked echo: " + text); > return text; > } > } > > and build, deploy, and test it. If you can't get this to output (to > Tomcat's catalina.out?) then something's seriously wrong. > > > >From: "Sarel Botha" <[EMAIL PROTECTED]> > >Reply-To: axis-user@ws.apache.org > >To: > >Subject: RE: Debugging Service > >Date: Wed, 18 Jan 2006 22:36:34 -0500 > > > > > >Both run, but they do not produce any log output. > > > >It seems like there's a problem with my service, but it's not logging > >anything. > > > >I copied log4j.properties from axis.jar to WEB-INF/classes and modified > >the first line: > >log4j.rootCategory=DEBUG, CONSOLE, LOGFILE > > > >Any other ideas? > > > >Thanks for your response, > >Sarel > > > > > > > -Original Message- > > > From: Jarmo Doc [mailto:[EMAIL PROTECTED] > > > Sent: Wednesday, January 18, 2006 8:38 PM > > > To: axis-user@ws.apache.org > > > Subject: RE: Debugging Service > > > > > > Do the samples such as the echo or stock quote services run? And do > >they > > > generate server-side log4j output? > > > > > > > > > >From: "Sarel Botha" <[EMAIL PROTECTED]> > > > >Reply-To: axis-user@ws.apache.org > > > >To: > > > >Subject: RE: Debugging Service > > > >Date: Wed, 18 Jan 2006 10:02:33 -0500 > > > > > > > > > > > >Thank you very much for your response. > > > > > > > >I have verified everything in the list you've sent. Axis is happy, > >the > > > >service is in the list of services and I can get the WSDL for it from > > > >Axis. The Axis version is 1.3. > > > > > > > >There have been no errors in the Tomcat log or anywhere else, which > >is > > > >why I have no idea where to go from here. > > > > > > > >Thanks again, > > > >Sarel > > > > > > _ > > > Express yourself instantly with MSN Messenger! Download today - it's > >FREE! > > > http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ > > > > _ > FREE pop-up blocking with the new MSN Toolbar - get it now! > http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/
RE: Debugging Service
Ouch. If you haven't akready, then I'd read the FAQ about log4j at http://wiki.apache.org/ws/FrontPage/Axis/ViewSOAPMessages. And I'd probably go back to basics, build the simplest possible service with one operation such as: public class echotest { public echotest() { } public String echo(String text) { System.out.println("Invoked echo: " + text); return text; } } and build, deploy, and test it. If you can't get this to output (to Tomcat's catalina.out?) then something's seriously wrong. From: "Sarel Botha" <[EMAIL PROTECTED]> Reply-To: axis-user@ws.apache.org To: Subject: RE: Debugging Service Date: Wed, 18 Jan 2006 22:36:34 -0500 Both run, but they do not produce any log output. It seems like there's a problem with my service, but it's not logging anything. I copied log4j.properties from axis.jar to WEB-INF/classes and modified the first line: log4j.rootCategory=DEBUG, CONSOLE, LOGFILE Any other ideas? Thanks for your response, Sarel > -Original Message- > From: Jarmo Doc [mailto:[EMAIL PROTECTED] > Sent: Wednesday, January 18, 2006 8:38 PM > To: axis-user@ws.apache.org > Subject: RE: Debugging Service > > Do the samples such as the echo or stock quote services run? And do they > generate server-side log4j output? > > > >From: "Sarel Botha" <[EMAIL PROTECTED]> > >Reply-To: axis-user@ws.apache.org > >To: > >Subject: RE: Debugging Service > >Date: Wed, 18 Jan 2006 10:02:33 -0500 > > > > > >Thank you very much for your response. > > > >I have verified everything in the list you've sent. Axis is happy, the > >service is in the list of services and I can get the WSDL for it from > >Axis. The Axis version is 1.3. > > > >There have been no errors in the Tomcat log or anywhere else, which is > >why I have no idea where to go from here. > > > >Thanks again, > >Sarel > > _ > Express yourself instantly with MSN Messenger! Download today - it's FREE! > http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ _ FREE pop-up blocking with the new MSN Toolbar get it now! http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/
RE: Debugging Service
Both run, but they do not produce any log output. It seems like there's a problem with my service, but it's not logging anything. I copied log4j.properties from axis.jar to WEB-INF/classes and modified the first line: log4j.rootCategory=DEBUG, CONSOLE, LOGFILE Any other ideas? Thanks for your response, Sarel > -Original Message- > From: Jarmo Doc [mailto:[EMAIL PROTECTED] > Sent: Wednesday, January 18, 2006 8:38 PM > To: axis-user@ws.apache.org > Subject: RE: Debugging Service > > Do the samples such as the echo or stock quote services run? And do they > generate server-side log4j output? > > > >From: "Sarel Botha" <[EMAIL PROTECTED]> > >Reply-To: axis-user@ws.apache.org > >To: > >Subject: RE: Debugging Service > >Date: Wed, 18 Jan 2006 10:02:33 -0500 > > > > > >Thank you very much for your response. > > > >I have verified everything in the list you've sent. Axis is happy, the > >service is in the list of services and I can get the WSDL for it from > >Axis. The Axis version is 1.3. > > > >There have been no errors in the Tomcat log or anywhere else, which is > >why I have no idea where to go from here. > > > >Thanks again, > >Sarel > > _ > Express yourself instantly with MSN Messenger! Download today - it's FREE! > http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
RE: Debugging Service
Do the samples such as the echo or stock quote services run? And do they generate server-side log4j output? From: "Sarel Botha" <[EMAIL PROTECTED]> Reply-To: axis-user@ws.apache.org To: Subject: RE: Debugging Service Date: Wed, 18 Jan 2006 10:02:33 -0500 Thank you very much for your response. I have verified everything in the list you've sent. Axis is happy, the service is in the list of services and I can get the WSDL for it from Axis. The Axis version is 1.3. There have been no errors in the Tomcat log or anywhere else, which is why I have no idea where to go from here. Thanks again, Sarel _ Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
RE: Debugging Service
Thank you very much for your response. I have verified everything in the list you've sent. Axis is happy, the service is in the list of services and I can get the WSDL for it from Axis. The Axis version is 1.3. There have been no errors in the Tomcat log or anywhere else, which is why I have no idea where to go from here. Thanks again, Sarel > -Original Message- > From: Jarmo Doc [mailto:[EMAIL PROTECTED] > Sent: Wednesday, January 18, 2006 9:32 AM > To: axis-user@ws.apache.org > Subject: RE: Debugging Service > > 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 > http://hostname:8080/axis/services/Version?method=getVersion > 6. List all Axis services http://hostname:8080/axis/servlet/AxisServlet > 7. Is my service deployed and active? > http://hostname:8080/axis/services/myservice > 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" <[EMAIL PROTECTED]> > >Reply-To: axis-user@ws.apache.org > >To: > >Subject: Debugging Service > >Date: Wed, 18 Jan 2006 08:19:21 -0500 > > > >Hi > > > >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(com.dv.store.bean.remote.SessionId sessionId, > >String string, String string0) throws java.rmi.RemoteException; > > public void logout(com.dv.store.bean.remote.SessionId _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 > >-pcom.dv.store.wsauto urn:dvstore com.dv.store.ws.WSEngine > > > >Then this is used to generate the client code: > >java org.apache.axis.wsdl.WSDL2Java -o autoSource/ -d Application -s > >autosource/dvstore.wsdl > > > >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 > >autosource\dvstore\deploy.wsdd > > > >The client code looks like this: > > url = new > >URL("http://localhost:8089/axis/services/DVStoreWebService";); > > WSEngine wsEngine = new > >WSEngineServiceLocator().getDVStoreWebService(url); > > > > 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? > > > >Thanks, > > > >Sarel Botha > > > > _ > Express yourself instantly with MSN Messenger! Download today - it's FREE! > http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
RE: Debugging Service
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 http://hostname:8080/axis/services/Version?method=getVersion 6. List all Axis services http://hostname:8080/axis/servlet/AxisServlet 7. Is my service deployed and active? http://hostname:8080/axis/services/myservice 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" <[EMAIL PROTECTED]> Reply-To: axis-user@ws.apache.org To: Subject: Debugging Service Date: Wed, 18 Jan 2006 08:19:21 -0500 Hi 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(com.dv.store.bean.remote.SessionId sessionId, String string, String string0) throws java.rmi.RemoteException; public void logout(com.dv.store.bean.remote.SessionId _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 -pcom.dv.store.wsauto urn:dvstore com.dv.store.ws.WSEngine Then this is used to generate the client code: java org.apache.axis.wsdl.WSDL2Java -o autoSource/ -d Application -s autosource/dvstore.wsdl 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 autosource\dvstore\deploy.wsdd The client code looks like this: url = new URL("http://localhost:8089/axis/services/DVStoreWebService";); WSEngine wsEngine = new WSEngineServiceLocator().getDVStoreWebService(url); 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? Thanks, Sarel Botha _ Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/