----- Original Message -----
Sent: Friday, January 03, 2003 2:34
AM
Subject: Re: Packaging Axis...
I will eventually be packing axis in my webapp as well for transportability
across servlet containers, so thanks for the pointers!
This does bring up an issue that perhaps has been addressed on this board
before: I'm assuming that most J2EE vendor implementation of Web services is
done using the Servlet container as a "host", I'm wondering if there are talks
or actions to integrate Java Web Services into the Web-app specs so that:
1) a Web service can be deployed in web.xml just like a
Servlet
2) architectures like Axis that use chain of Handlers can
reimplement this as Servlet Filters
3) Web service impl classes can
be hot-redeployed like Servlets
Perhaps an intermediate step (since getting JCP specs to change takes time)
would be for Tomcat to adopt Axis and ship it under one OOB package.
This would still require vendor-specific deployment process, but at least its
better than what it is right now, which is also vendor-specific but difficult
to integrate OOB.
Gene
Mir Shafiqul Islam <[EMAIL PROTECTED]> wrote:
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
initServlet
Initialize
Servlet
com.earthlink.pfe.servlets.InitializationServlet
1
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
>
>