Re: Tomcat hangs when cmd window fills up

2009-10-13 Thread Konstantin Kolinko
2009/10/13 Ron McNulty rmcnu...@xtra.co.nz: Hi all This is possibly a little OT, but maybe someone has come across this. We are running Tomcat 5 (Actually Jetspeed-2.1.3) on a Windows 2K box. We start it from a cmd window, using startup.bat. All runs fine until a large amount of text gets

Re: Question ad alternative of BSF taglib in Tomcat ? [Fwd: In the move of some taglibs to Tomcat, the BSF taglib got retired]

2009-10-13 Thread Rony G. Flatscher (Apache)
Henri Yandell wrote: Not sure where Christopher's email was, but: If there is any interest in a retired taglib, I'm all for it being merged into the Extended Taglib. Currently I plan to consider replacing the functionality from String Taglib (mostly as EL functions), Log Taglib and JNDI

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

2009-10-13 Thread Paul van Hoven
Hi Chuck, thanks for this detailed answer. I'm running tomcat 6 on an ubuntu server. I read the official documentation and modified the configuration of my tomcat. The complete current server.xml (without comments and after my latest modification) looks like this: server.xml: Server

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 auspa...@hotmail.com: 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

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 context resource name=jdbc/PDBDataSource scope=Shareable type=javax.sql.DataSource resourceparams name=jdbc/PDBDataSource parameter namefactory/name

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 Connector SSLEnabled=true port=8443...other other SSL related

Re: trouble with connector configured to receive from SSL accelerator

2009-10-13 Thread Peter Crowther
2009/10/13 Sam Gendler sgend...@vid.me:  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

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 users

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 context That should be Context resource name=jdbc/PDBDataSource scope=Shareable That should be Resource ... Case matters. Check your

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

2009-10-13 Thread Mark Thomas
Peter Crowther wrote: 2009/10/13 Tezza auspa...@hotmail.com: So in server.xml, I can leave the Connector SSLEnabled=true 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

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

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

2009-10-13 Thread Peter Crowther
2009/10/13 Tezza auspa...@hotmail.com: So in server.xml, I can leave the Connector SSLEnabled=true 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

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.

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

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

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 on

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 already in

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

Re: Persistent Storage for Webapps

2009-10-13 Thread Tobias Crefeld
Am Mon, 12 Oct 2009 18:57:43 +0200 schrieb Jesse Long j...@unknown.za.net: 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-context path derived

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:

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

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

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 heap

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 paul.van.ho...@googlemail.com wrote:     Host name=localhost.localdomain      ...   Aliaswww.clubpirat.de/Alias I checked that in /etc/hosts the two domains localhost and localhost.localdomain are assigned to 127.0.0.1. Okay, i when enter

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

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: 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

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 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

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: Tomcat with Netscape Portable Runtime (NSPR)

2009-10-13 Thread Peter Crowther
2009/10/13 G S skis...@gmail.com: 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

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

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

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

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 heap

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: 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

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