You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by "Barry L. Kline" <bl...@attglobal.net> on 2000/12/17 01:23:08 UTC

Ant "dist" creates bad WAR file?

I recently upgraded from Tomcat 3.1 to Tomcat 3.2.  I discovered the
requisite changes required to my build.xml file to allow the included
version of ant to do its job.  Everything is working except ./build
dist.   Resulting war files fail to build the correct directory
structure under $TOMCAT_HOME.  I'm unable to get the "myapp" sample
application to work properly.

If I go to $TOMCAT_HOME/doc/appdev/sample and issue:  ./build.sh  all,
everything compiles fine.  If I start tomcat, I can successfully
access the servlet.  If I then do a "./build.sh dist" and move the
resulting war file into the webapps directory of tomcat, shut down
tomcat, delete the myapp directory, then restart tomcat, the resulting
directly precludes running the app.  There isn't even a
WEB-INF/classes directory created.

This all worked fine for me in 3.1.  Can anyone offer an explanation?

TIA,

Barry

Re: Ant "dist" creates bad WAR file?

Posted by "Barry L. Kline" <bl...@attglobal.net>.
Peter Donald wrote:
> 
> This is ant-user list for information about how to run/setup the ant build
> dependency tool. For tomcat specific questions you may wish to ask on the
> tomcat lists as they will probably be more helpful ;)
> 
> Cheers,
> 
> Pete
> 

I understood that this was the ant-user list.  However, since Tomcat
appears to use ant to do this, I thought it best to try here.  I've
reposted and moved this to Tomcat, until someone tells me that it's an
ant problem.

Barry

Re: Ant "dist" creates bad WAR file?

Posted by Peter Donald <do...@apache.org>.
At 07:23  16/12/00 -0500, Barry L. Kline wrote:
>I recently upgraded from Tomcat 3.1 to Tomcat 3.2.  I discovered the
>requisite changes required to my build.xml file to allow the included
>version of ant to do its job.  Everything is working except ./build
>dist.   Resulting war files fail to build the correct directory
>structure under $TOMCAT_HOME.  I'm unable to get the "myapp" sample
>application to work properly.
>
>If I go to $TOMCAT_HOME/doc/appdev/sample and issue:  ./build.sh  all,
>everything compiles fine.  If I start tomcat, I can successfully
>access the servlet.  If I then do a "./build.sh dist" and move the
>resulting war file into the webapps directory of tomcat, shut down
>tomcat, delete the myapp directory, then restart tomcat, the resulting
>directly precludes running the app.  There isn't even a
>WEB-INF/classes directory created.
>
>This all worked fine for me in 3.1.  Can anyone offer an explanation?

This is ant-user list for information about how to run/setup the ant build
dependency tool. For tomcat specific questions you may wish to ask on the
tomcat lists as they will probably be more helpful ;)

Cheers,

Pete

*-----------------------------------------------------*
| "Faced with the choice between changing one's mind, |
| and proving that there is no need to do so - almost |
| everyone gets busy on the proof."                   |
|              - John Kenneth Galbraith               |
*-----------------------------------------------------*