Re: Tomcat JULI resets JDK logging?

2010-02-11 Thread Henning Blohm
Chris, I think you are absolutely right, if JULI's LogManager was registered. In that case LogManager.reset() will go to ClassLoaderLogManager which will only work on loggers that were associated with the thread's context class loader before. The JDK implementation of the LogManager will

Re: JSP Page hangs... clues?

2010-02-11 Thread Pid
On 10/02/2010 20:11, Jordan Michaels wrote: Hey Joseph, Honestly I'm not sure about the code. We didn't write the code for it and I haven't dug around in that part of it because the first few requests seem to go through without a hitch. If you've not checked the code then how can you tell

libapr /usr/lib64/libapr-1.so.0 not picked up by JAVA_OPTS in tomcat6.xml

2010-02-11 Thread J4
Dear everyone, I am trying to use the APR based Apache Tomcat Native library on SLES11 and it is installed in: lrwxrwxrwx1 rootroot 17 Oct 12 01:03 /usr/lib64/libapr-1.so.0 - libapr-1.so.0.3.3 -rwxr-xr-x1 rootroot 181112 Oct 12 01:03

Re: libapr /usr/lib64/libapr-1.so.0 not picked up by JAVA_OPTS in tomcat6.xml

2010-02-11 Thread J4
J4 wrote: Dear everyone, I am trying to use the APR based Apache Tomcat Native library on SLES11 and it is installed in: lrwxrwxrwx1 rootroot 17 Oct 12 01:03 /usr/lib64/libapr-1.so.0 - libapr-1.so.0.3.3 -rwxr-xr-x1 rootroot 181112 Oct 12 01:03

how to know if tomcat is completely started

2010-02-11 Thread Jan Van Besien
Hi all, I'm using tomcat-6.0.18 with java-1.6.0-18 on ubuntu-9.10. We are using the tanuki service wrapper to run tomcat as a linux service, more or less as described in [1]. We also have a monitoring mechanism which checks the health of the running tomcat with all the applications deployed

Re: how to know if tomcat is completely started

2010-02-11 Thread Pid
On 11/02/2010 11:15, Jan Van Besien wrote: Hi all, I'm using tomcat-6.0.18 with java-1.6.0-18 on ubuntu-9.10. We are using the tanuki service wrapper to run tomcat as a linux service, more or less as described in [1]. We also have a monitoring mechanism which checks the health of the running

Re: how to know if tomcat is completely started

2010-02-11 Thread Jan Van Besien
Pid wrote: On 11/02/2010 11:15, Jan Van Besien wrote: Hi all, I'm using tomcat-6.0.18 with java-1.6.0-18 on ubuntu-9.10. We are using the tanuki service wrapper to run tomcat as a linux service, more or less as described in [1]. We also have a monitoring mechanism which checks the health of

Re: libapr /usr/lib64/libapr-1.so.0 not picked up by JAVA_OPTS in tomcat6.xml

2010-02-11 Thread Konstantin Kolinko
2010/2/11 J4 ju...@klunky.co.uk: Dear everyone,    I am trying to use the APR based Apache Tomcat Native library on SLES11 and it is installed in: lrwxrwxrwx    1 root    root               17 Oct 12 01:03 /usr/lib64/libapr-1.so.0 - libapr-1.so.0.3.3 -rwxr-xr-x    1 root    root          

Re: how to know if tomcat is completely started

2010-02-11 Thread Peter Crowther
In that case, you want a LifecycleListener (http://tomcat.apache.org/tomcat-6.0-doc/api/org/apache/catalina/LifecycleListener.html) looking for the AFTER_START event. You can then write code in the listener to do something unambiguous when the event triggers - I'd write a file somewhere, but I'm

Re: libapr /usr/lib64/libapr-1.so.0 not picked up by JAVA_OPTS in tomcat6.xml

2010-02-11 Thread J4
Dear Konstantin, From what I have read in the documentation URL you sent me, it looks that these steps have to be taken:- 1) download and compile the APR libs 2) install the libtcnative-1.so Why have I to take these steps when :- 1) the APR is already installed with SLES: #

Re: libapr /usr/lib64/libapr-1.so.0 not picked up by JAVA_OPTS in tomcat6.xml

2010-02-11 Thread Konstantin Kolinko
2010/2/11 J4 ju...@klunky.co.uk: Dear everyone, I changed the JAVA_OPTS in tomcat6.conf to read: JAVA_OPTS=-Xmx256m -XX:MaxPermSize=256m -Djava.library.path=/usr/lib64 but when tomcat was restarted it still gave the same message, as shown below, which makes me think that it did not pick it

Re: how to know if tomcat is completely started

2010-02-11 Thread Ken Bowen
Using a Tomcat Lifecycle listener (.../catalina/Lifecycle.html) sounds like exactly what you want. This from http://www.atomikos.com/Documentation/Tomcat55Integration33 illustrates illustrates the use: public class AtomikosLifecycleListener implements LifecycleListener { private static

RE: Java heap size limit

2010-02-11 Thread Caldarale, Charles R
From: Hadole, Nishant IN BOM SISL [mailto:nishant.had...@siemens.com] Subject: RE: Java heap size limit For 32 bit system, maximum memory pool can easily increased upto 2 GB. Not likely. The most you can set the heap to on 32-bit Windows is around 1.5 GB; the actual value varies a great

Re: Http 505

2010-02-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mohit, On 2/11/2010 1:41 AM, Mohit Anchlia wrote: On Wed, Feb 10, 2010 at 2:44 PM, Christopher Schultz ch...@christopherschultz.net wrote: Mohit, On 2/10/2010 5:28 PM, Mohit Anchlia wrote: There is a proxy F5 in between. But this server sends

Re: Java heap size limit

2010-02-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Yoav, On 2/11/2010 1:18 AM, Yoav Lanenter wrote: tomcat 5.5,Win Server 2003,32 bit,32 GB RAM my question is how can i increase the Java heap size to the maximum (maximum memory pool) using the apropicate script\configuration All the other

RE: Java heap size limit

2010-02-11 Thread Yoav Lanenter
Thanks Chris For now I can't change my machine to 32bit Will I be able increase to 2G of java on 32 bit machine ? Thanks Yoav -Original Message- From: Christopher Schultz [mailto:ch...@christopherschultz.net] Sent: Thursday, February 11, 2010 4:44 PM To: Tomcat Users List Subject: Re:

RE: Java heap size limit

2010-02-11 Thread Caldarale, Charles R
From: Yoav Lanenter [mailto:yo...@consist.co.il] Subject: RE: Java heap size limit Will I be able increase to 2G of java on 32 bit machine ? As we said before, no - unless you're running with the Windows boot option that specifies use of a 3 GB user process space. You'll need to experiment

Re: Java heap size limit

2010-02-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Yoav, On 2/11/2010 9:44 AM, Yoav Lanenter wrote: Thanks Chris For now I can't change my machine to 32bit Will I be able increase to 2G of java on 32 bit machine ? If you are running *NIX, you might be able to squeeze-out another couple of MiB,

RE: Java heap size limit

2010-02-11 Thread Jeffrey Janner
From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] Sent: Thursday, February 11, 2010 7:37 AM From: Hadole, Nishant IN BOM SISL [mailto:nishant.had...@siemens.com] Subject: RE: Java heap size limit For 32 bit system, maximum memory pool can easily increased upto 2 GB. Not

Re: Java heap size limit

2010-02-11 Thread Peter Crowther
On 11 February 2010 14:56, Jeffrey Janner jeffrey.jan...@polydyne.com wrote: Also, as I've heard several times here, set the -Xms and -Xmx settings to the same to improve garbage collect efficiency. (did I interpret that correctly?) Allocation efficiency - and to make sure you actually get the

Denial of Service / MaxThreads

2010-02-11 Thread Stefan Rainer
Hello, we are currently running a Tomcat 5.0.28 on Java 1.5.0.11 with a MaxThreads Configuration of 500 threads. This server is very sensitive to (kind of) denial of service attacks and we would like to improve stability in case of thousands of client requests. server.xml extract of connector:

Re: Denial of Service / MaxThreads

2010-02-11 Thread Mark Thomas
On 11/02/2010 15:16, Stefan Rainer wrote: Hello, we are currently running a Tomcat 5.0.28 on Java 1.5.0.11 with a MaxThreads Configuration of 500 threads. This server is very sensitive to (kind of) denial of service attacks and we would like to improve stability in case of thousands of

RE: Java heap size limit

2010-02-11 Thread Caldarale, Charles R
From: peter.crowth...@googlemail.com [mailto:peter.crowth...@googlemail.com] On Behalf Of Peter Crowther Subject: Re: Java heap size limit 1) CPU time to expand the heap - during which your application may be unresponsive, I'm not sure how the modern JVMs work. Expansion is done by a

Re: JSP Page hangs... clues?

2010-02-11 Thread Mark H. Wood
On Wed, Feb 10, 2010 at 12:26:42PM -0800, Jordan Michaels wrote: Yeah, it's hanging permanently. We've let it sit there for what... 15 mins or so? Which should be plenty since no one is using it right now except us. Maybe, maybe not. Did you monitor CPU and memory utilization, I/O load and

Re: Java heap size limit

2010-02-11 Thread Peter Crowther
On 11 February 2010 15:29, Caldarale, Charles R chuck.caldar...@unisys.com wrote: From: Peter Crowther 3) Most insidiously, if the system's loaded or allocated something that it can't move in the middle of your process' address space, it may be unable to move that. Doesn't happen.  The JVM

RE: JSP Page hangs... clues?

2010-02-11 Thread Joseph Morgan
And... as most are coming around to... we think you need to examine the 900lb gorilla in the room: the code. I've seen a certain web browser get hold of some badly-written script or something, spend *minutes* blowing up to a huge size while running 100% of CPU the whole time with the UI

Re: Http 505

2010-02-11 Thread Mohit Anchlia
On Thu, Feb 11, 2010 at 6:41 AM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mohit, On 2/11/2010 1:41 AM, Mohit Anchlia wrote: On Wed, Feb 10, 2010 at 2:44 PM, Christopher Schultz ch...@christopherschultz.net wrote: Mohit, On

Java Heap size setting - Tomcat 6.0.24

2010-02-11 Thread Mehrotra, Anurag
I have two instances of tomcat 6.0.24 running on a 64bit OS(Win 2008) and 64 bt JVM. Both are listening on separate IP addresses and ports. One instance was installed using the windows installer, the other was installed by expanding the zip file. Both instances contain tomcat6.exe file

Re: Http 505

2010-02-11 Thread Hassan Schroeder
On Thu, Feb 11, 2010 at 7:45 AM, Mohit Anchlia mohitanch...@gmail.com wrote: [r...@e1 ~]# telnet ws1 8080 Trying 10.10.50.55... Connected to ws1 (10.10.50.55). Escape character is '^]'. GET / HTTP1.1 I had to hit enter twice to get the result. Does it sound ok? If yes, then I am not sure

Re: Http 505

2010-02-11 Thread Mark Thomas
On 11/02/2010 15:45, Mohit Anchlia wrote: [r...@e1 ~]# telnet ws1 8080 Trying 10.10.50.55... Connected to ws1 (10.10.50.55). Escape character is '^]'. GET / HTTP1.1 HTTP/1.1 505 HTTP Version Not Supported Server: Apache-Coyote/1.1 Date: Thu, 11 Feb 2010 15:42:24 GMT Connection: close

Re: Http 505

2010-02-11 Thread Mark Thomas
On 11/02/2010 15:50, Hassan Schroeder wrote: On Thu, Feb 11, 2010 at 7:45 AM, Mohit Anchlia mohitanch...@gmail.com wrote: [r...@e1 ~]# telnet ws1 8080 Trying 10.10.50.55... Connected to ws1 (10.10.50.55). Escape character is '^]'. GET / HTTP1.1 I had to hit enter twice to get the

Re: Http 505

2010-02-11 Thread Mohit Anchlia
On Thu, Feb 11, 2010 at 7:56 AM, Mark Thomas ma...@apache.org wrote: On 11/02/2010 15:50, Hassan Schroeder wrote: On Thu, Feb 11, 2010 at 7:45 AM, Mohit Anchlia mohitanch...@gmail.com wrote: [r...@e1 ~]# telnet ws1 8080 Trying 10.10.50.55... Connected to ws1 (10.10.50.55). Escape

64bit Server + JDK 1.5 (64bit) + Tomcat 5.0.28?

2010-02-11 Thread Stefan Rainer
Hello, we have to increase the number of maximum threads on our 64 bit server Windows 2003 server. At the moment we are running Tomcat 5.0.28 on a JDK 1.5 32 bit because of historical issues and we can serve about 500 threads without having memory problems. If we increase maxThreads size over

RE: Java Heap size setting - Tomcat 6.0.24

2010-02-11 Thread Caldarale, Charles R
From: Mehrotra, Anurag [mailto:amehro...@telebright.com] Subject: Java Heap size setting - Tomcat 6.0.24 Where do I specify the java heap size for this second instance? Use the tomcat6w.exe program in that instance's bin directory. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL

RE: one webapp - two security constraints

2010-02-11 Thread rjgallac
that brilliant. Thank you very much... You've answered a lot of my questions and then some ta Rob n828cl wrote: From: rjgallac [mailto:rgallac...@ufi.com] Subject: one webapp - two security constraints You didn't bother to tell us the version of Tomcat you're using, so the following

Re: 64bit Server + JDK 1.5 (64bit) + Tomcat 5.0.28?

2010-02-11 Thread Peter Crowther
On 11 February 2010 16:14, Stefan Rainer s.rai...@teamaxess.com wrote: BUT as far as I know, tomcat 5.0.28 is compiled for 32 bit. Tomcat is pure Java, and is therefore not compiled for any particular word size. You may be using native libraries which are compiled for particular architectures,

Re: Http 505

2010-02-11 Thread Mark Thomas
On 11/02/2010 16:05, Mohit Anchlia wrote: As expected I got Bad request. But my question is there a error log where everything that server responded to in logged. This Bad request wasn't logged in access valve. How can I get all the error codes? Turn on debug logging for the

RE: 64bit Server + JDK 1.5 (64bit) + Tomcat 5.0.28?

2010-02-11 Thread Caldarale, Charles R
From: Stefan Rainer [mailto:s.rai...@teamaxess.com] Subject: 64bit Server + JDK 1.5 (64bit) + Tomcat 5.0.28? BUT as far as I know, tomcat 5.0.28 is compiled for 32 bit. Tomcat is pure Java, so it's independent of architecture. If you're running Tomcat as a service on Windows, you will need

roles in 6.0.24

2010-02-11 Thread Eric Lenio
I think there is a bug in JNDIRealm.java in 6.0.24. According to the docs: http://tomcat.apache.org/tomcat-6.0-doc/realm-howto.html it says roles can be specified by both userRoleName, AND roleName mechanisms. But, if both are used then the result is that userRoleName roles are excluded. I

Re: roles in 6.0.24

2010-02-11 Thread Mark Thomas
On 11/02/2010 16:53, Eric Lenio wrote: I think there is a bug in JNDIRealm.java in 6.0.24. According to the docs: http://tomcat.apache.org/tomcat-6.0-doc/realm-howto.html it says roles can be specified by both userRoleName, AND roleName mechanisms. But, if both are used then the

Re: roles in 6.0.24

2010-02-11 Thread Eric Lenio
On Thu, Feb 11, 2010 at 05:05:37PM +, Mark Thomas wrote: On 11/02/2010 16:53, Eric Lenio wrote: I think there is a bug in JNDIRealm.java in 6.0.24. According to the docs: http://tomcat.apache.org/tomcat-6.0-doc/realm-howto.html it says roles can be specified by both

Web application for access folder on server machine

2010-02-11 Thread Paul Chany
Hi, I would like to make a web application for my classroom's LAN. On the Tomcat server machine is the folder own's by me. I want to make such application that allow users from the LAN's machines access just one directory (folder) that is on the Tomcat server machine. Why is this so important

Re: Http 505

2010-02-11 Thread Mohit Anchlia
Is this going to log just too much? This is a production system so want to be careful. Is there any other way to enable it in valve or some other way that just gives the error logging? On Thu, Feb 11, 2010 at 8:21 AM, Mark Thomas ma...@apache.org wrote: On 11/02/2010 16:05, Mohit Anchlia wrote:

Re: JSP Page hangs... clues?

2010-02-11 Thread Jordan Michaels
Mark H. Wood wrote: Just waiting until you think it's been long enough is not a very strong test. What's it doing while you wait? is a question you need to consider. Apologies, I didn't include every detail of what we did because I assumed most folks would not be interested in reading a

Digest Authentication

2010-02-11 Thread Stanley Wong
I am using Tomcat 6.0. I try to implement digest authentication. That is what I do: 1. Deploy a auth.war file to Tomcat, whose web.xml has this setting: !-- Default page to serve -- welcome-file-list welcome-fileAuth.html/welcome-file /welcome-file-list

RE: Digest Authentication

2010-02-11 Thread Caldarale, Charles R
From: Stanley Wong [mailto:w...@pcigeomatics.com] Subject: Digest Authentication digest -a sha stan1 The Tomcat doc makes no mention of using the stand digest tool, but instead org.apache.catalina.realm.RealmBase. I have no idea if or how they differ in their calculations. digest -a sha

Re: Digest Authentication

2010-02-11 Thread Konstantin Kolinko
2010/2/11 Stanley Wong w...@pcigeomatics.com: I am using Tomcat 6.0. I try to implement digest authentication. You are confusing DIGEST authentication (i.e., transmitting a hash of password over network) with validating plain passwords using digest (i.e, not storing a plain text password).

Re: Digest Authentication

2010-02-11 Thread Konstantin Kolinko
2010/2/11 Caldarale, Charles R chuck.caldar...@unisys.com: This is closer, but the doc says to include the realm name, not the word Realm in the calculation.  The realm name appears to be the server name and port, but I haven't verified that. The realm name is usually provided as

Re: problem with tomcat realm

2010-02-11 Thread André Warnier
Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 A, On 2/10/2010 8:36 AM, aa wrote: When the user goes in a particular page I need to ask him a new authentication because this page needs more privileges (this page infact is only for

RE: Digest Authentication

2010-02-11 Thread Stanley Wong
Thank you. I make some progress, but still need some helps. That is what I did: 1. replace the hashing algorithm from SHA to MD5. 2. remove the realm-name line from login-config The new login-config section of web.xml looks as follows: login-config

Basic/Form-based authentication with Tomat 6.0

2010-02-11 Thread Nicholas Duan
I am not sure if this is a configuration problem, but I can't get the basic/form-based authentication working on Tomcat 6.0, and couldn't even get the protected jsp example (http://localhost:8080/examples/jsp/security/protected) that bundled with the tomcat distribution. I've tried the

Re: Basic/Form-based authentication with Tomat 6.0

2010-02-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Nicholas, On 2/11/2010 3:19 PM, Nicholas Duan wrote: I am not sure if this is a configuration problem, but I can't get the basic/form-based authentication working on Tomcat 6.0, and couldn't even get the protected jsp example

Re: Basic/Form-based authentication with Tomat 6.0

2010-02-11 Thread André Warnier
Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Nicholas, On 2/11/2010 3:19 PM, Nicholas Duan wrote: I am not sure if this is a configuration problem, but I can't get the basic/form-based authentication working on Tomcat 6.0, and couldn't even get the protected jsp

RE: Digest Authentication

2010-02-11 Thread Stanley Wong
My mistake. The authentication does work when a realm-name section is added. I probably forget to save the web.xml at some points. Thank you for the help. And, SHA continues to fail. Stanley -Original Message- From: Stanley Wong Sent: Thursday, February 11, 2010 3:19 PM To:

Re: Web application for access folder on server machine

2010-02-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Paul, On 2/11/2010 12:41 PM, Paul Chany wrote: I want to make such application that allow users from the LAN's machines access just one directory (folder) that is on the Tomcat server machine. Why is this so important for me? In the classroom

Re: Basic/Form-based authentication with Tomat 6.0

2010-02-11 Thread Nicholas Duan
If my server caught fire, I would be calling 911 instead of asking for help here... Anyway, I was running everything with the default tomcat 6.0 configuration. I checked that the tomcat-users.xml file indeed contains all the user auth needed for the jsp sample application, and that matches

RE: Basic/Form-based authentication with Tomat 6.0

2010-02-11 Thread Caldarale, Charles R
From: Nicholas Duan [mailto:nd...@gmu.edu] Subject: Re: Basic/Form-based authentication with Tomat 6.0 If my server caught fire, I would be calling 911 instead of asking for help here... Despite your protestations, you still haven't told us what *does* happen when you try to use the

Re: Digest Authentication

2010-02-11 Thread Pid
Please post a completely new message to the list, rather than just editing the subject body out for your message. An edited reply appears as part of a existing thread, with an unexpected subject change. This is called thread hijacking. p On 11/02/2010 19:13, Stanley Wong wrote: I am

Re: RE: Basic/Form-based authentication with Tomat 6.0

2010-02-11 Thread Nicholas Duan
Thanks Chuck! Indeed it was commented out. I must have overlooked the comment marker. Thanks! ND - Original Message - From: Caldarale, Charles R chuck.caldar...@unisys.com Date: Thursday, February 11, 2010 4:09 pm Subject: RE: Basic/Form-based authentication with Tomat 6.0 From:

RE: RE: Basic/Form-based authentication with Tomat 6.0

2010-02-11 Thread Caldarale, Charles R
From: Nicholas Duan [mailto:nd...@gmu.edu] Subject: Re: RE: Basic/Form-based authentication with Tomat 6.0 Thanks Chuck! Indeed it was commented out. I must have overlooked the comment marker. Thanks! Thank André, he suggested it. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL

Re: Web application for access folder on server machine

2010-02-11 Thread Paul Chany
Chris, Christopher Schultz ch...@christopherschultz.net writes: Wait, why can only some of the Windows boxes (clients) access your PC box (the server)? I would think that if you just want to have shared folders, you ought to be able to do that using standard Microsoft Windows Network File

RE: Problem with Escaping ${} in tag attribute in tomcat 6.0.20

2010-02-11 Thread Caldarale, Charles R
From: Leena Shah [mailto:xl...@hotmail.com] Subject: Problem with Escaping ${} in tag attribute in tomcat 6.0.20 However if I have it as an attribute for a custom tag, it throws the exception shown below. Try setting the system property

Re: Re-deploying a war file

2010-02-11 Thread Pid
On 10/02/2010 16:31, Joe Wallace wrote: I have been working with Tomcat 6.0.20 running as a windows service for about a year. I update the application war file every few months. OK. After reading the Tomcat 6.0 User Guide, Section 4, Deployer -Deploying on a running war Tomcat I expected

RE: Re-deploying a war file

2010-02-11 Thread Caldarale, Charles R
From: Pid [mailto:p...@pidster.com] Subject: Re: Re-deploying a war file This works for me, just by replacing the WAR file with a new one - maybe there's something in your config, or the web app is holding onto JARs stopping the app from being replaced. Check the antiJARLocking and

RE: Re-deploying a war file

2010-02-11 Thread Joe Wallace
From \conf\Catalina\localhost appName.xml Context reload=true antiJARLocking=true unpackWARs=true Realm appName=xxWeb className=org.apache.catalina.realm.JAASRealm debug=99 userClassNames=Webxx.LoginPrincipal allRolesMode=strictAuthOnly / /Context From \conf server.xml Service