Re: slow servlet filter for ByteArrayOutputStream response Wrapper

2010-06-01 Thread Mark Thomas
On 01/06/2010 03:53, Manny Mondeo wrote: Hi , I have written a filter that strips the response of some html tags. The filter is working and executing around 30milliseconds. The problem is that the request takes around 30 seconds to load this in a browser. The filter gets executed fast but

JAAS Realm Authentication with Kerberos

2010-06-01 Thread geofrey rainey
Hello, I’ve been following this fairly self-explanatory document on Kerberos authentication against an AD. If I hard-code the u...@realm in the web.xml file, authentication is successful. However obviously what one really wants is the actual user credentials as stored in the Principals class,

AW: Logger / Context

2010-06-01 Thread Stefan Rainer
Hello, thank you for your reply but I do not manage to get my desired result. We have several axis*** servlets installed in /webapps of Tomcat 6.0*. (Let's call it axis1 to axis100 for this explanation.) In Tomcat 5.0* we had different contexts with loggers defined in server.xml, thus the

Re: Gracefull restart of tomcat

2010-06-01 Thread Petr Hracek
Hello *, Manager application is not installed on the system. You mentioned that it depends on the configuration. Configuration of tomcat which is used is delivered by OS. In the /etc/tomcat5/base/Catalina/localhost is only relevant XML file. which contains path and docbase where tomcat can find

Re: AW: Logger / Context

2010-06-01 Thread Pid *
On 1 Jun 2010, at 09:08, Stefan Rainer s.rai...@teamaxess.com wrote: Hello, thank you for your reply but I do not manage to get my desired result. We have several axis*** servlets installed in /webapps of Tomcat 6.0*. (Let's call it axis1 to axis100 for this explanation.) In Tomcat 5.0*

Re: slow servlet filter for ByteArrayOutputStream response Wrapper

2010-06-01 Thread Konstantin Kolinko
2010/6/1 Manny Mondeo manny...@yahoo.com: httpRes.setContentLength(content.toString().length()); Also, the above, or simplier content.length(), will give you the length measured in characters, but Content-Length must be the length measured in bytes. For a multi-byte charset such as

Re: AW: Logger / Context

2010-06-01 Thread Felix Schumacher
Hi Pid, Am Dienstag, den 01.06.2010, 10:40 +0100 schrieb Pid *: On 1 Jun 2010, at 09:08, Stefan Rainer s.rai...@teamaxess.com wrote: Hello, thank you for your reply but I do not manage to get my desired result. We have several axis*** servlets installed in /webapps of Tomcat 6.0*.

AW: AW: Logger / Context

2010-06-01 Thread Stefan Rainer
Hello, thank you, i managed to get exactly what I wanted with the gloabal logging.properties! BUT ANOTHER QUESTION: I would like to addionally compress (zip) old logs and delete them after (e.g.) 30 days. Is there any existing automatism in tonmcat / java logging? (Using Tomcat 6 on Windows

Re: Gracefull restart of tomcat

2010-06-01 Thread Pid
On 01/06/2010 11:31, Petr Hracek wrote: Hello *, I have make a really big error. Tomcat which is installed on the our systems is: tomcat5-5.5.27-0.8.39 If I have in /etc/tomcat5/base/Catalina/localhost file like foo.xml wich referes to /opt/foo/servlet. After uploading new jar files to

Re: Gracefull restart of tomcat

2010-06-01 Thread Petr Hracek
Hello *, my context file foo.xml is: ?xml version='1.0' encoding='utf-8'? Context path=/foo docBase=/opt/foo/servlet allowLinking=true /Context my server.xml file is: Server port=8005 shutdown=SHUTDOWN Listener className=org.apache.catalina.core.AprLifecycleListener / Listener

How do we configure tomcat on IPv6 machine?

2010-06-01 Thread stefan.saye
Hi, I have install tomcat 6 and check my pc have support ipv6 . I can see It works! page through http://127.0.0.1 :8080 http://127.0.0.1%20:8080 , but I can't See the page through my ipv6 address ? How do we configure tomcat on IPv6 machine? What changes need to be done? I am install

Problems after upgrading to Tomcat6

2010-06-01 Thread David Karlsen
Dear list I have recently been running Tomcat 5 on my server, without problems. After an upgrade to Tomcat 6, however I get errors. During the upgrade I manually removed all the Tomcat 5 packages, and dependent packages before I installed new Tomcat 6 packages from the jpackage.org repo. The

Re: FW: How do we configure tomcat on IPv6 machine?

2010-06-01 Thread Pid
On 01/06/2010 13:19, stefan.saye wrote: Hi, I have install tomcat 6 and check my pc have support ipv6 . I can see It works! page through http://127.0.0.1 :8080 http://127.0.0.1%20:8080 , but I can't See the page through my ipv6 address ? How do we configure tomcat on IPv6

Re: Problems after upgrading to Tomcat6

2010-06-01 Thread Pid
On 01/06/2010 13:20, David Karlsen wrote: Dear list I have recently been running Tomcat 5 on my server, without problems. After an upgrade to Tomcat 6, however I get errors. During the upgrade I manually removed all the Tomcat 5 packages, and dependent packages before I installed new

RE: FW: How do we configure tomcat on IPv6 machine?

2010-06-01 Thread stefan.saye
Using CATALINA_BASE: /usr/share/tomcat6 Using CATALINA_HOME: /usr/share/tomcat6 Using CATALINA_TMPDIR: /usr/share/tomcat6/temp Using JRE_HOME:/usr Using CLASSPATH: /usr/share/tomcat6/bin/bootstrap.jar Server version: Apache Tomcat/6.0.24 Server built: March 31 2010 0917 Server

Re: FW: How do we configure tomcat on IPv6 machine?

2010-06-01 Thread Pid
On 01/06/2010 13:57, stefan.saye wrote: Using CATALINA_BASE: /usr/share/tomcat6 Using CATALINA_HOME: /usr/share/tomcat6 Using CATALINA_TMPDIR: /usr/share/tomcat6/temp Using JRE_HOME:/usr Using CLASSPATH: /usr/share/tomcat6/bin/bootstrap.jar Server version: Apache

RE: Problems after upgrading to Tomcat6

2010-06-01 Thread Caldarale, Charles R
From: David Karlsen [mailto:dav...@delonic.no] Subject: Problems after upgrading to Tomcat6 parent=gnu.gcj.runtime.SystemClassLoader You need to use a real JVM (HotSpot, JRockit, IBM), not a toy one. Remove gcj from your system as quickly as possible. - Chuck THIS COMMUNICATION MAY

Re: Gracefull restart of tomcat

2010-06-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Petr, On 6/1/2010 6:59 AM, Petr Hracek wrote: my context file foo.xml is: ?xml version='1.0' encoding='utf-8'? Context path=/foo docBase=/opt/foo/servlet allowLinking=true The path attribute is illegal in all versions of Tomcat when using an

Re: How do we configure tomcat on IPv6 machine?

2010-06-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Stefan, On 6/1/2010 8:11 AM, stefan.saye wrote: I have install tomcat 6 and check my pc have support ipv6 . I can see It works! page through http://127.0.0.1 :8080 http://127.0.0.1%20:8080 , but I can't See the page through my ipv6 address ?

RE: Gracefull restart of tomcat

2010-06-01 Thread Caldarale, Charles R
From: Christopher Schultz [mailto:ch...@christopherschultz.net] Subject: Re: Gracefull restart of tomcat With autoDeploy=true, you ought to just be able to update your .class or .jar files and Tomcat will automatically restart the webapp. Not quite; files to be monitored for changes have to

Re: How do we configure tomcat on IPv6 machine?

2010-06-01 Thread Pid
On 01/06/2010 14:27, Christopher Schultz wrote: Stefan, On 6/1/2010 8:11 AM, stefan.saye wrote: I have install tomcat 6 and check my pc have support ipv6 . I can see It works! page through http://127.0.0.1 :8080 http://127.0.0.1%20:8080 , but I can't See the page through my ipv6

Re: Gracefull restart of tomcat

2010-06-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, On 6/1/2010 9:33 AM, Caldarale, Charles R wrote: From: Christopher Schultz [mailto:ch...@christopherschultz.net] Subject: Re: Gracefull restart of tomcat With autoDeploy=true, you ought to just be able to update your .class or .jar files

Re: AW: AW: Logger / Context

2010-06-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Stefan, On 6/1/2010 6:38 AM, Stefan Rainer wrote: thank you, i managed to get exactly what I wanted with the [global] logging.properties! Great! BUT ANOTHER QUESTION: I would like to addionally compress (zip) old logs and delete them after

Re: problems at thejarbar.org

2010-06-01 Thread yuccanel
According to the stack trace I posted, is it possible that hibernate could also be a seperate casue of transient mysql exception or does this only need to be fixed in tomcat? -- From: Mark Eggers its_toas...@yahoo.com Sent: Monday, May 31, 2010

Re: slow servlet filter for ByteArrayOutputStream response Wrapper

2010-06-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Konstantin, On 6/1/2010 5:41 AM, Konstantin Kolinko wrote: 2010/6/1 Manny Mondeo manny...@yahoo.com: httpRes.setContentLength(content.toString().length()); Also, the above, or simplier content.length(), will give you the length

RE: Gracefull restart of tomcat

2010-06-01 Thread Caldarale, Charles R
From: Christopher Schultz [mailto:ch...@christopherschultz.net] Subject: Re: Gracefull restart of tomcat My experience is that if a .class file has been loaded by the WebappClassLoader and it gets updated, the webapp is reloaded. Odd, because I observer no such behavior (just tried it on

Re: problems at thejarbar.org

2010-06-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Yucca Nel, On 5/30/2010 1:53 PM, Yucca Nel wrote: Ok I need to keep connection open to avoid exceeption but have found this is deprecated autoReconnect=true can someone provide up to date strategy for dealing with this? Don't use

RE: SQLNestedException: Cannot create PoolableConnectionFactory

2010-06-01 Thread Propes, Barry L
I got a similar error when I inadvertently had the dbcp jar file placed in multiple directories. You might try checking to ensure that it's not placed in more than one folder. -Original Message- From: Pid * [mailto:p...@pidster.com] Sent: Monday, May 31, 2010 9:16 AM To: Tomcat Users

Re: possible to define/deploy a context but not start it?

2010-06-01 Thread Jeff Ramin
On 05/29/2010 08:30 AM, Konstantin Kolinko wrote: 2010/5/29 Pidp...@pidster.com: On 28/05/2010 19:07, Jeff Ramin wrote: Running tomcat 5.5.20. Is there a way to configure tomcat such that it is aware of a webapp (context), but doesn't start it (process requests) when tomcat starts?

Re: possible to define/deploy a context but not start it?

2010-06-01 Thread Pid
On 01/06/2010 17:36, Jeff Ramin wrote: On 05/29/2010 08:30 AM, Konstantin Kolinko wrote: 2010/5/29 Pidp...@pidster.com: On 28/05/2010 19:07, Jeff Ramin wrote: Running tomcat 5.5.20. Is there a way to configure tomcat such that it is aware of a webapp (context), but doesn't start

RE: possible to define/deploy a context but not start it?

2010-06-01 Thread Caldarale, Charles R
From: Jeff Ramin [mailto:jeff.ra...@singlewire.com] Subject: Re: possible to define/deploy a context but not start it? Deploying a webapplication, though, always starts it. If a webapplication is included as aContext element in server.xml (usually not recommended), it is always

Re: slow servlet filter for ByteArrayOutputStream response Wrapper

2010-06-01 Thread Konstantin Kolinko
2010/6/1 Christopher Schultz ch...@christopherschultz.net: On 6/1/2010 5:41 AM, Konstantin Kolinko wrote: 2010/6/1 Manny Mondeo manny...@yahoo.com:          httpRes.setContentLength(content.toString().length()); Also, the above, or simplier content.length(), will give you the length measured

Re: possible to define/deploy a context but not start it?

2010-06-01 Thread Jeff Ramin
On 06/01/2010 11:45 AM, Pid wrote: On 01/06/2010 17:36, Jeff Ramin wrote: On 05/29/2010 08:30 AM, Konstantin Kolinko wrote: 2010/5/29 Pidp...@pidster.com: On 28/05/2010 19:07, Jeff Ramin wrote: Running tomcat 5.5.20. Is there a way to configure tomcat such that

Re: possible to define/deploy a context but not start it?

2010-06-01 Thread Jeff Ramin
On 06/01/2010 11:46 AM, Caldarale, Charles R wrote: From: Jeff Ramin [mailto:jeff.ra...@singlewire.com] Subject: Re: possible to define/deploy a context but not start it? Deploying a webapplication, though, always starts it. If a webapplication is included as aContext element in

RE: possible to define/deploy a context but not start it?

2010-06-01 Thread Caldarale, Charles R
From: Jeff Ramin [mailto:jeff.ra...@singlewire.com] Subject: Re: possible to define/deploy a context but not start it? Yes, I've done this. However, I don't see a way to deploy/start my app. If I start jconsole when starting tomcat like this, the WebModule beans I would use to deploy/start

Re: possible to define/deploy a context but not start it?

2010-06-01 Thread Jeff Ramin
On 06/01/2010 01:20 PM, Caldarale, Charles R wrote: From: Jeff Ramin [mailto:jeff.ra...@singlewire.com] Subject: Re: possible to define/deploy a context but not start it? Yes, I've done this. However, I don't see a way to deploy/start my app. If I start jconsole when starting tomcat like this,

apache2 tomcat6.0.26 mod_jk

2010-06-01 Thread Rathna
Let's say I own two websites. 1) batman.com 2) superman.com I have two web applications hosted in tomcat6 under webapps. 1) /usr/local/tomcat6/webapps/ batman 2) /usr/local/tomcat6/webapps/superman I would like to configure apache in such a way that when I type the url http://www.batman.com the

apache2 tomcat6.0.26 mod_jk

2010-06-01 Thread Rathna
Let's say I own two websites. 1) batman.com 2) superman.com I have two web applications hosted in tomcat6 under webapps. 1) /usr/local/tomcat6/webapps/ batman 2) /usr/local/tomcat6/webapps/superman I would like to configure apache in such a way that when I type the url http://www.batman.com the

RE: apache2 tomcat6.0.26 mod_jk

2010-06-01 Thread Caldarale, Charles R
From: Rathna [mailto:gente...@gmail.com] Subject: apache2 tomcat6.0.26 mod_jk Let's say I own two websites. 1) batman.com 2) superman.com I have two web applications hosted in tomcat6 under webapps. 1) /usr/local/tomcat6/webapps/batman 2) /usr/local/tomcat6/webapps/superman Don't know

Out of Memory exception (hotspot compilation)

2010-06-01 Thread Will Glass-Husain
Hi, I noticed in recent emails that Leon Kolchinsky was running Tomcat and Java requested 2GB of memory unexpectedly then died due to an out of memory exception. Bizarrely, the same thing happened to me today with very similar symptoms. Specifically, the JVM requested 8GB of memory while hotspot

RE: Out of Memory exception (hotspot compilation)

2010-06-01 Thread Caldarale, Charles R
From: Will Glass-Husain [mailto:wglasshus...@gmail.com] Subject: Out of Memory exception (hotspot compilation) Specifically, the JVM requested 8GB of memory while hotspot was trying to compile the exact same Velocity/Foreach method as Leon's example. I'm running 64 bit JDK 1.6.0_18-b07

Re: problems at thejarbar.org

2010-06-01 Thread Mark Eggers
Chris, based on what you're saying and the server.xml posted earlier in this thread, the following should be done? 1. Remove the JDBCRelm from the Engine node 2. Create a GlobalNamingResources Resource entry with the following: Resource name=jdbc/auth description=The Jar Bar user

Re: Out of Memory exception (hotspot compilation)

2010-06-01 Thread Will Glass-Husain
The JDK has been the same since early February. I don't think there's been any other system upgrades. (it's possible there was a upgrade to the OS I'm not aware of, but definitely not the JDK). WILL On Tue, Jun 1, 2010 at 12:45 PM, Caldarale, Charles R chuck.caldar...@unisys.com wrote:

Re: apache2 tomcat6.0.26 mod_jk

2010-06-01 Thread Rathna
Thank you. That solved my problem. Regards, Rathna On Tue, Jun 1, 2010 at 10:40 AM, Caldarale, Charles R chuck.caldar...@unisys.com wrote: From: Rathna [mailto:gente...@gmail.com] Subject: apache2 tomcat6.0.26 mod_jk Let's say I own two websites. 1) batman.com 2) superman.com

tomcat and log4j version - any dependency issues?

2010-06-01 Thread Johan Martinez
Hi, I am using Tomcat 5.5.28 with JDK 1.5 (and 1.6 on different machine). Right now I have log4j 1.2 version, but I would like use log4j 1.3+ now. Are there any dependency/support issues that I should consider? -- jM.

RE: tomcat and log4j version - any dependency issues?

2010-06-01 Thread Martin Gainty
i downloaded the latest pom.xml from http://svn.apache.org/viewvc/logging/log4j/tags/v1_2_15_rc6/pom.xml?view=co for log4j plugin and i see 5 dependencies: dependencies dependency groupIdant/groupId artifactIdant-nodeps/artifactId version1.6.5/version /dependency dependency

Re: apache2 tomcat6.0.26 mod_jk

2010-06-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Rathna, On 6/1/2010 2:35 PM, Rathna wrote: Let's say I own two websites. 1) batman.com 2) superman.com I have two web applications hosted in tomcat6 under webapps. 1) /usr/local/tomcat6/webapps/ batman 2) /usr/local/tomcat6/webapps/superman

Re: tomcat and log4j version - any dependency issues?

2010-06-01 Thread Rainer Jung
On 01.06.2010 23:07, Johan Martinez wrote: Hi, I am using Tomcat 5.5.28 with JDK 1.5 (and 1.6 on different machine). Right now I have log4j 1.2 version, but I would like use log4j 1.3+ now. Are there any dependency/support issues that I should consider? Citing from the Log4J homepage: ===

Re: problems at thejarbar.org

2010-06-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mark, On 6/1/2010 3:58 PM, Mark Eggers wrote: Chris, based on what you're saying and the server.xml posted earlier in this thread, the following should be done? 1. Remove the JDBCRelm from the Engine node 2. Create a GlobalNamingResources

Re: apache2 tomcat6.0.26 mod_jk

2010-06-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, Gah. I foolishly responded to the first of two identical posts, and thus repeated what others said. Yet another reason to only post once: even people with the answers can look like idiots. :( - -chris -BEGIN PGP SIGNATURE- Version:

Re: tomcat and log4j version - any dependency issues?

2010-06-01 Thread Johan Martinez
Thanks for sharing this info. I was considering 1.3 version for better management - purging log files before certain date, log4j 1.3 provides max. backup index option with DailyRollingFileAppender. I am also looking at logrotate and cronolog for this, but not sure if I could use it in conjunction

Re: apache2 tomcat6.0.26 mod_jk

2010-06-01 Thread Rathna
I'm sorry, that was absolutely a mistake. The first email I sent out returned with a server error. Somehow the server retried it and sent it again. No, I was the idiot who couldn't figure out the solution or wait for the server to resend the message. You guys are awesome. Thank you. JkMount

Re: tomcat and log4j version - any dependency issues?

2010-06-01 Thread Rainer Jung
On 02.06.2010 00:15, Johan Martinez wrote: Thanks for sharing this info. I was considering 1.3 version for better management - purging log files before certain date, log4j 1.3 provides max. backup index option with DailyRollingFileAppender. I am also looking at logrotate and cronolog for this,

[OT] Re: problems at thejarbar.org

2010-06-01 Thread Mark Eggers
Chris, I think it all depends what you need your Realm to manage. In this instance (single application on Tomcat), then it probably doesn't matter if the Realm sits at the application, Host, or Engine level. Like you've pointed out before it's nice to have a self-contained application with

Re: [OT] Re: problems at thejarbar.org

2010-06-01 Thread Hassan Schroeder
On Tue, Jun 1, 2010 at 4:27 PM, Mark Eggers its_toas...@yahoo.com wrote: If you have multiple applications using the same Realm information, then it might make sense to move the Realm to a Host or Engine level. However I cannot think of a good use case off the top of my head to potentially

Re: JAAS Realm Authentication with Kerberos

2010-06-01 Thread geofrey rainey
Right, so let me get this straight; Presently the KerberosLoginModule saves the role information (defined as u...@realm) as a Principal which is then compared against the literal string defined in web.xml. So what you're suggesting is modify the KerberosLoginModule so that, essentially, the

Re: Out of Memory exception (hotspot compilation)

2010-06-01 Thread Leon Kolchinsky
Hmm, I'd like to file a bug report on similar issue I had. Can you please tell me where can I do it? Cheers, Leon On Wed, Jun 2, 2010 at 06:46, Will Glass-Husain wglasshus...@gmail.comwrote: The JDK has been the same since early February. I don't think there's been any other system