Tomcat starts many java processes

2010-12-09 Thread Sujit Kale
Hi, I am using apache tomcat (6.0.14) with java (1.5.0_15) on linux ( vmrhel 2.6.9-34.EL) running inside a virtual machine When I start tomcat it should start only 1 java process. But in my case it starts 8-10 processes. If I shutdown tomcat all processes vanishes. All the processes seems to

Re: Setting listings=true on a per context basis

2010-12-09 Thread Konstantin Kolinko
2010/12/9 Fergus McMenemie fer...@twig.me.uk: If you do not want to bother with DefaultServlet, you can implement a javax.servlet.Filter that will output a listing for any URL ending with /. BTW, Tomcat will automatically send to the browser a redirect from foo - foo/ for any URL that

Re: Tomcat starts many java processes

2010-12-09 Thread Konstantin Kolinko
2010/12/9 Sujit Kale sujit.k...@tcs.com: When I start tomcat it should start only 1 java process. But in my case it starts 8-10 processes. The ps command on some versions of Linux shows threads as processes. It is mentioned in the FAQ, http://wiki.apache.org/tomcat/FAQ/Linux_Unix#Q1

Re: uniqueId of StaticMember

2010-12-09 Thread Konstantin Kolinko
2010/12/9 ASHOK PORALU ashok.por...@gmail.com: What exactly the uniqueId of StaticMember class? How is it being used in implementation? Can multiple static nodes have same uniqueId? The following says something about that: [1]

Re: how to enable Tomcat to handle proprietary TCP streams (non-http data)

2010-12-09 Thread Peter Crowther
On 8 December 2010 19:51, razor razorj...@gazeta.pl wrote: So i can just start my own thread (threads) for receiving non-http data (where to put initialization/starting stuff? as a new servlet ? ) If you implement your entire non-HTTP system as a servlet in its own context, you have the

Re: Tomcat dying on its own

2010-12-09 Thread Mark Thomas
On 08/12/2010 23:23, André Warnier wrote: Mark Thomas wrote: Been there, tried that. There is no easy way (I could find) to distinguish between a legitimate and illegitimate shut-down. Naive suggestion : how about some global flag which the legitimate shutdown paths set (and the others don't

Re: Tomcat starts many java processes

2010-12-09 Thread Mark Thomas
On 09/12/2010 08:07, Sujit Kale wrote: Hi, I am using apache tomcat (6.0.14) with java (1.5.0_15) on linux ( vmrhel 2.6.9-34.EL) running inside a virtual machine All three of those could do with an update. Mark - To

CharacterEncoding is overridden by setContentType

2010-12-09 Thread Ben
Hi there, I don't get the source code from Tomcat 7.0.5. In the javadoc it says: --This method must preserve any response charset that may already have -- * been set via a call to response.setContentType(), response.setLocale(), -- * or response.setCharacterEncoding(). But in the code

Re: CharacterEncoding is overridden by setContentType

2010-12-09 Thread Ben
Oh, and I found the force encoding filter does not work if the setContentType is called after. Is that becos of this method? On Dec 9, 2010, at 6:58 PM, Ben wrote: Hi there, I don't get the source code from Tomcat 7.0.5. In the javadoc it says: --This method must preserve any

Re: CharacterEncoding is overridden by setContentType

2010-12-09 Thread Mark Thomas
On 09/12/2010 10:58, Ben wrote: Hi there, I don't get the source code from Tomcat 7.0.5. In the javadoc it says: --This method must preserve any response charset that may already have -- * been set via a call to response.setContentType(), response.setLocale(), -- * or

Re: Tomcat dying on its own

2010-12-09 Thread Tim Funk
I'm late to the party. But how about trying the following ... 1) Add a filter which runs first and logs the request. This WILL have a performance impact - but a non-running application is a tad bit slower than writing each request to disk. With luck - this may call out a class of (or single)

Re: Tomcat dying on its own

2010-12-09 Thread André Warnier
Mark Thomas wrote: On 08/12/2010 23:23, André Warnier wrote: Mark Thomas wrote: Been there, tried that. There is no easy way (I could find) to distinguish between a legitimate and illegitimate shut-down. Naive suggestion : how about some global flag which the legitimate shutdown paths set

Re: Tomcat dying on its own

2010-12-09 Thread Mark Thomas
On 09/12/2010 12:51, André Warnier wrote: Mark Thomas wrote: On 08/12/2010 23:23, André Warnier wrote: Mark Thomas wrote: Been there, tried that. There is no easy way (I could find) to distinguish between a legitimate and illegitimate shut-down. Naive suggestion : how about some global flag

RE: enforcing SSL only for external clients

2010-12-09 Thread Aggarwal, Ajay
Chris, You are correct. I benchmarked in both directions and performance is pretty comparable (http vs https). BTW, my application uses Java and Apache HTTP Components library to perform these file transfers. While downloading from the server, I saw very similar %CPU and the total time taken

RE: enforcing SSL only for external clients

2010-12-09 Thread Aggarwal, Ajay
These file transfers are performed using Java and Apache HTTP Components library. Security is being handled by requiring clients to pass a token, which was issued to the client upon successful authentication. But as I mentioned in my other email looks like my assumptions about HTTPS causing

Re: enforcing SSL only for external clients

2010-12-09 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ajay, On 12/9/2010 11:29 AM, Aggarwal, Ajay wrote: You are correct. I benchmarked in both directions and performance is pretty comparable (http vs https). BTW, my application uses Java and Apache HTTP Components library to perform these file

Re: enforcing SSL only for external clients

2010-12-09 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, On 12/8/2010 5:58 PM, André Warnier wrote: If we are talking about a standard web application using a standard html interface and standard browsers, then such an upload would be triggered by a POST from a html form with a input type=file in

Fwd: Re: how to enable Tomcat to handle proprietary TCP streams (non-http data)

2010-12-09 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, Oops... I managed to send this to the OP and not to the list. - -chris - Original Message Subject: Re: how to enable Tomcat to handle proprietary TCP streams (non-http data) Date: Wed, 08 Dec 2010 15:04:40 -0500 From:

Re: HTTP status 404

2010-12-09 Thread Lava Saleem
Hello everyone, Thanks for the replies I really appreciate your feedback I have the structure as the following webapps | filename |- filename.htm *|-*WEB-INF |- web.xml |-META-INF |-context.xml after having this structure,I use the following command

Not supported by Basic Datasource

2010-12-09 Thread SOPANMISHRA
jdk-1.6_13 Tomcat-6.0.26 Hibernate 3.2 I'm getting the error Not supported by BasicDataSource while running a project based on java-hibernate-tomcat server. The project works fine if I use the normal jdbc process. For configuring datasource I strictly followed the process mentioned in Tomcat

Problem Started JBoss service -

2010-12-09 Thread Nick Beare
Hi Community Can anybody shed any light on the error we are experiencing when attempting to start the JBoss service? An extract of the run.log is shown below. . . . 12:17:46,836 INFO [Http11Protocol] Initializing Coyote HTTP/1.1 on http-VMNWT118%2F10.5.23.151-8080 12:17:46,836 INFO

Re: HTTP status 404

2010-12-09 Thread David Smith
Looks like you should be requesting /filename/filename.htm instead of filename/ ... that is unless you've set a welcome file in the app's web.xml file. If that doesn't work, also take a look at the tomcat logs for the moment in time you a. started tomcat, b. deployed your app (if different from

RE: Problem Started JBoss service -

2010-12-09 Thread Caldarale, Charles R
From: Nick Beare [mailto:nick.be...@causeway.com] Subject: Problem Started JBoss service - Can anybody shed any light on the error we are experiencing when attempting to start the JBoss service? 12:17:49,289 ERROR [STDERR] java.lang.NullPointerException 12:17:49,289 ERROR [STDERR]

Re: HTTP status 404

2010-12-09 Thread Mark Eggers
In the absence of a web.xml file with the following: welcome-file-list welcome-filefilename.htm/welcome-file /welcome-file-list You will have to navigate to: localhost:8080/filename/filename.htm In another message I posted a minimal web.xml file. Change index.html to

Re: Not supported by Basic Datasource

2010-12-09 Thread Mark Eggers
From a quick glance it looks like you're mixing Hibernate-controlled database pooling with Tomcat-managed pooling. Read this and see if that helps. http://wiki.apache.org/tomcat/TomcatHibernate . . . . just my two cents. /mde/ - Original Message From: SOPANMISHRA

Re: enforcing SSL only for external clients

2010-12-09 Thread André Warnier
Christopher, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, On 12/8/2010 5:58 PM, André Warnier wrote: If we are talking about a standard web application using a standard html interface and standard browsers, then such an upload would be triggered by a POST

Re: deploy log4j

2010-12-09 Thread cpanon
Hi Mark Thank you for the extensive effort in response. However it gets curiouser and curiouser. Specifically when I deploy TC6.0.29 JRE 6.0.22-b04 log4j.properties(in WEB-INF/classes/) # Set root logger level to DEBUG and its only appender to A1. log4j.rootLogger=WARN, A1 # A1 is set to be

Re: HTTP status 404

2010-12-09 Thread Lava Saleem
Hi Mark, I have changed my web.xml file to the one you send me and added the welcome-file-list so I will not need to navigate to localhost:8080/filename/filename.htm, I changed the index.htm to filename.htmthen I navigated to localhost:8080/filename and it didn't work , I also copied the

Re: Step by Step Guide – Install Jakarta on Windows 2003 and 2008 Server

2010-12-09 Thread Mark Thomas
On 07/12/2010 17:16, Mark Thomas wrote: On 07/12/2010 14:35, Ognjen Blagojevic wrote: Hi Gabriel, These Step by Step Guides covers the installation of Apache Tomcat Connector Jakarta on Windows 2003 and 2008 Server. The name you chose for your product is confusing. IANAL, but I also

Re: enforcing SSL only for external clients

2010-12-09 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, On 12/9/2010 1:50 PM, André Warnier wrote: Assume that the upload URL in question is handled by an application requiring HTTPS. And assume that the web application requires some form of user authentication. Ok. Are you telling me that

Re: deploy log4j

2010-12-09 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 cpannon, On 12/9/2010 1:55 PM, cpanon wrote: Specifically when I deploy TC6.0.29 JRE 6.0.22-b04 log4j.properties(in WEB-INF/classes/) Where is log4j.jar? on Win2KSrv, Win2003Srv, and WinXPP I get java.lang.ClassCastException:

Re: Not supported by Basic Datasource

2010-12-09 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 SOPANMISHRA, On 12/9/2010 12:33 PM, SOPANMISHRA wrote: I'm getting the error Not supported by BasicDataSource while running a project based on java-hibernate-tomcat server. The project works fine if I use the normal jdbc process. What is the

Re: class not found in tomcat's JARs (in $CATALINA_HOME/lib)

2010-12-09 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Frank, On 12/7/2010 12:59 PM, frank wrote: I set CATALINA_BASE and CATALINA_HOME to my directory like: CATALINA_BASE=/usr/share/mydir CATALINA_HOME=/usr/share/mydir Why did you set either of these environment variables? IF you

Re: deploy log4j

2010-12-09 Thread Mark Eggers
cpannon, I just wrote a very simple web application (2 JSP files, one servlet) and added log4j. I ran this on Linux and Windows/XP with both console and file logging. I don't have access to a Windows server platform (all UNIX or Linux) so I cannot test there. Note, I'm not running under a

Tomcat 6 performance multiple instances

2010-12-09 Thread John Goodleaf
Google is giving me too many different answers! I need to serve a single webapp to a lot of people with acceptable latency. There's no need for multiple contexts or any other funkines. Tomcat 6, JVM 1.6x. I have a hardware load balancer and two 64-bit machines (Windows 2003 Server--not my choice,

Re: HTTP status 404

2010-12-09 Thread Mark Eggers
Lava, I changed the index.htm to filename.htm then I navigated to localhost:8080/filename and it didn't work , I also copied the filename.war file to the webapps and nothing changed Odd, when I do this and type localhost:8080/Static, I get a 302 and redirected to localhost:8080/Static/

Re: Tomcat 6 performance multiple instances

2010-12-09 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 John, On 12/9/2010 4:04 PM, John Goodleaf wrote: Google is giving me too many different answers! :( I need to serve a single webapp to a lot of people with acceptable latency. That ought to be possible. What is acceptable latency for your

Re: deploy log4j

2010-12-09 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mark, On 12/9/2010 3:44 PM, Mark Eggers wrote: I didn't get any errors. Nor do we: we use log4j for application logging, have log4j.jar in WEB-INF/lib, have our log4j.properties in WEB-INF/classes/log4j.properties, and use the following code to

Re: configure the web.xml file to display the index.jsp page of a web application

2010-12-09 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Pix, On 12/7/2010 5:43 AM, pix_siro wrote: I'm working on Ubuntu 9.10 where I have installed Tomcat 7. I have a problem with following web.xml file: the program work fine but when I try to connect to localhost:8080/OverEncrypt I can not show any

Re: Tomcat 6 performance multiple instances

2010-12-09 Thread Tony Anecito
Hi, I have done alot of work with another servlet container and your consultant is correct. More instances do make a difference. Mainly because certain resources like ports/threads and memory management for the heap it makes sense. But you still need to test to determine what works best. I

Re: Tomcat 6 performance multiple instances

2010-12-09 Thread John Goodleaf
On Thu, Dec 9, 2010 at 1:28 PM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 John, On 12/9/2010 4:04 PM, John Goodleaf wrote: Google is giving me too many different answers! :( I need to serve a single webapp to a lot of

Re: Tomcat 6 performance multiple instances

2010-12-09 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 John, On 12/9/2010 5:15 PM, John Goodleaf wrote: I agree [about benchmarking] and wish I had the time and resources to do it. I need to deploy on very short timelines. There actually was a performance testing phase budgeted, but it got killed

Re: deploy log4j

2010-12-09 Thread cpanon
Hello I agree it should be simple and in the IDE it works fine. In simple production environment on Windows Servers it fails. In simple production environment on a WinXPP it works. It cant get any more discipline testing than that. Nothing changes other than the deployment OS. I am

RE: deploy log4j

2010-12-09 Thread Martin Gainty
you need to package everything (including log4j classes) into the applet zip file for IO you'll need the browser operator a mechanism to grant IO permissions the accepted solution is to create a cert associated with the applet which will grant (read and write) IO permissions

RE: deploy log4j

2010-12-09 Thread Caldarale, Charles R
From: Martin Gainty [mailto:mgai...@hotmail.com] Subject: RE: deploy log4j you need to package everything (including log4j classes) into the applet zip file Complete rubbish. The applet execution has absolutely nothing to do with the webapp. - Chuck THIS COMMUNICATION MAY CONTAIN

Re: Tomcat 6 performance multiple instances

2010-12-09 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tony, On 12/9/2010 5:15 PM, Tony Anecito wrote: I have done alot of work with another servlet container and your consultant is correct. More instances do make a difference. Mainly because certain resources like ports/threads and memory management

About mod_jk's retry setting

2010-12-09 Thread Yu Kikuchi
Hello All. My Environment: RHEL 5.3 Apache 2.2.11 mod_jk 1.2.30 JBoss 5.0.0 GA I have used mod_proxy_ajp to connect Apache and Tomcat(in JBoss). But I decided to use not mod_proxy_ajp but mod_jk 1.2.30. In the default setting of mod_proxy_xxx, it would be set retry=60 option. How do I set

RE: Tomcat 6 performance multiple instances

2010-12-09 Thread Caldarale, Charles R
From: Christopher Schultz [mailto:ch...@christopherschultz.net] Subject: Re: Tomcat 6 performance multiple instances I'm not sold on the heap: if you have two GC processes running in parallel (that is, in separate JVMs) I'm not convinced that you are saving yourself any CPU time. Sure, the

Re: deploy log4j

2010-12-09 Thread Mark Eggers
Quick question: Are you running under a security manager in any environment? The logs (most likely catalina.out or catalina.date.log) will have lots of messages if you've not modified the default $CATALINA_HOME/conf/catalina.policy file. For example, if I run my simple application that has