Re: Problem with too many open db connections on Tomcat

2011-04-01 Thread Henry Lu
Is there a way to encrypt the password in the Resource tag and tomcat can still read it and decrypt? -Henry On 4/1/2011 9:58 AM, Mark Thomas wrote: On 01/04/2011 14:56, Claus Hausberger wrote: Original-Nachricht Datum: Fri, 01 Apr 2011 14:49:56 +0100 Von: Mark

password encryption

2011-04-01 Thread Henry Lu
I tried the following command and failed as tomcat home directory: C:\apps\apache-tomcat-7.0.11java -cp lib/catalina.jar;bin/tomcat-juli.jar org.a pache.catalina.realm.RealmBase -a md5 henry Exception in thread main java.lang.NoClassDefFoundError: org/apache/tomcat/uti l/res/StringManager

tomcat 7 lib

2011-03-27 Thread Henry Lu
Can some one tell me how to add a sub folder under ${catalina.base}/lib something like ${catalina.base}/lib/my_lib so that all my apps will share these jar files under my_lib? I tried to edit the catalina.properties file and add ${catalina.base}/lib/my_lib/*.jar to common.loader=,

Re: tomcat 7 lib

2011-03-27 Thread Henry Lu
On 3/27/2011 2:01 PM, Konstantin Kolinko wrote: the suffix is exactly *.jar. No other patterns are recognized. Thank you very much for you info. here was what I did: the suffix is exactly *.jar. No other patterns are recognized. common.loader=...,${catalina.base}/lib/my_lib/*.jar and even

Re: tomcat 7 lib

2011-03-27 Thread Henry Lu
It works! Thank you very much! -Henry On 3/27/2011 2:15 PM, Konstantin Kolinko wrote: 2011/3/27 Henry Luz...@umich.edu: On 3/27/2011 2:01 PM, Konstantin Kolinko wrote: the suffix is exactly *.jar. No other patterns are recognized. Thank you very much for you info. here was what I did: the

Re: tomcat 7 lib

2011-03-27 Thread Henry Lu
I did downloaded tomcat 7.0.11 and tried it with same settings and apps as 7.0.8 this time I got the following errors which I didn't get at all: INFO: Deploying web application directory cppclient log4j:ERROR Error occured while sending e-mail notification. javax.mail.MessagingException: Could

Re: tomcat 7 lib

2011-03-27 Thread Henry Lu
I found the errors. The problem is in the server.xml. in 7.0.8, I set as following: GlobalNamingResources !-- Editable user database that can also be used by UserDatabaseRealm to authenticate users -- Resource name=UserDatabase auth=Container

tomcat 7 eliminate connection

2011-03-27 Thread Henry Lu
based upon the documentation, in the context tag, we can set something like the following: Valve className=org.apache.catalina.valves.RemoteAddrValve allow=127\.0\.0\.1/ to only allow local access. Can we using wild card or a set of url/ip addrss access? Could someone give me

Re: tomcat 7 eliminate connection

2011-03-27 Thread Henry Lu
Can we have multiple allow and multiple deny value tags? what if I want to allow 123.11.22.33 and 212.22.11.33? -Henry On 3/27/2011 4:04 PM, Serge Fonville wrote: Hi, http://tomcat.apache.org/tomcat-7.0-doc/config/context.html#Request_Filters I found deny=192\.168\.1\.\d+ would cover it.