Re: Tomcat DBCP Connection pool issue

2012-06-26 Thread Steven Sinclair
在 2012-6-26,13:11,Kiran Badi ki...@poonam.org 写道: Hi All, While testing the pagination links ,I am getting below error, SEVERE: null org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot get a connection, pool error Timeout waiting for idle object at

Can we engage a Valve specifically for a Tomcat Web App

2012-06-26 Thread Andun Sameera
I have some web apps hosted in Tomcat container, Can we engage a Valve specifically for a webapp ? Thanks AndunSLG

Re: Can we engage a Valve specifically for a Tomcat Web App

2012-06-26 Thread André Warnier
Andun Sameera wrote: I have some web apps hosted in Tomcat container, Can we engage a Valve specifically for a webapp ? I've never done it, but according to the excellent on-line documentation, you can. http://tomcat.apache.org/tomcat-7.0-doc/config/valve.html#Introduction (context being

Re: Can we engage a Valve specifically for a Tomcat Web App

2012-06-26 Thread André Warnier
André Warnier wrote: Andun Sameera wrote: I have some web apps hosted in Tomcat container, Can we engage a Valve specifically for a webapp ? I've never done it, but according to the excellent on-line documentation, you can.

Re: SEVERE: Servlet threw load() exception java.lang.ClassNotFoundException:

2012-06-26 Thread Don Lawton
Good morning and thank you for you quick response. This problem occurs while testing within Eclipse - the app is not deployed. The class is listed in the project tree in the 'Java Resources/src' folder. There is nothing in the 'Web Content/WEB-INF/lib' folder and there is no 'Web

RE: SEVERE: Servlet threw load() exception java.lang.ClassNotFoundException:

2012-06-26 Thread Martin Gainty
as brooke mentioned your hfController java class has to be in either YourWebApp\WEB-INF\classes or packaged in some manner of jar located inYourWebApp\WEB-INF\lib so your web.xml can find the servlet-classservlet

Re: Tomcat server start up taking excessive time

2012-06-26 Thread Daniel Mikusa
- Original Message - Hi Can any one give a cue as to why tomcat is taking such a long time to start up on windows-7 64 bit machine, while the same used to startup in mere seconds on a 32 bit windows XP machine? I have pasted the server startup console info below. -Original

Re: Tomcat server start up taking excessive time

2012-06-26 Thread André Warnier
Daniel Mikusa wrote: - Original Message - Hi Can any one give a cue as to why tomcat is taking such a long time to start up on windows-7 64 bit machine, while the same used to startup in mere seconds on a 32 bit windows XP machine? I have pasted the server startup console info below.

Re: SEVERE: Servlet threw load() exception java.lang.ClassNotFoundException:

2012-06-26 Thread Hedrick, Brooke - 43
Thanks, Brooke Hedrick -Original Message- From: Don Lawton [dglaw...@verizon.net] Received: Tuesday, 26 Jun 2012, 6:11am To: Tomcat Users List [users@tomcat.apache.org] Subject: Re: SEVERE: Servlet threw load() exception java.lang.ClassNotFoundException: Good morning and thank you for

Wish to use an independent class module in Tomcat

2012-06-26 Thread Cotton, Joseph B
My question may be covered by the Tomcat documentation and I am just confused by all the new terminology. I have spent hours in reading and still I am looking to an answer. We wish to have a class running on Tomcat that contains system wide info and multiple database connections into DB2 on the

RE: Wish to use an independent class module in Tomcat

2012-06-26 Thread Martin Gainty
Joe did you get a chance to look at implementing JDBCRealmhttp://tomcat.apache.org/tomcat-7.0-doc/realm-howto.html#JDBCRealm Martin __ Place longwinded disclaimer here Subject: Wish to use an independent class module in Tomcat Date: Tue, 26 Jun

RE: Wish to use an independent class module in Tomcat

2012-06-26 Thread Cotton, Joseph B
I looked at the Realm documentation for a few minutes, but it appears to be intended for User ID and Password verification. -Original Message- From: Martin Gainty [mailto:mgai...@hotmail.com] Sent: Tuesday, June 26, 2012 11:28 AM To: Tomcat Users List Subject: RE: Wish to use an

Re: SEVERE: Servlet threw load() exception java.lang.ClassNotFoundException:

2012-06-26 Thread Don Lawton
Hi Brooke. It's just an assumption, but if Tomcat is running, when I save the servlet code in eclipse, eclipse seems to compile automatically. Looks like I need to chat with the eclipse folks. Thanks again for you assistance. Don -Original Message- From: Hedrick, Brooke - 43

Re: SEVERE: Servlet threw load() exception java.lang.ClassNotFoundException:

2012-06-26 Thread Don Lawton
Hi Martin. Yes indeed, 'public class hfController extends HttpServlet {'. As I mentioned to Brooke, I'll go see if I can get an explanation from the Eclipse folks about compiling servlets and placing them in the appropriate server folders. Thanks. Don -Original Message- From:

Re: Wish to use an independent class module in Tomcat

2012-06-26 Thread Konstantin Kolinko
2012/6/26 Cotton, Joseph B bcot...@dpscs.state.md.us: My question may be covered by the Tomcat documentation and I am just confused by all the new terminology.  I have spent hours in reading and still I am looking to an answer. We wish to have a class running on Tomcat that contains system

Re: Wish to use an independent class module in Tomcat

2012-06-26 Thread chris derham
On Tue, Jun 26, 2012 at 12:46 PM, Cotton, Joseph B bcot...@dpscs.state.md.us wrote: I looked at the Realm documentation for a few minutes, but it appears to be intended for User ID and Password verification. Joseph, Ignore Martin's JDBCRealm suggestion - his responses don't seem to relate

Re: Wish to use an independent class module in Tomcat

2012-06-26 Thread Mark Thomas
On 26/06/2012 17:16, chris derham wrote: On Tue, Jun 26, 2012 at 12:46 PM, Cotton, Joseph B bcot...@dpscs.state.md.us wrote: I looked at the Realm documentation for a few minutes, but it appears to be intended for User ID and Password verification. Joseph, Ignore Martin's JDBCRealm

RE: Tomcat 6 jsvc startup/shutdown script

2012-06-26 Thread Muriithi, Priscilla K.
Thanks! I apologize for the multiple posts. -Original Message- From: Konstantin Kolinko [mailto:knst.koli...@gmail.com] Sent: Saturday, June 23, 2012 4:09 AM To: Tomcat Users List Subject: Re: Tomcat 6 jsvc startup/shutdown script 2012/6/23 Christopher Schultz

RE: Wish to use an independent class module in Tomcat

2012-06-26 Thread Cotton, Joseph B
Thanks, Konstantine, Cris and Mark. I will be reading the docs. ... global objects should not retain references to objects loaded by your web application... We intend on only doing it the opposite direction, that is, loading global objects into web apps. That is the whole point, we want

Re: FW: Tomcat server start up taking excessive time

2012-06-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mansukhdeep, On 6/25/12 11:27 PM, THIND Mansukhdeep wrote: Can any one give a cue as to why tomcat is taking such a long time to start up on windows-7 64 bit machine, while the same used to startup in mere seconds on a 32 bit windows XP machine? I

Re: Can we engage a Valve specifically for a Tomcat Web App

2012-06-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, On 6/26/12 6:10 AM, André Warnier wrote: André Warnier wrote: Andun Sameera wrote: I have some web apps hosted in Tomcat container, Can we engage a Valve specifically for a webapp ? I've never done it, but according to the excellent

Re: Tomcat DBCP Connection pool issue

2012-06-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Kiran, On 6/26/12 1:11 AM, Kiran Badi wrote: While testing the pagination links ,I am getting below error, SEVERE: null org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot get a connection, pool error Timeout waiting for idle object Probably

Re: SEVERE: Servlet threw load() exception java.lang.ClassNotFoundException:

2012-06-26 Thread Hedrick, Brooke - 43
Thanks, Brooke Hedrick -Original Message- From: Don Lawton [dglaw...@verizon.net] Received: Tuesday, 26 Jun 2012, 11:00am To: Tomcat Users List [users@tomcat.apache.org] Subject: Re: SEVERE: Servlet threw load() exception java.lang.ClassNotFoundException: Hi Brooke. It's just an

RE: Wish to use an independent class module in Tomcat

2012-06-26 Thread Cotton, Joseph B
I found a really good explanation for what I want to do in Java Servlet Programming, Jason Hunter et al, chapter 11 Servlet Collaboration. Thanks to all. Joe -Original Message- From: Cotton, Joseph B [mailto:bcot...@dpscs.state.md.us] Sent: Tuesday, June 26, 2012 2:14 PM To: Tomcat

Re: Change in behavior of parsing Content-Type header since TC 7.0.27

2012-06-26 Thread Au, Leon
On 6/25/12 9:19 AM, Au, Leon leo...@amazon.com wrote: Hi, There was a recent change to how Tomcat handles the Content-Type response header in order to address Bug #52811 (https://issues.apache.org/bugzilla/show_bug.cgi?id=52811) We've noticed that this can cause issues with client code when

Re: Change in behavior of parsing Content-Type header since TC 7.0.27

2012-06-26 Thread Mark Thomas
On 26/06/2012 23:26, Au, Leon wrote: On 6/25/12 9:19 AM, Au, Leon leo...@amazon.com wrote: Hi, There was a recent change to how Tomcat handles the Content-Type response header in order to address Bug #52811 (https://issues.apache.org/bugzilla/show_bug.cgi?id=52811) We've noticed that

Re: Tomcat DBCP Connection pool issue

2012-06-26 Thread Kiran Badi
On 6/26/2012 12:09 PM, Steven Sinclair wrote: You can use java jmx console to monitor the number of db connections. Thanks Steven, I will check this.Actually servlet was leaking connection and I had forgot to close connection.Fixed it now. But I still need to monitor DB side.I will check jmx

Re: Tomcat DBCP Connection pool issue

2012-06-26 Thread Kiran Badi
Probably waited too long for a connection. What does your pool configuration look like? Look in META-INF/context.xml or, I suppose, in conf/server.xml for Resource elements. Resource name=jdbc/mysitedb auth=Container type=javax.sql.DataSource maxActive=100 maxIdle=30

using clearReferencesStopTimerThreads value for context

2012-06-26 Thread Supun Malinga
Hi all, Say I have a webapp that don't stop all the timer threads it started upon the webapp undeploy/stop. So tomcat prints an error, The web application [/NewStratosDBAccessServlet] appears to have started a thread named [MySQL Statement Cancellation Timer] but has failed to stop it. This is

restrict per user public_html to serve static files only...

2012-06-26 Thread Kim
Hi, Dear all I'm using tomcat 6.0.35 on linux CentOS 5.7 using sun jdk jdk1.5.0_11. I need to enable public_html for my user but for security reason, I would like restrict the functions to serve static files only. Can anyone tell me how to do that ? Actually I can build tomcat from src and don't