Display a static page while application loading.

2011-09-19 Thread Eric Bouer
Hello list. I'm using tomcat for a J2EE application that uses Spring/Hibernate/JSF. The spring container and hibernate bootstrap are slow and the users get a blank page or no response from tomcat while the application starts. In order to avoid that I was thinking about some static page that can

Re: Display a static page while application loading.

2011-09-19 Thread Francis GALIEGUE
On Mon, Sep 19, 2011 at 09:45, Eric Bouer ericbo...@gmail.com wrote: Hello list. I'm using tomcat for a J2EE application that uses Spring/Hibernate/JSF. The spring container and hibernate bootstrap are slow and the users get a blank page or no response from tomcat while the application

Re: Running two versions of servlet in same tomcat instance

2011-09-19 Thread André Warnier
Actually, the explanation below was a bit approximative (late Sunday night thing). It's not really relative. The formal explanation is given in the Servlet Specification, but it's more like this : a) Tomcat uses the first path component of the URL, to map a request to a web application. (in

mod_jk doesn`t distribute and failover on tomcat-error

2011-09-19 Thread Steffen . Scheuler
Hello Users, we have a problem in one of our environments. If one out of 6 balanced Tomcat-Server, throws an OutOfMemory-Error, mod_jk doestn´t distribute any Reqeuest to the other Servers, until we restart the faultet Server or stop the Server via jkstatus. Here is a sample of the

Re: mod_jk doesn`t distribute and failover on tomcat-error

2011-09-19 Thread André Warnier
Hi. steffen.scheu...@fiducia.de wrote: ... workers.properties Configuration: worker.loadbalancer.type=lb worker.loadbalancer.balance_workers=Server1,Server2,Server3,Server4,Server5,Server6,Server7,Server8 worker.loadbalancer.sticky_session=True worker.loadbalancer.sticky_session_force=False

Antwort: Re: mod_jk doesn`t distribute and failover on tomcat-error

2011-09-19 Thread Steffen . Scheuler
Hy André, sorry its a typo in my posting. The real workers.properties ist correct. Greets Steffen Von:André Warnier a...@ice-sa.com An: Tomcat Users List users@tomcat.apache.org Datum: 19.09.2011 11:45 Betreff:Re: mod_jk doesn`t distribute and failover on tomcat-error Hi.

Re: Display a static page while application loading.

2011-09-19 Thread Eric Bouer
Thanks you Francis but I can't use a apache frontend. I'm looking for a solution in tomcat itself, And I guess it's a common request since many applications have long startup times and this can be very annoying to get a blank page in production. Francis Galiegue-4 wrote: On Mon, Sep 19,

Re: Http connector and remote user information

2011-09-19 Thread Sylvain Goulmy
Thank you André for your contribution which was very helpful. If you are using the first one (HTTP), then one way would be to force Apache to add a HTTP header to the request, containing the user-id; and on the Tomcat side, have something that picks up this HTTP header, and stuffs its content

Re: Http connector and remote user information

2011-09-19 Thread André Warnier
Hi. I am not knowledgeable enough in Java code to tell if there is something wrong with the method, but if it works for you, that's the most important aspect. By curiosity, how are you telling Apache to add this header ? And one more thing, which I am sure you must have considered, but maybe

Re: How to Configure Tomcat 7.0 for SSL

2011-09-19 Thread Marvin Addison
SSLEngine=on There's no such attribute for this connector. The attribute you want is SSLEnabled=true. I would also recommend the following attributes for security-conscious deployments: SSLProtocol=SSLv3+TLSv1 SSLCipherSuite=!ADH:HIGH:MEDIUM:-SSLv2 If you continue to have trouble, post the

RE: How to return jpg from another disk location

2011-09-19 Thread Jeffrey Janner
Thanks Chris. That's a pretty good idea. Normally, they just send us their logo from their website anyway. I'll pass on to the boys to contemplate. Jeff -Original Message- From: Christopher Schultz [mailto:ch...@christopherschultz.net] Sent: Friday, September 16, 2011 4:03 PM To:

RE: How to Configure Tomcat 7.0 for SSL

2011-09-19 Thread Gene Waters
Thanks Marvin, We will give it a try and let you know, Gene Gene A. Waters CACI International Inc. Senior Business Objects - Programmer Analyst Navy Enterprise Team Ships (NETS), Norfolk, VA Work Phone: (757) 852-6943 email: gewat...@caci.com, gene.waters@navy.mil

RE: Display a static page while application loading.

2011-09-19 Thread CRANFORD, CHRIS
Eric - One could argue what's the true benefit here though? Production shouldn't be restarted or unavailable except during an outage, whether it's planned or unplanned, right? -Original Message- From: Eric Bouer [mailto:ericbo...@gmail.com] Sent: Monday, September 19, 2011 6:46 AM

Re: Http connector and remote user information

2011-09-19 Thread Sylvain Goulmy
On Mon, Sep 19, 2011 at 2:43 PM, André Warnier a...@ice-sa.com wrote: Hi. I am not knowledgeable enough in Java code to tell if there is something wrong with the method, but if it works for you, that's the most important aspect. By curiosity, how are you telling Apache to add this header ?

RE: Display a static page while application loading.

2011-09-19 Thread Eric Bouer
Yeah but high availability/scaling solutions or a dynamic nature of application where new features are added frequently are common. Anyway if I could get some information on tomcat internal bootstap I would write something to handle that and contribute it back. CRANFORD, CHRIS wrote: Eric -

Re: Http connector and remote user information

2011-09-19 Thread Sylvain Goulmy
On Mon, Sep 19, 2011 at 4:31 PM, Sylvain Goulmy sygou...@gmail.com wrote: On Mon, Sep 19, 2011 at 2:43 PM, André Warnier a...@ice-sa.com wrote: Hi. I am not knowledgeable enough in Java code to tell if there is something wrong with the method, but if it works for you, that's the most

role required in auth-constraints to trigger authentication

2011-09-19 Thread Oliver Wulff
img src=http://zdownload.zurich.com/mailimages/ZHP_MailHeader.gif; / Hi there I'm working on the following task: https://issues.apache.org/bugzilla/show_bug.cgi?id=51334 I've configured a security constraint in my web.xml but noticed that my custom authenticator is never triggered.

Re: role required in auth-constraints to trigger authentication

2011-09-19 Thread Mark Thomas
On 19/09/2011 15:52, Oliver Wulff wrote: Why is it a requirement to configure a role in the auth-constraint? You need to read the Servlet specification. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For

RE: Display a static page while application loading.

2011-09-19 Thread Mikolaj Rydzewski
On Mon, 19 Sep 2011 07:50:50 -0700 (PDT), Eric Bouer wrote: Yeah but high availability/scaling solutions or a dynamic nature of application where new features are added frequently are common. Anyway if I could get some information on tomcat internal bootstap I would write something to handle

Re: How to Configure Tomcat 7.0 for SSL

2011-09-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Gene, On 9/16/2011 4:43 PM, Gene Waters wrote: SSLCertificateFile=webapps\server.cert SSLCertificateKeyFile=webapps\server.key / You definitely don't want those files there: an easy misconfiguration could result in those files being remotely

Re: Http connector and remote user information

2011-09-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, On 9/19/2011 8:43 AM, André Warnier wrote: If your Tomcat server is accessible via other channels than from the Apache front-end, then this is of course a security hole, since anyone can forge such a HTTP header and send it to Tomcat. +1

Re: Display a static page while application loading.

2011-09-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Eric, On 9/19/2011 3:45 AM, Eric Bouer wrote: I'm using tomcat for a J2EE application that uses Spring/Hibernate/JSF. The spring container and hibernate bootstrap are slow and the users get a blank page or no response from tomcat while the

Re: mod_jk doesn`t distribute and failover on tomcat-error

2011-09-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Steffen, On 9/19/2011 4:49 AM, steffen.scheu...@fiducia.de wrote: If one out of 6 balanced Tomcat-Server, throws an OutOfMemory-Error, mod_jk doestn´t distribute any Reqeuest to the other Servers, until we restart the faultet Server or stop the

Re: Getting continuous error

2011-09-19 Thread André Warnier
Anjib Mulepati wrote: Hi, When I run my web application developed using Struts 1.3.8 I am getting following error continuously. I couldn't figure out so please help. java.lang.StackOverflowError at Mmmm. I'm not really a java specialist, but could this mean that the stack is

Re: Getting continuous error

2011-09-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Anjib, On 9/19/2011 1:09 PM, Anjib Mulepati wrote: When I run my web application developed using Struts 1.3.8 I am getting following error continuously. I couldn't figure out so please help. java.lang.StackOverflowError at

Re: Running two versions of servlet in same tomcat instance

2011-09-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tod, On 9/18/2011 1:37 PM, Tod Olson wrote: I would like to run two versions of the same servlet (same servlet-class, but with different WAR filename, servlet-name and url-pattern) under a single instance of Tomcat 6.0.33. Your nomenclature is

Re: get UserPrincipal() is null on Tomcat v6.0.33

2011-09-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Yogesh, On 9/18/2011 9:23 PM, Yogesh Shankarappa wrote: security-constraint display-nameExample Security Constraint/display-name web-resource-collection web-resource-nameEntire Application/web-resource-name url-pattern/*/url-pattern

Re: Links in CSS vs JSPs

2011-09-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Patrick, On 9/18/2011 12:55 PM, Patrick Flaherty wrote: All the skins work except image references in the style sheet (css) cannot be found. Yet images referenced in the jsps are found! Your JSPs are dynamic and include the webapp prefix, since