----- Original Message -----
Sent: Saturday, March 30, 2002 7:01
AM
Subject: Re: Don't Know How to Use Custom
Deployment
I stumbled across the same thing. You need to
copy all .class files your web service will need to
$TOMCAT_HOME/webapps/axis/WEB-INF/classes with the appropriate package
hierarchy of directories below that and any .jar files needed to
$TOMCAT_HOME/webapps/axis/WEB-INF/lib. The user's guide doesn't mention
this.
If you're using Ant, create a deploy target that
copies the files to where they need to be and runs AdminClient. Here's an
example target with some of the properties it uses.
<property
environment="env"/>
<property name="build.dir"
value="classes"/>
<property name="package"
value="com.ociweb.cardealer"/>
<property name="package.dir"
value="com/ociweb/cardealer"/>
<property name="src.dir"
value="src"/>
<property name="service.name"
value="CarQuote"/>
<property name="server.path"
value="axis/servlet/AxisServlet/${service.name}"/>
<target name="deploy"
depends="compile"
description="deploys the service to Tomcat">
<copy
todir="${env.TOMCAT_HOME}/webapps/axis/WEB-INF/classes"
>
<fileset
dir="${build.dir}">
<exclude name="**/*Client.class"/>
</fileset>
</copy>
<echo>Tomcat must be running!</echo>
<java
classname="org.apache.axis.client.AdminClient"
classpathref="classpath" fork="yes">
<arg
line="${src.dir}/${package.dir}/deploy.wsdd"/>
</java>
<echo>See WSDL at http://${server.host}:${server.port}/${server.path}?wsdl</echo>
</target>
----- Original Message -----
Sent: Saturday, March 30, 2002 4:17
AM
Subject: Don't Know How to Use Custom
Deployment
Dear all,
I am trying to learn how to use
custom deployment. I did that as follows, but I failed.
The following necessary files
are stored in my working directory, for example, $HOME/temp.
GreetingService.java
AxisClient.java
deploy.wsdd
Then I run the following
script,
java
org.apache.axis.client.AdminClient deploy.wsdd
Should I copy some files to
$TOMCAT_HOME/webapps/axis before that? If the parameter needed by
GreetingService.java is an Object, I need to add <beanMapping> into
the deploy.wsdd. Should I copy the Object to
$TOMCAT_HOME/webapps/axis?
I don't know how to do
that.
Thanks so much!
Li Bing
_.--"""--._
.' '-.
`.
__/__ (-. `\
\
/o `o \ \ \
\
_\__.__/ )) | |
;
.--;"
| |
\
(
`)
| |
\
_|`---'
.' _, _|
| `\
'`_\ \ '_,.-';_.-`\|
\ \_
.' '--'---;` / /
|\ |_..--'
\
\'-'.' .--'.__/
__.-;
`"` (___...---''`
\
_/_
\
/ASU\ [EMAIL PROTECTED]
\___/ 480-965-9038(L),
602-743-9767(C)
http://www.public.asu.edu/~libing