You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Lothar Krenzien <lk...@web.de> on 2005/11/08 17:41:28 UTC

deploying war file

Hi there,

I'm just trying to create a war file for a web projects (with JSP's and Struts) and want to deploy it using the Tomcat manager. I configured a user for the manager like descriped in the docu, created the war file with Ant and wanted to deploy the app using the following command :
  http://remoteServer:8888/manager/reload?path=/webapp&war=file:/webapp.war


But even Tomcat returns OK nothing happens. When I try to call the app like 
  http://remoteServer:8888/webapp/Welcome.do
I get an error that the resource does not exists. This seems to be true for me because there are no files in the app-dir.  In the past all files are copied in the appBase dir of Tomcat. The  file webapp.war is located in the appBase dir of Tomcat and has the same name as the context path for the project (webapp). 
So what I'm doing wrong ?

autoDeploy and unpackWARs are set to true.

Thank, 
Lothar Krenzien

P.S. I notified that in the 'WEB-INF' dir of the war file all files exists twice or even 3-times. It seems that the war file was created wrong by Ant (maybe an error in my script). Could that be the reason ?
__________________________________________________________________________
Erweitern Sie FreeMail zu einem noch leistungsstärkeren E-Mail-Postfach!		
Mehr Infos unter http://freemail.web.de/home/landingpad/?mc=021131


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: deploying war file

Posted by Khawaja Shams <ks...@gmail.com>.
Could you include your ant script? Make sure that you have the proper
directory structure, and that you have a web.xml file in the WEB-INF file.
ANT script can definitely cause errors in the war file creation.

On 11/8/05, Lothar Krenzien <lk...@web.de> wrote:
>
>
> Hi there,
>
> I'm just trying to create a war file for a web projects (with JSP's and
> Struts) and want to deploy it using the Tomcat manager. I configured a user
> for the manager like descriped in the docu, created the war file with Ant
> and wanted to deploy the app using the following command :
> http://remoteServer:8888/manager/reload?path=/webapp&war=file:/webapp.war
>
>
> But even Tomcat returns OK nothing happens. When I try to call the app
> like
> http://remoteServer:8888/webapp/Welcome.do
> I get an error that the resource does not exists. This seems to be true
> for me because there are no files in the app-dir. In the past all files are
> copied in the appBase dir of Tomcat. The file webapp.war is located in the
> appBase dir of Tomcat and has the same name as the context path for the
> project (webapp).
> So what I'm doing wrong ?
>
> autoDeploy and unpackWARs are set to true.
>
> Thank,
> Lothar Krenzien
>
> P.S. I notified that in the 'WEB-INF' dir of the war file all files exists
> twice or even 3-times. It seems that the war file was created wrong by Ant
> (maybe an error in my script). Could that be the reason ?
> __________________________________________________________________________
> Erweitern Sie FreeMail zu einem noch leistungsstärkeren E-Mail-Postfach!
> Mehr Infos unter http://freemail.web.de/home/landingpad/?mc=021131
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>