Re: troubleshooting getPathInfo in jsp files

2010-12-14 Thread Gary Lawrence Murphy
Thanks for the tip; I can't confirm it right now but it seems to me I tried to do just such a mapping and it also violated the parsing rules and was rejected by the webapp loader. regardless though, I am in a high-volume real-time environment where editing the web.xml to insert a new service is si

Re: troubleshooting getPathInfo in jsp files

2010-12-14 Thread Gary Lawrence Murphy
On Tue, Dec 14, 2010 at 7:00 PM, Mark Thomas wrote: > > >>> Actually, this makes sense to me: the default mapping for the JSP >>> servlet is "*.jsp". Your path doesn't end in .jsp, and therefore does >>> not match the url-pattern. >>> >>> this is the crux of the problem, and the showstopper preven

Re: 6.0.26 java.lang.Thread.State: WAITING (on object monitor)

2010-12-14 Thread Srikanth Konjarla
I could catch Axis threadlocals from the app to clean up. However, I have a question wrt following tomcat's log at the time of undeploy of app. The message suggests that it is removing the same threadlocal twice. Is it because it was not removed in the first attempt? --

RE: troubleshooting getPathInfo in jsp files

2010-12-14 Thread Caldarale, Charles R
> From: Mark Thomas [mailto:ma...@apache.org] > Subject: Re: troubleshooting getPathInfo in jsp files > I can get Tomcat to behave the way you want but configuring web.xml > isn't going to be pretty. I'd strongly recommend moving to an approach > more in line with the Servlet spec rather than t

Re: troubleshooting getPathInfo in jsp files

2010-12-14 Thread Mark Thomas
On 15/12/2010 00:00, Mark Thomas wrote: On 14/12/2010 22:54, Gary Lawrence Murphy wrote: On Tue, Dec 14, 2010 at 4:35 PM, Christopher Schultz< ch...@christopherschultz.net> wrote: however when called with http://localhost:8080/test.jsp/this it fails as a 404 not found Actually, this make

Re: troubleshooting getPathInfo in jsp files

2010-12-14 Thread Mark Thomas
On 14/12/2010 22:54, Gary Lawrence Murphy wrote: On Tue, Dec 14, 2010 at 4:35 PM, Christopher Schultz< ch...@christopherschultz.net> wrote: however when called with http://localhost:8080/test.jsp/this it fails as a 404 not found Actually, this makes sense to me: the default mapping for t

RE: jndi-lookup fails, cured by tomcat restart

2010-12-14 Thread Dale Ogilvie
There are a few of them, examples below. Some work for us to track down it would seem. SEVERE: The web application [/OLP] appears to have started a thread named [ActiveMQ Scheduler] but has failed to stop it. This is very likely to create a memory leak. SEVERE: The web application [/OLP] appears

Re: jndi-lookup fails, cured by tomcat restart

2010-12-14 Thread Pid
On 14/12/2010 22:35, Dale Ogilvie wrote: > > We'll investigate the leak issue, there /are/ leaks from Spring active > mq code. Mind posting the leak warning from the logs? p > -Original Message- > From: Christopher Schultz [mailto:ch...@christopherschultz.net] > Sent: Wednesday, 15 De

Re: SSL Cert

2010-12-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 George, Please keep posts on the list for the benefit of others. On 12/14/2010 5:23 PM, George Christiansen - PA wrote: > If i do have the non-apr connector, and i need to confirm that, how > would i remove the cert from the keystore? Look at the h

Re: troubleshooting getPathInfo in jsp files

2010-12-14 Thread Gary Lawrence Murphy
oh, and I did try /test.jsp/* even though needing to explicitly match every jsp in the project would be prohibitively inflexible, but there again, it produced a parsing error and the webapp would not load.

Re: troubleshooting getPathInfo in jsp files

2010-12-14 Thread Gary Lawrence Murphy
On Tue, Dec 14, 2010 at 4:35 PM, Christopher Schultz < ch...@christopherschultz.net> wrote: > > > however when called with http://localhost:8080/test.jsp/this it fails as > a > > 404 not found > > Actually, this makes sense to me: the default mapping for the JSP > servlet is "*.jsp". Your path doe

RE: jndi-lookup fails, cured by tomcat restart

2010-12-14 Thread Dale Ogilvie
We'll investigate the leak issue, there /are/ leaks from Spring active mq code. -Original Message- From: Christopher Schultz [mailto:ch...@christopherschultz.net] Sent: Wednesday, 15 December 2010 11:15 a.m. To: Tomcat Users List Subject: Re: jndi-lookup fails, cured by tomcat restart -

Re: jndi-lookup fails, cured by tomcat restart

2010-12-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dave, On 12/14/2010 4:56 PM, Dale Ogilvie wrote: > Redeployment that first caused the issue was using manager web-app. We > tried other deployment options after that. > > OS is RHEL5.x > > Aha, scanning the logs around the first error I found the fo

RE: jndi-lookup fails, cured by tomcat restart

2010-12-14 Thread Dale Ogilvie
I am not the developer who caused the issue, but... Redeployment that first caused the issue was using manager web-app. We tried other deployment options after that. OS is RHEL5.x Aha, scanning the logs around the first error I found the following in catalina.2010-12-08.log. This message (and f

Re: troubleshooting getPathInfo in jsp files

2010-12-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Gary, On 12/14/2010 3:49 PM, Gary Lawrence Murphy wrote: > <%= request.getPathInfo() %> > <%= request.getPathTranslated() %> > <%= request.getQueryString() %> Ok. > when called with http://localhost:8080/test.jsp it reports three nulls That seems a

RE: jndi-lookup fails, cured by tomcat restart

2010-12-14 Thread Dale Ogilvie
Thanks for that clarification. -Original Message- From: Mark Thomas [mailto:ma...@apache.org] Sent: Tuesday, 14 December 2010 11:23 p.m. To: Tomcat Users List Subject: Re: jndi-lookup fails, cured by tomcat restart On 13/12/2010 22:52, Dale Ogilvie wrote: > > propsFileName is the nam

troubleshooting getPathInfo in jsp files

2010-12-14 Thread Gary Lawrence Murphy
I am using Tomcat 6.0.20-2ubuntu2.2 on an AWS-hosted 64-bit Ubuntu 9.10 running on Java SE Runtime Environment (build 1.6.0_15-b03) and I am having difficulty emulating getPathInfo() behaviour that works in other servlet containers (jetty and resin) I have a JSP file under ROOT: <%...@page langua

Re: Tomcat vs. web sockets

2010-12-14 Thread Rainer Jung
On 14.12.2010 14:27, Jess Holle wrote: On a related note, we use the JK connector and a front-end web server, most often Apache, to load balance requests to multiple back-end Tomcats. Is there a plan to add web socket support to Apache and the JK connector? Or does one immediately have to jump in

Re: Apache Web Site Acting Wonky?

2010-12-14 Thread Peter Crowther
On 14 December 2010 16:28, Christopher Schultz wrote: > The last thing the infra team needs is 20M emails saying > "teh server ist down HELPZORZ!!!1!!". > > You're giving the denizens of the Internet far too much credit. There'd be 20 like that, and the rest would also include something alon

Re: jndi-lookup fails, cured by tomcat restart

2010-12-14 Thread Konstantin Kolinko
2010/12/14 Dale Ogilvie : > > The thing is that the code is working fine now, without the fully > qualified jndi-name. IIRC, Spring adds a prefix to the name before doing the lookup (as seen from the logs fragment). How do you perform your deployment? Do you use the manager webapp, or rely on aut

Re: StartUpServlet in web.xml is not executed

2010-12-14 Thread Pid *
On 14 Dec 2010, at 14:13, dfsdf fsdfsd wrote: > Hi > I am using Tomcat 5.5.4 under Unix Sun Solaris. > I have a servlet that should be executed on web.xml > > http://java.sun.com/xml/ns/j2ee"; > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; > xsi:schemaLocation="http://java.sun.c

Re: Apache Web Site Acting Wonky?

2010-12-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mark, On 12/14/2010 11:18 AM, Mark Thomas wrote: > If anyone thinks there is an issue with ASF services then first check > this page: > http://monitoring.apache.org/status/ Thanks for the reference. It's tough to tell which of the listed machines run

Re: Apache Web Site Acting Wonky?

2010-12-14 Thread Konstantin Kolinko
2010/12/14 Christopher Schultz : > tomcat.apache.org resolves to  140.211.11.131 for me and I'm getting an > immediate "connection reset" message in Firefox when trying to visit it. > Same with www.apache.org (also 140.211.11.131). > > Is this happening to anyone else? 140.211.11.131 is US mirror,

Re: Apache Web Site Acting Wonky?

2010-12-14 Thread Mark Thomas
On 14/12/2010 16:05, Christopher Schultz wrote: > All, > > tomcat.apache.org resolves to 140.211.11.131 for me and I'm getting an > immediate "connection reset" message in Firefox when trying to visit it. > Same with www.apache.org (also 140.211.11.131). If anyone thinks there is an issue with A

Re: Virtual host, alias and context parameters

2010-12-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Julien, On 12/11/2010 10:50 AM, Julien Martin wrote: > Thanks all for your replies and sorry for the upper case. > I am already parsing the domain name in my app and I think I will stick to > that. I'm a bit late to the thread, but here's a suggestio

Re: SSL Cert

2010-12-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 George, On 12/13/2010 8:15 PM, George Christiansen - PA wrote: > I'm trying to remove an SSL cert from a Tomcat instance. Can I just > comment/remove the certs from server.xml and maintain SSL without the > cert? If you are using APR, then you specif

Re: Is there an upload limit of around 8000 bytes in tomcat 6?

2010-12-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, On 12/14/2010 5:05 AM, André Warnier wrote: > Klemens Muthmann wrote: >> Didn't know this. I thought files would be part of the message content. > > Well, in a well-behaved application using HTTP, they should be. > HTTP headers are generally

Apache Web Site Acting Wonky?

2010-12-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, tomcat.apache.org resolves to 140.211.11.131 for me and I'm getting an immediate "connection reset" message in Firefox when trying to visit it. Same with www.apache.org (also 140.211.11.131). Is this happening to anyone else? Tried with wget,

Re: StartUpServlet in web.xml is not executed

2010-12-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Sandy, On 12/14/2010 9:13 AM, dfsdf fsdfsd wrote: Please change your "name" to reflect your real name. Or a fake name if you wish. "dfsdf fsdfsd" means you're just not trying hard enough. > I am using Tomcat 5.5.4 under Unix Sun Solaris. As Chuck s

Re: jndi-lookup fails, cured by tomcat restart

2010-12-14 Thread Pid
On 14/12/2010 01:28, Dale Ogilvie wrote: > > The thing is that the code is working fine now, without the fully > qualified jndi-name. Then an app redeployment and it stopped working. > Then an apache restart and it started working again... > > I found something on Google about having apache jars

Re: [Mostly OT] Sweeping the permgen space: is that a good thing?

2010-12-14 Thread Pid
On 14/12/2010 11:40, Luca Gervasi wrote: > On 12/13/2010 01:14 PM, Pid wrote: >> On 13/12/2010 10:13, Luca Gervasi wrote: >>> Hello, >>> >>> I know that my problem is with the application my tomcat 5.5 powered by >> >> 5.5.x, where x is what? > > Tomcat 5.5.26, i omitted because i'm sure it's a we

RE: StartUpServlet in web.xml is not executed

2010-12-14 Thread Caldarale, Charles R
> From: dfsdf fsdfsd [mailto:budihartono...@yahoo.com] > Subject: StartUpServlet in web.xml is not executed > I am using Tomcat 5.5.4 under Unix Sun Solaris. What happens if you try it on a version of Tomcat that isn't older than dirt (measured in Internet years)? 5.5.4 came out over six year

Re: Not supported by Basic Datasource

2010-12-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Phil, On 12/14/2010 7:10 AM, Phil Steitz wrote: > On Tue, Dec 14, 2010 at 6:42 AM, SOPANMISHRA wrote: >> 1. I have posted the exact tags that i'm using in my hibernate.cfg.xml >> 2. regarding the BasicDataSource.getConnection in DBCP-1.2.2 ,I have no

StartUpServlet in web.xml is not executed

2010-12-14 Thread dfsdf fsdfsd
Hi I am using Tomcat 5.5.4 under Unix Sun Solaris. I have a servlet that should be executed on web.xml http://java.sun.com/xml/ns/j2ee";     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";     xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.

Re: Tomcat vs. web sockets

2010-12-14 Thread Mark Thomas
On 14/12/2010 13:27, Jess Holle wrote: > Does Tomcat 7 provide support for HTML 5 web sockets? No. > Will it soon -- or is this always to be provided by a separate library? No plans at present. > On a related note, we use the JK connector and a front-end web server, > most often Apache, to load b

Tomcat vs. web sockets

2010-12-14 Thread Jess Holle
Does Tomcat 7 provide support for HTML 5 web sockets? Will it soon -- or is this always to be provided by a separate library? On a related note, we use the JK connector and a front-end web server, most often Apache, to load balance requests to multiple back-end Tomcats. Is there a plan to add

RE: SSL Cert

2010-12-14 Thread George Christiansen - PA
I thought I could comment out the cert in server.xml and have traffic go to port 8843 without the cert. The cert I have is expired and I'm not going to renew because I don't need it any longer. Thanks, George From: Thomas Strauß [t.stra...@srs-managemen

Re: Not supported by Basic Datasource

2010-12-14 Thread Phil Steitz
On Tue, Dec 14, 2010 at 6:42 AM, SOPANMISHRA wrote: > > 1. I have posted the exact tags that i'm using in my hibernate.cfg.xml > 2. regarding the BasicDataSource.getConnection in DBCP-1.2.2 ,I have not > mentioned username,password tag in my hibernate.cfg.xml so is there any > other bug? > I am

Re: Not supported by Basic Datasource

2010-12-14 Thread SOPANMISHRA
1. I have posted the exact tags that i'm using in my hibernate.cfg.xml 2. regarding the BasicDataSource.getConnection in DBCP-1.2.2 ,I have not mentioned username,password tag in my hibernate.cfg.xml so is there any other bug? 3. Till now I have configured my files as asked by Chris & Mark 4. I'm

Re: SSL Cert

2010-12-14 Thread Tobias Crefeld
Am Mon, 13 Dec 2010 20:15:55 -0500 schrieb George Christiansen - PA : > I'm trying to remove an SSL cert from a Tomcat instance. Can I just > comment/remove the certs from server.xml and maintain SSL without the > cert? You can create a self-signed SSL-certificate instead. Regards, Tobias. --

Re: [Mostly OT] Sweeping the permgen space: is that a good thing?

2010-12-14 Thread Luca Gervasi
On 12/13/2010 01:14 PM, Pid wrote: > On 13/12/2010 10:13, Luca Gervasi wrote: >> Hello, >> >> I know that my problem is with the application my tomcat 5.5 powered by > > 5.5.x, where x is what? Tomcat 5.5.26, i omitted because i'm sure it's a webapp fault. For instance, JVM Version:1.5.0_17-b

Re: jndi-lookup fails, cured by tomcat restart

2010-12-14 Thread Mark Thomas
On 14/12/2010 10:33, Mark Thomas wrote: > On 14/12/2010 01:28, Dale Ogilvie wrote: >> >> The thing is that the code is working fine now, without the fully >> qualified jndi-name. Then an app redeployment and it stopped working. >> Then an apache restart and it started working again... > > That doe

Re: jndi-lookup fails, cured by tomcat restart

2010-12-14 Thread Mark Thomas
On 14/12/2010 01:28, Dale Ogilvie wrote: > > The thing is that the code is working fine now, without the fully > qualified jndi-name. Then an app redeployment and it stopped working. > Then an apache restart and it started working again... That does sound like a bug. Let me see if I can re-create

Re: tomcat production settings and best practices

2010-12-14 Thread Mark Thomas
On 14/12/2010 00:11, srinivas jaini wrote: > What are the max xms, xmx that Apache Tomcat can handle? With a 64-bit JVM it is currently limited by hardware. Current limits are around 256TB. > How common is it to > use memory heaps great than 8gb for memory intensive applications running > framewo

Re: jndi-lookup fails, cured by tomcat restart

2010-12-14 Thread Mark Thomas
On 13/12/2010 22:52, Dale Ogilvie wrote: > > propsFileName is the name of the bean, which should be initialized with > the string value from the JNDI entry "propertiesFileName" defined in > $CATALINA_HOME/conf/context.xml > > This was working, stopped working until a tomcat restart, and is worki

Re: How to configure JNDI resource

2010-12-14 Thread Mark Thomas
On 13/12/2010 20:40, Christopher Schultz wrote: > Mark, > > On 12/13/2010 3:21 PM, Mark Eggers wrote: >> In order to use the resource, you'll need to tell your application about it >> (resource-ref in web.xml), and create it (Resource in context.xml or >> server.xml). Where you put the creation de

Re: Where does my stderr go?

2010-12-14 Thread André Warnier
Yes. What about these ? >* Redirect Stdout: auto >* Redirect Stderr: auto Do you know what that does ? Why don't you try to set the "Redirect Stderr" to some file path on your server, and see what arrives in it ? You could also try to look in the Windows Event Logs, in case anything

Re: Is there an upload limit of around 8000 bytes in tomcat 6?

2010-12-14 Thread André Warnier
Klemens Muthmann wrote: Didn't know this. I thought files would be part of the message content. Well, in a well-behaved application using HTTP, they should be. HTTP headers are generally meant to convey information /about/ the content, not to /be/ the content. Otherwise they would not be calle

Re: tomcat production settings and best practices

2010-12-14 Thread André Warnier
srinivas jaini wrote: What are the max xms, xmx that Apache Tomcat can handle? How common is it to use memory heaps great than 8gb for memory intensive applications running frameworks such as spring, quartz?Is setting xms and xmx equal a good practice for production deployments? Hi. Although

Re: SSL Cert

2010-12-14 Thread Thomas Strauß
I do not understand the question, how do you want to use SSL without a cert? Am 14.12.2010 um 02:15 schrieb George Christiansen - PA: > Hello, > > I'm trying to remove an SSL cert from a Tomcat instance. Can I just > comment/remove the certs from server.xml and maintain SSL without the cert? >

Re: Where does my stderr go?

2010-12-14 Thread Thomas Kloeber
André, thanks for your suggestion. Yes, I run Tomcat as a service. I tried your suggestion and it looks all normal/ok. * Level: Info * Log path: my tomcat installation directory/logs * Log prefix: jakarta_service_ * Redirect Stdout: auto * Redirect Stderr: auto I tried changing t