Re: sessionCookieDomain and sessionCookiePath

2011-11-11 Thread Ionut Stoian
context.xml On Thu, Nov 10, 2011 at 7:05 PM, Pid * wrote: > On 10 Nov 2011, at 13:06, Ionut Stoian wrote: > > > It was a typo, i meant "/". > > > > They are available also on tomcat > 6.0.27: > > http://tomcat.apache.org/tomcat-6.0-doc/config/context.html > > > > -- Forwarded message --

tomcat-dbcp interceptors

2011-11-11 Thread Stevo Slavić
Hello Tomcat users, I have couple of tomcat-dbcp related questions: 1) Can tomcat-dbcp be used outside of tomcat e.g. in non-web apps? 2) If yes, are all features available as when used within tomcat? 3) Most importantly are custom interceptors supported when tomcat-dbcp is used outside tomcat? 4

Re: tomcat-dbcp interceptors

2011-11-11 Thread Daniel Mikusa
> 1) Can tomcat-dbcp be used outside of tomcat e.g. in non-web apps? Yes, but tomcat-dbcp is exactly the same as commons-dbcp. You would probably just want to use commons-dbcp. > 2) If yes, are all features available as when used within tomcat? It has the same feature set as commons-dbcp.

Re: tomcat-dbcp interceptors

2011-11-11 Thread Stevo Slavić
Hello Daniel, You're right, commons-dbcp and tomcat-dbcp seem to be same, I missed tomcat-jdbc module which seems to provide extensions and judging by the pom (see [1]) it depends only on tomcat-juli. I found the answers at [2] and [3]. Thanks! Regards, Stevo. [1] http://repo1.maven.org/maven2

Re: tomcat-dbcp interceptors

2011-11-11 Thread Daniel Mikusa
Stevo, OK, in the context of tomcat-jdbc, your questions do make more sense. Glad you were able to find the answers. BTW, I would strongly recommend tomcat-jdbc over DBCP. Been working with it for a while and it's very nice. Dan On Fri, 2011-11-11 at 06:44 -0800, Stevo Slavić wrote: > Hello D

Log exception logging

2011-11-11 Thread Ilya Kazakevich
Hello, Does there is a way to make tomcat log exception (with stacktrace) thrown by servlet? I do not want my app to do that because I like the way tomcat handles exceptions: 500 error and error page is ok, but I need exception stacktrace to be logged so I would be able to configure logging engin

Re: Log exception logging

2011-11-11 Thread Konstantin Kolinko
2011/11/11 Ilya Kazakevich : > > Does there is a way to make tomcat log exception (with stacktrace) thrown by > servlet? > I do not want my app to do that because I like the way tomcat handles > exceptions: 500 error and error page is ok, but I need exception stacktrace > to be logged so I would be

RE: Log exception logging

2011-11-11 Thread Ilya Kazakevich
I am running tomcat 6.0 Docs say it should log them into stdout but it does not. My stdout starts with: .. INFO: Initializing Coyote HTTP/1.1 on http-8080 11.11.2011 20:18:36 org.apache.coyote.http11.Http11Protocol init My app throws exception. Tomcat displays 500 error. But nothing found in logs.

Re: Log exception logging

2011-11-11 Thread Konstantin Kolinko
2011/11/11 Ilya Kazakevich : > I am running tomcat 6.0 Do you know there are ~30 different versions of 6.0.x ? > Docs say it should log them into stdout but it does not. My stdout starts > with: What docs? > .. > INFO: Initializing Coyote HTTP/1.1 on http-8080 > 11.11.2011 20:18:36 org.apache.c

Re: JVM config for tomcat7.0.19

2011-11-11 Thread celtic man
Is this JAVA setting below OK ? cat /proc/meminfo MemTotal: 4149124 kB MemFree:457884 kB 4Gb total memory on the linux box and have 0.4GB free memory and tomcat(6.0.18) running with below : JAVA_OPTS=-Xmx2000M so that i.e 1.9GB ?? or please suggest me the best settings that i add

RE: Log exception logging

2011-11-11 Thread Ilya Kazakevich
>Do you know there are ~30 different versions of 6.0.x ? 6.0.32 >What docs? http://tomcat.apache.org/tomcat-6.0-doc/logging.html#Console I believe uncought exception should be printed to stderr as it does by java.lang.ThreadGroup.uncaughtException. That is my tomcat misconfiguration not a tom

Re: Log exception logging

2011-11-11 Thread Konstantin Kolinko
2011/11/11 Ilya Kazakevich : >>Do you know there are ~30 different versions of 6.0.x ? > > 6.0.32 > > >>What docs? > http://tomcat.apache.org/tomcat-6.0-doc/logging.html#Console > > I believe uncought exception should be printed to stderr as it does by > java.lang.ThreadGroup.uncaughtException. >

Re: JVM config for tomcat7.0.19

2011-11-11 Thread Tim Watts
On Thu, 2011-11-10 at 12:02 -0800, celtic man wrote: > Thanks a lot for the quick response.. > > So i have updated the setenv.sh with -Xms2048M -Xmx2048M -XX:Permsize=512m > -XX:MaxPermsize=512m and restarted tomcat.. > > but when i grep for tomcat process i don't see it .. > > ps -ef | grep

Re: JVM config for tomcat7.0.19

2011-11-11 Thread Tim Watts
On Fri, 2011-11-11 at 08:40 -0800, celtic man wrote: > Is this JAVA setting below OK ? > > cat /proc/meminfo > MemTotal: 4149124 kB > MemFree:457884 kB > > 4Gb total memory on the linux box and have 0.4GB free memory and I think MemFree misleading. Don't quote me but I think you ha

Re: JVM config for tomcat7.0.19

2011-11-11 Thread Pid
On 11/11/2011 16:40, celtic man wrote: > > Is this JAVA setting below OK ? > > cat /proc/meminfo > MemTotal: 4149124 kB > MemFree:457884 kB > > 4Gb total memory on the linux box and have 0.4GB free memory and > tomcat(6.0.18) running with below : > > JAVA_OPTS=-Xmx2000M so that i.e

RE: Log exception logging

2011-11-11 Thread Ilya Kazakevich
>>A Servlet itself is always executed by >>Tomcat (if you have ever seen the stacktraces printed by servlets). I understand that servlet runs in tomcat's thread-pool. >>It does not prevent Servlet form using proper logging framework, or >>those old log() methods in Servlet API. But when my servl

Re: JVM config for tomcat7.0.19

2011-11-11 Thread celtic man
we have JAVA_OPTS set in catalina.sh start_tomcat -> /usr/local/scripts/start_tomcat stop_tomcat -> /usr/local/tomcat/bin/shutdown.sh MemTotal: 4149124 kB MemFree:381644 kB Buffers:106832 kB Cached:2377208 kB SwapCached: 0 kB Active:2646596 kB Inact

Re: JVM config for tomcat7.0.19

2011-11-11 Thread Andrew Todd
On Fri, Nov 11, 2011 at 12:59 PM, celtic man wrote: > > we have JAVA_OPTS set in catalina.sh > > start_tomcat -> /usr/local/scripts/start_tomcat > stop_tomcat -> /usr/local/tomcat/bin/shutdown.sh > > MemTotal: 4149124 kB > MemFree:381644 kB > Buffers:106832 kB > Cached:

Re: JVM config for tomcat7.0.19

2011-11-11 Thread Mark Eggers
- Original Message - > From: celtic man > To: users@tomcat.apache.org > Cc: > Sent: Friday, November 11, 2011 8:40 AM > Subject: Re: JVM config for tomcat7.0.19 > > > Is this JAVA setting below OK ? > > cat /proc/meminfo > MemTotal:      4149124 kB > MemFree:        457884 kB > > 4Gb

Re: sessionCookieDomain and sessionCookiePath

2011-11-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ionut, On 11/11/11 12:11 AM, Ionut Stoian wrote: > context.xml Seriously, please don't top-post. > On Thu, Nov 10, 2011 at 7:05 PM, Pid * wrote: >> On 10 Nov 2011, at 13:06, Ionut Stoian >> wrote: >>> >>> Where did you set them? In tomcat/conf/c

Re: SSIFilter for Tomcat 6.0.33 and Tomcat 7.0.22

2011-11-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Rogelio, On 11/10/11 4:49 AM, Rogelio Lamas wrote: > My name is Roger and this is the first time that i use a mailing > list. Sorry for my english. Welcome to the list. Your English is just fine. > I am currently trying to set up SSI filter on the t

Re: Log exception logging

2011-11-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ilya, On 11/11/11 9:33 AM, Ilya Kazakevich wrote: >>> A Servlet itself is always executed by Tomcat (if you have ever >>> seen the stacktraces printed by servlets). > > I understand that servlet runs in tomcat's thread-pool. > >>> It does not preven

Service auction is not available

2011-11-11 Thread Anisha Karki
Hi everyone, I successfully deployed and executed first web project(MVC type example) using eclipse and tomcat. But when i try to create second one.. it gives error: org.apache.catalina.core.StandardWrappervalue invoke Info: Servlet auction is currently unavailable I didnt understand whats going

Re: Service auction is not available

2011-11-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Anisha, On 11/11/11 1:54 PM, Anisha Karki wrote: > org.apache.catalina.core.StandardWrappervalue invoke Info: Servlet > auction is currently unavailable > > I didnt understand whats going wrong. The configurations are > exactly as per first one. Ple

RE: Service auction is not available

2011-11-11 Thread Caldarale, Charles R
> From: Anisha Karki [mailto:karki.ani...@gmail.com] > Subject: Service auction is not available > when i try to create second one.. it gives error: > org.apache.catalina.core.StandardWrappervalue invoke > Info: Servlet auction is currently unavailable Clearly, the above is your version of what