You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Robert Herold <he...@cotagesoft.com> on 2002/09/27 01:19:45 UTC
deployment without running tomcat
In my build process, I first use Ant to build/install webapps to
tomcat/webapps, then start up tomcat, then use Ant again to deploy the
webapps. It would be more convenient to be able to deploy the webapps
without having to start tomcat first, so that it could all be done in one
step.
Is there a known way to use the AdminClient without first starting Tomcat
(or whatever servlet container is hosting the Axis webservice)?
----------
Robert Herold
Cotagesoft, Inc.
650 474 9013 x808
Re: deployment without running tomcat
Posted by Steve Loughran <st...@iseran.com>.
----- Original Message -----
From: "Robert Herold" <he...@cotagesoft.com>
To: <ax...@xml.apache.org>
Sent: Friday, September 27, 2002 00:19
Subject: deployment without running tomcat
> In my build process, I first use Ant to build/install webapps to
> tomcat/webapps, then start up tomcat, then use Ant again to deploy the
> webapps. It would be more convenient to be able to deploy the webapps
> without having to start tomcat first, so that it could all be done in one
> step.
>
> Is there a known way to use the AdminClient without first starting Tomcat
> (or whatever servlet container is hosting the Axis webservice)?
>
-deploy to a running tomcat from ant instead. Well documented in java
development with ant by erik and me; pull the sample build files from
manning.com/antbook (chapters 7 & um, 17 or 18) for examples. There is a
tomcat deploy in axis/java/xmls, but it is set up to get out stuff into
common/lib which only gets picked up when catalina restarts.
-steve
RE: deployment without running tomcat
Posted by Robert Herold <he...@cotagesoft.com>.
Thanks, this works quite well. I now have my ant build generating the
server-config.wsdd files for all the services completely independently of
tomcat.
The only thing that would make this better is if the AdminClient had a
parameter to specify where to put the server-config.wsdd. Since it puts it
in the working directory(cwd), I either have to set the cwd before running
AdminClient, or copy it from cwd afterwards.
If anyone else is curious, I have:
<target name="bobh" depends="jar"
description="Prepare the bobh testing webapp in the build
directory" >
<!-- other steps omitted for brevity -->
<antcall target="axis-deploy">
<param name="axis-deploy-config-file"
value="${tst.webservices.dir}/bobh/deploy.wsdd"/>
<param name="axis-deploy-target-directory"
value="${build.test.webapps}/bobh/WEB-INF"/>
</antcall>
</target>
and
<target name="check-axis-deploy-needed"
description="utility for checking if axis deploy is up to date" >
<uptodate property="axis-deploy-not-required"
srcfile="${axis-deploy-config-file}"
targetfile="${axis-deploy-target-directory}/server-config.wsdd"/>
</target>
<target name="axis-deploy" depends="check-axis-deploy-needed"
unless="axis-deploy-not-required"
description="antcall-able target to do Axis deployment" >
<java classname="org.apache.axis.client.AdminClient" fork="yes">
<arg value="-l local:"/>
<arg value="${axis-deploy-config-file}"/>
<classpath refid="build.classpath" />
</java>
<move file="${basedir}/server-config.wsdd"
todir="${axis-deploy-target-directory}"/>
</target>
-----Original Message-----
From: axis-user-return-7505-herold=cotagesoft.com@xml.apache.org
[mailto:axis-user-return-7505-herold=cotagesoft.com@xml.apache.org]On
Behalf Of Ulrich Winter
Sent: Friday, September 27, 2002 12:44 AM
To: axis-user@xml.apache.org
Subject: Re: deployment without running tomcat
Robert,
> Is there a known way to use the AdminClient without first starting Tomcat
> (or whatever servlet container is hosting the Axis webservice)?
deployment of web services in axis needs two parts:
- make the classes available in the servers class path
(which is done in your first step)
- fill in the needed entries into server-config.wsdd
(this is what AdminClient realy does)
You may try the following to achieve deployment without a running servlet
engine:
Use AdminClient and specify a "local:" scheme in the -l option instead of
the "http:" scheme.
Look into java/tests/functional/TestTransportSample.java for an example.
This creates an Axis engine inside the calling process and writes a
server-config.wsdd file into the curent working directory.
Just try to copy this file to your WEB-INF/ directory.
By,
Uli
Re: deployment without running tomcat
Posted by Ulrich Winter <ul...@gmx.de>.
Robert,
> Is there a known way to use the AdminClient without first starting Tomcat
> (or whatever servlet container is hosting the Axis webservice)?
deployment of web services in axis needs two parts:
- make the classes available in the servers class path
(which is done in your first step)
- fill in the needed entries into server-config.wsdd
(this is what AdminClient realy does)
You may try the following to achieve deployment without a running servlet
engine:
Use AdminClient and specify a "local:" scheme in the -l option instead of
the "http:" scheme.
Look into java/tests/functional/TestTransportSample.java for an example.
This creates an Axis engine inside the calling process and writes a
server-config.wsdd file into the curent working directory.
Just try to copy this file to your WEB-INF/ directory.
By,
Uli
Re: deployment without running tomcat
Posted by Steve Loughran <st...@iseran.com>.
----- Original Message -----
From: "Robert Herold" <he...@cotagesoft.com>
To: <ax...@xml.apache.org>
Sent: Friday, September 27, 2002 20:31
Subject: RE: deployment without running tomcat
> Deploying w/Ant: I just run the admin client by invoking the following
> target:
>
> <target name="deploy-bobh"
> description="Deploy the bobh testing Axis web service" >
> <java classname="org.apache.axis.client.AdminClient" fork="yes">
> <arg value="-l
> http://localhost:8080/bobh/servlet/AxisServlet/AdminService"/>
> <arg value="${tst.webservices.dir}/bobh/deploy.wsdd"/>
> <classpath refid="build.classpath" />
> </java>
> </target>
>
> where ${tst.webservices.dir} and build.classpath are appropriately defined
> elsewhere. This target requires that Tomcat is running.
>
there is an <axisadmin> task in the ant-tasks.jar you can build from cvs to
do this in process; docs still on my todo list.
RE: deployment without running tomcat
Posted by Robert Herold <he...@cotagesoft.com>.
Deploying w/Ant: I just run the admin client by invoking the following
target:
<target name="deploy-bobh"
description="Deploy the bobh testing Axis web service" >
<java classname="org.apache.axis.client.AdminClient" fork="yes">
<arg value="-l
http://localhost:8080/bobh/servlet/AxisServlet/AdminService"/>
<arg value="${tst.webservices.dir}/bobh/deploy.wsdd"/>
<classpath refid="build.classpath" />
</java>
</target>
where ${tst.webservices.dir} and build.classpath are appropriately defined
elsewhere. This target requires that Tomcat is running.
-- bob
-----Original Message-----
From: axis-user-return-7507-herold=cotagesoft.com@xml.apache.org
[mailto:axis-user-return-7507-herold=cotagesoft.com@xml.apache.org]On
Behalf Of Tom Zschaage
Sent: Friday, September 27, 2002 2:03 AM
To: axis-user@xml.apache.org
Subject: AW: deployment without running tomcat
Sorry Robert, I don't have an answer but a question. How do you deploy
your service using ant?
Thanks for help
Tom
-----Ursprüngliche Nachricht-----
Von: Robert Herold [mailto:herold@cotagesoft.com]
Gesendet: Freitag, 27. September 2002 01:20
An: axis-user@xml.apache.org
Betreff: deployment without running tomcat
In my build process, I first use Ant to build/install webapps to
tomcat/webapps, then start up tomcat, then use Ant again to deploy the
webapps. It would be more convenient to be able to deploy the webapps
without having to start tomcat first, so that it could all be done in
one
step.
Is there a known way to use the AdminClient without first starting
Tomcat
(or whatever servlet container is hosting the Axis webservice)?
----------
Robert Herold
Cotagesoft, Inc.
650 474 9013 x808
AW: deployment without running tomcat
Posted by Tom Zschaage <To...@first.fraunhofer.de>.
Sorry Robert, I don't have an answer but a question. How do you deploy
your service using ant?
Thanks for help
Tom
-----Ursprüngliche Nachricht-----
Von: Robert Herold [mailto:herold@cotagesoft.com]
Gesendet: Freitag, 27. September 2002 01:20
An: axis-user@xml.apache.org
Betreff: deployment without running tomcat
In my build process, I first use Ant to build/install webapps to
tomcat/webapps, then start up tomcat, then use Ant again to deploy the
webapps. It would be more convenient to be able to deploy the webapps
without having to start tomcat first, so that it could all be done in
one
step.
Is there a known way to use the AdminClient without first starting
Tomcat
(or whatever servlet container is hosting the Axis webservice)?
----------
Robert Herold
Cotagesoft, Inc.
650 474 9013 x808