Re: Apache/mod_jk serves random files from tomcat

2008-11-12 Thread Jakob Ericsson
-- Jakob Ericsson +46 704 533 627 11 nov 2008 kl. 22.37 skrev Christopher Schultz [EMAIL PROTECTED] : -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jakob, Jakob Ericsson wrote: We are also experiencing this problem. Our setup is running Windows 2003 Server with Apache 2.0.59 (no

RE: Using JAXB with tomcat

2008-11-12 Thread Torsten.Romer
I am not sure if this works and it is probably not a nice solution, but maybe you can do something like BoOcorrenciaPolicial bo = (BoOcorrenciaPolicial) unmarshaller.unmarshal(new File(XML_DIR + id + .xml)); Class clazz = bo.getClass(); Field field =

Tomcat 6 startup error

2008-11-12 Thread rajesh202023
Hi All, I am getting the following error when I try to start Tomcat 6. I am new to Tomcat. Nov 12, 2008 12:31:12 PM org.apache.catalina.startup.Bootstrap initClassLoaders SEVERE: Class loader creation threw exception java.io.IOException: Invalid argument at

Re: Forward filter mapping including path info

2008-11-12 Thread Florian Hopf
Hi Mark, Mark Thomas schrieb: Florian Hopf wrote: Is a mapping containing a path info not supported for forwards? Looks like https://issues.apache.org/bugzilla/show_bug.cgi?id=45441 This is fixed in 6.0.x trunk if you want to try that or wait for 6.0.19. Thank's a lot, that's it. We

Session replication for JPetStore application in tomcat 6

2008-11-12 Thread Anupam Beri
Hello All , I am a newbie to the Tomcat and Tomcat clustering environment .I was just going through some posts on this forum for reference . I wish to deploy the classic JPetStore application which comes with the Spring framework in the clustered environment involving 2

Re: Tomcat threads

2008-11-12 Thread André Warnier
Filip Hanik .. and many others - Dev Lists wrote: [...] Thanks for all the answers, very enlightening. In summary thus : - Tomcat (or rather I suppose the Connector) will create new threads as needed to service simultaneous requests, up to the number given in the Connector's maxThreads

Re: Tomcat Native library for Windows

2008-11-12 Thread zmeeagain
I never set JAVA_HOME globally, I configure it explicitly for each different Tomcat. In this particular instance I have set: set JAVA_HOME=C:\Program Files\Java\jdk1.6.0_07 in setclasspath.bat, i.e. the 64bit jdk. CATALINA_HOME is set in startup.bat (set CATALINA_HOME=%CURRENT_DIR%) and is the

Re: multiple Set-Cookie headers in initial http response

2008-11-12 Thread Markus Reis
Our Tomcat 5.5 sends 30 cookie (cookie=JSESSIONID=2D79FB71207A83A09B32677B9640693E.jbprod; domain=null; path=/) Are they all identical? No. They are ALL different (and they also differ from response to response) and 900 Set-Cookie

Re: Tomcat threads, II

2008-11-12 Thread André Warnier
David kerber wrote: Pid wrote: ... Having said that, parsing XML can be a memory intensive operation as well, so your old box could be experiencing problems there - check the garbage collection log. p I try to avoid XML for this exact reason. We found that our application could handle

Re: Tomcat threads

2008-11-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, André Warnier wrote: - The memory usage one sees with top under some versions of Linux for each one of these threads is not really cumulative, because most of it is actually shared between the threads. The total really used is only

Re: Tomcat Performance

2008-11-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Leon, Leon Rosenberg wrote: On Wed, Nov 12, 2008 at 2:26 PM, David kerber [EMAIL PROTECTED] wrote: Peng Tuck Kwok wrote: Probably the reason why he's seeing one instance of tomcat moving quicker than 2 instances is the fact that there is some

Re: Tomcat Performance

2008-11-12 Thread Peng Tuck Kwok
David, was replying to Charles's earlier email on that. I thought I read it right first in the email and assumed Charles was correct in that. Hazards of reading mail on the go :P On Wed, Nov 12, 2008 at 9:26 PM, David kerber [EMAIL PROTECTED] wrote: Peng Tuck Kwok wrote: Probably the reason

Problem install APR Tomcat Native Library on Centos 5.2

2008-11-12 Thread Paul van Beukering
Hi all, We are trying to get APR to work. Sofar without success. tThe APR libraries are build, are readable for the world, but tomcat seems unable to find them. INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the

Re: Tomcat threads

2008-11-12 Thread André Warnier
Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, André Warnier wrote: - The memory usage one sees with top under some versions of Linux for each one of these threads is not really cumulative, because most of it is actually shared between the threads. The total

RE: Tomcat threads

2008-11-12 Thread Caldarale, Charles R
From: Christopher Schultz [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat threads recent JVMs use shared memory to share common class data (like JITed object code from java.* packages) Careful - JITed code is *not* shared - only some of the PermGen is, and that only on a -client JVM. When

RE: Tomcat threads

2008-11-12 Thread Caldarale, Charles R
From: André Warnier [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat threads - they would actually share (in memory) the compiled classes that are part of the standard Java library (java.* etc..) No - see my previous post. You can use JConsole to see which memory pools are shared (none on

Re: Problem install APR Tomcat Native Library on Centos 5.2

2008-11-12 Thread Mladen Turk
Paul van Beukering wrote: Hi all, We are trying to get APR to work. Sofar without success. tThe APR libraries are build, are readable for the world, but tomcat seems unable to find them. INFO: The APR based Apache Tomcat Native library which allows optimal performance in production

Re: Problem install APR Tomcat Native Library on Centos 5.2

2008-11-12 Thread Milan Cvejic
Hello, You should copy libtcnative-1.so to java JDK installation folder in my case: jre/lib/amd64/ Those libraries are needed by java... Greetings Paul van Beukering wrote: Hi all, We are trying to get APR to work. Sofar without success. tThe APR libraries are build, are readable for the

RE: Tomcat threads, II

2008-11-12 Thread Caldarale, Charles R
From: André Warnier [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat threads, II We have already tried - because that is one thing we can do - to split the XML data into smaller chunks, but that does not seem to have any significant impact. Nor would I expect it to. The total amount of memory

Re: log POST data

2008-11-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Markus, Markus Reis wrote: I fear you are right :-) Due to the fact that you cannot read twice from the same ServletInputStream (unfortunately you are again right here :-)) I did the following in the mean time: Is this just a draft? Or do you

RE: Tomcat threads, II

2008-11-12 Thread Caldarale, Charles R
From: André Warnier [mailto:[EMAIL PROTECTED] Subject: Tomcat threads, II -classpath :/usr/lib/jvm/java-1.5.0-sun/jre//lib/jcert.jar: /usr/lib/jvm/java-1.5.0-sun/jre//lib/jnet.jar: /usr/lib/jvm/java-1.5.0-sun/jre//lib/jsse.jar: /usr/share/tomcat5.5/bin/bootstrap.jar:

How to set JAVA_OPTS variable in tomcat6.0.16

2008-11-12 Thread bhavik shah
Hi, I want to set Xms1024m Xmx1024m and MaxPermSize paramater to 128 How do I do that in tomcat6.0.16 thanks

Re: Problem install APR Tomcat Native Library on Centos 5.2

2008-11-12 Thread Paul van Beukering
Hello Milan and Mladen, See here the libraries that are created: -rwxr-xr-x 1 belpop belpop 872663 Nov 12 14:41 libtcnative-1.so.0.1.14 lrwxrwxrwx 1 belpop belpop 23 Nov 12 14:41 libtcnative-1.so.0 - libtcnative-1.so.0.1.14 lrwxrwxrwx 1 belpop belpop 23 Nov 12 14:41 libtcnative-1.so -

RE: Tomcat Performance

2008-11-12 Thread Caldarale, Charles R
From: Peng Tuck Kwok [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat Performance David, was replying to Charles's earlier email on that. I thought I read it right first in the email and assumed Charles was correct in that. Assuming you're referring to me, I have not commented on this thread

Re: Problem install APR Tomcat Native Library on Centos 5.2

2008-11-12 Thread Mladen Turk
Paul van Beukering wrote: Hello Milan and Mladen, See here the libraries that are created: -rwxr-xr-x 1 belpop belpop 872663 Nov 12 14:41 libtcnative-1.so.0.1.14 lrwxrwxrwx 1 belpop belpop 23 Nov 12 14:41 libtcnative-1.so.0 - libtcnative-1.so.0.1.14 lrwxrwxrwx 1 belpop belpop 23 Nov

Re: Session replication for JPetStore application in tomcat 6

2008-11-12 Thread Filip Hanik - Dev Lists
looks like its working, what is it that you don't think is working or would like help with? 6 nov. 2008 17:08:30 org.apache.catalina.ha.session.DeltaManager getAllClusterSessions ATTENTION: Manager [localhost#/jpetstore], requesting session state from

Re: Problem install APR Tomcat Native Library on Centos 5.2

2008-11-12 Thread Mladen Turk
Milan Cvejic wrote: Hello, You should copy libtcnative-1.so to java JDK installation folder in my case: jre/lib/amd64/ Those libraries are needed by java... There's no need for that. It is enough that it is (as well as all dependencies apr, eventual openssl, etc) in the LD_LIBRARY_PATH

Re: multiple Set-Cookie headers in initial http response

2008-11-12 Thread André Warnier
Markus Reis wrote: Our Tomcat 5.5 sends 30 cookie (cookie=JSESSIONID=2D79FB71207A83A09B32677B9640693E.jbprod; domain=null; path=/) Are they all identical? No. They are ALL different (and they also differ from response to response) and 900 Set-Cookie

Re: Configuring tomcat to log authentication events

2008-11-12 Thread Rainer Jung
Brian Gillan schrieb: We're using Rational Team Concert with Tomcat and authenticating with LDAP. I want to log authentication events for users accessing RTC so we can see who's authenticating, and if unsuccessfully, who they're trying to authenticate as. Is this just a matter of

Re: multiple Set-Cookie headers in initial http response

2008-11-12 Thread André Warnier
Markus Reis wrote: [...] Further I found out that this happens only with an initial POST request - if I do the same via GET only one Set-Cookie header is returned (I wrote before that I was not able to reproduce those 900 Set-Cookie headers on my PC, but that was due to the fact that I sent

Tomcat threads, II

2008-11-12 Thread André Warnier
Hi again. Now that I have (with your help) established some basic facts, I have a practical case for analysis. Before I get into details (because this is quite long), I'd like to explain the reason why I'm asking this. We have been testing a Tomcat application from a vendor. It works very

Re: Best Linux JVM to use for Tomcat?

2008-11-12 Thread Dan Armbrust
Well, I don't know about always. I have yet to find a 1.6 JDK from Sun that is even close to stable. With heavy use (especially heavy multithreaded use), we have found that all of the available 1.6 JDK's segfault. The latest JDK (1.6 update 10) is less than a month old - and it is a huge change

Re: Best Linux JVM to use for Tomcat?

2008-11-12 Thread Leon Rosenberg
On Wed, Nov 12, 2008 at 5:34 PM, Dan Armbrust [EMAIL PROTECTED] wrote: Well, I don't know about always. I have yet to find a 1.6 JDK from Sun that is even close to stable. With heavy use (especially heavy multithreaded use), we have found that all of the available 1.6 JDK's segfault. hmm,

Re: Problem install APR Tomcat Native Library on Centos 5.2

2008-11-12 Thread Paul van Beukering
Hi Mladen The output is: [EMAIL PROTECTED]:/home/belpop/tomcat/lib]$ ldd libtcnative-1.so libssl.so.6 = /lib64/libssl.so.6 (0x2affd1727000) libcrypto.so.6 = /lib64/libcrypto.so.6 (0x2affd197) libapr-1.so.0 = /usr/local/apr/lib/libapr-1.so.0 (0x2affd1cb8000)

RE: Tomcat 6 startup error

2008-11-12 Thread Caldarale, Charles R
From: rajesh202023 [mailto:[EMAIL PROTECTED] Subject: Tomcat 6 startup error I am getting the following error when I try to start Tomcat 6. What exact version of Tomcat? What JVM are you using? Which version of Windows are you using? Supplying adequate information and being precise will

Re: Problem install APR Tomcat Native Library on Centos 5.2

2008-11-12 Thread Milan Cvejic
Try creating new file in /etc/ld.so.conf.d name it custom.conf or something.conf and add line /usr/local/apr/lib in that file. Then run ldconfig and try to restart tomcat. Paul van Beukering wrote: Hi Mladen The output is: [EMAIL PROTECTED]:/home/belpop/tomcat/lib]$ ldd libtcnative-1.so

Re: Session replication for JPetStore application in tomcat 6

2008-11-12 Thread Anupam Beri
Hello Filip, Thanks a lot for your reply. From the logs , the session state send is evident .The scenario i tried is as follows I opened the application web page on the first node via my browser , logged in , did some operations like some additions and modifications. I displayed the

Re: tomcat 5.5 memory

2008-11-12 Thread Alberto Jesus La Rosa Agramonte
Thanks you very much... 2008/11/12 Christopher Schultz [EMAIL PROTECTED]: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Alberto, Alberto Jesus La Rosa Agramonte wrote: [is ~25 Java processes normal for Tomcat?] Yes. Most UNIX/Linux variants display individual threads as processes. This

Re: clustering

2008-11-12 Thread Alberto Jesus La Rosa Agramonte
Apache is the load balancer??? 2008/11/12 Filip Hanik - Dev Lists [EMAIL PROTECTED]: you're missing the membership elelemnt Membership className=org.apache.catalina.cluster.mcast.McastService mcastAddr=228.0.0.4

Re: Tomcat threads, II

2008-11-12 Thread André Warnier
Caldarale, Charles R wrote: From: André Warnier [mailto:[EMAIL PROTECTED] Subject: Tomcat threads, II -Djava.security.manager Enabling the security manager slows things down; do you really need it? Not as far as I know. It was only the default setting on that system, from the

Re: Tomcat Performance

2008-11-12 Thread David kerber
Peng Tuck Kwok wrote: Probably the reason why he's seeing one instance of tomcat moving quicker than 2 instances is the fact that there is some form of contention for resources on that single machine assuming that the 2 instances are configured identically in every aspect (other than ports).

Re: Problem install APR Tomcat Native Library on Centos 5.2

2008-11-12 Thread Paul van Beukering
Hi Mladen, Did what you told me to do but the song remains the same. [EMAIL PROTECTED]:/root]# ldconfig -v /usr/local/apr/lib: libtcnative-1.so.0 - libtcnative-1.so.0.1.15 libaprutil-1.so.0 - libaprutil-1.so.0.3.4 libexpat.so.0 - libexpat.so.0.1.0 libapr-1.so.0 -

Re: log POST data

2008-11-12 Thread André Warnier
Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Markus, Markus Reis wrote: Pardon me for butting in where I'm obviously outclassed, consider this as a genuine question : Would what Markus wants to do not be easier to do with a servlet filter ? It would also be a

Re: Session replication for JPetStore application in tomcat 6

2008-11-12 Thread Filip Hanik - Dev Lists
you could enable tracing for the two following categories org.apache.catalina.ha org.apache.catalina.tribes.MESSAGES Filip Anupam Beri wrote: Hello Filip, Thanks a lot for your reply. From the logs , the session state send is evident .The scenario i tried is as follows I opened the

Re: Tomcat Performance

2008-11-12 Thread Leon Rosenberg
On Wed, Nov 12, 2008 at 2:26 PM, David kerber [EMAIL PROTECTED] wrote: Peng Tuck Kwok wrote: Probably the reason why he's seeing one instance of tomcat moving quicker than 2 instances is the fact that there is some form of contention for resources on that single machine assuming that the 2

Re: multiple Set-Cookie headers in initial http response

2008-11-12 Thread Markus Reis
André Warnier wrote: Markus Reis wrote: Our Tomcat 5.5 sends 30 cookie (cookie=JSESSIONID=2D79FB71207A83A09B32677B9640693E.jbprod; domain=null; path=/) Are they all identical? No. They are ALL different (and they also differ from response to response) and 900 Set-Cookie

Re: Apache/mod_jk serves random files from tomcat

2008-11-12 Thread Rainer Jung
Jakob Ericsson schrieb: -- Jakob Ericsson +46 704 533 627 11 nov 2008 kl. 22.37 skrev Christopher Schultz [EMAIL PROTECTED]: Jakob, Jakob Ericsson wrote: We are also experiencing this problem. Our setup is running Windows 2003 Server with Apache 2.0.59 (no prefork), mod_jk

Monitoring Tomcat availability in a load balanced capacity

2008-11-12 Thread Adam Gordon
We're running two Tomcat (5.5.16) instances in a load-balanced capacity behind an Apache server (2.0.55 w/ mod j/k 1.2.14). We'd like to set up some sort of monitoring that would allow us to not just check to see if the Tomcat Java processes are still running (that's easy) but to actually

Re: Monitoring Tomcat availability in a load balanced capacity

2008-11-12 Thread Alberto Jesus La Rosa Agramonte
application manager, is not free, but with the trial licence you can work with all the functionalities. bye 2008/11/13 Adam Gordon [EMAIL PROTECTED]: We're running two Tomcat (5.5.16) instances in a load-balanced capacity behind an Apache server (2.0.55 w/ mod j/k 1.2.14). We'd like to set

Re: Best Linux JVM to use for Tomcat?

2008-11-12 Thread Pierre Goupil
Guys, Anything to say regarding JRockIt ? Is it still under development ? Regards, Pierre On Wed, Nov 12, 2008 at 5:53 PM, Leon Rosenberg [EMAIL PROTECTED] wrote: On Wed, Nov 12, 2008 at 5:34 PM, Dan Armbrust [EMAIL PROTECTED] wrote: Well, I don't know about always. I have yet to find

Re: Tomcat threads

2008-11-12 Thread Ronald Klop
Op woensdag, 12 november 2008 om 9:56 uur schreef Tomcat Users List users@tomcat.apache.org: Subject: Re: Tomcat threads Date: Wed Nov 12 09:56:01 CET 2008 From: André Warnier [EMAIL PROTECTED] Filip Hanik .. and many others - Dev Lists wrote: [...] Thanks for all the answers, very

Re: Monitoring Tomcat availability in a load balanced capacity

2008-11-12 Thread Adam Gordon
Can you please include a link? Google is not helping... Thanks. Alberto Jesus La Rosa Agramonte wrote: application manager, is not free, but with the trial licence you can work with all the functionalities. bye 2008/11/13 Adam Gordon [EMAIL PROTECTED]: We're running two Tomcat (5.5.16)

Re: Problem install APR Tomcat Native Library on Centos 5.2

2008-11-12 Thread Milan Cvejic
It looks to me that you are using 32bit version of JDK on 64bit linux installation? am i right? you are having libraries in /lib64 and also in /usr/jdk1.6.0_10/jre/lib/i386 That may be problem... try installing 64bit version od JDK... Paul van Beukering wrote: Hi Mladen, Did what you

Re: multiple Set-Cookie headers in initial http response

2008-11-12 Thread Pid
André Warnier wrote: Markus Reis wrote: Our Tomcat 5.5 sends 30 cookie (cookie=JSESSIONID=2D79FB71207A83A09B32677B9640693E.jbprod; domain=null; path=/) Are they all identical? No. They are ALL different (and they also differ from response to response) and 900 Set-Cookie

Re: multiple Set-Cookie headers in initial http response

2008-11-12 Thread Markus Reis
Markus Reis wrote: Our Tomcat 5.5 sends 30 cookie (cookie=JSESSIONID=2D79FB71207A83A09B32677B9640693E.jbprod; domain=null; path=/) Are they all identical? No. They are ALL different (and they also differ from response to response) and 900 Set-Cookie

Re: Monitoring Tomcat availability in a load balanced capacity

2008-11-12 Thread Hassan Schroeder
On Wed, Nov 12, 2008 at 9:42 AM, Adam Gordon [EMAIL PROTECTED] wrote: We're running two Tomcat (5.5.16) instances in a load-balanced capacity behind an Apache server (2.0.55 w/ mod j/k 1.2.14). We'd like to set up some sort of monitoring that would allow us to not just check to see if the

RE: Does jsessionid on the URL also check the User-Agent?

2008-11-12 Thread kennardconsulting
Torsten, Thank you for the quick reply. My apologies: I was getting confused. I now realise sending jsessionid on the URL gets ignored if there is already a jsessionid in the cookie, which there will be if you have even briefly touched the site in any way (eg. to pull up the login page).

Re: How to set JAVA_OPTS variable in tomcat6.0.16

2008-11-12 Thread Marco Antonio
On Wed, Nov 12, 2008 at 11:17 AM, bhavik shah [EMAIL PROTECTED] wrote: Hi, I want to set Xms1024m Xmx1024m and MaxPermSize paramater to 128 How do I do that in tomcat6.0.16 Hi, just need to have the variable JAVA_OPTS exported. # export JAVA_OPTS=-Xms1024m -Xmx1024m automatically

Re: Monitoring Tomcat availability in a load balanced capacity

2008-11-12 Thread André Warnier
Adam Gordon wrote: We're running two Tomcat (5.5.16) instances in a load-balanced capacity behind an Apache server (2.0.55 w/ mod j/k 1.2.14). We'd like to set up some sort of monitoring that would allow us to not just check to see if the Tomcat Java processes are still running (that's easy)

Re: Monitoring Tomcat availability in a load balanced capacity

2008-11-12 Thread David Rees
On Wed, Nov 12, 2008 at 9:42 AM, Adam Gordon [EMAIL PROTECTED] wrote: Since we're connecting to Tomcat via an Apache load-balancer, we don't know of a way to force the load-balancer to go to a certain Tomcat instance. Additionally, we don't know how to speak mod j/k so we can't fake a direct

Re: multiple Set-Cookie headers in initial http response

2008-11-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Markus, Markus Reis wrote: Yes, the RequestDumperValve also dumps the response - therefore I'm SURE that it is Tomcat that sends the 900 Set-Cookie headers and no other network component between client and server. I second Andre's recommendation

Re: Issue on parsing struts.xml

2008-11-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Nar, Nar Karapetyan wrote: Linux server gives the exceptions for https://localhost Sorry I misunderstood. Please post a complete stack trace. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla

Re: log POST data

2008-11-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, André Warnier wrote: Would what Markus wants to do not be easier to do with a servlet filter ? It would also be a per-application thing, rather than a one-size-fits-all, no ? Markus was looking at using the ExtendedLogAccessValve which

RE: How to set JAVA_OPTS variable in tomcat6.0.16

2008-11-12 Thread Caldarale, Charles R
From: Marco Antonio [mailto:[EMAIL PROTECTED] Subject: Re: How to set JAVA_OPTS variable in tomcat6.0.16 Hi, just need to have the variable JAVA_OPTS exported. # export JAVA_OPTS=-Xms1024m -Xmx1024m That works for Linux (except for the leading # that turns it into a comment), but says

Re: Tomcat threads

2008-11-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, Caldarale, Charles R wrote: From: Christopher Schultz [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat threads recent JVMs use shared memory to share common class data (like JITed object code from java.* packages) Careful - JITed code is

Re: [Http]ServletResponseWrapper.getOutputStream()

2008-11-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Michael, Michael Ludwig wrote: So the output of S gets collected by WR and is now available to F. And F calls getWriter() on the original response, and this to my surprise triggers an IllegalStateException: getOutputStream() has already been

Re: Does jsessionid on the URL also check the User-Agent?

2008-11-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Richard, kennardconsulting wrote: ...does Tomcat do something clever, like checking the User-Agent, before agreeing to hook into the existing '123' session? No. Tomcat will append the jsessionid parameter if the client has not yet proven that

Re: Connection Leak in java - Tomcat 6.0.18

2008-11-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Arun, Arun Raj Ramkumar wrote: Hi friends, Please let me know is there a way to find out connection leak in my java code , when its deployed in tomcat. Am using tomcat 6.0.18 What type of connection? - -chris -BEGIN PGP SIGNATURE-

Re: Tomcat threads, II

2008-11-12 Thread Pid
André Warnier wrote: Hi again. Now that I have (with your help) established some basic facts, I have a practical case for analysis. Before I get into details (because this is quite long), I'd like to explain the reason why I'm asking this. We have been testing a Tomcat application from a

RE: Tomcat threads, II

2008-11-12 Thread Caldarale, Charles R
From: André Warnier [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat threads, II I have turned it off now, and restarted Tomcat, but it did not have any noticeable impact on the startup time. Wouldn't expect it to, since you're spending nearly all the time parsing that XML file. It may have

Re: Apache/mod_jk serves random files from tomcat

2008-11-12 Thread Jakob Ericsson
On Wed, Nov 12, 2008 at 12:21 PM, Rainer Jung [EMAIL PROTECTED] wrote: Jakob Ericsson schrieb: -- Jakob Ericsson +46 704 533 627 11 nov 2008 kl. 22.37 skrev Christopher Schultz [EMAIL PROTECTED]: Jakob, Jakob Ericsson wrote: We are also experiencing this problem. Our setup is

Re: Best Linux JVM to use for Tomcat?

2008-11-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Leon, Leon Rosenberg wrote: suns current jdk is always the best choice. the current one is 6.10 I'm not sure about current versions, but several years ago, IBM had the fastest JVM out there, although it used more memory than Sun's. I did, though,

RE: Tomcat threads

2008-11-12 Thread Caldarale, Charles R
From: Christopher Schultz [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat threads PermGen seems like an odd item to share... though I guess all those java.lang.Package, java.lang.Class, java.lang.Method, etc. objects can really beat a system down. The sharing is not for capacity purposes,

RE: How to set JAVA_OPTS variable in tomcat6.0.16

2008-11-12 Thread Doom Dog
Try this link, if you can't click on it, copy and past it. http://bugs.sakaiproject.org/confluence/display/DOC/Section+-+Tomcat+Installation+(2.5) For the Tomcat service on Windows, you have to modify the registry. The key is a multi_reg_sz key, so you'll have to append to that list. You can

Re: Tomcat threads, II

2008-11-12 Thread David kerber
Pid wrote: ... Having said that, parsing XML can be a memory intensive operation as well, so your old box could be experiencing problems there - check the garbage collection log. p I try to avoid XML for this exact reason. We found that our application could handle between 6 and 10 times

Tomcat 5.5.23 Cluster Problem - (memberDisappeared)

2008-11-12 Thread Gustavo Araujo
Hello! I'm trying to finish my configuration of the cluster. But i get the message of 'memberDisappeared' in both nodes: Node1: users@tomcat.apache.org12-Nov-08 5:30:36 PM org.apache.catalina.cluster.tcp.SimpleTcpCluster memberAdded INFO: Replication member

Re: Tomcat 5.5.23 Cluster Problem - (memberDisappeared)

2008-11-12 Thread Alberto Jesus La Rosa Agramonte
hello thats my configurations files, and work without problems. cluster 1 Server port=8005 shutdown=SHUTDOWN Listener className=org.apache.catalina.core.AprLifecycleListener / Listener className=org.apache.catalina.mbeans.ServerLifecycleListener / Listener

Re: Tomcat 5.5.23 Cluster Problem - (memberDisappeared)

2008-11-12 Thread Gustavo Araujo
Alberto, Could you please send me the complete configurations of both nodes, this that you sent to me is missing something. =( Thanks a lot for you fast reply! 2008/11/12 Alberto Jesus La Rosa Agramonte [EMAIL PROTECTED] hello thats my configurations files, and work without problems.

Re: Using JAXB with tomcat

2008-11-12 Thread Rafael Cunha de Almeida
On Wed, 12 Nov 2008 09:09:01 +0100 [EMAIL PROTECTED] wrote: I am not sure if this works and it is probably not a nice solution, but maybe you can do something like BoOcorrenciaPolicial bo = (BoOcorrenciaPolicial) unmarshaller.unmarshal(new File(XML_DIR + id + .xml)); Class

Re: Monitoring Tomcat availability in a load balanced capacity

2008-11-12 Thread Adam Gordon
Hassan- I apologize if I wasn't clear. We are already running Tomcat in a load-balanced capacity with sticky sessions which means the jvmRoute is already set and configured correctly. What we are looking to do is ensure that the actual Tomcat instance isn't a zombie, rather, that it can

Re: Tomcat 5.5.23 Cluster Problem - (memberDisappeared)

2008-11-12 Thread Gustavo Araujo
It is not working for me =[ 2008/11/12 Gustavo Araujo [EMAIL PROTECTED] Alberto, Could you please send me the complete configurations of both nodes, this that you sent to me is missing something. =( Thanks a lot for you fast reply! 2008/11/12 Alberto Jesus La Rosa Agramonte [EMAIL

Re: Monitoring Tomcat availability in a load balanced capacity

2008-11-12 Thread Adam Gordon
See my reply to Hassan. I think setting up a proxy would be overkill, and besides, when running Tomcat in a load-balanced capacity w/ sticky sessions using mod JK, while you can connect directly to the port on which Tomcat is listening for mod JK requests, unless you speak mod JK, it doesn't

Get Security subject from Tomcat

2008-11-12 Thread Arash Bizhan zadeh
Hi, Is there is was I can get the authenticated User from inside my servlet/filter? IT seems none of the assumed ways work : getSession().getAttribute(Globals.SUBJECT_ATTR); Subject.getSubject(AccessController.getContext()); Please reply directly, I am not subscribed. -thanks, -arash -- The

Re: Tomcat threads

2008-11-12 Thread André Warnier
Caldarale, Charles R wrote: From: Christopher Schultz [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat threads PermGen seems like an odd item to share... though I guess all those java.lang.Package, java.lang.Class, java.lang.Method, etc. objects can really beat a system down. The sharing is not

RE: Get Security subject from Tomcat

2008-11-12 Thread Caldarale, Charles R
From: Arash Bizhan zadeh [mailto:[EMAIL PROTECTED] Subject: Get Security subject from Tomcat Is there is was I can get the authenticated User from inside my servlet/filter? Perhaps reading the Servlet spec or the APIs would help:

Re: Does jsessionid on the URL also check the User-Agent?

2008-11-12 Thread kennardconsulting
Chris, Thanks for your prompt reply. My apologies - I was getting confused. The browser had already assigned a jsessionid through a cookie just by viewing the login page, so from them on anything I passed on the URL was being ignored. Thanks for your time, Richard. -- View this message in

RE: Tomcat threads

2008-11-12 Thread Caldarale, Charles R
From: André Warnier [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat threads Since apparently this conversation clears some matters up, even for gurus, would one of you care to back-up a couple of messages, and re-state the final consensus in English for us mere mortals ? Only for specific

Re: Monitoring Tomcat availability in a load balanced capacity

2008-11-12 Thread André Warnier
Adam Gordon wrote: See my reply to Hassan. I think setting up a proxy would be overkill, and besides, when running Tomcat in a load-balanced capacity w/ sticky sessions using mod JK, while you can connect directly to the port on which Tomcat is listening for mod JK requests, unless you speak

Re: Tomcat threads, II

2008-11-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, Christopher Schultz wrote: A few parting thoughts: I knew I was forgetting something: 3. During your 5-minute startup freeze, try taking a few thread dumps (send a QUIT signal to your JVM) and seeing what the app is doing. Maybe it's just

Re: Tomcat threads, II

2008-11-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, At the risk of repeating things said by others... André Warnier wrote: We have an old clunker PC (Pentium II, 512 Mb Ram, average ATA disks), which we use to test some applications (not only Java/Tomcat). Based upon this hardware

Re: Monitoring Tomcat availability in a load balanced capacity

2008-11-12 Thread Robert Koberg
You mentioned you just upgraded your MS SQL. Is it possible that the default encoding changed? It should be using UTF-8. Can you check that? On Nov 12, 2008, at 4:48 PM, André Warnier wrote: Adam Gordon wrote: See my reply to Hassan. I think setting up a proxy would be overkill, and

Re: Monitoring Tomcat availability in a load balanced capacity

2008-11-12 Thread David Rees
On Wed, Nov 12, 2008 at 1:15 PM, Adam Gordon [EMAIL PROTECTED] wrote: See my reply to Hassan. I think setting up a proxy would be overkill, and besides, when running Tomcat in a load-balanced capacity w/ sticky sessions using mod JK, while you can connect directly to the port on which Tomcat

Re: Monitoring Tomcat availability in a load balanced capacity

2008-11-12 Thread Robert Koberg
Ooops, sorry. I meant this to go to someone else... On Nov 12, 2008, at 5:06 PM, Robert Koberg wrote: You mentioned you just upgraded your MS SQL. Is it possible that the default encoding changed? It should be using UTF-8. Can you check that? On Nov 12, 2008, at 4:48 PM, André Warnier

Re: Get Security subject from Tomcat

2008-11-12 Thread Arash Bizhan zadeh
On Wed, Nov 12, 2008 at 4:06 PM, Caldarale, Charles R [EMAIL PROTECTED] wrote: From: Arash Bizhan zadeh [mailto:[EMAIL PROTECTED] Subject: Get Security subject from Tomcat Is there is was I can get the authenticated User from inside my servlet/filter? Perhaps reading the Servlet spec

Re: Tomcat threads, II

2008-11-12 Thread Juha Laiho
André Warnier wrote: Now that I have (with your help) established some basic facts, I have a practical case for analysis. We have an old clunker PC (Pentium II, 512 Mb Ram, average ATA disks), which we use to test some applications (not only Java/Tomcat). ... Now, if I stop and restart

RE: Get Security subject from Tomcat

2008-11-12 Thread Caldarale, Charles R
From: Arash Bizhan zadeh [mailto:[EMAIL PROTECTED] Subject: Re: Get Security subject from Tomcat Sure it might help. Reading my mail would have helped too. I need the Subject not the principal. O.k., I'm confused. If you're looking for the user name, then the java.security.Principal

Re: Get Security subject from Tomcat

2008-11-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Arash, Arash Bizhan zadeh wrote: Sure [reading the servlet API] might help. Reading my mail would have helped too. I need the Subject not the principal. Ouch. You're gonna get the cold shoulder with that kind of snarkiness. Your original message

Re: Tomcat threads, II

2008-11-12 Thread Michael Ludwig
Christopher Schultz schrieb am 12.11.2008 um 16:42:06 (-0500): André Warnier wrote: In other words, while this application is being loaded, our Tomcat and the whole system are totally unresponsive for about 5 minutes. 1. DNS settings. Especially when parsing XML (which often requires

Re: Tomcat threads

2008-11-12 Thread Alan Chaney
André André Warnier wrote: (and what is PermGen ?) No one else seemed to answer this. PermGen is the chunk of memory which is allocated to the JVM in which to hold the 'prototypes' of the class files used. For a large web app with lots of classes (NOT object) it is common to have to

Re: Get Security subject from Tomcat

2008-11-12 Thread Arash Bizhan zadeh
On Wed, Nov 12, 2008 at 5:34 PM, Christopher Schultz [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Arash, Arash Bizhan zadeh wrote: Sure [reading the servlet API] might help. Reading my mail would have helped too. I need the Subject not the principal. Ouch.

  1   2   >