I have deployed a web service in AXIS under Tomcat and it works well. Now, I want to deploy the same service as a deployable application in production where I do not have AXIS. For this I created a war with lib and web.xml from AXIS. When I start Tomcat it comes up without any errors, but how do I deploy this application in Tomcat? Do I need a server-config.wsdd? What should go in the web.xml ( currently it is AXIS default web.xml). Do I need to use java org.apache.axis.client.AdminClient for deployment? If yes, then how?
add the classes that make up your WS (in either the lib or the classes directory)
include the server-config.wsdd file that Axis created on your development machine (there may be some settings -like directories- that pertain to that particular machine, and which you need to adapt for the production server)
leave the web.xml file as it is
[ March 20, 2007: Message edited by: Ulf Dittmer ]
Yes, the URLs need to match, so the web app needs to be called "axis".
And you need to use not the default Axis server-config.wsdd, but the one created by Axis after you have deployed your WS. Axis changes this file to include information for each WS that gets deployed. [ March 20, 2007: Message edited by: Ulf Dittmer ]
If that's the address you used during development, then it should work in production. Of course, the server name needs to be adapted.
And I don't understand what you mean by including the server-config.wsdd after it was deployed. Isn't it a part of the axis.war which has to be deployed ?
Yes it is, but the file that needs to be included in axis.war is not the one that comes with the Axis distribution (which is how I interpreted your words "Default AXIS server-config.wsdd"), but the one that Axis created on your development machine after you deployed the WS (not axis itself). If you're in doubt which one to use, open it and take a peek it - the correct one should have plenty of stuff in it that relates to your WS. [ March 20, 2007: Message edited by: Ulf Dittmer ]