Re: Tomcat and PermGen

2009-11-03 Thread Elli Albek
Thanks for this link. Reading that page made me a little pessimistic. E On Mon, Nov 2, 2009 at 9:38 PM, Caldarale, Charles R chuck.caldar...@unisys.com wrote: From: Gerwood Stewart [mailto:gstew...@une.edu.au] Subject: RE: Tomcat and PermGen Do you know of any ways to track down what

Re: Compression and SSL

2009-11-03 Thread André Warnier
Jeffrey Janner wrote: Thanks for all the suggestions so far guys. Are there any other tips I could provide to the developers that they can do to improve throughput? Should they hard-code the http:// for all the static elements to avoid passing them over SSL, If these items are not sensitive,

RE: MISC; After one Tomcat Cluster node shutdown Session Replication working but a Hashmap object is getting empty

2009-11-03 Thread Imad Hachem
Dear Chris / Pid, Issue has been solved after setting both hashmap QueryCryptUser objects to the Session as below: static HashMap userSessionMapArray = new HashMap(); SecretKey b = KeyGenerator.getInstance(DESede).generateKey(); QueryCryptUser qcu = new

TomCat Service wont`t start any longer

2009-11-03 Thread Marc Bartrina
Hello, we are using tomcat 6.18 with different webapps on a windows 2003 server. TomCat was running as a Windows Service for 1 Year now, without any problems. After the Installation of an new Software which is using Apache 2.2.11 http Server the TomCat Service won't start any longer. When we

Re: TomCat Service wont`t start any longer

2009-11-03 Thread André Warnier
Marc Bartrina wrote: Jakarta_service: [2009-10-28 14:04:07] [info] Starting service... [2009-10-28 14:04:08] [385 javajni.c] [debug] Jvm Option[0] -Dcatalina.home=C:\Programme\Apache Software Foundation\Tomcat 6.0 [2009-10-28 14:04:08] [385 javajni.c] [debug] Jvm Option[1]

Re: Compression and SSL

2009-11-03 Thread Pid
On 02/11/2009 23:34, Jeffrey Janner wrote: Pid - Windows 64-bit Dual Quad-Core w/32G RAM. Do I really need bigger? App's not really slow-- works great here. But with a 300ms latency (one-way) to The Orient, you can see why I might want to send as few bits as possible. Jeff Indeed. Was just

Re: Compression and SSL

2009-11-03 Thread Peter Crowther
2009/11/2 George Sexton geor...@mhsoftware.com You didn't read the original post very closely. to serve applications from the US to Asia-based clients. It's bandwidth and latency. Actually, yes, I did. And I saw that, and I suspected latency would be the answer. Suspicion is not

Re: MISC; After one Tomcat Cluster node shutdown Session Replication working but a Hashmap object is getting empty

2009-11-03 Thread Pid
On 03/11/2009 08:13, Imad Hachem wrote: Dear Chris / Pid, Issue has been solved after setting both hashmap QueryCryptUser objects to the Session as below: static HashMap userSessionMapArray = new HashMap(); SecretKey b = KeyGenerator.getInstance(DESede).generateKey();

RE: Tomcat Memory and Garbage Collection questions...

2009-11-03 Thread Gerwood Stewart
Elli Thanks for the reply. I also missed josephs (unless there is several of these threads going on). Hot deployment is what we would like to do. It's not possible as yet because of eventual permgen memory errors. I also (in general) think it's a good idea to _know what we're doing_ so some

Reading and writing files outside tomcat directory

2009-11-03 Thread noobie45
I have an application whose class files are in /usr/local/tomcat/webapps/ROOT/WEB-INF/classes It uses the following line to write a file called java.php: FileOutputStream fout = new FileOutputStream (/usr/local/tomcat/webapps/ROOT/java.php, true); It does this perfectly. What I want is to

Re: Compression and SSL

2009-11-03 Thread André Warnier
Peter Crowther wrote: ... Jeffrey's since confirmed it's not a CPU issue - thanks Jeffrey! - so I agree that bandwidth/latency is the one to solve, as the rest of the thread's been working on while I've been asleep! Elaborating a bit on what I mentioned before, and sorry Jeffrey if this sounds

getRequestedSessionId() returns null

2009-11-03 Thread daulat khan
Hi, I have an java servlet application running in apache-tomcat integration setup. request.getRequestedSessionId() is always returning null. Can anyone help to fix this issue ? I am using tomcat version : 6.0.20 httpd version : 2.2.14 connector : 1.2.28 Thanks, Daulatkhan

Re: Compression and SSL

2009-11-03 Thread Pid
On 03/11/2009 10:40, André Warnier wrote: Peter Crowther wrote: ... Jeffrey's since confirmed it's not a CPU issue - thanks Jeffrey! - so I agree that bandwidth/latency is the one to solve, as the rest of the thread's been working on while I've been asleep! Elaborating a bit on what I

Re: getRequestedSessionId() returns null

2009-11-03 Thread Pid
On 03/11/2009 10:41, daulat khan wrote: Hi, I have an java servlet application running in apache-tomcat integration setup. request.getRequestedSessionId() is always returning null. Can anyone help to fix this issue ? Can you verify that the client is sending a session id? LiveHttpHeaders will

Re: Reading and writing files outside tomcat directory

2009-11-03 Thread Peter Crowther
Tomcat version? Installed from tomcat.apache.org or a third-party repackaged version? If repackaged, look at the docs - are you running under a security manager? - Peter 2009/11/3 noobie45 philip.geo...@gmail.com I have an application whose class files are in

Re: getRequestedSessionId() returns null

2009-11-03 Thread daulat khan
Hi, The below is the details using Livehttpheaders. can you help me ? http://csipl-earms-sol1:8081/earms/earms GET /earms/earms HTTP/1.1 Host: csipl-earms-sol1:8081 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.4) Gecko/20091016 Firefox/3.5.4 Accept:

Re: Tomcat 6.0.20 on 64bit Window2003 - 64bit Service CAN'T start

2009-11-03 Thread Josh Gooding
Really? I've never got it to work except through a batch starting. It really could be a plethora of things. (I'd rather have it as that anyways :P) Not a big deal to me, I did get it working :) On Mon, Nov 2, 2009 at 8:20 PM, Caldarale, Charles R chuck.caldar...@unisys.com wrote: From:

Tomcat Xalan classpath problem

2009-11-03 Thread Benson Margulies
I have a webapp that makes calls to the JAXP 1.4/Java 1.6 APIs that allow the caller to pass in the class name of implementation classes. It all works find standalone. It works fine in Jetty. It fails in Tomcat 6.0.20. The error is a missing method in a Xalan class; as if Tomcat has somehow

Re: Reading and writing files outside tomcat directory

2009-11-03 Thread André Warnier
noobie45 wrote: I have an application whose class files are in /usr/local/tomcat/webapps/ROOT/WEB-INF/classes It uses the following line to write a file called java.php: FileOutputStream fout = new FileOutputStream (/usr/local/tomcat/webapps/ROOT/java.php, true); It does this perfectly. What

Re: Tomcat Xalan classpath problem

2009-11-03 Thread André Warnier
Benson Margulies wrote: I have a webapp that makes calls to the JAXP 1.4/Java 1.6 APIs that allow the caller to pass in the class name of implementation classes. It all works find standalone. It works fine in Jetty. It fails in Tomcat 6.0.20. The error is a missing method in a Xalan class; as

Re: Tomcat Xalan classpath problem

2009-11-03 Thread Benson Margulies
Here's the relevant log traffic of the missing method. I can get past this problem by putting xalan into the endorsed directory, but I should not have to do that when using the JAXP 1.4 API to create XPathFactory. Caused by: java.lang.NoSuchMethodError: org.apache.xpath.XPathContext.init(Z)V

Trouble with context and JNDI resource

2009-11-03 Thread Mike Baranski
I'm using this page, trying to get a resource in a java class: http://tomcat.apache.org/tomcat-6.0-doc/jndi-resources-howto.html I have this in context.xml: Context !-- Default set of monitored resources -- WatchedResourceWEB-INF/web.xml/WatchedResource !-- Uncomment this

Re: Trouble with context and JNDI resource

2009-11-03 Thread Carsten Pohl
Hi, I am no expert, but your lookup looks strange. (Empty string in lookup). Furthermore these two contextes seem strange to me. This works great for me: @Override public void init() throws ServletException { LOGGER.info(INIT has been called); try { final

Re: Trouble with context and JNDI resource

2009-11-03 Thread Mikolaj Rydzewski
Mike Baranski wrote: Resource name=proteus auth=Container type=org.apache.commons.dbcp.BasicDataSource Why not to use jdbc/proteus? Just to follow convention. I'd also rather use javax.sql.DataSource as type attribute. resource-env-ref-name

RE: Trouble with context and JNDI resource

2009-11-03 Thread Mike Baranski
OK, thanks, what does your context.xml look like for the jdbc/progress? -Original Message- From: Carsten Pohl [mailto:p...@tyntec.com] Sent: Tuesday, November 03, 2009 9:03 AM To: Tomcat Users List Subject: Re: Trouble with context and JNDI resource Hi, I am no expert, but your lookup

Re: Tomcat Xalan classpath problem

2009-11-03 Thread Rainer Jung
Just to make sure w.r.t. it being working in Jetty: You use the same Java version? Sun changed an important bit between Java 5 and Java 6, where they are now caching something detected during runtime in a global static thus partially breaking the dynamics of XML parser detection when using mutiple

RE: Trouble with context and JNDI resource

2009-11-03 Thread Mike Baranski
That worked, thanks. -Original Message- From: Mikolaj Rydzewski [mailto:m...@ceti.pl] Sent: Tuesday, November 03, 2009 9:11 AM To: Tomcat Users List Subject: Re: Trouble with context and JNDI resource Mike Baranski wrote: Resource name=proteus auth=Container

Re: Trouble with context and JNDI resource

2009-11-03 Thread Carsten Pohl
My context.xml is quite straightforward. ?xml version=1.0 encoding=UTF-8? Context Resource name=jdbc/postgres override=true auth=Container type=javax.sql.DataSource driverClassName=org.postgresql.Driver url=jdbc:postgresql://SERVERNAME:5432/Dionysos

RE: Compression and SSL

2009-11-03 Thread Jeffrey Janner
Well, we already have filters in place to make sure our images, javascript, and other statics go out as cacheable. In fact, the only thing that should not be cached at this point are the results of the jsp pages themselves. Did see something recently about combining images into a single file,

RE: Trouble with context and JNDI resource

2009-11-03 Thread Mike Baranski
Yes, I know, what's the convention for doing this without changing the context.xml and restarting tomcat? -Original Message- From: Carsten Pohl [mailto:p...@tyntec.com] Sent: Tuesday, November 03, 2009 9:30 AM To: Tomcat Users List Subject: Re: Trouble with context and JNDI resource My

RE: Compression and SSL

2009-11-03 Thread Jeffrey Janner
André - Yep, it does sound quite elementary, but pointing out a good tool is appreciated. Since I am also the deployment god (we both host and distribute the app), I usually keep a tight a lid on these things. Nothing like having to make a bunch of changes to the installer to make my day. I

Re: Trouble with context and JNDI resource

2009-11-03 Thread Mikolaj Rydzewski
Mike Baranski wrote: Yes, I know, what's the convention for doing this without changing the context.xml and restarting tomcat? Put context.xml in META-INF directory of your webapp. -- Mikolaj Rydzewski m...@ceti.pl - To

RE: Trouble with context and JNDI resource

2009-11-03 Thread Martin Gainty
carsten is correct i would set the PGDATA environment var to point to exact location of Postgres Database directory e.g (pg_ctl -D, --pgdata DATADIR) before attempting connect to Postgres Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note

Re: Trouble with context and JNDI resource

2009-11-03 Thread Mikolaj Rydzewski
Martin Gainty wrote: i would set the PGDATA environment var to point to exact location of Postgres Database directory e.g (pg_ctl -D, --pgdata DATADIR) before attempting connect to Postgres Since we use TCP/IP to talk to postgres PGDATA is irrevelant (at client side). -- Mikolaj

Class not found when doing JNDI lookup

2009-11-03 Thread Mike Baranski
I have ifxjdbc.jar in WEB-INF/lib, which contains the Informix driver I'm looking for (I opened it and verified). I have the following in context.xml: Context path= !-- Default set of monitored resources -- WatchedResourceWEB-INF/web.xml/WatchedResource !-- Uncomment this

Re: Tomcat Xalan classpath problem

2009-11-03 Thread Benson Margulies
I am sure that I'm using the MacOS JDK 1.6 at all points. Also, if you look closely at the below, you will see that the problem is that one part of Xalan is failing to call another part ... of Xalan. If I had JDK 1.5 I'd be missing the newInstance APIs that take the class name, and if I had other

RE: Class not found when doing JNDI lookup

2009-11-03 Thread Caldarale, Charles R
From: Mike Baranski [mailto:list-subscripti...@secmgmt.com] Subject: Class not found when doing JNDI lookup I have ifxjdbc.jar in WEB-INF/lib, which contains the Informix driver I'm looking for (I opened it and verified). To quote from the doc: Before you proceed, don't forget to copy the

Re: Class not found when doing JNDI lookup

2009-11-03 Thread Mikolaj Rydzewski
Mike Baranski wrote: Is JNDI somehow masking the classpath of WEB-INF/lib? I have verified that there are not multiple jars with this class in the webapp, and it is not in the common/lib for tomcat. The correct way is to place resource-referenced jars in common/lib (or just lib for tomcat

RE: Class not found when doing JNDI lookup

2009-11-03 Thread Mike Baranski
Duh! That makes perfect sense. -Original Message- From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] Sent: Tuesday, November 03, 2009 10:38 AM To: Tomcat Users List Subject: RE: Class not found when doing JNDI lookup From: Mike Baranski

Re: Trouble with context and JNDI resource

2009-11-03 Thread Carsten Pohl
Just to make clear one thing. If you edit the context.xml (that will be automatically copied from your war archive to conf/Catalina/localhost/WEBAPP.xml) your webapp will be redeployed. That means, that the server will NOT be restarted, but your webapp WILL be redeployed (which will result in

Re: getRequestedSessionId() returns null

2009-11-03 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Daulat, On 11/3/2009 6:15 AM, daulat khan wrote: GET /earms/earms HTTP/1.1 Host: csipl-earms-sol1:8081 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.4) Gecko/20091016 Firefox/3.5.4 Accept:

Re: [mod_jk] Could not find worker with name

2009-11-03 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, On 11/3/2009 11:17 AM, Christopher Schultz wrote: I've done many mod_jk setups, but I'm stumped by this one. Duh: worker.list=worker.worker21 s/worker\.worker/worker/g Done. Sorry for the noise. Thanks, - -chris -BEGIN PGP

Re: getRequestedSessionId() returns null

2009-11-03 Thread daulat khan
Hi chris, what need to be done in the apache - tomcat setup to send the session and cookie with the header ? Thanks, Daulatkhan On Tue, Nov 3, 2009 at 9:57 PM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Daulat, On 11/3/2009 6:15

RE: getRequestedSessionId() returns null

2009-11-03 Thread Caldarale, Charles R
From: daulat khan [mailto:daulat@gmail.com] Subject: Re: getRequestedSessionId() returns null what need to be done in the apache - tomcat setup to send the session and cookie with the header ? The sessionid is sent by the client (browser) - if there is one. Since your webapp did not

Re: [mod_jk] Could not find worker with name

2009-11-03 Thread Rainer Jung
On 03.11.2009 17:30, Christopher Schultz wrote: All, On 11/3/2009 11:17 AM, Christopher Schultz wrote: I've done many mod_jk setups, but I'm stumped by this one. Duh: worker.list=worker.worker21 s/worker\.worker/worker/g Done. Sorry for the noise. You are to fast for us :)

Re: [mod_jk] Could not find worker with name

2009-11-03 Thread André Warnier
Chris, up to a certain point, I see in the logfile workers called worker.workerNN. and then, at some point, there are references to workers called just workerNN, which are the ones it does not find. - To unsubscribe,

Re: ConnectionPool question

2009-11-03 Thread Josh Gooding
If I close the RS, can I still use the MD? On Tue, Nov 3, 2009 at 3:13 PM, Elli Albek e...@sustainlane.com wrote: No, you do not need to close the XXXMetaData classes. E On Tue, Nov 3, 2009 at 12:02 PM, Josh Gooding josh.good...@gmail.com wrote: One more question on bleeding resources.

Re: Compression and SSL

2009-11-03 Thread Pid
On 03/11/2009 14:33, Jeffrey Janner wrote: Well, we already have filters in place to make sure our images, javascript, and other statics go out as cacheable. In fact, the only thing that should not be cached at this point are the results of the jsp pages themselves. Did see something recently

Re: ConnectionPool question

2009-11-03 Thread Josh Gooding
Elle, I am going to dig into this code and check it out. I want to know more about how to use threadlocal and filters. (Sorry I'm not as experienced in Tomcat as some for you gurus here). The code looks promising and I like the 2nd option due to the fact that each HTTP req. only has one

Problem forward HTTP / Soap request using mod_jk

2009-11-03 Thread breako
Hi, I have two tomcat servers and I can make them talk to each other using soap / http no problem. However, when I put Apache infront of one my tomcat servers and set it up to forward http requests to the tomcat server it doesn't get any requests. I am using the mod_jk to achieve the

Re: Tomcat Xalan classpath problem

2009-11-03 Thread Benson Margulies
I've attached a self-contained test case to bz 48116, so you can see this for yourself. On Tue, Nov 3, 2009 at 9:22 AM, Rainer Jung rainer.j...@kippdata.de wrote: Just to make sure w.r.t. it being working in Jetty: You use the same Java version? Sun changed an important bit between Java 5

Re: Problem forward HTTP / Soap request using mod_jk

2009-11-03 Thread André Warnier
breako wrote: Hi, I have two tomcat servers and I can make them talk to each other using soap / http no problem. I am tempted to ask what they are talking about, but I won't. However, when I put Apache infront of one my tomcat servers and set it up to forward http requests to the tomcat

Re: Compression and SSL

2009-11-03 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, On 11/3/2009 3:06 AM, André Warnier wrote: You have to look at it from the browser's point of view. When it sees an incomplete link, it completes it using the protocol and hostname from which the current page was obtained, and then it

Re: MISC; After one Tomcat Cluster node shutdown Session Replication working but a Hashmap object is getting empty

2009-11-03 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Imad, On 11/2/2009 11:17 PM, Imad Hachem wrote: distributable/ has been set in my Web application web.xml Okay, make sure it stays that way. private String sessionID = ; private HashMap md5Keys = new HashMap(); private

Re: Problem forward HTTP / Soap request using mod_jk

2009-11-03 Thread Rainer Jung
On 03.11.2009 19:35, breako wrote: Hi, I have two tomcat servers and I can make them talk to each other using soap / http no problem. However, when I put Apache infront of one my tomcat servers and set it up to forward http requests to the tomcat server it doesn't get any requests. I

Re: ConnectionPool question

2009-11-03 Thread Josh Gooding
nevermind. I get: javax.servlet.ServletException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operations allowed after connection closed. Guess that answers my question. On Tue, Nov 3, 2009 at 3:24 PM, Josh Gooding josh.good...@gmail.com wrote: If I close the

tomcat https

2009-11-03 Thread Torleif
Hi I am trying to set up tomcat to use https. I used keytool -genkey -alias tomcat -keyalg RSA If I use changeit as password for keystore everything works ok. If I use a different password it does not work. I have modified server.xml with keystorePass=newpassword My .keystore is located in

Re: Reading and writing files outside tomcat directory

2009-11-03 Thread noobie45
The Tomcat is installed on my site under Debian. I think it's the standard version with directories in the usual places. -- View this message in context: http://old.nabble.com/Reading-and-writing-files-outside-tomcat-directory-tp26160054p26180125.html Sent from the Tomcat - User mailing list

Re: Reading and writing files outside tomcat directory

2009-11-03 Thread noobie45
Thank you so much. I am absolutely new to Tomcat on Linux. I need to figure out what you mean by user-id under which Tomcat runs. -- View this message in context: http://old.nabble.com/Reading-and-writing-files-outside-tomcat-directory-tp26160054p26180750.html Sent from the Tomcat - User

RE: Compression and SSL

2009-11-03 Thread George Sexton
-Original Message- From: Jeffrey Janner [mailto:jeffrey.jan...@polydyne.com] Sent: Monday, November 02, 2009 5:18 PM To: Tomcat Users List Subject: RE: Compression and SSL Thanks for all the suggestions so far guys. Are there any other tips I could provide to the developers that

Re: Reading and writing files outside tomcat directory

2009-11-03 Thread noobie45
I used my ftp client (WinSCP) to change file permissions for the directory to R,W,X for others and now I am able to write the file outside the Tomcat directory. Thanks again so much. -- View this message in context:

Re: ConnectionPool question

2009-11-03 Thread Josh Gooding
One more question on bleeding resources. When closing RS / statement / connections. Do I have to do anything with the MetaData if I got that as well? (I.E Do I explicitly have to close the metadata as well?) Josh On Tue, Nov 3, 2009 at 2:01 PM, Josh Gooding josh.good...@gmail.com wrote:

Re: ConnectionPool question

2009-11-03 Thread Elli Albek
No, you do not need to close the XXXMetaData classes. E On Tue, Nov 3, 2009 at 12:02 PM, Josh Gooding josh.good...@gmail.comwrote: One more question on bleeding resources. When closing RS / statement / connections. Do I have to do anything with the MetaData if I got that as well? (I.E Do

Re: tomcat https

2009-11-03 Thread Nilesh Patil
Dear Torleif Why you r Using Default Location to Store Keystore.. ypu can Use following command to generate keystore * c:/keytool -genkey -keyalg RSA -alias tomcat -keystore tomcat.keystore -storepass tomcat* Then above command will generate tomcat keystore in current working directory.