tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Keshav Arora <karor...@gmail.com>
Subject Re: Error in Tomcat when redeploying the Web application
Date Thu, 03 Mar 2011 19:17:18 GMT
This is how the Host element is defined in Server.xml.
<Host
   appBase="webapps"
   name="localhost">
</Host>

We are getting these errors on Windows XP, Windows 2003 and on Windows 7
workstations.

War file is about 14 MB.

I'll try the approach of renaming of war file and let everyone know.

Regards,
Keshav

On Thu, Mar 3, 2011 at 11:40 AM, Konstantin Kolinko
<knst.kolinko@gmail.com>wrote:

> 2011/3/3 Keshav Arora <karora78@gmail.com>:
> >
> > Yes you are correct, we redeploy the application by copying the new
> version
> > of war file to webapps folder. I've created a build script that builds
> the
> > war file and copy it to Tomcat\webapps folder. Tomcat is installed on my
> > local machine. So file is always copied on the same files system. Process
> > was same when we were using Tomcat 6.0.29. So I'm not sure why we are
> > getting the errors with Tomcat version 7.
> >
>
> Tomcat 7 does not copy context.xml into its conf folder by default. I
> do not remember exactly, but I suppose that it now reads it from the
> war file directly. I wonder if such errors can be handled more
> gracefully.
>
> How is your <Host> defined in your server.xml ?  What is the value of
> unpackWARs attribute and other attributes of <Host>?
>
> What is your OS? How big is your war file?
>
> >  I've created a build script that builds the war file and copy it to
> Tomcat.webapps folder
>
> In the script you can split it into two steps:
>  1) copy it to "webapps/your.war.new"
>  2) rename it into "your.war"
>
> Renaming is fast so you are less likely to end up with a partial file.
>
> Best regards,
> Konstantin Kolinko
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message