Re: EL String - int coercion stopped working after TC 5.5 - 7.0 upgrade?

2012-02-14 Thread Mark Thomas
On 14/02/2012 03:11, David Rees wrote: This may not be Tomcat related, but I couldn't find anything in the JSP/JSTL/EL specifications regarding a change in behavior from JSP 2.0-2.2. Here's a simple JSP 2-line which shows the issue: %@taglib uri=http://java.sun.com/jsp/jstl/core;

Almost all threads are in P status

2012-02-14 Thread 止观梅
Hi, I'm encountering a problem: 1. almost all threads are in P status, and occasionally there is 1 or 2 in S or R status, 2. and there is no slow query on MySQL side, because I can't catch any process with command show full processlist, 3. while tomcat connection rate is merely less than 30req/s,

AW: problem with auth-constraint in xml

2012-02-14 Thread Hugi Michael, Informaticon AG
Hello Chris Thank you very much for your response. I thought I did it? The pattern /rest/device is in the xml that I sent.? Michael -Ursprüngliche Nachricht- Von: Christopher Schultz [mailto:ch...@christopherschultz.net] Gesendet: Montag, 13. Februar 2012 19:01 An: Tomcat Users List

Web fragment - static resources is not returned (Tomcat 7.0.25)

2012-02-14 Thread Guofeng Zhang
Hi, I create a web fragment, which contains servlets and static HTML and CSS files. The following is their location in the fragement JAR file: /META-INF +---web-fragment.xml /resources +---style.css +---hello.html /com The servlet classes This jar

Re: JNDI Access in Lifecycle Listener

2012-02-14 Thread chris derham
i load a spring xml with my own lifecycle listener. Which works pretty well actually. In my spring xml i try to get a datasource from the JNDI context. I put the definition in the server.xml under GlobalNamingResources. My lifecycle listener is loaded after the

Re: Fw: Problems with LDAP authentication

2012-02-14 Thread André Warnier
Lev A KARATUN wrote: Good morning everyone! Well, I've got no idea what happened (providing nobody is configuring tomcat except me), but I've just opened catalina.out and have seen that the error message changed to Exception opening directory server connection: javax

OT: Petition to the White house to expand the use of FreeSoftware

2012-02-14 Thread Bartolomeo Nicolotti
Petition to the White House to Lower the national debt by expanding the government's use of Free Software such as GNU/Linux and LibreOffice. https://wwws.whitehouse.gov/petitions/!/petition/lower-national-debt-expanding-governments-use-free-software-such-gnulinux-and-libreoffice/jkLbwPDC Bye!

Re: JNDI Access in Lifecycle Listener

2012-02-14 Thread Sascha Rodekamp
Hey, thanks for the reply. I found a solution. The issue was, that i load my spring xml during the INIT lifecycle event. In this state the jndi context isn't available. I moved my code to the START event and it works as expected. Regards Sascha 2012/2/14 chris derham ch...@derham.me.uk: i

Known Tomcat 6.0 and JDK 1.7.0_02 issues?

2012-02-14 Thread Matthew Doucette
Are there known Tomcat 6.0 and JDK 1.7.0_02 issues? I know this is a hard question to answer, if the answer is no. But I need to ask just in case the answer is yes. Also I will accept any solutions to the issues below as answers. Please just share whatever issues you have had, and I will update

Re: Fw: Problems with LDAP authentication

2012-02-14 Thread Lev A KARATUN
André Warnier a...@ice-sa.com 14.02.2012 16:00 Please respond to Tomcat Users List users@tomcat.apache.org To Tomcat Users List users@tomcat.apache.org cc Subject Re: Fw: Problems with LDAP authentication Lev A KARATUN wrote: Good morning everyone! Well, I've got no

Re: EL String - int coercion stopped working after TC 5.5 - 7.0 upgrade?

2012-02-14 Thread Konstantin Kolinko
2012/2/14 Mark Thomas ma...@apache.org: On 14/02/2012 03:11, David Rees wrote: This may not be Tomcat related, but I couldn't find anything in the JSP/JSTL/EL specifications regarding a change in behavior from JSP 2.0-2.2. Here's a simple JSP 2-line which shows the issue: %@taglib

memory heap size

2012-02-14 Thread Alfredo Alessandrini
Hi, I'm running tomcat 7.0.25 in a shared server (centOS 64bit). Memory limit for my account is 256m. I'm running tomcat with this settings: export CATALINA_OPTS=-Xms128m -Xmx256m export JAVA_OPTS=-Xms128m -Xmx256m But the process exceed the limit that I've set: RSS ELAPSED PID COMMAND

Re: Web fragment - static resources is not returned (Tomcat 7.0.25)

2012-02-14 Thread Konstantin Kolinko
2012/2/14 Guofeng Zhang guof...@radvision.com: Hi, I create a web fragment, which contains servlets and static HTML and CSS files. The following  is their location in the fragement JAR file: /META-INF           +---web-fragment.xml /resources The above should be /META-INF/resources See

Re: memory heap size

2012-02-14 Thread Daniel Mikusa
On Tue, 2012-02-14 at 05:07 -0800, Alfredo Alessandrini wrote: Hi, I'm running tomcat 7.0.25 in a shared server (centOS 64bit). Memory limit for my account is 256m. I'm running tomcat with this settings: export CATALINA_OPTS=-Xms128m -Xmx256m export JAVA_OPTS=-Xms128m -Xmx256m 1.)

Re: memory heap size

2012-02-14 Thread André Warnier
Alfredo Alessandrini wrote: Hi, I'm running tomcat 7.0.25 in a shared server (centOS 64bit). Memory limit for my account is 256m. I'm running tomcat with this settings: No, you are not. See [1] below. export CATALINA_OPTS=-Xms128m -Xmx256m export JAVA_OPTS=-Xms128m -Xmx256m But the

Re: memory heap size

2012-02-14 Thread Ognjen Blagojevic
On 14.2.2012 14:55, André Warnier wrote: The Heap is only one part of the memory used by the Java process. Exactly. Here is some more information on the topic: http://stackoverflow.com/questions/8037920/tomcat-memory-consumption-is-more-than-heap-permgen-space -Ognjen

Re: memory heap size

2012-02-14 Thread Alfredo Alessandrini
Where is that Tomcat from ? how was it installed ? how is it being started ? I've used this tutorial to install Tomcat: http://community.webfaction.com/questions/4116/install-tomcat-howto-or-step-by-step-tutorial It's started with ~/webapps/tomcat/bin/shutdown.sh Alfredo 2012/2/14 André

Keystore password not masked in server.xml file

2012-02-14 Thread Luca Marchesano
Hi all, I'm trying to configure a Tomcat 7.0.21 server in order to use the SSL connector. I've generated a keystore and specified it in the server.xml file, but I have to specify the keystore's password in clear in the connector's configuration. Is it possible to avoid that? Is there a way to

RE: Keystore password not masked in server.xml file

2012-02-14 Thread Caldarale, Charles R
From: Luca Marchesano [mailto:luca.marches...@ericsson.com] Subject: Keystore password not masked in server.xml file Is there a way to specify the keystore's password in encrypted way? Think about it: where are you going to put the encryption key so Tomcat can get at it to decode the

Re: Keystore password not masked in server.xml file

2012-02-14 Thread Pid *
On 14 Feb 2012, at 14:27, Luca Marchesano luca.marches...@ericsson.com wrote: Hi all, I'm trying to configure a Tomcat 7.0.21 server in order to use the SSL connector. I've generated a keystore and specified it in the server.xml file, but I have to specify the keystore's password in clear

Re: memory heap size

2012-02-14 Thread Alfredo Alessandrini
It's started with: [keol@web ~]$ webapps/tomcat/bin/startup.sh Using CATALINA_BASE: /home/keol/webapps/tomcat Using CATALINA_HOME: /home/keol/webapps/tomcat Using CATALINA_TMPDIR: /home/keol/webapps/tomcat/temp Using JRE_HOME:/home/keol/java Using CLASSPATH:

Re: controlling Server Authentication only vs Mutual authentication

2012-02-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Sanjeev, On 2/13/12 11:01 PM, Sanjeev Sharma wrote: Thanks for your reply. If I set clientAuth=want will it not ask me for a certificate every time I create a new session? It will not ask for a certificate, but if you provide one, then it will

Re: OT: Petition to the White house to expand the use of FreeSoftware

2012-02-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 2/14/12 6:56 AM, Bartolomeo Nicolotti wrote: Petition to the White House to Lower the national debt by expanding the government's use of Free Software such as GNU/Linux and LibreOffice.

Re: AW: problem with auth-constraint in xml

2012-02-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Michael, On 2/14/12 3:12 AM, Hugi Michael, Informaticon AG wrote: Thank you very much for your response. I thought I did it? The pattern /rest/device is in the xml that I sent.? Oops, I missed this: url-pattern/rest/device/url-pattern

Re: Keystore password not masked in server.xml file

2012-02-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Luca, On 2/14/12 9:26 AM, Luca Marchesano wrote: I'm trying to configure a Tomcat 7.0.21 server in order to use the SSL connector. I've generated a keystore and specified it in the server.xml file, but I have to specify the keystore's password

Re: memory heap size

2012-02-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Alfredo, On 2/14/12 10:05 AM, Alfredo Alessandrini wrote: Now I've put in setenv.sh this settings: export JAVA_OPTS=-Xms64m -Xmx128m -XX:MaxPermSize=128m So, you have a user limit of 256MiB and you have your heap set to 128MiB and your max perm

Re: Almost all threads are in P status

2012-02-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 止观梅, On 2/14/12 3:12 AM, 止观梅 wrote: I'm encountering a problem: 1. almost all threads are in P status, and occasionally there is 1 or 2 in S or R status, Are you talking about looking at the threads in 'top' or somewhere else? Java thread dumps

Re: OT: Petition to the White house to expand the use of FreeSoftware

2012-02-14 Thread Andrew Todd
On Tue, Feb 14, 2012 at 11:51 AM, Christopher Schultz ch...@christopherschultz.net wrote: Stallman as a government adviser? :) Shouldn't that be GNU/Government? - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For

Error 500 No Java Compiler Available

2012-02-14 Thread Jude Lucien
Basic Problem: I am unable to compile jsp's and display them via Tomcat. I am using the Netbeans IDE for web development and webapps that use html files/servlets run just fine. It's when I try to run a jsp that I get an Error 500: message description The server encountered an internal error

Re: Error 500 No Java Compiler Available

2012-02-14 Thread Konstantin Kolinko
2012/2/14 Jude Lucien jluc...@gmail.com: Basic Problem:  I am unable to compile jsp's and display them via Tomcat.  I am using the Netbeans IDE for web development and webapps that use html files/servlets run just fine.  It's when I try to run a jsp that I get an Error 500: message

Re: Error 500 No Java Compiler Available

2012-02-14 Thread Jude Lucien
I did a locate on ecj-3.7.1.jar and found the following in /usr/share/java: lrwxrwxrwx 1 root root 21 Nov 7 20:41 ecj.jar - eclipse-ecj-3.7.1.jar -rw-r--r-- 1 root root 1183268 Nov 7 20:41 eclipse-ecj-3.7.1.jar lrwxrwxrwx 1 root root 21 Nov 7 20:41 eclipse-ecj.jar -

Re: Error 500 No Java Compiler Available

2012-02-14 Thread Konstantin Kolinko
2012/2/14 Jude Lucien jluc...@gmail.com: I did a locate on ecj-3.7.1.jar and found the following in /usr/share/java: lrwxrwxrwx   1 root root      21 Nov  7 20:41 ecj.jar - eclipse-ecj-3.7.1.jar -rw-r--r--   1 root root 1183268 Nov  7 20:41 eclipse-ecj-3.7.1.jar lrwxrwxrwx   1 root root      

Re: OT: Petition to the White house to expand the use of FreeSoftware

2012-02-14 Thread André Warnier
Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 2/14/12 6:56 AM, Bartolomeo Nicolotti wrote: Petition to the White House to Lower the national debt by expanding the government's use of Free Software such as GNU/Linux and LibreOffice.

RE: controlling Server Authentication only vs Mutual authentication

2012-02-14 Thread Sanjeev Sharma
That's what I thought. Thanks anyway. This is good information! -Original Message- From: Christopher Schultz [mailto:ch...@christopherschultz.net] Sent: Tuesday, February 14, 2012 11:50 AM To: Tomcat Users List Subject: Re: controlling Server Authentication only vs Mutual

RE: org.apache.catalina.startup.ContextConfig checkHandlesTypes...

2012-02-14 Thread Caldarale, Charles R
From: Julien Martin [mailto:bal...@gmail.com] Subject: org.apache.catalina.startup.ContextConfig checkHandlesTypes... Can anyone please help? Probably not, since you didn't bother to tell us the version of Tomcat you're using, where you got it from, the JVM level it's running under, and the

Re: OT: Petition to the White house to expand the use of FreeSoftware

2012-02-14 Thread Marc Boorshtein
Governments Not Unix? sounds counter productive... On Tue, Feb 14, 2012 at 12:56 PM, Andrew Todd andrew.todd...@gmail.com wrote: On Tue, Feb 14, 2012 at 11:51 AM, Christopher Schultz ch...@christopherschultz.net wrote: Stallman as a government adviser? :) Shouldn't that be GNU/Government?

Re: org.apache.catalina.startup.ContextConfig checkHandlesTypes...

2012-02-14 Thread Julien Martin
Hello Chuck, Sorry... -Version: Tomcat 7.0.22 downloaded from apache website. -Jvm info: java version 1.6.0_20; OpenJDK Runtime Environment (IcedTea6 1.9.10) (6b20-1.9.10-0ubuntu1~10.04.3); OpenJDK Server VM (build 19.0-b09, mixed mode) -platform: Ubuntu 10.04 Regards, J. Le 14 février 2012

Re: org.apache.catalina.startup.ContextConfig checkHandlesTypes...

2012-02-14 Thread Konstantin Kolinko
2012/2/14 Julien Martin bal...@gmail.com: Hello Chuck, Sorry... -Version: Tomcat 7.0.22 downloaded from apache website. -Jvm info: java version 1.6.0_20; OpenJDK Runtime Environment (IcedTea6 1.9.10) (6b20-1.9.10-0ubuntu1~10.04.3); OpenJDK Server VM (build 19.0-b09, mixed mode) -platform:

Re: memory heap size

2012-02-14 Thread Pid *
On 14 Feb 2012, at 17:11, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Alfredo, On 2/14/12 10:05 AM, Alfredo Alessandrini wrote: Now I've put in setenv.sh this settings: export JAVA_OPTS=-Xms64m -Xmx128m -XX:MaxPermSize=128m So,

Re: memory heap size

2012-02-14 Thread André Warnier
Pid * wrote: On 14 Feb 2012, at 17:11, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Alfredo, On 2/14/12 10:05 AM, Alfredo Alessandrini wrote: Now I've put in setenv.sh this settings: export JAVA_OPTS=-Xms64m -Xmx128m

Re: org.apache.catalina.startup.ContextConfig checkHandlesTypes...

2012-02-14 Thread Julien Martin
Le 14 février 2012 21:04, Konstantin Kolinko knst.koli...@gmail.com a écrit : 2012/2/14 Julien Martin bal...@gmail.com: Hello Chuck, Sorry... -Version: Tomcat 7.0.22 downloaded from apache website. -Jvm info: java version 1.6.0_20; OpenJDK Runtime Environment (IcedTea6 1.9.10)

Re: memory heap size

2012-02-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 2/14/12 3:41 PM, André Warnier wrote: Or just get a mess restrictive hosting environment. Or a lore permissive one. LOL -BEGIN PGP SIGNATURE- Version: GnuPG/MacGPG2 v2.0.17 (Darwin) Comment: GPGTools - http://gpgtools.org Comment:

Re: memory heap size

2012-02-14 Thread Pid
On 14/02/2012 20:58, Christopher Schultz wrote: On 2/14/12 3:41 PM, André Warnier wrote: Or just get a mess restrictive hosting environment. Or a lore permissive one. LOL :) Habbing a code affects my spelling. p -- [key:62590808] signature.asc Description: OpenPGP digital

Re: Error configuring JNDIRealm in tomcat 6.0.2 in eclipse, trying to connect to localhost:389

2012-02-14 Thread Konstantin Kolinko
2012/2/15 Ashish Kulkarni ashish.kulkarn...@gmail.com: I am trying to configure JNDIRealm in tomcat running as eclipse plugin, so i copied ldap.jar in to lib folder, then modified server.xml in my eclipse like below Realm  className=org.apache.catalina.realm.JNDIRealm debug=99      

Logging issue in Eclipse/WTP (disable request logging)

2012-02-14 Thread Marcel Stör
It seems nowadays you need a PHD just to understand Tomcat logging...sigh. In one of my Eclipse/WTP projects Tomcat logs each request (before and after): ... 13.02.2012 20:50:47 org.apache.catalina.core.ApplicationContext log INFO: After request

Re: Logging issue in Eclipse/WTP (disable request logging)

2012-02-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Marcel, On 2/14/12 4:49 PM, Marcel Stör wrote: It seems nowadays you need a PHD just to understand Tomcat logging...sigh. Does that mean that I can get an honorary PhD if I understand it? In one of my Eclipse/WTP projects Tomcat logs each

Re: Logging issue in Eclipse/WTP (disable request logging)

2012-02-14 Thread Marcel Stör
On 14.02.2012 22:57, Christopher Schultz wrote: In one of my Eclipse/WTP projects Tomcat logs each request (before and after): ... 13.02.2012 20:50:47 org.apache.catalina.core.ApplicationContext log INFO: After request [uri=/demo-webmvc-web/scripts/libs/jquery/jquery-1.6.4.min.js?null]

Re: Error configuring JNDIRealm in tomcat 6.0.2 in eclipse, trying to connect to localhost:389

2012-02-14 Thread Ashish Kulkarni
Hi Thanks very much, as i removed extra n it worked fine, On Tue, Feb 14, 2012 at 4:48 PM, Konstantin Kolinko knst.koli...@gmail.comwrote: 2012/2/15 Ashish Kulkarni ashish.kulkarn...@gmail.com: I am trying to configure JNDIRealm in tomcat running as eclipse plugin, so i copied ldap.jar

Re: Logging issue in Eclipse/WTP (disable request logging)

2012-02-14 Thread Konstantin Kolinko
2012/2/15 Marcel Stör mar...@frightanic.com: On 14.02.2012 22:57, Christopher Schultz wrote: In one of my Eclipse/WTP projects Tomcat logs each request (before  and after):  ... 13.02.2012 20:50:47 org.apache.catalina.core.ApplicationContext  log INFO: After request  

Re: Error configuring JNDIRealm in tomcat 6.0.2 in eclipse, trying to connect to localhost:389

2012-02-14 Thread Ashish Kulkarni
I have another question, how can i configure in web.xml so that all roles has authority to login, then in my application i control what is displayed to the user? Ashish On Tue, Feb 14, 2012 at 5:11 PM, Ashish Kulkarni ashish.kulkarn...@gmail.com wrote: Hi Thanks very much, as i removed extra

Re: Error configuring JNDIRealm in tomcat 6.0.2 in eclipse, trying to connect to localhost:389

2012-02-14 Thread Konstantin Kolinko
2012/2/15 Ashish Kulkarni ashish.kulkarn...@gmail.com: I have another question, how can i configure in web.xml so that all roles has authority to login, then in my application i control what is displayed to the user? If you have a different question, then start a new thread with a new blank

Re: EL String - int coercion stopped working after TC 5.5 - 7.0 upgrade?

2012-02-14 Thread David Rees
On Tue, Feb 14, 2012 at 4:57 AM, Konstantin Kolinko knst.koli...@gmail.com wrote: 2012/2/14 Mark Thomas ma...@apache.org: On 14/02/2012 03:11, David Rees wrote: This may not be Tomcat related, but I couldn't find anything in the JSP/JSTL/EL specifications regarding a change in behavior from

Re: EL String - int coercion stopped working after TC 5.5 - 7.0 upgrade?

2012-02-14 Thread Konstantin Kolinko
2012/2/15 David Rees dree...@gmail.com: On Tue, Feb 14, 2012 at 4:57 AM, Konstantin Kolinko knst.koli...@gmail.com wrote: 2012/2/14 Mark Thomas ma...@apache.org: On 14/02/2012 03:11, David Rees wrote: This may not be Tomcat related, but I couldn't find anything in the JSP/JSTL/EL