RE: specifying the content-type

2011-06-01 Thread Lentes, Bernd
Charles Caldarale wrote: when talking with a web browser directly to tomcat (port 8080), the web page is shown correctly. Are you sure the original request on port 80 is actually making it through httpd all the way to Tomcat? The symptoms you're reporting are characteristic of a

Re: Tomcat reset connection before completing the request

2011-06-01 Thread Mark Thomas
On 01/06/2011 04:07, Chaminda Divitotawela wrote: Hi Pid, Thanks for the response. I comprehensively agree with you the version we use is quite old. The problem is that, my engineering team is very reluctant to invest on testing an upgrade unless there is issue which impact functionality.

RE: specifying the content-type

2011-06-01 Thread Lentes, Bernd
Christopher Schultz wrote: On 5/31/2011 2:09 PM, Lentes, Bernd wrote: box. I configured a httpd (apache 2.2.10) in front of the tomcat, which communicates with tomcat using AJP. Do you actually require httpd for your setup? If Tomcat works fine on it's own, maybe that's how you

Using two authentication methods for one application

2011-06-01 Thread Hauke Mehrtens
I created my own authentication method beside BASIC, DIGEST, FORM, and CLIENT-CERT to allow the user to authenticate against our own SAML IdP and enter the user credentials on a page provided by the IdP. The authentication method of the IdP uses a Java applet to access a smart card and get the

RE: specifying the content-type

2011-06-01 Thread Lentes, Bernd
Andre Warnier wrote: Lentes, Bernd wrote: Hi, first, i'm new to tomcat and i'm not a java developer. You have all my sympathy. My collegues developed a web application i have to deploy now. I'm using tomcat6 on a sles 11 sp1 box. I configured a httpd (apache 2.2.10) in front of the

Re: specifying the content-type

2011-06-01 Thread André Warnier
Lentes, Bernd wrote: Charles Caldarale wrote: when talking with a web browser directly to tomcat (port 8080), the web page is shown correctly. Are you sure the original request on port 80 is actually making it through httpd all the way to Tomcat? The symptoms you're reporting are

Re: Tomcat 5.5.27, session lost, cookies

2011-06-01 Thread Diego Ruotolo
Hi Chris, as I said in one of my previous mail, I'm not able to reproduce the error anymore. I'm trying to figuring out what's changed (some commit made by someone of our team), and next week I'll test it on some other test environments. I'm trying to collect all the details to send you accurate

Re: Tomcat reset connection before completing the request

2011-06-01 Thread Chaminda Divitotawela
Thanks Mark. I can make use of the security information. Thanks, Chaminda On 01/06/2011 14:29, Mark Thomas wrote: On 01/06/2011 04:07, Chaminda Divitotawela wrote: Hi Pid, Thanks for the response. I comprehensively agree with you the version we use is quite old. The problem is that, my

Re: specifying the content-type

2011-06-01 Thread Pid
On 01/06/2011 11:04, André Warnier wrote: JkMount /mouseidgenes/* appl01 This will forward a request like /mouseidgenes/index.jsp, but will not forward the URL /mouseidgenes. You may want to add JkMount /mouseidgenes appl01 There is a syntax method to address this situation:

Re: specifying the content-type

2011-06-01 Thread Pid
On 01/06/2011 10:55, Lentes, Bernd wrote: lrwxrwxrwx 1 root root 20 Apr 18 16:33 webapps - /srv/tomcat6/webapps/ What is in the webapps dir? A directory called 'mouseidgenes'? If so, what is the file tree in that directory? What is /mouseidgenes/InputData? Is it a servlet or a JSP? p

Re: Tomcat with Cisco ACE Load Balancer

2011-06-01 Thread Pid
On 31/05/2011 21:10, Tauqir Akhtar wrote: Hi We have been using Weblogic Clusters with Cisco ACE Load Balancer We have 8 managed servers in the weblogic Cluster distributed evenly over two Machines. Load Balancer distributes the load in Robin Round fashion across these 8 managed servers

Re: Request headers created in valve don't make it to application

2011-06-01 Thread Marc Boorshtein
So I tried moving the configuraiton of the valve into the app's META-INF/context.xml with no success. One thing I didn't mention that is interesting is that the I do set the request's setUserPrincipal(..) and that works. Thanks Marc On Tue, May 31, 2011 at 5:27 PM, Marc Boorshtein

RE: specifying the content-type

2011-06-01 Thread Lentes, Bernd
Pid wrote: On 01/06/2011 10:55, Lentes, Bernd wrote: lrwxrwxrwx 1 root root 20 Apr 18 16:33 webapps - /srv/tomcat6/webapps/ What is in the webapps dir? A directory called 'mouseidgenes'? Yes. If so, what is the file tree in that directory? vm53200-12:~ # l

RE: specifying the content-type

2011-06-01 Thread Lentes, Bernd
Andre Warnier wrote: Your configuration of mod_jk below looks correct (except a small detail, see JkMount). But I must say that it is difficult to believe that the request is actually forwarded to Tomcat, and that Tomcat then fails to recognise the file as a JSP page, and returns it as

Re: RE: specifying the content-type

2011-06-01 Thread Igor Cicimov
Are you using virtual host maybe? If so, the JkMount directive has to be inside VirtualHost and not in the global apache conf file. Igor On Jun 1, 2011 10:14 PM, Lentes, Bernd bernd.len...@helmholtz-muenchen.de wrote: Andre Warnier wrote: Your configuration of mod_jk below looks correct

RE: RE: specifying the content-type

2011-06-01 Thread Lentes, Bernd
Igor Cimicov wrote: Are you using virtual host maybe? If so, the JkMount directive has to be inside VirtualHost and not in the global apache conf file. Igor No. Bernd Helmholtz Zentrum München Deutsches Forschungszentrum für Gesundheit und Umwelt (GmbH) Ingolstädter Landstr. 1 85764

Re: specifying the content-type

2011-06-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Bernd, On 6/1/2011 5:18 AM, Lentes, Bernd wrote: I use JKMount, and DocumentRoot of httpd and webapps of tomcat are not overlapping. [snip] We don't use jsp, we have servlets. Okay. Can you post your servlet code, then? There is no default

Re: specifying the content-type

2011-06-01 Thread Martin Kuen
Hi Bernd, I think your colleagues forgot/didn't want to set the content-type in the servlet(-code)? text/plain is apache default for anything it doesn't know (if I recall correctly) If no content-type is set by the servlet, no content-type is delivered. No content-type set by the servlet causes

Re: Request headers created in valve don't make it to application

2011-06-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Marc, On 5/31/2011 5:27 PM, Marc Boorshtein wrote: 2) Show us your Valve code. (It is simple, right?) IteratorAttribute attribs = lastmile.getAttributes().iterator(); while (attribs.hasNext()) {

Re: Tomcat 5.5.27, session lost, cookies

2011-06-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Diego, On 6/1/2011 6:27 AM, Diego Ruotolo wrote: BTW, in my previous mails I tell you about the architecture used in our webapp, I send you the HTTP logs as returned by the access log valve and The logs are not useful, since they don't contain

Source of after_start and stop LifecycleEvent

2011-06-01 Thread Stevo Slavić
Hello Tomcat users, Does anyone know has it been changed after Apache Tomcat 6.0.13 that source of LifecycleEvent of after_start and stop type is org.apache.catalina.core.StandardEngine instead of org.apache.catalina.Server? I'm experiencing issues with JBoss mod_cluster:

Re: Using two authentication methods for one application

2011-06-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hauke, On 6/1/2011 5:48 AM, Hauke Mehrtens wrote: I created my own authentication method beside BASIC, DIGEST, FORM, and CLIENT-CERT to allow the user to authenticate against our own SAML IdP and enter the user credentials on a page provided by

Re: Request headers created in valve don't make it to application

2011-06-01 Thread Terence M. Bandoian
On 1:59 PM, Marc Boorshtein wrote: Do you have any filters or other valves that might be wrapping the request and choosing to ignore your extra headers? No, the app is just a servlet that loops over all the headers and cookies and generates a properties response 1) Show us your modified

Re: Source of after_start and stop LifecycleEvent

2011-06-01 Thread Stevo Slavić
Pardon, it's StandardService and not StandardEngine that's source of these events (Apache Tomcat 6.0.32). Regards, Stevo. On Wed, Jun 1, 2011 at 4:42 PM, Stevo Slavić ssla...@gmail.com wrote: Hello Tomcat users, Does anyone know has it been changed after Apache Tomcat 6.0.13 that source of

Re: Request headers created in valve don't make it to application

2011-06-01 Thread Marc Boorshtein
Can you try this:    request.addHeader(attrib.getName(), val);    logger.info(After added header:              + attrib.getName() + =              + request.getHeader(attrib.getName())); I wonder if the header value is being ignored because the request is frozen or something like that.

Re: Request headers created in valve don't make it to application

2011-06-01 Thread Marc Boorshtein
Hi, Marc- Is that a carriage return and/or line feed before the attribute name in the log file or just the formatting of the e-mail? -Terence Bandoian just email formatting - To unsubscribe, e-mail:

Re: Tomcat 5.5.27, session lost, cookies

2011-06-01 Thread Diego Ruotolo
Hi Chris, many thanks for your suggestion. Next week I will try to remove the cookie in excess and I'll tell you the result. Best regards Il 01/06/2011 16.29, Christopher Schultz ha scritto: Diego, On 6/1/2011 6:27 AM, Diego Ruotolo wrote: BTW, in my previous mails I tell you about the

RE: specifying the content-type

2011-06-01 Thread Lentes, Bernd
Christopher Schulz wrote: On 6/1/2011 5:18 AM, Lentes, Bernd wrote: I use JKMount, and DocumentRoot of httpd and webapps of tomcat are not overlapping. [snip] We don't use jsp, we have servlets. Okay. Can you post your servlet code, then? I have to ask our developers. There

RE: specifying the content-type

2011-06-01 Thread Lentes, Bernd
Martin Kuen wrote: Hi Bernd, I think your colleagues forgot/didn't want to set the content-type in the servlet(-code)? Yes, i also think they forgot. They are Bioinformatics and don't know much about protocols and web servers. text/plain is apache default for anything it doesn't know (if

Re: specifying the content-type

2011-06-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Bernd, On 6/1/2011 1:04 PM, Lentes, Bernd wrote: Okay. Can you post your servlet code, then? I have to ask our developers. Okay. There is no default Content-Type for HTTP responses, so getting a response directly from Tomcat might cause the

Tomcat 7 Shared Class Loader Removed?

2011-06-01 Thread Ole Ersoy
Hi, I noticed that the tomcat 7 documentation has removed the Shared classloader description. Has the shared classloader been removed from tomcat? TIA, - Ole - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For

Re: Source of after_start and stop LifecycleEvent

2011-06-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Stevo, On Wed, Jun 1, 2011 at 4:42 PM, Stevo Slavić ssla...@gmail.com wrote: Hello Tomcat users, Does anyone know has it been changed after Apache Tomcat 6.0.13 that source of LifecycleEvent of after_start and stop type is

RE: Tomcat 7 Shared Class Loader Removed?

2011-06-01 Thread Caldarale, Charles R
From: Ole Ersoy [mailto:ole.er...@gmail.com] Subject: Tomcat 7 Shared Class Loader Removed? I noticed that the tomcat 7 documentation has removed the Shared classloader description. Has the shared classloader been removed from tomcat? It wasn't removed per se, but it is no longer used

Re: Tomcat 7 Shared Class Loader Removed?

2011-06-01 Thread Ole Ersoy
Hi Chuck, I may have a server that has several instances of the same web application running under different contexts. I was thinking about putting the jars in the shared repository, rather than deploying them with the war. Could you please help me understand why this is bad? TIA, - Ole

RE: Tomcat with Cisco ACE Load Balancer

2011-06-01 Thread Tauqir Akhtar
Thanks Pid for you updates. All I am trying here to implement Tomcat in Load Balanced Environment. WE have Java EE base web Application. And we have two 36 GB web servers. Currently they have WebLogic installed on them. Four Instance of WebLogic managed servers run on each machine. Our Java

RE: Tomcat 7 Shared Class Loader Removed?

2011-06-01 Thread Caldarale, Charles R
From: Ole Ersoy [mailto:ole.er...@gmail.com] Subject: Re: Tomcat 7 Shared Class Loader Removed? I was thinking about putting the jars in the shared repository, rather than deploying them with the war. Could you please help me understand why this is bad? 1) You would have data sharing -

RE: Tomcat with Cisco ACE Load Balancer

2011-06-01 Thread Caldarale, Charles R
From: Tauqir Akhtar [mailto:takh...@jny.com] Subject: RE: Tomcat with Cisco ACE Load Balancer All I am trying here to implement Tomcat in Load Balanced Environment. Please if you can guide me . Pid's words still stand: Impossible to say, we don't know anything about your application,

Re: Tomcat 7 Shared Class Loader Removed?

2011-06-01 Thread Ole Ersoy
Chuck, Thank you. I have some jars that I'm going to create an RPM for to help with provisioning. Since I'm doing that I thought linking or putting them in the shared class loader repository might be smart, but perhaps not :). Thanks again, - Ole On 06/01/2011 03:10 PM, Caldarale,

Re: Tomcat 7 Shared Class Loader Removed?

2011-06-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ole, On 6/1/2011 4:33 PM, Ole Ersoy wrote: Thank you. I have some jars that I'm going to create an RPM for to help with provisioning. Since I'm doing that I thought linking or putting them in the shared class loader repository might be smart,

Re: Request headers created in valve don't make it to application

2011-06-01 Thread Mark Thomas
On 01/06/2011 16:16, Marc Boorshtein wrote: So for some reason the addHeader is not doing anything I'm guessing you haven't looked at the source for this yet. org.apache.catalina.connector#addHeader(String,String) is a NOOP. It was removed for Tomcat 7. You want:

Re: Request headers created in valve don't make it to application

2011-06-01 Thread Marc Boorshtein
To quote one of my favorite tv showswell there's your problem! Thanks, I'll give this a try. Marc Sent from my iPad On Jun 1, 2011, at 4:47 PM, Mark Thomas ma...@apache.org wrote: On 01/06/2011 16:16, Marc Boorshtein wrote: So for some reason the addHeader is not doing anything I'm

Re: Application crash after Migrate to different ESX

2011-06-01 Thread הילה
Hey, Explaining the whole infrastructure may be even more confusing. so I'll ask something else, simpler- when using the string testonborrow=true do I need to use it alone? can it be used alone? or do I have to put also the validationInterval string (or any other string)? Thanks Hila 2011/5/20

Re: Request headers created in valve don't make it to application

2011-06-01 Thread Marc Boorshtein
On 01/06/2011 16:16, Marc Boorshtein wrote: So for some reason the addHeader is not doing anything I'm guessing you haven't looked at the source for this yet. org.apache.catalina.connector#addHeader(String,String) is a NOOP. It was removed for Tomcat 7. You want:

Re: Tomcat with Cisco ACE Load Balancer

2011-06-01 Thread Mark Eggers
- Original Message - From: Caldarale, Charles R chuck.caldar...@unisys.com To: Tomcat Users List users@tomcat.apache.org Cc: Sent: Wednesday, June 1, 2011 1:16 PM Subject: RE: Tomcat with Cisco ACE Load Balancer From: Tauqir Akhtar [mailto:takh...@jny.com] Subject: RE: Tomcat

Re: specifying the content-type

2011-06-01 Thread André Warnier
Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Bernd, On 6/1/2011 1:04 PM, Lentes, Bernd wrote: Okay. Can you post your servlet code, then? I have to ask our developers. Okay. There is no default Content-Type for HTTP responses, so getting a response directly

Re: ***SPAM*** maxPostSize syntax

2011-06-01 Thread Olivier Lefevre
You guys have a chip on your shoulder. This is Java. xM, xm, xG and xg are accepted as sizes by all the -Xm? options, so why not by Tomcat. M and G are size units, too. Other than dudes with an attitude like you, nobody refers to 64M as 67108864. -- O.L.