Re: Shutdown Hooks not firing when tomcat is shutdown from within a webapp

2012-02-08 Thread Pid
On 07/02/2012 22:20, Andrew Kujtan wrote: -Original Message- From: Chema [mailto:demablo...@gmail.com] Sent: Tuesday, February 07, 2012 5:12 PM To: Tomcat Users List Subject: Re: Shutdown Hooks not firing when tomcat is shutdown from within a webapp Can I see

Re: Serving static content using embedded tomcat 7

2012-02-08 Thread Pid
On 08/02/2012 07:47, sanu wrote: Hello, I am working on embedding tomcat 7 into our application. We have a number of web apps and the static content is located in a different directory, common to all webapps. Why not just serve the static content as it's own application? I am not finding

Re: Serving static content using embedded tomcat 7

2012-02-08 Thread sanu
Thank you. I just did that. Here's what I have : StandardContext context = (StandardContext) tomcat.addContext(null, , path to the static resource directory); This doesn't seem to work. -- View this message in context:

Re: Serving static content using embedded tomcat 7

2012-02-08 Thread Mark Thomas
On 08/02/2012 08:40, sanu wrote: Thank you. I just did that. Here's what I have : StandardContext context = (StandardContext) tomcat.addContext(null, , path to the static resource directory); This doesn't seem to work. You haven't told us: - exact Apache Tomcat

Re: Serving static content using embedded tomcat 7

2012-02-08 Thread sanu
Following are the answers to your questions : 1) Apache Tomcat/7.0.25 2) The resources reside in a folder inside the base directory 3) The other contexts use relative path to access the static files inside this context In addition to not being able to access the resources from any other

Re: Serving static content using embedded tomcat 7

2012-02-08 Thread André Warnier
Sanu, you are wasting our time, and yours. sanu wrote: Following are the answers to your questions : not really 1) Apache Tomcat/7.0.25 this is ok 2) The resources reside in a folder inside the base directory 3) The other contexts use relative path to access the static files inside

Using Tomcat7 JDBC Connection Pool

2012-02-08 Thread amit shah
I am trying to use the tomcat 7 jdbc connection pool in our application by using the tomcat-jdbc.jar and tomcat-juli.jar files. The basic connection pool works fine. I have few questions/clarifications 1. Executing multiple statements on connection initialization - The pool

Re: Using Tomcat7 JDBC Connection Pool

2012-02-08 Thread Pid
On 08/02/2012 11:41, amit shah wrote: I am trying to use the tomcat 7 jdbc connection pool in our application by using the tomcat-jdbc.jar and tomcat-juli.jar files. The basic connection pool works fine. I have few questions/clarifications 1. Executing multiple statements on connection

Re: Using Tomcat7 JDBC Connection Pool

2012-02-08 Thread amit shah
Thanks for the reply. Responses below. On Wed, Feb 8, 2012 at 5:19 PM, Pid p...@pidster.com wrote: On 08/02/2012 11:41, amit shah wrote: I am trying to use the tomcat 7 jdbc connection pool in our application by using the tomcat-jdbc.jar and tomcat-juli.jar files. The basic connection

Re: Using Tomcat7 JDBC Connection Pool

2012-02-08 Thread Pid
On 08/02/2012 12:30, amit shah wrote: Thanks for the reply. Responses below. On Wed, Feb 8, 2012 at 5:19 PM, Pid p...@pidster.com wrote: On 08/02/2012 11:41, amit shah wrote: I am trying to use the tomcat 7 jdbc connection pool in our application by using the tomcat-jdbc.jar and

Re: Using Tomcat7 JDBC Connection Pool

2012-02-08 Thread amit shah
Responses below. Thanks. On Wed, Feb 8, 2012 at 7:14 PM, Pid p...@pidster.com wrote: On 08/02/2012 12:30, amit shah wrote: Thanks for the reply. Responses below. On Wed, Feb 8, 2012 at 5:19 PM, Pid p...@pidster.com wrote: On 08/02/2012 11:41, amit shah wrote: I am trying to use the

Re: java.sql.SQLException: No suitable driver found for in tomcat 6.0.35, is the class loading changed?

2012-02-08 Thread Florian Desbois
Hello, I have the same issue with c3p0 0.9.1.2. Even if i put the mysql-connector inside the webapp (instead of CATALINA_HOME/lib), the issue appears. I also tried to put both c3p0 and mysql-connector in CATALINA_HOME/lib but the same problem occurs. There is no issue when using tomcat 6.0.33.

Re: Using Tomcat7 JDBC Connection Pool

2012-02-08 Thread Pid
On 08/02/2012 14:59, amit shah wrote: Responses below. Thanks. On Wed, Feb 8, 2012 at 7:14 PM, Pid p...@pidster.com wrote: On 08/02/2012 12:30, amit shah wrote: Thanks for the reply. Responses below. On Wed, Feb 8, 2012 at 5:19 PM, Pid p...@pidster.com wrote: On 08/02/2012 11:41,

Re: java.sql.SQLException: No suitable driver found for in tomcat 6.0.35, is the class loading changed?

2012-02-08 Thread Anshul katta
its about the driveru have to provide the correct driver available for connection for eg com.mysql.jdbc.Driver and the url for connection On 2/8/12, Florian Desbois florian.desb...@wiztivi.com wrote: Hello, I have the same issue with c3p0 0.9.1.2. Even if i put the mysql-connector

Re: Question regarding mappings for CVE-2005-4836

2012-02-08 Thread Christopher Restorff
If you carefully read the security report for Tomcat 4, you'll see that the bug exists in a deprecated connector. If you are using the standard Coyote connector, then you are safe. For completeness, these are the connectors that are vulnerable to this issue:

Re: java.sql.SQLException: No suitable driver found for in tomcat 6.0.35, is the class loading changed?

2012-02-08 Thread Florian Desbois
Thanks, it was that ! I missed the mysql driverClass in the dataSource. Strange that with tomcat 6.0.33 i haven't the problem. its about the driveru have to provide the correct driver available for connection for eg com.mysql.jdbc.Driver and the url for connection -- View this

RE: Shutdown Hooks not firing when tomcat is shutdown from within a webapp

2012-02-08 Thread Andrew Kujtan
-Original Message- From: Konstantin Kolinko [mailto:knst.koli...@gmail.com] Sent: Tuesday, February 07, 2012 7:31 PM To: Tomcat Users List Subject: Re: Shutdown Hooks not firing when tomcat is shutdown from within a webapp 2012/2/7 Andrew Kujtan akuj...@evertz.com: OS: Windows 7

Re: Shutdown Hooks not firing when tomcat is shutdown from within a webapp

2012-02-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Andrew, On 2/7/12 5:20 PM, Andrew Kujtan wrote: Runtime.getRuntime().addShutdownHook( new Thread(new Runnable(){ @Override public void run() { System.out.println(HARI-KIRI SUCCESSFUL!); } }, shutdownHook)); Note that if this code is running in

Why am I Getting org.apache.catalina.realm.JDBCRealm getPassword SEVERE: Exception performing authentication?

2012-02-08 Thread Jonathan Rosenberg
Vital statistics: Apache Tomcat/7.0.221.6.0_22-b04Sun Microsystems Inc. Linux 1) Using org.apache.catalina.realm.UserDatabaseRealm for authentication to Manager app. No pooling. 2) Running a Grails app that is using CAS authentication on remote server. Using dbcp pooling. 3)

Re: Why am I Getting org.apache.catalina.realm.JDBCRealm getPassword SEVERE: Exception performing authentication?

2012-02-08 Thread Konstantin Kolinko
2012/2/8 Jonathan Rosenberg j...@tabbysplace.org: Vital statistics:    Apache Tomcat/7.0.22        1.6.0_22-b04    Sun Microsystems Inc.   Linux 1) Using org.apache.catalina.realm.UserDatabaseRealm for authentication to Manager app.  No pooling. 2) Running a Grails app that is using CAS

Re: Why am I Getting org.apache.catalina.realm.JDBCRealm getPassword SEVERE: Exception performing authentication?

2012-02-08 Thread Jonathan Rosenberg
On Wed, Feb 8, 2012 at 1:08 PM, Konstantin Kolinko knst.koli...@gmail.com wrote: 2012/2/8 Jonathan Rosenberg j...@tabbysplace.org: Vital statistics:    Apache Tomcat/7.0.22        1.6.0_22-b04    Sun Microsystems Inc.   Linux 1) Using org.apache.catalina.realm.UserDatabaseRealm for

Re: Why am I Getting org.apache.catalina.realm.JDBCRealm getPassword SEVERE: Exception performing authentication?

2012-02-08 Thread Mark Thomas
On 08/02/2012 18:23, Jonathan Rosenberg wrote: Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: The last packet successfully received from the server was 58,153,867 milliseconds ago. The last packet sent successfully to the server was 58,153,867 milliseconds ago. is longer

Re: Why am I Getting org.apache.catalina.realm.JDBCRealm getPassword SEVERE: Exception performing authentication?

2012-02-08 Thread Mark Eggers
Jonathan, This is edited for compactness. Comments mostly inline. - Original Message - From: Jonathan Rosenberg j...@tabbysplace.org To: Tomcat Users List users@tomcat.apache.org Cc: Sent: Wednesday, February 8, 2012 10:23 AM Subject: Re: Why am I Getting

Re: Why am I Getting org.apache.catalina.realm.JDBCRealm getPassword SEVERE: Exception performing authentication?

2012-02-08 Thread Jonathan Rosenberg
On Wed, Feb 8, 2012 at 1:41 PM, Mark Thomas ma...@apache.org wrote: On 08/02/2012 18:23, Jonathan Rosenberg wrote: Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: The last packet successfully received from the server was 58,153,867 milliseconds ago.  The last packet sent

Re: Why am I Getting org.apache.catalina.realm.JDBCRealm getPassword SEVERE: Exception performing authentication?

2012-02-08 Thread Mark Thomas
On 08/02/2012 19:15, Jonathan Rosenberg wrote: On Wed, Feb 8, 2012 at 1:41 PM, Mark Thomas ma...@apache.org wrote: On 08/02/2012 18:23, Jonathan Rosenberg wrote: Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: The last packet successfully received from the server was

Re: Why am I Getting org.apache.catalina.realm.JDBCRealm getPassword SEVERE: Exception performing authentication?

2012-02-08 Thread Jonathan Rosenberg
Mark, Thanks for the reply. I don't understand why Tomcat is involved in the authentication (the exception happens in org.apache.catalina.realm.JDBCRealm getPassword) at this point. As far as I know, the only authentication going on should be the CAS authentication used by my app. This

Re: Why am I Getting org.apache.catalina.realm.JDBCRealm getPassword SEVERE: Exception performing authentication?

2012-02-08 Thread Mark Thomas
On 08/02/2012 19:52, Jonathan Rosenberg wrote: Mark, Thanks for the reply. I don't understand why Tomcat is involved in the authentication (the exception happens in org.apache.catalina.realm.JDBCRealm getPassword) at this point. As far as I know, the only authentication going on should

Re: apache tomcat 6.0.20 install error

2012-02-08 Thread Konstantin Kolinko
2012/2/9 Irene Amatulli iamatu...@cleverdevices.com: I got this error when I tried to install 6.0.20: Installer integrity check has failed.  Common causes include incomplete download and damaged media.  Contact the installer's author to obtain a new copy. Then download a new copy. You

Re: Why am I Getting org.apache.catalina.realm.JDBCRealm getPassword SEVERE: Exception performing authentication?

2012-02-08 Thread Jonathan Rosenberg
See below On Wed, Feb 8, 2012 at 2:59 PM, Mark Thomas ma...@apache.org wrote: On 08/02/2012 19:52, Jonathan Rosenberg wrote: Mark, Thanks for the reply. I don't understand why Tomcat is involved in the authentication  (the exception happens in org.apache.catalina.realm.JDBCRealm

Re: Serving static content using embedded tomcat 7

2012-02-08 Thread Konstantin Kolinko
2012/2/8 sanu write2s...@gmail.com: Thank you. I just did that. Here's what I have : StandardContext context = (StandardContext)                tomcat.addContext(null, , path to the static resource directory); This doesn't seem to work. (...) I would guess that you have not created nor

Path parameters and getRequestURI

2012-02-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, There was a change in 6.0.33 (and it has always been the case in 7.0.x?) that HttpServletRequest.getRequestURI now returns path parameters as part of the URI. That notably includes the URL-encoded jsessionid that Tomcat uses when the

Re: Path parameters and getRequestURI

2012-02-08 Thread Mark Thomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 08/02/2012 20:35, Christopher Schultz wrote: All, There was a change in 6.0.33 (and it has always been the case in 7.0.x?) that HttpServletRequest.getRequestURI now returns path parameters as part of the URI. That notably includes the

RE: apache tomcat 6.0.20 install error

2012-02-08 Thread Irene Amatulli
Thank you Konstantin. -Original Message- From: Konstantin Kolinko [mailto:knst.koli...@gmail.com] Sent: Wednesday, February 08, 2012 3:20 PM To: Tomcat Users List Subject: Re: apache tomcat 6.0.20 install error 2012/2/9 Irene Amatulli iamatu...@cleverdevices.com: I got this error

Re: Path parameters and getRequestURI

2012-02-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mark, On 2/8/12 3:37 PM, Mark Thomas wrote: On 08/02/2012 20:35, Christopher Schultz wrote: Can anyone think of a reason I can't just [chop-off everything after the first ;]? Yes. Path parameters can occur at any part of the path. So a URI

Re: Path parameters and getRequestURI

2012-02-08 Thread Mark Thomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 08/02/2012 21:25, Christopher Schultz wrote: Mark, On 2/8/12 3:37 PM, Mark Thomas wrote: On 08/02/2012 20:35, Christopher Schultz wrote: Can anyone think of a reason I can't just [chop-off everything after the first ;]? Yes. Path

Re: Path parameters and getRequestURI

2012-02-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mark, On 2/8/12 4:34 PM, Mark Thomas wrote: On 08/02/2012 21:25, Christopher Schultz wrote: Mark, On 2/8/12 3:37 PM, Mark Thomas wrote: On 08/02/2012 20:35, Christopher Schultz wrote: Can anyone think of a reason I can't just [chop-off

newbie having trouble with manager-gui sign in

2012-02-08 Thread Mark Potts
Hi, I'm a newbie with an inherited apache-tomcat-6.0.33 installation. The host server is a 64 bit Centos 5 (2.6.18-274.3.1.el5) install. I'm having trouble accessing the tomcat manager-gui from an internet-based browser access. As near as I can determine this was a

RE: newbie having trouble with manager-gui sign in

2012-02-08 Thread Caldarale, Charles R
From: Mark Potts [mailto:po...@hpcapplications.com] Subject: newbie having trouble with manager-gui sign in I've added the following lines: role rolename=manager-gui/ user username=Myadmin password=HereOmitted roles=standard,manager-gui / between the tomcat-users and /tomcat-users

RE: Why am I Getting org.apache.catalina.realm.JDBCRealm getPassword SEVERE: Exception performing authentication?

2012-02-08 Thread Caldarale, Charles R
From: shmol...@gmail.com [mailto:shmol...@gmail.com] On Behalf Of Jonathan Rosenberg Subject: Re: Why am I Getting org.apache.catalina.realm.JDBCRealm getPassword SEVERE: Exception performing authentication? From reading the docs, I expected to see something in catalina.out. It certainly

Re: newbie having trouble with manager-gui sign in

2012-02-08 Thread Mark Potts
Chuck, Thanks. Comments inline. On 02/08/2012 04:02 PM, Caldarale, Charles R wrote: From: Mark Potts [mailto:po...@hpcapplications.com] Subject: newbie having trouble with manager-gui sign in I've added the following lines: role rolename=manager-gui/ user username=Myadmin

RE: newbie having trouble with manager-gui sign in

2012-02-08 Thread Caldarale, Charles R
From: Mark Potts [mailto:po...@hpcapplications.com] Subject: Re: newbie having trouble with manager-gui sign in Could you clarify what you mean by using the toyRealm. http://tomcat.apache.org/tomcat-6.0-doc/realm-howto.html#UserDatabaseRealm

Re: Why am I Getting org.apache.catalina.realm.JDBCRealm getPassword SEVERE: Exception performing authentication?

2012-02-08 Thread Jonathan Rosenberg
On Wed, Feb 8, 2012 at 5:05 PM, Caldarale, Charles R chuck.caldar...@unisys.com wrote: From: shmol...@gmail.com [mailto:shmol...@gmail.com] On Behalf Of Jonathan Rosenberg Subject: Re: Why am I Getting org.apache.catalina.realm.JDBCRealm getPassword SEVERE: Exception performing authentication?

RE: Why am I Getting org.apache.catalina.realm.JDBCRealm getPassword SEVERE: Exception performing authentication?

2012-02-08 Thread Caldarale, Charles R
From: shmol...@gmail.com [mailto:shmol...@gmail.com] On Behalf Of Jonathan Rosenberg Subject: Re: Why am I Getting org.apache.catalina.realm.JDBCRealm getPassword SEVERE: Exception performing authentication? there is no effective web.xml output in any of the log files. So what are your

Re: Why am I Getting org.apache.catalina.realm.JDBCRealm getPassword SEVERE: Exception performing authentication?

2012-02-08 Thread Jonathan Rosenberg
Thanks to all who are trying to help. See info below. On Wed, Feb 8, 2012 at 6:10 PM, Caldarale, Charles R chuck.caldar...@unisys.com wrote: From: shmol...@gmail.com [mailto:shmol...@gmail.com] On Behalf Of Jonathan Rosenberg Subject: Re: Why am I Getting org.apache.catalina.realm.JDBCRealm

choosing an httpd connector

2012-02-08 Thread Mari Masuda
Hello, I am very new to Tomcat and am trying to determine which connector to use when using Tomcat with Apache. Here is my situation: 1. I am setting up a Drupal site that will be publicly accessible to anyone on the internet. I intend to use Apache Solr as the search mechanism for said

Re: choosing an httpd connector

2012-02-08 Thread Hassan Schroeder
On Wed, Feb 8, 2012 at 4:51 PM, Mari Masuda mari.mas...@stanford.edu wrote: I am very new to Tomcat and am trying to determine which connector to use when using Tomcat with Apache.  Here is my situation: 1.  I am setting up a Drupal site that will be publicly accessible to anyone on the

Problems with LDAP authentication

2012-02-08 Thread Lev A KARATUN
Hi again. So, my boss told me that it's insecure to give anyone the password to view tomcat's logs and that should be an authentication based on Active Directory. I've been reading the manuals for some time, and configured my Tomcat the following way:

Re: Serving static content using embedded tomcat 7

2012-02-08 Thread sanu
Thanks for your reply. I have a global web.xml, where the DefaultServlet is mapped. The difference I see is that my static resources are not in the same directory as the host's appBase. Could this be the problem ? How can the static content be served in such a case ? -- View this message in