tomcat memory question

2010-05-27 Thread
hi, all there is a problem with my webapp. by manual configuration, i allocated 1G(1024M) memory for webapp. where the gc new capacity automatically is 262M, the gc old capacity automatically is 699M, S0/S1 automatically is 43.6M/43.6M., PC automatically is 42M When my webapp is started, I

the gc question with tomcat

2010-05-27 Thread sesfei
hi, all there is a problem with my webapp. by manual configuration, i allocated 1G(1024M) memory for webapp. where the gc new capacity automatically is 262M, the gc old capacity automatically is 699M, S0/S1 automatically is 43.6M/43.6M., PC automatically is 42M When my webapp is started, I use

Re: apache 2 + tomcat 6 virtualhost question

2010-05-27 Thread Rainer Jung
On 27.05.2010 05:11, Caldarale, Charles R wrote: From: Bithost Ltda. [mailto:bithost.ch...@gmail.com] Subject: Re: apache 2 + tomcat 6 virtualhost question Well it seems that such is for only one domain, and i will be deploying more than one, thats why i cant use ROOT Then declare

Re: TC security/impersonation question

2010-05-27 Thread Pid *
On 27 May 2010, at 00:06, Timothy Taylor securityaddi...@hotmail.com wrote: Hi, Just a dumb question from a newbe but if I implement any type of security with TC then under what identity will the invoked WS stack object execute the request? Specifically, if I enable Kerberos authentication

Re: the gc question with tomcat

2010-05-27 Thread Pid
On 27/05/2010 10:03, sesfei wrote: hi, all there is a problem with my webapp. What is the problem exactly? by manual configuration, i allocated 1G(1024M) memory for webapp. where the gc new capacity automatically is 262M, the gc old capacity automatically is 699M, S0/S1 automatically is

RE: Tomcat 6.0 always uses default host in multi-host config

2010-05-27 Thread Caldarale, Charles R
From: Caldarale, Charles R Subject: RE: Tomcat 6.0 always uses default host in multi-host config 1) If useIPVHosts=false (default), then the host header name determines Host for processing, or default host of the Engine. 2) If useIPVHosts=true, then IP address of request determines Host

unusual IllegalStateException

2010-05-27 Thread Dan Armbrust
I have a webapp running in Tomcat 6.0.20. One of my testers caused this to appear in the logs: May 11, 2010 2:23:14 PM org.apache.jasper.runtime.JspFactoryImpl internalGetPageContext SEVERE: Exception initializing page context java.lang.IllegalStateException: Cannot create a session after the

RE: Question on workers.properties file

2010-05-27 Thread Savoy, Melinda
I was FINALLY able to get to my code within Eclipse using the Tomcat connector and NOT getting the login dialog box by adding Jakarta to the trusted sites in the IE browser on my Windows XP box since as I found out from Jeff in the IIS forum browsers do not authenticate untrusted sites on XP.

Re: Question on workers.properties file

2010-05-27 Thread Rainer Jung
I finally suggest you start a new topic. I know André didn't like your last attempt to do so, but now your first problem is solved, you get something out of request.getRemoteUser() (at least this is something I interprete into your last Mail), and the next question goes more to the Java

RE: Tomcat 6.0 always uses default host in multi-host config

2010-05-27 Thread Caldarale, Charles R
From: Jeffrey Janner [mailto:jeffrey.jan...@polydyne.com] Subject: RE: Tomcat 6.0 always uses default host in multi-host config Now that I got how useIPVhosts works (probably), did you see any drawbacks to setting up multiple Services to achieve what the original poster was going for, i.e.

Re: Why does errorPage work but WEB-INF/web.xml error-page does not?

2010-05-27 Thread Dan Armbrust
On Wed, May 26, 2010 at 12:26 PM, laredotornado laredotorn...@gmail.com wrote: I tried your suggestion, and sadly it didn't work. What is the difference between what the errorPage directive does and what the web.xml error-page clause does?  - Dave I don't think this is directly related, but

RE: Question on workers.properties file [SOLVED]

2010-05-27 Thread Savoy, Melinda
Ranier, I will do as you said and put in a NEW topic because I am getting a NULL value from the getRemoteUser() when using the HttpServletRequest object. Again, the fix was that the JAKARTA virtual website, if you're working in Windows XP, must be added to the Trusted Sites in IE. Thank you

Re: tomcat memory question

2010-05-27 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 塗, On 5/27/2010 4:51 AM, 塗 wrote: there is a problem with my webapp. web operating environment: tomcat5.5.27 + Apache/2.2.3 + jdk1.5.0_13 + Linux_x86_64 [below] is my manual configurations for tomcat JVM: CATALINA_OPTS=-Xms1024M -Xmx1024M

How can I get the user value in the request forwarded to my Tomcat in my Java app?

2010-05-27 Thread Savoy, Melinda
In my isapi.log I am getting the user value (indicated below in BOLD RED font) from IIS using the Tomcat connector and my understanding from others on this list is that I should be able to get at that user value by using the HttpServletRequest getRemoteUser() however, I am getting a NULL value

Re: Why does errorPage work but WEB-INF/web.xml error-page does not?

2010-05-27 Thread laredotornado
Perhaps I'm in the denial phase of my grief here, but the only way to redirect to a 500 page when an error occurs in JSP processing is to increase the page buffer size? What if the response is already committed? - Dave Kris Schneider-2 wrote: Dave - looks like I just posted something for

Re: tomcat memory question

2010-05-27 Thread Pid
On 27/05/2010 15:40, Christopher Schultz wrote: W, On 5/27/2010 4:51 AM, W wrote: there is a problem with my webapp. web operating environment: tomcat5.5.27 + Apache/2.2.3 + jdk1.5.0_13 + Linux_x86_64 [below] is my manual configurations for tomcat JVM: CATALINA_OPTS=-Xms1024M

Re: How can I get the user value in the request forwarded to my Tomcat in my Java app?

2010-05-27 Thread Rainer Jung
On 27.05.2010 16:42, Savoy, Melinda wrote: In my isapi.log I am getting the user value (indicated below in BOLD RED font) from IIS using the Tomcat connector and my understanding from others on this list is that I should be able to get at that user value by using the HttpServletRequest

RE: How can I get the user value in the request forwarded to my Tomcat in my Java app?

2010-05-27 Thread Savoy, Melinda
Here is the AJP setting: !-- Define an AJP 1.3 Connector on port 8009 -- Connector port=8009 protocol=AJP/1.3 redirectPort=8443 tomcatAuthentication=false / -Original Message- From: Rainer Jung [mailto:rainer.j...@kippdata.de] Sent: Thursday, May 27, 2010 10:17 AM To: Tomcat Users

RE: Tomcat 6.0 always uses default host in multi-host config

2010-05-27 Thread Jeffrey Janner
-Original Message- From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] Sent: Thursday, May 27, 2010 9:30 AM To: Tomcat Users List Subject: RE: Tomcat 6.0 always uses default host in multi-host config From: Jeffrey Janner [mailto:jeffrey.jan...@polydyne.com] Subject:

Clustering, De-Serialization and Order of Operations

2010-05-27 Thread Howard Lewis Ship
I have a question, on behalf of a client, concerning Tomcat clustering and deserialization, in the context of a Tapestry 5 application. Here's the short form: some of the objects that a Tapestry application may put into the HttpSession will only deserialize correctly if the Tapestry application

RE: Tomcat 6.0 always uses default host in multi-host config

2010-05-27 Thread Jeffrey Janner
-Original Message- From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] Sent: Thursday, May 27, 2010 9:12 AM To: Tomcat Users List Subject: RE: Tomcat 6.0 always uses default host in multi-host config From: Caldarale, Charles R Subject: RE: Tomcat 6.0 always uses

Re: Clustering, De-Serialization and Order of Operations

2010-05-27 Thread Pid
On 27/05/2010 16:31, Howard Lewis Ship wrote: I have a question, on behalf of a client, concerning Tomcat clustering and deserialization, in the context of a Tapestry 5 application. Here's the short form: some of the objects that a Tapestry application may put into the HttpSession will only

RE: Tomcat 6.0 always uses default host in multi-host config

2010-05-27 Thread Caldarale, Charles R
From: Jeffrey Janner [mailto:jeffrey.jan...@polydyne.com] Subject: RE: Tomcat 6.0 always uses default host in multi-host config Or is it done regardless on each request anyway? As far as I can tell, the call to InetAddress.getHostName() is done only when useIPVHosts is true. Where does

Re: Why does errorPage work but WEB-INF/web.xml error-page does not?

2010-05-27 Thread laredotornado
Actually that is directly related and I'm seeing the same exception in my logs. Thanks so much for this -- I would have been spending a lot of time trying to find a work-around for this issue. I just missed the new version! I'm running 6.0.26 and the fix is included in 6.0.27. - Dave Dan

RE: Clustering, De-Serialization and Order of Operations

2010-05-27 Thread Martin Gainty
package filters; import java.io.*; import java.sql.*; import java.util.*; import javax.servlet.*; /** * Example filter that dumps interesting state information about a request * to the associated servlet context log file, before allowing the servlet * to process the request in the usual

Re: Why does errorPage work but WEB-INF/web.xml error-page does not?

2010-05-27 Thread ramzi khlil
Try putting this at the top of the page %@ page contentType=text/html; charset=UTF-8 isErrorPage=true On Thu, May 27, 2010 at 12:06 PM, laredotornado laredotorn...@gmail.comwrote: Actually that is directly related and I'm seeing the same exception in my logs. Thanks so much for this -- I

RE: tomcat memory question

2010-05-27 Thread Jeffrey Janner
-Original Message- From: Christopher Schultz [mailto:ch...@christopherschultz.net] Sent: Thursday, May 27, 2010 9:40 AM To: Tomcat Users List Subject: Re: tomcat memory question -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 塗, On 5/27/2010 4:51 AM, 塗 wrote: there is a

Re: Why does errorPage work but WEB-INF/web.xml error-page does not?

2010-05-27 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Kris, On 5/26/2010 1:43 PM, Kris Schneider wrote: Basically, it looks like having a committed response (you've said that your original JSP was partially rendered) can interfere with the error page mechanism. For testing purposes, try increasing

Re: Why does errorPage work but WEB-INF/web.xml error-page does not?

2010-05-27 Thread Hassan Schroeder
On Wed, May 26, 2010 at 2:18 PM, Christopher Schultz ch...@christopherschultz.net wrote: Your JSP pages should be foolproof. Numeric parsing is better left to a servlet that can properly send the user to an error page without producing any output of its own. +1 on that, and your code will be

Re: URL Exceeding maxHttpHeaderSize

2010-05-27 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 To whom it may concern, On 5/26/2010 6:31 PM, glau_pldm wrote: I'm running tests against a web app running in Tomcat and I was asked to test extremely long URL query strings. I've read servers should throw HTTP status 414 if the header size is

Re: How can I get the user value in the request forwarded to my Tomcat in my Java app?

2010-05-27 Thread Rainer Jung
On 27.05.2010 18:49, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Melinda, On 5/27/2010 11:19 AM, Savoy, Melinda wrote: Here is the AJP setting: !-- Define an AJP 1.3 Connector on port 8009 -- Connector port=8009 protocol=AJP/1.3 redirectPort=8443

Re: URL Exceeding maxHttpHeaderSize

2010-05-27 Thread glau_pldm
Here is my connector configuration: Connector port=8080 protocol=HTTP/1.1 connectionTimeout=2 redirectPort=8443 maxHttpHeaderSize=8192 / I'm using Tomcat 6.0.14 The connection doesn't hang but the reply is empty. Here is the detailed output

Glassfish overriding Tomcat 6.0.24 installation?

2010-05-27 Thread Josh Gooding
Hey guys (and gals). Interesting enough, I installed the Jave EE 5 JDK for windows. I then installed Tomcat 6.0.24, when I navigate to htp://localhost:8080 (which should be the default of Tomcat) I am getting the glassfish junk. How can I remove the glassfish? I don't believe that there is an

Re: Why does errorPage work but WEB-INF/web.xml error-page does not?

2010-05-27 Thread laredotornado
You mean for me to put this at the top of my error page (500.jsp), correct? If so, I tried that, but still got the partially rendered page outlined in the Tomcat bug mentioned earlier. Anyone know when 6.0.27 will be released? - Dave ramzi khlil wrote: Try putting this at the top of the

Re: Glassfish overriding Tomcat 6.0.24 installation?

2010-05-27 Thread David Smith
On 5/27/2010 1:44 PM, Josh Gooding wrote: Hey guys (and gals). Interesting enough, I installed the Jave EE 5 JDK for windows. I then installed Tomcat 6.0.24, when I navigate to htp://localhost:8080 (which should be the default of Tomcat) I am getting the glassfish junk. How can I remove

RE: Clustering, De-Serialization and Order of Operations

2010-05-27 Thread Caldarale, Charles R
From: Pid [mailto:p...@pidster.com] Subject: Re: Clustering, De-Serialization and Order of Operations Session persistence is a Manager Valve function Is that true even for the start() and stop() methods of StandardManager? I thought valves came into play during request processing, not

Re: Why does errorPage work but WEB-INF/web.xml error-page does not?

2010-05-27 Thread Dan Armbrust
On Thu, May 27, 2010 at 12:54 PM, laredotornado laredotorn...@gmail.com wrote: You mean for me to put this at the top of my error page (500.jsp), correct? If so, I tried that, but still got the partially rendered page outlined in the Tomcat bug mentioned earlier. There is no way around

Server.xml and xsd

2010-05-27 Thread Yann Stephan
Does it exist a xsd file for server.xml ? The goal is to generate a server.xml file from various rpms and add various valves or listeners. Connector1.xml à RPM 1 Connector2.xmlà RPM 2 (Optional) Valve1.xml à RPM 1 Valve2.xmlà RPM 2 (Optional) Then apply a xslt via xsltproc and get

Re: Clustering, De-Serialization and Order of Operations

2010-05-27 Thread Pid
On 27/05/2010 19:08, Caldarale, Charles R wrote: From: Pid [mailto:p...@pidster.com] Subject: Re: Clustering, De-Serialization and Order of Operations Session persistence is a Manager Valve function Is that true even for the start() and stop() methods of StandardManager? I thought valves

Re: Server.xml and xsd

2010-05-27 Thread Pid *
On 27 May 2010, at 19:11, Yann Stephan yann.step...@gmail.com wrote: Does it exist a xsd file for server.xml ? No. If I remember correctly the reason is that the file may contain elements with custom attributes. You can define XML entities and use those to refer to external files. !ENTITY

RE: TC security/impersonation question

2010-05-27 Thread dB .
Tomcat doesn't do this, but on Windows it would certainly be possible to emulate the behavior that IIS provides in a Tomcat security filter. Upon return from doFilter it would RevertToSelf. I don't know what it means to do this on unix. If you want to tell me more about your story/scenario and

Re: URL Exceeding maxHttpHeaderSize

2010-05-27 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 To whom it may concern, On 5/27/2010 1:37 PM, glau_pldm wrote: Connector port=8080 protocol=HTTP/1.1 connectionTimeout=2 redirectPort=8443 maxHttpHeaderSize=8192 / I'm using Tomcat 6.0.14

Re: URL Exceeding maxHttpHeaderSize

2010-05-27 Thread glau_pldm
Thanks for the help. Using the latest release fixed the empty response; it doesn't return a 414 but at least it now returns a 400 bad request. It isn't a big deal though as our front facing Apache HTTP server does return 414, I just wanted to make sure my testing was thorough. I didn't realize

RE: question for singlesignon for vertical cluster

2010-05-27 Thread Okubo, Yasushi (TSD)
I think that I miss-stated what horizontal/vertical cluster are. Anyway, I could configure mod_proxy_ajp/mod_proxy_balancer [Apache 2.2.3 from RHEL 5 (64bit] now. Then, it looks like a user is required re-login to access password protected area after fail-over to another node in tomcat

Re: Server.xml and xsd

2010-05-27 Thread Mark Thomas
On 27/05/2010 19:11, Yann Stephan wrote: Does it exist a xsd file for server.xml ? No. Search the archives if you want to know why. Mark The goal is to generate a server.xml file from various rpms and add various valves or listeners. Connector1.xml à RPM 1 Connector2.xmlà RPM 2

RE: question for singlesignon for vertical cluster

2010-05-27 Thread Okubo, Yasushi (TSD)
I think I am looking for this type of behavior in tomcat clustersinglesignon that can be found in jboss. Is this type of feature available in tomcat 6.0.26? Thanks, yasushi Clustered SSO Beginning with the JBoss-3.2.4 release, JBoss AS supports single sign-on to web applications across a

Re: Server.xml and xsd

2010-05-27 Thread Yann STEPHAN
Okay thanks for all your replies. Diving into the archives :) Yann On Fri, May 28, 2010 at 1:01 AM, Mark Thomas ma...@apache.org wrote: On 27/05/2010 19:11, Yann Stephan wrote: Does it exist a xsd file for server.xml ? No. Search the archives if you want to know why. Mark The goal is

Re: Why does errorPage work but WEB-INF/web.xml error-page does not?

2010-05-27 Thread Mark Thomas
On 27/05/2010 15:54, laredotornado wrote: Perhaps I'm in the denial phase of my grief here, but the only way to redirect to a 500 page when an error occurs in JSP processing is to increase the page buffer size? What if the response is already committed? Once the page is committed, it is

Re: Clustering, De-Serialization and Order of Operations

2010-05-27 Thread Howard Lewis Ship
I believe my client is using Tomcat 6; I'll check. So, at startup, the Manager reads the saved HttpSession state into memory, then starts init'ing filters and servlets? I really need to find a way to work on that ordering. On Thu, May 27, 2010 at 8:43 AM, Pid p...@pidster.com wrote: On

Re: Tomcat died on java.lang.OutOfMemoryError: requested 2147483664 bytes for Chunk::new. Out of swap space? message

2010-05-27 Thread Leon Kolchinsky
Hello Jung, Thanks for your insights. Learning some new stuff about Java every day ;) I've read this nice blog - http://www.talkingtree.com/blog/index.cfm/2006/4/28/Understanding-HotSpot-in-Plain-English ( UNDERSTANDING HOTSPOT IN PLAIN

RE: Tomcat died on java.lang.OutOfMemoryError: requested 2147483664 bytes for Chunk::new. Out of swap space? message

2010-05-27 Thread Caldarale, Charles R
From: Leon Kolchinsky [mailto:lkolc...@gmail.com] Subject: Re: Tomcat died on java.lang.OutOfMemoryError: requested 2147483664 bytes for Chunk::new. Out of swap space? message I've read this nice blog - http://www.talkingtree.com/blog/index.cfm/2006/4/28/Understanding-

Re: Tomcat died on java.lang.OutOfMemoryError: requested 2147483664 bytes for Chunk::new. Out of swap space? message

2010-05-27 Thread Leon Kolchinsky
What do you mean by less aggressive compilation? My understanding that the difference between -client and -server is in the number of code execution before compilation occurred. Why is it less fragile? On Fri, May 28, 2010 at 13:34, Caldarale, Charles R chuck.caldar...@unisys.com wrote:

RE: Tomcat died on java.lang.OutOfMemoryError: requested 2147483664 bytes for Chunk::new. Out of swap space? message

2010-05-27 Thread Caldarale, Charles R
From: Leon Kolchinsky [mailto:lkolc...@gmail.com] Subject: Re: Tomcat died on java.lang.OutOfMemoryError: requested 2147483664 bytes for Chunk::new. Out of swap space? message My understanding that the difference between -client and -server is in the number of code execution before

Re: Tomcat died on java.lang.OutOfMemoryError: requested 2147483664 bytes for Chunk::new. Out of swap space? message

2010-05-27 Thread Leon Kolchinsky
Thanks Charles, It's clear now. I'll try to run Tomcat with -client instead of -server option. It'd be nice to see some speed comparisons between -client -server and -Xint options and not only -server vs -Xint. Regards, Leon On Fri, May 28, 2010 at 15:28, Caldarale, Charles R