You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Gregg <to...@embeddedthought.com> on 2004/12/13 18:34:08 UTC

Tomcat 5.5.4 Ant Task

I recently migrated from Tomcat 5.0.x to 5.5.4.  Everything seems to 
work great except the Ant Tasks.  Deploy works just fine but when I do 
the undeploy task the folder that contains my webapp does not get 
removed.  So when I go to deploy again, it says it can't because the 
context already exists.  With 5.0.x the context was removed completely.  
Does anyone know if this is a bug or if the behavior of the ant tasks 
have changed?  I couldn't find anything specifically about this in the 
changelog.

Thanks.

Gregg

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


Log on linux

Posted by Andrea Prandini <an...@quix.it>.
Hi,

I've got some production enviorment installed on linux with Tomcat 5 and
Tomcat 4.1. I've configured tomcat for logging as configured in the standard
server.xml (using FileLogger) and everything works fine. My problem is that
i find too many log files with the extension .gz. Seems that there's a
scheduled job that compress the log files stored in logs directory. The
first time creates localhost_log.2004-11-28.txt.1.gz, after few days
localhost_log.2004-11-28.txt.1.gz.1.gz and on. Someone can help me and told
if this is a configurations of tomcat.

Thanks in advance

Andrew


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


Re: Tomcat 5.5.4 Ant Task

Posted by Siarhei Dudzin <si...@gmail.com>.
On Tue, 14 Dec 2004 10:24:33 +0100, Remy Maucherat
<re...@gmail.com> wrote:
> On Tue, 14 Dec 2004 01:13:04 +0100, Siarhei Dudzin
> <si...@gmail.com> wrote:
> > Yes, antiJARLocking and antiResourceLocking are not enabled by default.
> > Unfortunately, non of them (together and separately) did not help to
> > solve my problems...
> 
> Try harder, it works. Read the FAQ, and verify that they are actually
> enabled. If antiResourceLocking is enabled, you should notice it, as
> you'll get a cool extended coffee break while Tomcat starts, but you
> cannot possibly get any locking (unless you do really crazy stuff,
> like accessing files directly yourself using harcoded file paths).

I tried it several times and read this FAQ as well. It is enough for
me just to import Log4J in JSP (have no problems with servlets).
However, antiJARLocking didn't make any difference and placing
antiResourceLocking resulted in FileNotFoundException during
deployment.

This is the context.xml file of the application:

<Context privileged="true" antiResourceLocking="true"/>

Putting docBase attribute did not help. 

I would be very grateful if you could post a content of working
context.xml or point me to what's wrong. I digged through all the
mailing lists and forums but couldn't find the solution.

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


Re: Tomcat 5.5.4 Ant Task

Posted by Remy Maucherat <re...@gmail.com>.
On Tue, 14 Dec 2004 01:13:04 +0100, Siarhei Dudzin
<si...@gmail.com> wrote:
> Yes, antiJARLocking and antiResourceLocking are not enabled by default.
> Unfortunately, non of them (together and separately) did not help to
> solve my problems...

Try harder, it works. Read the FAQ, and verify that they are actually
enabled. If antiResourceLocking is enabled, you should notice it, as
you'll get a cool extended coffee break while Tomcat starts, but you
cannot possibly get any locking (unless you do really crazy stuff,
like accessing files directly yourself using harcoded file paths).

-- 
xxxxxxxxxxxxxxxxxxxxxxxxx
Rémy Maucherat
Developer & Consultant
JBoss Group (Europe) SàRL
xxxxxxxxxxxxxxxxxxxxxxxxx

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


Re: Tomcat 5.5.4 Ant Task

Posted by Siarhei Dudzin <si...@gmail.com>.
Yes, antiJARLocking and antiResourceLocking are not enabled by default.
Unfortunately, non of them (together and separately) did not help to
solve my problems...
 
> > I recently migrated from Tomcat 5.0.x to 5.5.4.  Everything seems to
> > work great except the Ant Tasks.  Deploy works just fine but when I do
> > the undeploy task the folder that contains my webapp does not get
> > removed.  So when I go to deploy again, it says it can't because the
> > context already exists.  With 5.0.x the context was removed completely.
> > Does anyone know if this is a bug or if the behavior of the ant tasks
> > have changed?  I couldn't find anything specifically about this in the
> > changelog.
> 
> There's a FAQ entry on this:
> http://jakarta.apache.org/tomcat/faq/windows.html#lock

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


Re: Tomcat 5.5.4 Ant Task

Posted by Remy Maucherat <re...@gmail.com>.
On Mon, 13 Dec 2004 11:34:08 -0600, Gregg <to...@embeddedthought.com> wrote:
> I recently migrated from Tomcat 5.0.x to 5.5.4.  Everything seems to
> work great except the Ant Tasks.  Deploy works just fine but when I do
> the undeploy task the folder that contains my webapp does not get
> removed.  So when I go to deploy again, it says it can't because the
> context already exists.  With 5.0.x the context was removed completely.
> Does anyone know if this is a bug or if the behavior of the ant tasks
> have changed?  I couldn't find anything specifically about this in the
> changelog.

There's a FAQ entry on this:
http://jakarta.apache.org/tomcat/faq/windows.html#lock

-- 
xxxxxxxxxxxxxxxxxxxxxxxxx
Rémy Maucherat
Developer & Consultant
JBoss Group (Europe) SàRL
xxxxxxxxxxxxxxxxxxxxxxxxx

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