All you would need to is have axis.jar and other axis related jar files in your WEB-INF/lib directory before "war"ing your web application. In the web.xml file you need to define what the service location will be and add proper entry for the servlet. You can take al the entries in web.xml file which was shipped with the axis distribution and add those in your own web.xml file.

Also if you want axis to automatically deploy your service when the war is deployed, then you need to do the following:
1) Create your own Initialization servlet which will use the AdminServlet to do the deployment
2) Supply the deploy.wsdd file in the war file or put it in a location that your servlet can read from.
3) put entries in the web.xml file so that your init servlet gets initialized at the deploy time.

Here is a sample entry for init servlet in web.xml
<servlet>
<servlet-name>initServlet</servlet-name>
<display-name>Initialize Servlet</display-name>
<servlet-class>com.earthlink.pfe.servlets.InitializationServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>

not sure if it clears up for you, you may need to readup a bit on the user guide as well and experiement before things will start to work.

Mir

James Carman wrote:

I would like to package the AxisServlet in my webapp along with other pieces
of my distributed application (Java WebStart servlet, etc.). How do I "war
up" my files so that when I place my WAR file in the webapps directory of a
server, it will already have my service deployed? I've tried supplying my
own /WEB-INF/server-config.wsdd file containing only my service, but that
didn't seem to work. When I tried to view the WSDL file, it returned a 404
error. I don't want to have to run the AdminClient. I want this thing to
work "out of the box." Any thoughts/ideas?

James Carman, President
Carman Consulting, Inc.
1218 Bob White Ct.
Edgewood, KY 41018
(513) 325-7977



Reply via email to