RE: Getting out of memory using tomcat 6.0.20 but works fine in tomcat 5.5.28

2009-10-13 Thread kalpanab
Thank you for all your suggestions. I did not wait till getting out of memory. I analyzed heap dumps continuous and find keeps on increasing the objects and also taking more memory so I stopped after half an hour. I want to know why StandardSessions are increasing. It is not happening in tomcat 5.

Re: PATCH: Session ID from URL; would like some input!

2009-10-13 Thread Johan Ström
On Oct 13, 2009, at 23:15 , Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Johan, On 10/13/2009 3:41 AM, Johan Ström wrote: In catalina/connector/Request.java and CoyoteAdaptor, we first check for a sessino ID on the URL, store it in Request, and then we check for

Re: Datasource configuration issue

2009-10-13 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Karthik, On 10/13/2009 6:18 AM, Karthik Nanjangude wrote: > Also suggested to have the JDBC Driver to be in TOMCAT/lib folder > rather then in the /webapps/application/web-inf/lib I believe this is a /requirement/, not just good practice. - -chris -

Re: Getting out of memory using tomcat 6.0.20 but works fine in tomcat 5.5.28

2009-10-13 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Kalpana, On 10/12/2009 10:22 PM, kalpanab wrote: > My application working fine in tomcat 5.5.28 and java version "1.5.0_19" > while doing load balancing tests. But when I upgrade tomcat to version > 6.0.20 getting out of memory soon. I looked at the h

Re: PATCH: Session ID from URL; would like some input!

2009-10-13 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Johan, On 10/13/2009 3:41 AM, Johan Ström wrote: > In catalina/connector/Request.java and CoyoteAdaptor, we first check for > a sessino ID on the URL, store it in Request, and then we check for a > cookie, and if we got one, we just overwrite the ses

tomcat 5.5.25 and loosing spaces between printing jstl variables

2009-10-13 Thread Curtis Garman
Has anyone else experienced loosing spaces between printing jstl variables. I've got something that is printing ${firstName} ${lastName} --> Curtis Garman but instead the space in between the two names is getting lost so it prints as CurtisGarman The wierd thing is that it displays just fine o

Re: Tomcat with Netscape Portable Runtime (NSPR)

2009-10-13 Thread G S
Peter, Thank you for the response. My ultimate goal is to use the Netscape encryption modules through JSS on a Tomcat Server. I have JSS installed as a Security Provider on my system now but I have been unable to get Tomcat to use it for SSL connections. Do you have any suggestions on how I migh

Re: Tomcat with Netscape Portable Runtime (NSPR)

2009-10-13 Thread Peter Crowther
2009/10/13 G S : > Is it possible to configure Tomcat to use NSPR similar to the way you can > configure Tomcat to use the Apache Portable Runtime (APR)? No. In the same way, it's not possible to configure Mozilla to use the Apache Portable Runtime. - Peter -

Tomcat with Netscape Portable Runtime (NSPR)

2009-10-13 Thread G S
Is it possible to configure Tomcat to use NSPR similar to the way you can configure Tomcat to use the Apache Portable Runtime (APR)? I have been successful in configuring Tomcat to use the APR and modifying the server.xml. THe same config does not seem to work with the NSPR and I have been unable

Re: Does Tomcat http work on port 80?

2009-10-13 Thread Tony Anecito
Nope. I turned off Apache before I launched JBoss after it was configured to run port 80. That way only one process was running with port 80. Tomcat external to JBoss worked for my environment. Anyway, I went with a architecture where Tomcat was outside of Jboss which is where I was headed a co

Autodeploy on cluster

2009-10-13 Thread Paolo Santarsiero
I have a Tomcat6 cluster. Im looking for a solution to put a webapp folder in a node and automatically deploy the application, or the changes, to other cluster's nodes. I used FarmWarDeployer, but it isn't my ideal solution. Have some idea? Thanks

Re: Does Tomcat http work on port 80?

2009-10-13 Thread pieroxy
If I got it correctly, you are trying to setup your JBoss on port 80 when you already have an apache running on port 80... Is that correct? If so, you need to understand that only one process may listen to a given port number. This is your issue. If not, please clarify... Regards 2009/10/9 Tony

how to replace apache's mod_alias

2009-10-13 Thread Dennis Christopher
environment: Tomcat 6.0.18 under apache2 on Mac OS X Server 10.6 (Snow Leopard). I have a web app that works under Tomcat with Apache as the front end. I have had issues with the Apache-Tomcat connectors and am trying to set up the app to be served directly by Tomcat, listening on port 80.

Re: Thanks For All The Help!!

2009-10-13 Thread Tony Anecito
Hi All, I did get down to 2-3msec response time (was 4-5msec) for requests at the java client. I think the profiler indicated 200-300 microseconds out of Tomcat instance but still trying to figure out which Tomcat class to look at with the profiler and how much the profiler affects the loading

Re: Multiple Domains on one Tomcat Server now MySQL not working

2009-10-13 Thread Paul van Hoven
Hi Hassan, yeah, acutually that was the problem, I just discovered it an instant before you answered me :). I made the appropriate changes and now it is working fine. Thanks for your answer anyway. Tom Hassan Schroeder schrieb: On Mon, Oct 12, 2009 at 11:40 PM, Paul van Hoven wrote:

Re: Multiple Domains on one Tomcat Server now MySQL not working

2009-10-13 Thread Hassan Schroeder
On Mon, Oct 12, 2009 at 11:40 PM, Paul van Hoven wrote: >          ... >   www.clubpirat.de > I checked that in /etc/hosts the two domains "localhost" and > "localhost.localdomain" are assigned to 127.0.0.1. > Okay, i when enter the url www.clubpirat.de but i get an 404 error. And does "www.c

RE: Getting out of memory using tomcat 6.0.20 but works fine in tomcat 5.5.28

2009-10-13 Thread Caldarale, Charles R
> From: Curtis Garman [mailto:curt.gar...@gmail.com] > Subject: Re: Getting out of memory using tomcat 6.0.20 but works fine > in tomcat 5.5.28 > > I believe the default amount of PermGenSpace in tomcat was reduced > between 5 and 6... You believe incorrectly. Tomcat itself cannot affect the JVM

RE: Tomcat hangs for minutes between ContextConfig and StandardContext (Starting the app)

2009-10-13 Thread Caldarale, Charles R
> From: Law, Christopher [mailto:chris@snapon.com] > Subject: RE: Tomcat hangs for minutes between ContextConfig and > StandardContext (Starting the app) > > > By any chance, is there a case mismatch - is your webapp properly > > deployed in [appBase]/Spc.xml or perhaps incorrectly in > > [app

Re: Getting out of memory using tomcat 6.0.20 but works fine in tomcat 5.5.28

2009-10-13 Thread Curtis Garman
What do your logs say? Is it a "out of perm gen space" error? I believe the default amount of PermGenSpace in tomcat was reduced between 5 and 6...so you may need to increase it. On Mon, Oct 12, 2009 at 9:22 PM, kalpanab wrote: > > Hi All, > > My application working fine in tomcat 5.5.28 and java

Re: PATCH: Session ID from URL; would like some input!

2009-10-13 Thread Johan Ström
Hi Mark, thanks for your response! On Oct 13, 2009, at 10:29 , Mark Thomas wrote: Johan Ström wrote: Hello list! First of all, this maybe better suited for the dev list, but a quick peek only showed svn log mails etc soo.. Sending here instead, let me know if its wrong! It is 50/50. The patc

Re: SSL/HTTPS forwarding under Apache + mod_jk + tomcat

2009-10-13 Thread Tezza
Thanks heaps. I will attempt it and report back in a couple of days. I had a hard time, for over a week now, trying to get these answers from our open source support ppl. -- View this message in context: http://www.nabble.com/SSL-HTTPS-forwarding-under-Apache-%2B-mod_jk-%2B-tomcat-tp17817647p25

Re: Persistent Storage for Webapps

2009-10-13 Thread Tobias Crefeld
Am Mon, 12 Oct 2009 18:57:43 +0200 schrieb Jesse Long : > Thanks for your answers Tobias. Unfortunately we have a very real use > case for multiple instances on one host, with different data paths. > So, /etc/app.properties is not usable, but /etc/app- derived > data>.properties might be but vir

RE: Datasource configuration issue

2009-10-13 Thread Karthik Nanjangude
Hi Also suggested to have the JDBC Driver to be in TOMCAT/lib folder rather then in the /webapps/application/web-inf/lib with regards Karthik -Original Message- From: VijayKS [mailto:ksvijay...@gmail.com] Sent: Tuesday, October 13, 2009 1:31 PM To: users@tomcat.apache.org Subject:

Re: trouble with connector configured to receive from SSL accelerator

2009-10-13 Thread Sam Gendler
> > > > No. That is by design. The session ID is almost as valuable as the > password. If you need SSL to protect the password, you should use SSL to > protect the session ID. > > Well, that's fairly application specific, but the argument has also been done to death elsewhere. Workaround is alread

Re: trouble with connector configured to receive from SSL accelerator

2009-10-13 Thread Mark Thomas
Sam Gendler wrote: > Is it possible that sessions aren't persistent when switching between > connectors. The proxyPort attribute on the connector did fix my problem, > but I've discovered that logging in over an https connection only works if I > click the remember-me checkbox, which sets a cookie

Re: trouble with connector configured to receive from SSL accelerator

2009-10-13 Thread Sam Gendler
That looks like it will work, but it doesn't explain why the connector would think port 80 was appropriate. I could see port 8090 showing up, but given that the scheme is https and there was no port number in the request, surely it should have resolved that to port 443 instead of port 80? It just

Re: trouble with connector configured to receive from SSL accelerator

2009-10-13 Thread Sam Gendler
Is it possible that sessions aren't persistent when switching between connectors. The proxyPort attribute on the connector did fix my problem, but I've discovered that logging in over an https connection only works if I click the remember-me checkbox, which sets a cookie on the client and stores s

RE: Tomcat hangs for minutes between ContextConfig and StandardContext (Starting the app)

2009-10-13 Thread Law, Christopher
> By any chance, is there a case mismatch - is your webapp properly deployed in [appBase]/Spc.xml or perhaps incorrectly in [appBase]/spc.xml? I'm not sure I understand this question. The Spc.war file is copied to ${CATALINA_HOME}/webapps and Tomcat deploys it to ${CATALINA_HOME}/webapps/Spc. The

Re: SSL/HTTPS forwarding under Apache + mod_jk + tomcat

2009-10-13 Thread Peter Crowther
2009/10/13 Tezza : > So in server.xml, I can leave the port="8443"...other other SSL related attributes.../> ??? If you want to, you can leave it. It's an extra way into your server, and might be considered an extra attack vector for a cracker, so you might also want to remove it :-). > Also, m

PATCH: Session ID from URL; would like some input!

2009-10-13 Thread Johan Ström
Hello list! First of all, this maybe better suited for the dev list, but a quick peek only showed svn log mails etc soo.. Sending here instead, let me know if its wrong! We're having a problem related to Tomcat, in a pretty unusual scenario. Basicly the problem is with old expired sessions

Re: SSL/HTTPS forwarding under Apache + mod_jk + tomcat

2009-10-13 Thread Mark Thomas
Peter Crowther wrote: > 2009/10/13 Tezza : >> So in server.xml, I can leave the > port="8443"...other other SSL related attributes.../> ??? > > If you want to, you can leave it. It's an extra way into your server, > and might be considered an extra attack vector for a cracker, so you > might also

Re: Datasource configuration issue

2009-10-13 Thread Mark Thomas
VijayKS wrote: > Hi, I am using Tomcat 5.0. > > I have one application "test". > In "test" i created "META-INF" folder and put "context.xml" file.Here is the > content > That should be >

Re: PATCH: Session ID from URL; would like some input!

2009-10-13 Thread Mark Thomas
Johan Ström wrote: > Hello list! > First of all, this maybe better suited for the dev list, but a quick > peek only showed svn log mails etc soo.. Sending here instead, let me > know if its wrong! It is 50/50. The patch is of more interest to the dev list but if the patch is rejected then the user

Re: trouble with connector configured to receive from SSL accelerator

2009-10-13 Thread Peter Crowther
2009/10/13 Sam Gendler : > That method uses > request.getScheme(), to retrieve "https" (correct) and > request.getServerName() to get the correct host name.  It then calls > request.getServerPort(), which incorrectly returns the value of 80. [...] > What do I need to do to get the request to correc

Re: SSL/HTTPS forwarding under Apache + mod_jk + tomcat

2009-10-13 Thread Tezza
Peter thank you; this part is clear to me now. Few more clarification: > and remove [certs] from tomcat servers??? No need - they're not doing any harm, they just won't be used in your environment. So in server.xml, I can leave the ??? Also, my current AJP connection is like this: Do I

Datasource configuration issue

2009-10-13 Thread VijayKS
Hi, I am using Tomcat 5.0. I have one application "test". In "test" i created "META-INF" folder and put "context.xml" file.Here is the content factory org.apache.commons.dbcp.BasicDataSourceFactory url jdbc:sqlserver://localhost;DatabaseName=test;SelectMethod=cursor; driverClassName co

Re: SSL/HTTPS forwarding under Apache + mod_jk + tomcat

2009-10-13 Thread Peter Crowther
[This should really be a new thread, but...] 2009/10/13 Tezza : > I got 1 apache and 2 tomcat servers (all on different machines). > I already got SSL set up on individual Tomcat machines to work on port 8443. > There is no SSL installed on Apache. > I got mod_jk installed on apache to forward "al