tomcat & url rewrite

2009-09-10 Thread WILLIAMer
I get a problem with the URL. My application has url rewrite for SEO. I use this format http://mydomain/item.html for display. There is an error that if the item name like LF/123, then the url become http://mydomain/LF/123.html. Because of the name include "/" character. I got the error like tomc

Shared jars

2009-09-10 Thread Tim Berglund
I'm trying to enable the shared classloader on Tomcat 6.0.20 (Java 1.6.0_15 on Mac OSX 10.6). I've put this line in conf/catalina.properties: shared.loader=${catalina.base}/shared/classes,${catalina.base}/shared/lib/*.jar I've dumped a few dozen jars in the shared/lib directory. These are found wh

Re: 100% usage and hanging on startup of Spring/Hibernate app in Tomcat 5.5 on Ubuntu 7

2009-09-10 Thread Bradley Wagner
A couple of other findings: - Tomcat 5.5.28 out-of-the-box with its default webapps has no problem starting with the default (parallel) gc - As soon as I remove the default webapps, add ours, and modify the context.xml file to provide it a DataSource, Tomcat hangs. We're definitely loading a lot mo

RE: 100% usage and hanging on startup of Spring/Hibernate app in Tomcat 5.5 on Ubuntu 7

2009-09-10 Thread Caldarale, Charles R
> From: Bradley Wagner [mailto:bradley.wag...@hannonhill.com] > Subject: Re: 100% usage and hanging on startup of Spring/Hibernate app > in Tomcat 5.5 on Ubuntu 7 > > The *only option* that did not cause the startup process to > halt indefinitely on startup was the Serial GC option. This is real

Re: 100% usage and hanging on startup of Spring/Hibernate app in Tomcat 5.5 on Ubuntu 7

2009-09-10 Thread Bradley Wagner
I've tried each of the aforementioned GC options individually with the following other parameters: JAVA_OPTS=" -Xms368m -Xmx512m -XX:MaxPermSize=128m -XX:+PrintGC -XX:+PrintGCDetails -Djava.awt.headless=true -Dfile.encoding=UTF-8" The *only option* that did not cause the startup process to halt in

RE: Database Connection Pooling initialization with dbcp

2009-09-10 Thread Caldarale, Charles R
> From: Chris Wiley [mailto:cwile...@comcast.net] > Subject: RE: Database Connection Pooling initialization with dbcp > > As far as the initialSize parameter, do I just append those to the > datasource under the Resource element in the web.xml? Set the values as additional attributes in the elem

RE: Database Connection Pooling initialization with dbcp

2009-09-10 Thread Chris Wiley
Chris, I think I am looking at it the wrong way. I have been looking at it as a collection of static connections that are managed. i.e., putting 8 connections in an array or hashtable and grabbing them when needed and letting something check them every so often to keep them refreshed. Earlier in t

Re: Database Connection Pooling initialization with dbcp

2009-09-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chris, On 9/9/2009 12:01 PM, Chris Wiley wrote: > My question is this: Am I to assume that I need to OPEN and CLOSE x > number of connections in the init section of the servlet to load the pool > with live connections? No, this can be done with confi

Re: avoiding ssl vulnerabilities in tomcat

2009-09-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Sunil, On 9/7/2009 10:18 AM, sunil chandran wrote: > Hello all, > As per the suggestion from tomcat forum users,I went ahead and installed > tomcat4.1.40 > Then i copied the original webapps file from the back up tomcat (old version). > I tried to st

Re: Need Help - Mod_jk/Apache - Mutiple Content issue

2009-09-10 Thread Rainer Jung
On 10.09.2009 14:46, balakarthik.baska...@wipro.com wrote: > Hi Rainer, > > I did tried with a lot of combinations for the settings and can see that > when recovery_options is set,no multiple content is seen and partial > content is seen followed by an "OK" message when a huge chunk of data is > w

Re: mod jk - multiple applications, different server clusers, sticky sessions

2009-09-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Rainer, On 9/7/2009 6:05 AM, Rainer Jung wrote: > The code of mod_jk (1.2.28) looks for a URL encoded session id (and uses > that one if it finds one) and otherwise it takes all cookie session ids > it can find in the order of Cookie headers in the re

Re: Query on Tomcat Server.xml

2009-09-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Bhuvanesh, On 9/7/2009 12:00 AM, Pattanashetti wrote: > I wanted to create connector using tomcat Apis. > > Connector conn = new Connector(); > conn.setPort(8070); > > service.addConnector(conn); > > This above code is working fine. I m able to acc

Re: An unexpected error has been detected by Java Runtime Environment:

2009-09-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tsirkin, On 9/5/2009 2:59 PM, Tsirkin Evgeny wrote: > So,it could be this since this sparc/solaris. > Anyway it seems i can't do anything about it. I would ask your hardware vendor to replace either the memory or the entire machine. > Another questi

Re: mod_jk fails to forward request on high traffic

2009-09-10 Thread John Cherouvim
Thanks guys, that seems to solve the problem. I also tried Mark's DisableReuse and it works fine, but I reverted since the timeouts solution works well and looks better. Another resource I used to get a better understanding of the issue was http://kbase.redhat.com/faq/docs/DOC-15866 Thanks a

Tomcat 6 Clustering with session replication problem

2009-09-10 Thread Davy NESTOR
Hello I'm trying to set up a session replciation between my tomcat hosts. I have to use the static method to describe the member of the cluster. I had the same error that this thread: http://www.opensubscriber.com/message/users@tomcat.apache.org/9810630.html I tried to modify my configuration, e

Re: Need Help - Mod_jk/Apache - Mutiple Content issue

2009-09-10 Thread André Warnier
balakarthik.baska...@wipro.com wrote: Yes you are right.I think I didn't mention it clearly.I am having this while loop for writing a huge chunk of data followed by a thread that sleeps for some time and that is where I am expecting my reply_timeout to be timed out and the data written till th

RE: Need Help - Mod_jk/Apache - Mutiple Content issue

2009-09-10 Thread balakarthik.baskaran
Yes you are right.I think I didn't mention it clearly.I am having this while loop for writing a huge chunk of data followed by a thread that sleeps for some time and that is where I am expecting my reply_timeout to be timed out and the data written till the sleep of the thread is seen in the bro

RE: bypassing a servlet mapping to /*

2009-09-10 Thread Caldarale, Charles R
> From: André Warnier [mailto:a...@ice-sa.com] > Subject: Re: bypassing a servlet mapping to /* > > Yep (from a dummie) : does that not indeed look like the dispatcher > thingie you're using does not know how to map wildcards ? Indeed it does. But my understanding of the dispatcher is that it sh

Re: Need Help - Mod_jk/Apache - Mutiple Content issue

2009-09-10 Thread André Warnier
balakarthik.baska...@wipro.com wrote: No I explicitly made it to loop so that I can write a content for a time longer than the reply_timout setting to simulate and look at the behaviour. Ok, but does a "reply timeout" really apply in that case ? I would intuitively think that a "reply timeout"

RE: Need Help - Mod_jk/Apache - Mutiple Content issue

2009-09-10 Thread balakarthik.baskaran
No I explicitly made it to loop so that I can write a content for a time longer than the reply_timout setting to simulate and look at the behaviour. Regards, Bala -Original Message- From: André Warnier [mailto:a...@ice-sa.com] Sent: Thursday, September 10, 2009 6:54 PM To: Tomcat Users L

Re: bypassing a servlet mapping to /*

2009-09-10 Thread André Warnier
Leon Rosenberg wrote: and if i use mapping with asterisk (/net/java/dev/moskito/webui/jsp/*) , i see log errors from dispatcher servlet that it doesn't know how to map /net/java/dev/moskito/webui/jsp/Producer.jsp. Yep (from a dummie) : does that not indeed look like the dispatcher thingie you

Re: Need Help - Mod_jk/Apache - Mutiple Content issue

2009-09-10 Thread André Warnier
balakarthik.baska...@wipro.com wrote: ... Just jumping in here, but doesn't that request to /test/test.jsp appear to be looping ? or is that by design ? ReplyTimeout_Analysis.txt : [Thu Sep 10 14:46:47 2009][5024:2952] [debug] jk_ajp_common.c (1259): 00f06D 20 74 65 73 74 69 6E 63 6C 75 6

Re: bypassing a servlet mapping to /*

2009-09-10 Thread Leon Rosenberg
On Thu, Sep 10, 2009 at 2:56 PM, Caldarale, Charles R wrote: >> From: Leon Rosenberg [mailto:rosenberg.l...@googlemail.com] >> Subject: Re: bypassing a servlet mapping to /* >> >> But If I add only the path: >> >>     jsp >>     /net/java/dev/moskito/webui/jsp/* >> >> >> it doesn't, and I don't

RE: bypassing a servlet mapping to /*

2009-09-10 Thread Caldarale, Charles R
> From: Leon Rosenberg [mailto:rosenberg.l...@googlemail.com] > Subject: Re: bypassing a servlet mapping to /* > > But If I add only the path: > > jsp > /net/java/dev/moskito/webui/jsp/* > > > it doesn't, and I don't understand why? > Shouldn't the most 'matching' mapping win? Yes. Wh

Re: bypassing a servlet mapping to /*

2009-09-10 Thread Leon Rosenberg
Thanx Chuck, Martin. chucks solution came first, so I tried it first, and it worked, but not the way i actually expected. If I add ALL mappings to the web.xml -> it works: jsp /net/java/dev/moskito/webui/jsp/Producers.jsp jsp /net/java/dev/moskito/webui/jsp/ProducersXML.jsp ..

Re: Need Help - Mod_jk/Apache - Mutiple Content issue

2009-09-10 Thread Rainer Jung
On 10.09.2009 06:30, balakarthik.baska...@wipro.com wrote: > Hi Rainer, > > I did try with the recovery_option as 7 and I was able to see a partial > content being sent even in that case.Also,this configuration is what we > tried in prod as well(we removed socket_timeout,had reply_timeout to 3 > m