log POST data

2008-11-11 Thread Markus Reis
I'd like to log post parameters/data of all/some http requests - Therefore I tried Valve className=org.apache.catalina.valves.ExtendedAccessLogValve prefix=localhost_extended_access_log. suffix=.log pattern=cs-uri cs-uri-query time-taken x-P()

Re: Apache/mod_jk serves random files from tomcat

2008-11-11 Thread Jakob Ericsson
Hi, We are also experiencing this problem. Our setup is running Windows 2003 Server with Apache 2.0.59 (no prefork), mod_jk 1.2.22 and Apache Tomcat/6.0.13. Will upgrading to latest mod_proxy_ajp in Apache httpd 2.2.X solve this problem? How did other people solve this problem? Regards,

Tomcat does not shutdown properly

2008-11-11 Thread raverkar
http://www.nabble.com/file/p20435744/C.log C.log My application is using Jboss Cache. If I comment out the configuration of Jboss Cache from my xml file, there is no problem of Tomcat shutdown. That makes me think that Jboss Cache is causing the problem. I have attached the thread dump. Can

Re: log POST data

2008-11-11 Thread Mark Thomas
Markus Reis wrote: in my server.xml, but the last pattern string x-P() always produced - in the log (instead of the only one post parameter that was present in the http post request) Shouldn't that be x-P(nameOfParameter) ? Mark

More error info on Issue on parsing struts.xml

2008-11-11 Thread Nar Karapetyan
Hello, I forgot to mention that this error happens on linux (windows is OK), and the xr variable is declared like DocumentBuilder xr = DocumentBuilderFactory.newInstance().newDocumentBuilder(); Thank you, kind regards,Nareg Garabedian --- Prevoius message- Hello,

RE: Issue on parsing struts.xml

2008-11-11 Thread Caldarale, Charles R
Sent: 2008 November 11, Tuesday 08:44 Subject: Issue on parsing struts.xml An error occures on parsing struts.xml The message is the following java.net.UnknownHostException: struts.apache.org I'm not a struts user, but I would guess that the XML in question has a DTD or schema reference to

multiple Set-Cookie headers in initial http response

2008-11-11 Thread Markus Reis
Our Tomcat 5.5 sends 30 cookie (cookie=JSESSIONID=2D79FB71207A83A09B32677B9640693E.jbprod; domain=null; path=/) and 900 Set-Cookie (header=Set-Cookie=JSESSIONID=2D79FB71207A83A09B32677B9640693E.jbprod; Path=/; Secure) headers in the http response header back to the external clients (during

tomcat 5.5 memory

2008-11-11 Thread Alberto Jesus La Rosa Agramonte
Hi, I have installed apache tomcat 5.5 and giving me problems with memory, this is the configuration that I have now, someone can help me to optimize this, or tell me if this right.The server have 3 gb of RAM. Thanks # Run Tomcat as this user ID (default: tomcat55). Set this to an empty string #

Issue on parsing struts.xml

2008-11-11 Thread Nar Karapetyan
Hello, I'm having a problem while using a tomcat deployed application over https. http browsing though will run flawlessly. An error occures on parsing struts.xml The message is the following java.net.UnknownHostException: struts.apache.org The faulty line is nothing but Document d =

Re: tomcat 5.5 memory

2008-11-11 Thread David kerber
Alberto Jesus La Rosa Agramonte wrote: Hi, I have installed apache tomcat 5.5 and giving me problems with memory, this is the configuration that I have now, someone can help me to optimize this, or tell me if this right.The server have 3 gb of RAM. Thanks What kind of problems are you

Re: Tomcat Performance

2008-11-11 Thread Pavel Savara
May be your tomcat is configured to server only limited number of clients so it doesn't use all hardware power when you deploy two tomcats you can serve twice as much clients. I would say tune tomcat configuration to accept more clients connections. Palko On Mon, 2008-11-10 at 11:56 +0530,

Re: tomcat 5.5 memory

2008-11-11 Thread Alberto Jesus La Rosa Agramonte
The tomcat run many processes and each process consumes 6 to 7 mb and in a Period of time the server's memory is exhausted. 2008/11/12 David kerber [EMAIL PROTECTED]: Alberto Jesus La Rosa Agramonte wrote: Hi, I have installed apache tomcat 5.5 and giving me problems with memory, this is the

RE: tomcat 5.5 memory

2008-11-11 Thread Caldarale, Charles R
From: Alberto Jesus La Rosa Agramonte [mailto:[EMAIL PROTECTED] Subject: tomcat 5.5 memory Hi, I have installed apache tomcat 5.5 and giving me problems with memory, this is the configuration that I have now This is not a proper Tomcat installation, but rather a 3rd-party repackaged

Best Linux JVM to use for Tomcat?

2008-11-11 Thread fred basset
Hi All, I have a site running with Tomcat 5.5.27 on Centos 5.2 32 bit. Which is the best JVM on Linux to use with Tomcat? I'm currently using Sun's JDK 1.6.0. Thank you, Fred

Re: Issue on parsing struts.xml

2008-11-11 Thread Nar Karapetyan
Thank you Chuck, I'd guess that as well, but one thing I can't explain here There is no error when connecting through http (versus https). The same web application, starts normally, works seamlessly over http, but gives that error java.net.UnknownHostException: struts.apache.org over struts.xml

Re: tomcat 5.5 memory

2008-11-11 Thread Alberto Jesus La Rosa Agramonte
The tomcat run many processes and each process consumes 6 to 7 mb and in a Period of time the server's memory is exhausted. We install the tomcat from the backports repositories because it needed to install the Java Virtual Machine 6, I use debian etch. Thanks... 2008/11/12 Caldarale, Charles R

Re: tomcat 5.5 memory

2008-11-11 Thread Alberto Jesus La Rosa Agramonte
The platform is 64 bits. Thanks 2008/11/12 Caldarale, Charles R [EMAIL PROTECTED]: From: Alberto Jesus La Rosa Agramonte [mailto:[EMAIL PROTECTED] Subject: tomcat 5.5 memory Hi, I have installed apache tomcat 5.5 and giving me problems with memory, this is the configuration that I have now

RE: Tomcat Performance

2008-11-11 Thread pengtuck
So let me get this straight. You are reluctant to accept a configuration which gives you improved throughput ? :P Anyway, this is not an unusual approach, from what I understand this simply makes full use of the resources available on that machine. Not uncommon in real world to see app servers

Re: log POST data

2008-11-11 Thread Mark Thomas
Markus Reis wrote: Yes, it should be x-P(nameOfParameter) ... ... BUT, the POST request sent contains no key/value POST parameters/values, but instead only one value (without a key) - so what could I use as nameOfParameter (I already tried '', nothing, and , but without any success)? Then

Re: Best Linux JVM to use for Tomcat?

2008-11-11 Thread Leon Rosenberg
suns current jdk is always the best choice. the current one is 6.10 https://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_Developer-Site/en_US/-/USD/[EMAIL PROTECTED] regards Leon On Tue, Nov 11, 2008 at 7:49 PM, fred basset [EMAIL PROTECTED] wrote: Hi All, I have a site running with

Re: log POST data

2008-11-11 Thread Markus Reis
OK (therefore I wrote POST data in the subject) - How could I log this (POST) data (or body)? Markus Original-Nachricht Datum: Tue, 11 Nov 2008 11:40:16 + Von: Mark Thomas [EMAIL PROTECTED] An: Tomcat Users List users@tomcat.apache.org Betreff: Re: log POST data

Re: tomcat 5.5 memory

2008-11-11 Thread David kerber
Alberto Jesus La Rosa Agramonte wrote: The tomcat run many processes and each process consumes 6 to 7 mb and in a Period of time the server's memory is exhausted. Is it running the correct number of processes, and you just don't have enough memory for them, or is the problem that it's

Re: tomcat 5.5 memory

2008-11-11 Thread Alberto Jesus La Rosa Agramonte
Hello. this number of processes in the tomcat is normal??? thanks 887 tomcat55 25 0 3836 1012 820 S 0.0 0.0 0:00.00 su 1891 tomcat55 18 0 7884 1788 1376 S 0.0 0.1 0:00.03 rotatelogs 1908 tomcat55 25 0 2759m 294m 7904 S 0.0 9.6 0:00.00 java 1909 tomcat55 15 0 2759m

RE: Issue on parsing struts.xml

2008-11-11 Thread Caldarale, Charles R
From: Nar Karapetyan [mailto:[EMAIL PROTECTED] Subject: Re: Issue on parsing struts.xml Does that parsing take place everey time when one connects to the web application? No idea; that would be up to struts, not Tomcat. You might get more knowledgeable answers on the struts mailing list.

Re: tomcat 5.5 memory

2008-11-11 Thread Alberto Jesus La Rosa Agramonte
The hardware only, the software is 32 bits, and the jvm too. The problem that it's spawning too many processes. 2008/11/12 David kerber [EMAIL PROTECTED]: Alberto Jesus La Rosa Agramonte wrote: The tomcat run many processes and each process consumes 6 to 7 mb and in a Period of time the

Current tips

2008-11-11 Thread Mike Basinger
My department has a tomcat server that has some minors issues. Our main problem is that is that we must restart the server when we change certain applets. On article from http://www.onjava.com/pub/a/onjava/2003/06/25/tomcat_tips.html has fixes, but it is five years old. Woud these fixes work on

Re: Setting up context.xml for an application

2008-11-11 Thread Pavel Savara
I war file gets unziped into to webapp directory so during the redeploy i would not try to deploy whole war but just copy changes into the your application directory. Palko On Mon, 2008-11-10 at 15:35 -0600, Tim Dean wrote: I have an application that requires some settings in a Context

Re: Tomcat Performance

2008-11-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Pengtuck, [EMAIL PROTECTED] wrote: So let me get this straight. You are reluctant to accept a configuration which gives you improved throughput ? :P No, the OP is unwilling to use a configuration that doesn't make any sense: one single Tomcat

Re: tomcat 5.5 memory

2008-11-11 Thread André Warnier
Alberto Jesus La Rosa Agramonte wrote: The hardware only, the software is 32 bits, and the jvm too. The problem that it's spawning too many processes. Alberto, what a couple of other people on this list have already tried to tell you - without apparently triggering any reaction from you - is

Re: Forward filter mapping including path info

2008-11-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Florian, Florian Hopf wrote: Is a mapping containing a path info not supported for forwards? So, just to clarify: * You have a filter you'd like to apply to /servlet/long/path/my.jsp * You configured the filter to be active on FORWARD dispatches *

Re: Configuring tomcat to log authentication events

2008-11-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Brian, Brian Gillan wrote: 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

Re: log POST data

2008-11-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Markus, Markus Reis wrote: OK (therefore I wrote POST data in the subject) - How could I log this (POST) data (or body)? It doesn't look like there's an option in there for this:

Re: Tomcat Error V 5.5

2008-11-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Deepak, deepak a.l wrote: I'm facing the below error while starting the Tomcat Server V5.5, It gives me the below pop up message. What is your exact Tomcat version? 5.5.what? Server Tomcat v5.5 Server at localhost was unable to start within 45

Issue on parsing struts.xml

2008-11-11 Thread Nar Karapetyan
Hello, (sorry for the duplicate mail, the prevoius - incomplete - message just went submitted accidentally). I'm having a problem while using a tomcat deployed application over https. http browsing though will run flawlessly. An error occures on parsing struts.xml The message is the following

Re: Apache/mod_jk serves random files from tomcat

2008-11-11 Thread Christopher Schultz
-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 prefork), mod_jk 1.2.22 and Apache Tomcat/6.0.13. Will upgrading to latest mod_proxy_ajp in Apache httpd 2.2.X

Re: Tomcat does not shutdown properly

2008-11-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Sachin, raverkar wrote: My application is using Jboss Cache. If I comment out the configuration of Jboss Cache from my xml file, there is no problem of Tomcat shutdown. That makes me think that Jboss Cache is causing the problem. Sounds like a

Re: multiple Set-Cookie headers in initial http response

2008-11-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Markus, Markus Reis wrote: Our Tomcat 5.5 sends 30 cookie (cookie=JSESSIONID=2D79FB71207A83A09B32677B9640693E.jbprod; domain=null; path=/) Are they all identical? and 900 Set-Cookie

Re: log POST data

2008-11-11 Thread Markus Reis
Yes, it should be x-P(nameOfParameter) ... ... BUT, the POST request sent contains no key/value POST parameters/values, but instead only one value (without a key) - so what could I use as nameOfParameter (I already tried '', nothing, and , but without any success)? Markus PS: The request is

Re: Issue on parsing struts.xml

2008-11-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Nar, Nar Karapetyan wrote: There is no error when connecting through http (versus https). The same web application, starts normally, works seamlessly over http, but gives that error java.net.UnknownHostException: struts.apache.org over struts.xml

Re: clustering

2008-11-11 Thread Filip Hanik - Dev Lists
you're missing the membership elelemnt Membership className=org.apache.catalina.cluster.mcast.McastService mcastAddr=228.0.0.4 mcastBindAddress=127.0.0.1

Re: Forward filter mapping including path info

2008-11-11 Thread Mark Thomas
Florian Hopf wrote: Hi, I am in a situation where I want to map a forward filter based on a servlet and an additional path. The path that is forwarded to looks something like this: /servlet/long/path.to/my.jsp The path info is mapped by the servlet to a JSP in the file system. My

Tomcat threads

2008-11-11 Thread André Warnier
Hi. Only for my own intellectual advancement in matters Tomcat : On this page : http://tomcat.apache.org/tomcat-6.0-doc/config/http.html , referring to the third paragraph of the Introduction. This paragraph explains that Tomcat will start additional threads as required to process incoming

Re: tomcat 5.5 memory

2008-11-11 Thread Christopher Schultz
-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 means that you have around 25 threads within the JVM. What kernel version are you

RE: Tomcat threads

2008-11-11 Thread Caldarale, Charles R
From: André Warnier [mailto:[EMAIL PROTECTED] Subject: Tomcat threads http://tomcat.apache.org/tomcat-6.0-doc/config/http.html , referring to the third paragraph of the Introduction. Note that the 6.0 doc is missing some very important attributes for the Connector element. Apparently, the

Re: Tomcat threads

2008-11-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, André Warnier wrote: On this page : http://tomcat.apache.org/tomcat-6.0-doc/config/http.html , referring to the third paragraph of the Introduction. If you really want tight control over the thread management, you should probably use an

Re: Tomcat threads

2008-11-11 Thread Filip Hanik - Dev Lists
For tomcat 6, when setting Connector maxThread=50../ if it reaches 50, it will not shrink. but if you do Executor name=threadpool maxThreads=50 |minSpareThreads=25/ Connector executor=threadpool .../ then it will shrink down to 25 if the threads are idle Filip | André Warnier wrote: Hi.

RE: Tomcat threads

2008-11-11 Thread Caldarale, Charles R
From: Christopher Schultz [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat threads If you really want tight control over the thread management, you should probably use an executor The last I heard from Remy M was that the Executor performance was disappointing and they shouldn't be used.

[Http]ServletResponseWrapper.getOutputStream()

2008-11-11 Thread Michael Ludwig
This is in Tomcat 6.0.18 on Java 1.6. A servlet S includes an HTML fragment via RequestDispatcher.include() while being wrapped by a filter F and being passed a wrapped response WR. Servlet S generates header and footer using the PrintWriter. The HTML fragment, being a static resource, is

Re: Tomcat threads

2008-11-11 Thread Filip Hanik - Dev Lists
Caldarale, Charles R wrote: From: Christopher Schultz [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat threads If you really want tight control over the thread management, you should probably use an executor The last I heard from Remy M was that the Executor performance was disappointing

RE: Tomcat threads

2008-11-11 Thread Caldarale, Charles R
From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat threads you wont see that today any more, the executor has been fine tuned. Good to know; thanks. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only

Re: [Http]ServletResponseWrapper.getOutputStream()

2008-11-11 Thread Michael Ludwig
Michael Ludwig schrieb am 12.11.2008 um 02:37:29 (+0100): But even with my Filter overriding both getOutputStream() and getWriter() and substituting buffers that will be written to, there is a problem. Servlet S will write to one buffer, and the DefaultServlet will write to another one. The

Re: Tomcat Performance

2008-11-11 Thread Peng Tuck Kwok
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). The idea is not to give

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

2008-11-11 Thread kennardconsulting
Dear All, When passing a jsessionid on the URL such as... http://foo.com;jsessionid=123 ...does Tomcat do something clever, like checking the User-Agent, before agreeing to hook into the existing '123' session? If I log in using, say, Firefox and note the jsessionid, then open a new

Connection Leak in java - Tomcat 6.0.18

2008-11-11 Thread Arun Raj Ramkumar
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 Regards, Arun.

Re: Issue on parsing struts.xml

2008-11-11 Thread Nar Karapetyan
Hi Chris, https://struts.apache.org/ does not respond to a request. Perhaps that's the problem? I did not modify struts.xml. It contains only http://struts.apache.org/ (not https). The problem is that I start my web application - it starts without erros, then I exlore my web application

Using JAXB with tomcat

2008-11-11 Thread Rafael Cunha de Almeida
I have been trying to use JAXB with tomcat, but I have been have some problems. I began trying to use the following class loader: this.getClass().getClassLoader() That didn't work. I don't actually understand much about those class loader things. So I browsed the Internet for a solution

Re: log POST data

2008-11-11 Thread Markus Reis
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: [snip] in = request.getInputStream(); ByteArrayInputStream bais; ByteArrayOutputStream baos; try { byte []

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

2008-11-11 Thread Torsten.Romer
Hi Richard, How do you log in and to what? What do you mean with it doesn't work? That Tomcat creates a new session? I tried what you did: Accessed some webapp in FF and pasted the URL including jsessionid in IE - got the same session. I don't think Tomcat cares about anything else than the