deploying a jsp file into tomcat!

2008-11-12 Thread ratha
Hi all, I have written a javascript and jsp and html files. I want to test whether my script is working or not(I have written it for Apache ODE).I deployed ODE.war distribution into the tomcat. So there i can see three files(WEB-INF,META-INF,axis2). I just put my files inside the 'ODE' directo

Re: Tomcat 5.5.23 Cluster Problem - (memberDisappeared)

2008-11-12 Thread Filip Hanik - Dev Lists
increase mcastDropTime="3000" to mcastDropTime="3" Gustavo Araujo wrote: Hello! I'm trying to finish my configuration of the cluster. But i get the message of 'memberDisappeared' in both nodes: Node1: 12-Nov-08 5:30:36 PM org.apache.catalina.cluster.tcp.SimpleTcpCluster memberAdded I

Re: 404 after adding web.xml

2008-11-12 Thread Shoan Motwani
On Thu, Nov 13, 2008 at 9:14 AM, Caldarale, Charles R <[EMAIL PROTECTED]> wrote: >> From: Shoan Motwani [mailto:[EMAIL PROTECTED] >> Subject: 404 after adding web.xml >> >> But after adding webapp/WEB-INF/web.xml containing the >> following, I don't get anything other than a 404. > > Look in the To

RE: 404 after adding web.xml

2008-11-12 Thread Caldarale, Charles R
> From: Shoan Motwani [mailto:[EMAIL PROTECTED] > Subject: 404 after adding web.xml > > But after adding webapp/WEB-INF/web.xml containing the > following, I don't get anything other than a 404. Look in the Tomcat logs for error messages about deployment of your webapp. > > Ch3 Beer >

404 after adding web.xml

2008-11-12 Thread Shoan Motwani
I am a java noob. Been trying out the examples from Oreilly's Head First Servlets & JSP. I am using Tomcat 5.5 running on Mac Os X 10.5. I created webapps/Beer-v1 and dropped in a plain html file. On accessing it at http://localhost:8080/Beer-v1/form.html, I get the html page as expected. But aft

[ANNOUNCE] Beta candidate for Tomcat connection pool

2008-11-12 Thread Filip Hanik - Dev Lists
The Apache Tomcat team announces the immediate availability of Apache Tomcat JDBC Connection Pool Apache Tomcat Connectors version 1.0.1-beta is a new module within the Tomcat development realm, aimed to provide a high performance, concurrent and extensible connection pool to the Tomcat commun

Re: log POST data

2008-11-12 Thread André Warnier
Christopher Schultz wrote: [...] Honestly, an app-server-agnostic Filter that performs the same function would be a really useful thing to write. Care to try your hand at writing it? ;) Honestly too, I don't think I'm capable of doing that yet. As part of a filter I did write, I put some logg

Re: Tomcat threads, II

2008-11-12 Thread Michael Ludwig
André Warnier schrieb am 13.11.2008 um 00:08:05 (+0100): > [...] on the same machine I have a text search and retrieval > application that can sift through a full-text index of 100,000 > documents (1 Gb of text) and retrieve the ones I want in couple of > seconds. It has a 10 Mb memory footprint.

Re: Get Security subject from Tomcat

2008-11-12 Thread André Warnier
Arash Bizhan zadeh wrote: 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 read

Re: Tomcat threads, II

2008-11-12 Thread André Warnier
Chris, Chuck and others, many thanks for taking the time to educate me (on both "Tomcat threads" threads). I got lots of information and tips, which will be useful now or later. I'll now go sift through them again. At least now I have an idea where to start. About the fact that my hardware s

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 princip

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 radic

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: 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 messa

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

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 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

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 wr

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 Tomc

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 besid

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 t

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 m

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 specifi

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 configur

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 co

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 f

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 d

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 <[EM

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 sti

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: http://java.sun.com/products/servlet/2.5/docs/servlet-2_5-

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: 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"));

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. > > cl

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 cluster 2

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: 12-Nov-08 5:30:36 PM org.apache.catalina.cluster.tcp.SimpleTcpCluster memberAdded INFO: Replication member added:org.apache.catalina.cluster.mcast.McastMember[tcp://172

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 t

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: 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- Vers

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 Coo

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 b

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 purpos

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, h

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 - JIT

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: 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: 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 recommendatio

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 dire

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: 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" au

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 d

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 ha

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). Thanks

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 t

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 tol

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: 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

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

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 conn

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 app

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 pe

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: 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 (non-of

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 items

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: 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 (0x2affd1cb800

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. h

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: 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 org.apache.catalina.tribes.membership.Memb

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: 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: 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 thr

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 -

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 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

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: > /usr/share/tomc

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 m

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 w

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 environments

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: 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. Whe

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: 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

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 java.l

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 re

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 i

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 > s

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 tha

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 bet

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 > > > className="org.apache.catalina.cluster.mcast.McastService" > mcastAddr="228.0.0.4" > mcast

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 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). Y

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 m

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 proces

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)

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: 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

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 nic

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 S

Re: Tomcat threads

2008-11-12 Thread Ronald Klop
Op woensdag, 12 november 2008 om 9:56 uur schreef Tomcat Users List : 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 enlightening. In summary thus

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 conf

  1   2   >