You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Philippe Valle <pv...@eprocess.fr> on 2003/12/05 14:15:49 UTC
war deploy problem
*my version of TOMCAT 4.1.26 and ANT 4.1.1*
*my build.xml : *
<target name="compile" etc..... >
etc.....
<jar jarfile="${cms.home}/myapps.war">
<fileset dir="${cms.distdeploy}" includes="**" />
</jar>
>/target>
<target name="install" description="Install web application"
depends="compile">
<install url="${url}" username="${username}" password="${password}"
path="${path}" war="file://${myapps.home}/myapps.war"/>
</target>
*When i try :* ant install
install:
[install] OK - Installed application at context path /cms
[install]
BUILD SUCCESSFULL
*Ant say is right but myapps is not avalaible. **My application is not
avalaible and not in WEBAPPS directory !!!
**If i use tomcat manager interface and upload this same WAR file
generated ist working.*
*Some information about my problem ?*
Re: war deploy problem
Posted by Laurent Duperval <la...@microcell.ca>.
Philippe Valle wrote:
> My tag to deploy in web.xml is install . When i run ant -v install :
>
> Buildfile: build.xml
> Detected Java version: 1.4 in: /usr/local/src/j2sdk1.4.1_01/jre
> Detected OS: Linux
> .....
>
> install:
> [install] OK - Installed application at context path /cms
> [install]
>
> BUILD SUCCESSFUL
> Total time: 25 seconds
>
Well, the important stuff occurs where you put "....". Try this:
ant uninstall
ant -v install
to see what's going on. I suspect (and I may be wrong) that the war is
not uploaded and put in a location that Tomcat can see. I think that in
order for this to be automatic you either have to:
- modify your server.xml to tell it where to find your warfile or
- put the exploded webapp in Tomcat's default directory. I'm not sure
that's done automatically. I think that if you don't build a warfile but
do the install, the directory is copied as is to Tomcat's webapp
directory. I'm not sure what happens when you do this manually.
I'm not all that comfortable with Tomcat yet and I won't have time to
master it before January.
L
--
<Laurent Duperval> laurent.duperval@microcell.ca
CUTLER WEBSTER'S LAW
There are two sides to every argument, unless a person is personally
involved, in which case there is only one.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
Re: war deploy problem
Posted by Philippe Valle <pv...@eprocess.fr>.
Laurent Duperval wrote:
> Philippe Valle wrote:
>
>>>
>>> What does "ant -v" show?
>>
>>
>>
>>
>> -> Ant version 1.4.1 compiled on February 14 2002
>>
>> Thanks for future responses.....
>>
>
> :-) Uhm, not enough. When you run it, it should give more than that.
> It should show you everything it's doing. You need to make sure that
> it is uploading correctly. It may not be doing so.
>
> L
>
My tag to deploy in web.xml is install . When i run ant -v install :
Buildfile: build.xml
Detected Java version: 1.4 in: /usr/local/src/j2sdk1.4.1_01/jre
Detected OS: Linux
.....
install:
[install] OK - Installed application at context path /cms
[install]
BUILD SUCCESSFUL
Total time: 25 seconds
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
Re: war deploy problem
Posted by Laurent Duperval <la...@microcell.ca>.
Philippe Valle wrote:
>>
>> What does "ant -v" show?
>
>
>
> -> Ant version 1.4.1 compiled on February 14 2002
>
> Thanks for future responses.....
>
:-) Uhm, not enough. When you run it, it should give more than that. It
should show you everything it's doing. You need to make sure that it is
uploading correctly. It may not be doing so.
L
--
<Laurent Duperval> laurent.duperval@microcell.ca
Why are there flotation devices under plane seats instead of parachutes?
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
Re: war deploy problem
Posted by Philippe Valle <pv...@eprocess.fr>.
Laurent Duperval wrote:
> Philippe Valle wrote:
>
>> *Ant say is right but myapps is not avalaible. **My application is
>> not avalaible and not in WEBAPPS directory !!!
>> **If i use tomcat manager interface and upload this same WAR file
>> generated ist working.*
>>
>> *Some information about my problem ?*
>>
>
> What does "ant -v" show?
-> Ant version 1.4.1 compiled on February 14 2002
Thanks for future responses.....
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
Re: war deploy problem
Posted by Laurent Duperval <la...@microcell.ca>.
Philippe Valle wrote:
> *Ant say is right but myapps is not avalaible. **My application is not
> avalaible and not in WEBAPPS directory !!!
> **If i use tomcat manager interface and upload this same WAR file
> generated ist working.*
>
> *Some information about my problem ?*
>
What does "ant -v" show?
L
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org