Re: Tomcat Clsuter 6.0.18 White sites

2010-01-20 Thread Mark Thomas
On 20/01/2010 02:45, Alexander Diedler wrote: Hi everybody, We have some issues with a Tomcat Cluster. Sometimes (after a few hours without restart of services) , the webserver doesn´t deliver the complete content to the browser. It means, in the browser ther appear the header and some

Re: Tomcat Realm

2010-01-20 Thread Mark Thomas
On 20/01/2010 01:38, Aihong Yin wrote: Hi, I'm using tomcat5.5. my question is: is it possible to implement a realm to identify valid users of a web application: the username and password get from LDAP directory server central, and the role of the user get from local file such as

TOMCAT GC Issue

2010-01-20 Thread Paulwintech
Hello, I am new to the Tomcat Administration, I have some 4 production servers running Tomcat6.x with Jdk - To monitor all my applications like Apache,Tomcat and Mysql we are using OPmanager-Application manager tool. Intermediately i get GC critical alert. That means some times GC

Re: TOMCAT GC Issue

2010-01-20 Thread Peter Crowther
2010/1/20 Paulwintech paulwint...@gmail.com Hello, I am new to the Tomcat Administration, I have some 4 production servers running Tomcat6.x with Jdk - To monitor all my applications like Apache,Tomcat and Mysql we are using OPmanager-Application manager tool. Intermediately i get GC

Re: Modifying value or format of HTTPServletRequest.getRemoteUser()

2010-01-20 Thread Pid
On 20/01/2010 01:33, Christopher Nebergall wrote: I have a Jaas plugin where I'm using basic auth. It authenticates the user successfully, and in the jaas plugin I make it so request.getUserPrincipal().getName() it returns the format of the username I want shown to the app. But

War file encryption

2010-01-20 Thread Kranti™ K K Parisa
Hi, Is there any way that we could encrypt the war file that is getting deployed into tomcat? or can we make war files or jar files as native code files like dll files or so. the objective is to safe guard the code inside the war file (javascript, jsp, .class files)..etc Best Regards, Kranti

RE: multiple URI

2010-01-20 Thread Vadym Chepkov
Unfortunately, I have to install such application in ROOT context for this to work and I am trying to avoid it. Sincerely yours, Vadym Chepkov --- On Wed, 1/20/10, Travis Beech travis.be...@gmail.com wrote: From: Travis Beech travis.be...@gmail.com Subject: RE: multiple URI To: 'Tomcat

Re: War file encryption

2010-01-20 Thread Peter Crowther
If you control the servers on which the code is being deployed, you should probably be taking other steps than encryption. If you *don't* control the servers, you cannot stop someone decrypting your code - sooner or later, it will have to be decrypted for Tomcat to use it. Therefore you will have

Re: War file encryption

2010-01-20 Thread Kranti™ K K Parisa
Hi Peter, Thanks for the reply and could you please give me the url of that software, if possible. I shall take a look at that. Best Regards, Kranti K K Parisa On Wed, Jan 20, 2010 at 7:03 PM, Peter Crowther peter.crowt...@melandra.com wrote: If you control the servers on which the code is

Re: War file encryption

2010-01-20 Thread Mikolaj Rydzewski
Kranti™ K K Parisa wrote: Is there any way that we could encrypt the war file that is getting deployed into tomcat? My $0.02: * you can obfuscate class files * you can precompile JSPs (and again, obfuscate them) * you can sign jar files It will make any unauthorized webapp

mod_jk codepage in header values

2010-01-20 Thread Mirko Solic
Hello, for connecting tomcat with apache i'm using mod_jk connector. But i'm having problem with header values. On apache side headers values are in UTF-8 cp but on tomcat side i have to make conversion from latin-1 cp. I'm using this code: for(Enumeration en = request.getHeaderNames();

RE: multiple URI

2010-01-20 Thread Caldarale, Charles R
From: André Warnier [mailto:a...@ice-sa.com] Subject: Re: multiple URI - then in the web.xml of the existing ROOT application, add the configuration for the UrlRewriteFilter. No. The webapp would be deployed as A or B (implementor choice), and a dummy webapp consisting only of the rewrite

Timeout

2010-01-20 Thread Mohit Anchlia
Tomcat 6: Are there any other kind of timeout values other than ConnectionTimeout? Does Connection Timeout come into affect when there is an ESTABLISHED socket connection from the client? - To unsubscribe, e-mail:

RE: TOMCAT GC Issue

2010-01-20 Thread Robin Wilson
I agree with Peter, we need more information. I will point out that we had a similar issue - during peak activity on our site, and it related to sessions being created faster than Tomcat could get rid of them (even though they were expired already). We used the /manager/html app that comes

Windows Thread dump issue

2010-01-20 Thread Jeffrey Janner
Is there a version where the Tomcat Monitor (Tomcat5w.exe) thread dump option doesn't work and one where it's been fixed? I have a Windows 2008 Server 64-bit running Sun JDK 1.6.0_13 64-bit and Tomcat 5.5.27. When I right-click on the Tomcat monitor in the system tray and select Thread Dump,

Re: Windows Thread dump issue

2010-01-20 Thread Konstantin Kolinko
2010/1/20 Jeffrey Janner jeffrey.jan...@polydyne.com: Is there a version where the Tomcat Monitor (Tomcat5w.exe) thread dump option doesn't work and one where it's been fixed? I have a Windows 2008 Server 64-bit running Sun JDK 1.6.0_13 64-bit and Tomcat 5.5.27. When I right-click on the

Re: multiple URI

2010-01-20 Thread Vadym Chepkov
Unfortunately, this would change the request and breaks application functionality, it's a proxy already (IBM WBIMB Proxy Servlet - Message Broker) Sincerely yours, Vadym Chepkov --- On Wed, 1/20/10, André Warnier a...@ice-sa.com wrote: From: André Warnier a...@ice-sa.com Subject: Re:

RE: Windows Thread dump issue

2010-01-20 Thread Caldarale, Charles R
From: Konstantin Kolinko [mailto:knst.koli...@gmail.com] Subject: Re: Windows Thread dump issue Look in stdout_.log. I don't have 5.5 installed at the moment, but in 6.0 it is there. Not for me - it's in jakarta_service_MMdd.log, in both 5.5 and 6.0. - Chuck THIS COMMUNICATION

RE: Windows Thread dump issue

2010-01-20 Thread Caldarale, Charles R
From: Jeffrey Janner [mailto:jeffrey.jan...@polydyne.com] Subject: Windows Thread dump issue I have a Windows 2008 Server 64-bit running Sun JDK 1.6.0_13 64-bit and Tomcat 5.5.27. I just tried it with Vista 64 using JDK 1.6.0_14, running both Tomcat 5.5.27 and 6.0.20. When I right-click

Http 500 and %b in access log

2010-01-20 Thread Mohit Anchlia
Tomcat 6: I am seeing Exception in localhost java.net.SocketTimeoutException: Read time out. I looked at the access log and I see tomcat returning Http 500. Only thing in common is that %b (bytes sent) for all the timeouts are 2657. For rest of them where requests are successfull it's less than

RE: Different apps clustering on the same Tomcat?

2010-01-20 Thread John Tangney
Thanks, Chuck. Caldarale, Charles R chuck.caldar...@unisys.com wrote .. From: John Tangney [mailto:jo...@jdtangney.com] Is it possible to get two apps in the same Tomcat instance to exchange session info, in a cluster? If so, how? Not sure what you're asking. Apologies if I was not

RE: Windows Thread dump issue

2010-01-20 Thread Jeffrey Janner
Sorry I wasn't clear. The file is empty. -Original Message- From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] Sent: Wednesday, January 20, 2010 10:44 AM To: Tomcat Users List Subject: RE: Windows Thread dump issue From: Jeffrey Janner [mailto:jeffrey.jan...@polydyne.com]

RE: Windows Thread dump issue

2010-01-20 Thread Jeffrey Janner
Thanks Konstantin. That is where it was. Now I have something to document for the ops to run when the app hangs again. -Original Message- From: Konstantin Kolinko [mailto:knst.koli...@gmail.com] Sent: Wednesday, January 20, 2010 10:20 AM To: Tomcat Users List Subject: Re: Windows Thread

Re: Windows Thread dump issue

2010-01-20 Thread Konstantin Kolinko
2010/1/20 Caldarale, Charles R chuck.caldar...@unisys.com: From: Konstantin Kolinko [mailto:knst.koli...@gmail.com] Subject: Re: Windows Thread dump issue Look in stdout_.log.  I don't have 5.5 installed at the moment, but in 6.0 it is there. Not for me - it's in

Tomcat 5.5 connection reset

2010-01-20 Thread Maximilian Stocker
I have the following basic configuration RHEL 5 with Tomcat 5.5.23. This server is in a DMZ in my office and from here I can connect to it via LAN rather than the internet. When I try to download a file (a simple PDF about 1 MB in size) chucked into WebContent from the server over the internet

Re: Http 500 and %b in access log

2010-01-20 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mohit, On 1/20/2010 12:06 PM, Mohit Anchlia wrote: Tomcat 6: Which specific version, please. Also, what connector(s) are you using. Please provide the configuration for them. Are you using another web server in front of Tomcat? If so, which one,

form authentication error on tomcat cluster

2010-01-20 Thread Okubo, Yasushi (TSD)
Hi I have configured tomcat cluster [v6.0.20] on linux box with mod_proxy/mod_proxy_ajp [tomcat 6/Redhat 5/stickysession also turned on for load balancer] on two different nodes. Each node is running one tomcat instance. I inserted cluster element under engine and turned on jvmroute by

Re: Different apps clustering on the same Tomcat?

2010-01-20 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 John, On 1/20/2010 12:37 PM, John Tangney wrote: Just for background... In an ideal world, we'd just buy another server and add it to the (existing) cluster. But we are looking for ways to get the benefit of another cluster node without new

Tomcat encryption algorithms

2010-01-20 Thread Shan, Justine
Hi, As far as I know, the only encryption implemented by Tomcat itself is SSL. But I need to know what exactly algorithms have been implemented and distributed with the binary from Apache Tomcat 5.X and 6. To my understanding, Tomcat relies on the JVM or JCE installed on the user's machine to

RE: Different apps clustering on the same Tomcat?

2010-01-20 Thread Caldarale, Charles R
From: John Tangney [mailto:jo...@jdtangney.com] Subject: RE: Different apps clustering on the same Tomcat? We have two machines, each with a Tomcat, forming a cluster. An app named gh runs on each cluster node. We want to add a second app to one of the Tomcats (call it gh2 ? it's just a

PermGen question

2010-01-20 Thread Jeffrey Janner
I've got a really odd situation that I'm not understanding. I figured the gurus could explain it to me. I have two Tomcat instances deployed as services on the same 64bit Windows 2008 machine with Sun JDK 1.6.0_13 64bit. They are running the same apps but for different user bases and were

RE: PermGen question

2010-01-20 Thread Caldarale, Charles R
From: Jeffrey Janner [mailto:jeffrey.jan...@polydyne.com] Subject: PermGen question Instance 1: PSPermGen total 43712K, used 43613K [0x7fff, 0x82aa, 0x853f) object space 43712K, 99% used

Re: Tomcat encryption algorithms

2010-01-20 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Justine, On 1/20/2010 1:52 PM, Shan, Justine wrote: As far as I know, the only encryption implemented by Tomcat itself is SSL. SSL is a strategy of securely transmitting data, which uses encryption. Technically speaking, Tomcat does not

Re: Http 500 and %b in access log

2010-01-20 Thread Mohit Anchlia
On Wed, Jan 20, 2010 at 10:47 AM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mohit, On 1/20/2010 12:06 PM, Mohit Anchlia wrote: Tomcat 6: Which specific version, please. Also, what connector(s) are you using. Please provide the

RE: Tomcat encryption algorithms

2010-01-20 Thread Caldarale, Charles R
From: Shan, Justine [mailto:justine.s...@sap.com] Subject: Tomcat encryption algorithms But I need to know what exactly algorithms have been implemented and distributed with the binary from Apache Tomcat 5.X and 6. That's easy: none. Tomcat uses whatever algorithms are installed with the

RE: PermGen question

2010-01-20 Thread Jeffrey Janner
And no, I'm not seeing out of PermGen errors -- yet. -Original Message- From: Jeffrey Janner [mailto:jeffrey.jan...@polydyne.com] Sent: Wednesday, January 20, 2010 12:53 PM To: Tomcat Users List Subject: PermGen question I've got a really odd situation that I'm not understanding. I

RE: Tomcat encryption algorithms

2010-01-20 Thread Shan, Justine
Thank you so much for the answer! Regarding the classification, please see the link below: http://www.apache.org/licenses/exports/ scroll down to the product Apache Tomcat. It says it's 5D002. I also reached to Apache Legal to verify but haven't heard anything back. -Original

RE: Tomcat encryption algorithms

2010-01-20 Thread Shan, Justine
Thanks! Just replied a min ago with the link : http://www.apache.org/licenses/exports/ (scroll down to Apache Tomcat) -Original Message- From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] Sent: Wednesday, January 20, 2010 11:13 AM To: Tomcat Users List Subject: RE: Tomcat

Re: TOMCAT GC Issue

2010-01-20 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Paulwintech, On 1/20/2010 5:48 AM, Paulwintech wrote: Intermediately i get GC critical alert. That means some times GC collection goes high and remains for more than 10 mins. Then it clears the Grabage. But this is happening recently checked all

RE: Tomcat encryption algorithms

2010-01-20 Thread Caldarale, Charles R
From: Shan, Justine [mailto:justine.s...@sap.com] Subject: RE: Tomcat encryption algorithms scroll down to the product Apache Tomcat. It says it's 5D002. Perhaps you missed this part of the explanation of 5D002: Products classified as ECCN 5D002, are exported by the ASF under the TSU

Re: Tomcat encryption algorithms

2010-01-20 Thread Mark Thomas
On 20/01/2010 13:52, Shan, Justine wrote: Tomcat is classified as 5D002, strong cryptography. This implies Tomcat does contain (and thus ships with) encryption implementation. No it doesn't. It means quote ASF product distributions that contain or are specially designed to use cryptography

Re: Http 500 and %b in access log

2010-01-20 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mohit, On 1/20/2010 2:11 PM, Mohit Anchlia wrote: Server version: Apache Tomcat/6.0.18 We don't any other web server in front Okay. What connector(s) are you using? I'm not sure it matters, given the other information you've provided.

Re: mod_jk codepage in header values

2010-01-20 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mirko, On 1/20/2010 9:42 AM, Mirko Solic wrote: for connecting tomcat with apache i'm using mod_jk connector. But i'm having problem with header values. On apache side headers values are in UTF-8 cp but on tomcat side i have to make conversion

Re: Http 500 and %b in access log

2010-01-20 Thread Mohit Anchlia
On Wed, Jan 20, 2010 at 11:41 AM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mohit, On 1/20/2010 2:11 PM, Mohit Anchlia wrote: Server version: Apache Tomcat/6.0.18 We don't any other web server in front Okay. What connector(s)

Re: Polling and session timeout

2010-01-20 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Michael, I've been seeing this message on the list for a few days, and haven't responded because I didn't have any suggestions for you. Since nobody has answered, I'll go ahead and give you my thoughts. On 1/12/2010 10:42 AM, grailcattt wrote: I

RE: PermGen question

2010-01-20 Thread Jeffrey Janner
Thanks Charles. I found that later in a link I got from Google. I'd found lots of references to how to set MaxPermGen, but I already knew that. I also found lots of references that the default was 64Mb, which didn't jive with the 86Mb that one instance had. Perhaps the 64bit server default is

Ajp port in use - tomcat using next available port

2010-01-20 Thread Paul Guglielmino
I'm setting up tomcat and I noticed what I think is an odd behavior. I'm setting up the server to only listen on an ajp port (8009). If I already have something listening on that port then tomcat starts listening on the next port number (8010). This doesn't happen if the shutdown port is already

Re: Http 500 and %b in access log

2010-01-20 Thread Mohit Anchlia
On the same note. Is there a way to log in access log at what time the request was received and time response was sent? I am planning to add more debug to see how long it waits before timing out. On Wed, Jan 20, 2010 at 12:08 PM, Mohit Anchlia mohitanch...@gmail.com wrote: On Wed, Jan 20, 2010

Re: Http 500 and %b in access log

2010-01-20 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mohit, On 1/20/2010 3:08 PM, Mohit Anchlia wrote: Connector port=8080 protocol=HTTP/1.1 connectionTimeout=12 maxThreads=300 redirectPort=8443 / Okay, so you're using the standard HTTP

Re: Http 500 and %b in access log

2010-01-20 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mohit, On 1/20/2010 4:18 PM, Mohit Anchlia wrote: On the same note. Is there a way to log in access log at what time the request was received and time response was sent? I am planning to add more debug to see how long it waits before timing out.

Re: Ajp port in use - tomcat using next available port

2010-01-20 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Paul, On 1/20/2010 4:08 PM, Paul Guglielmino wrote: I'm setting up the server to only listen on an ajp port (8009). If I already have something listening on that port then tomcat starts listening on the next port number (8010). This doesn't happen

Re: Http 500 and %b in access log

2010-01-20 Thread Mohit Anchlia
On Wed, Jan 20, 2010 at 2:00 PM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mohit, On 1/20/2010 3:08 PM, Mohit Anchlia wrote:     Connector port=8080 protocol=HTTP/1.1                connectionTimeout=12                

RE: Http 500 and %b in access log

2010-01-20 Thread Maximilian Stocker
-Original Message- From: Mohit Anchlia [mailto:mohitanch...@gmail.com] Sent: Wednesday, January 20, 2010 5:40 PM To: Tomcat Users List Subject: Re: Http 500 and %b in access log I suspect the following as you mentioned. Is there a way I can write small application that simulates this

Deploying war on embedded tomcat

2010-01-20 Thread Clay McCoy
I want to programmatically deploy a War file in an embedded Tomcat. I found these two examples: http://onjava.com/onjava/2002/04/03/tomcat.html http://mail-archives.apache.org/mod_mbox/tomcat-users/200704.mbox/20070427190204.279...@gmx.net Both appear to be completely out of date. I'm using

memory leak

2010-01-20 Thread Ken Bowen
Short version: I have a project which gets some simple info from a db via DWR, and outputs it simply on the page. There is a memory leak on the java side. Longer version: I've developed a project using JSPs and the Ajax tool DWR 2.0 (Direct Web Remoting: http://directwebremoting.org/dwr).

Re: Ajp port in use - tomcat using next available port

2010-01-20 Thread Paul Guglielmino
On 1/20/2010 4:08 PM, Paul Guglielmino wrote: I'm setting up the server to only listen on an ajp port (8009). If I already have something listening on that port then tomcat starts listening on the next port number (8010). This doesn't happen if the shutdown port is already in use or if I

Re: memory leak

2010-01-20 Thread Travis Beech
I would make sure that your DAO class is closing any statements, resultsets, and connections that are no longer being used once your method call returns. Since GC does happen immediately your db resources could still be in memory. Travis Beech On Jan 20, 2010, at 3:50 PM, Ken Bowen

Re: Ajp port in use - tomcat using next available port

2010-01-20 Thread Mark Thomas
On 20/01/2010 17:08, Christopher Schultz wrote: Paul, On 1/20/2010 4:08 PM, Paul Guglielmino wrote: I'm setting up the server to only listen on an ajp port (8009). If I already have something listening on that port then tomcat starts listening on the next port number (8010). This doesn't

RE: Multiple Services running on single Server instance?

2010-01-20 Thread Caldarale, Charles R
From: Ted Steiner [mailto:ted006...@yahoo.com] Subject: Multiple Services running on single Server instance? Is there any good reason to do this? If so, could someone please let me know and possibly provide an example? Your question is rather vague. Want to give us some idea of what you're

RE: memory leak

2010-01-20 Thread Caldarale, Charles R
From: Ken Bowen [mailto:kbo...@als.com] Subject: memory leak Short version: I have a project which gets some simple info from a db via DWR, and outputs it simply on the page. There is a memory leak on the java side. First off, do you really have a leak? top is not an appropriate tool for

Re: memory leak

2010-01-20 Thread Ken Bowen
As I mentioned, the DAO class uses a standard try/catch/finally pattern to ensure that all statements, resultsets, connections have been closed before a method returns. On Jan 20, 2010, at 9:25 PM, Travis Beech wrote: I would make sure that your DAO class is closing any statements,

Re: Different apps clustering on the same Tomcat?

2010-01-20 Thread John Tangney
On Jan 20, 2010, at 10:57 AM, Caldarale, Charles R wrote: From: John Tangney [mailto:jo...@jdtangney.com] Subject: RE: Different apps clustering on the same Tomcat? We have two machines, each with a Tomcat, forming a cluster. An app named gh runs on each cluster node. We want to add a second

RE: Different apps clustering on the same Tomcat?

2010-01-20 Thread Caldarale, Charles R
From: John Tangney [mailto:jo...@jdtangney.com] Subject: Re: Different apps clustering on the same Tomcat? We use a cluster to do seamless deploys. We use Nginx on the front end to direct traffic to one or other of the nodes in the cluster. To deploy, we bring up the new version of the app

Re: Different apps clustering on the same Tomcat?

2010-01-20 Thread John Tangney
On Jan 20, 2010, at 7:38 PM, Caldarale, Charles R wrote: You can run multiple instances of Tomcat on the same box, and each could have a copy of the app deployed, and each Tomcat could be a separate node in the cluster. That's exactly what we do on Linux, but it fails on Windows due to a

RE: Different apps clustering on the same Tomcat?

2010-01-20 Thread Caldarale, Charles R
From: John Tangney [mailto:jo...@jdtangney.com] Subject: Re: Different apps clustering on the same Tomcat? That's exactly what we do on Linux, but it fails on Windows due to a bug I have already logged. What bug is that? I run multiple Tomcats concurrently on Vista 64 without a problem.

Re: Polling and session timeout

2010-01-20 Thread grailcattt
That is exactly what I ended up doing and it is working well. I was hoping for a solution that used tomcat session management rather than managing my own session timeouts, but it works well. -- View this message in context:

RE: memory leak

2010-01-20 Thread Travis Beech
Are you doing any server side caching of the data? If so perhaps your caching mechanism is re-caching the same data per request? As Charles said earlier, your best bet would be to use a profiling tool that will tell you exactly where the memory is being allocated. -Original Message-

Re: TOMCAT GC Issue

2010-01-20 Thread Paulwintech
Hi, I am really sorry it was my typo mistake its 10 second not 10 mins =^D. Please let me know what are the logs you are looking for accordingly i will send. Thanks Paulwintech Christopher Schultz-2 wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Paulwintech, On

tomcat log analyzer

2010-01-20 Thread Ramachandran, Vishwanath(IE10)
Hi there We have a application called JIRA, running on apache tomcat. The logs are in the form of catalina.out. Is there a web log analyzer tool which analyzes and supports the logs (catalina.out) so as I get output like the no of visitors, authenticated users, hit counts, page views etc.