Re: j_security_check with https

2009-01-07 Thread Gregor Schneider
Hi Justin, On Wed, Jan 7, 2009 at 4:13 AM, Justin Randall ran...@hotmail.com wrote: Create a Filter subclass with the sole purpose of having its doFilter method call sendRedirect on the HttpServletResponse object. Map this Filter to the same URL pattern you use for SSL and make sure to use

Delay / caching of resources?

2009-01-07 Thread Dennis Thrysøe
Hi, I have a tomcat 6 setup on linux (CentOS 5) and see some odd behaviour. There are some JSP's that include (in a custom tag with pageContext.include()) static HTML resources that are in the webapp. However, when such HTML files are added or modified to the webapp (exploded directory)

RE: Delay / caching of resources?

2009-01-07 Thread Peter Crowther
From: Dennis Thrysøe [mailto:d...@geysirit.dk] However, when such HTML files are added or modified to the webapp (exploded directory) it takes something like 5 or 10 seconds before they can be served by tomcat. A wild stab in the dark based on something that happened to me... How are you

Re: Delay / caching of resources?

2009-01-07 Thread Dennis Thrysøe
On 7Jan, 2009, at 10:45, Peter Crowther wrote: From: Dennis Thrysøe [mailto:d...@geysirit.dk] However, when such HTML files are added or modified to the webapp (exploded directory) it takes something like 5 or 10 seconds before they can be served by tomcat. A wild stab in the dark based on

Re: j_security_check with https

2009-01-07 Thread Pid
Justin Randall wrote: Howdy, First, to clear an incorrect point made... There is a point of switching back to HTTP after HTTPS. From a server load perspective having to perform SSL computations for every single HTTP request can be a serious performance bottleneck. As for the security

Re: j_security_check with https

2009-01-07 Thread Pid
Pid wrote: Justin Randall wrote: Howdy, First, to clear an incorrect point made... There is a point of switching back to HTTP after HTTPS. From a server load perspective having to perform SSL computations for every single HTTP request can be a serious performance bottleneck. As for the

Tomcat 6 and log4j

2009-01-07 Thread Gregor Schneider
Dear all, actually I like Tomcat. I like the Apache Group. Most docs are quite useful. However, things are changing slightly since I'm trying to implement log4j with Tomcat 6. I've got it nicely running on my boxes running Tomcat 5.5, btw. I started taking a look at the docs at

RE: j_security_check with https

2009-01-07 Thread Justin Randall
Hello, I'm not going to bother responding to the many posts that said the solution I mentioned was wrong, instead I'll just provide the example of how to do it, since it works. . lines removed . package blah; . lines removed . public final class SomeFilterClass

Re: j_security_check with https

2009-01-07 Thread Pid
Justin Randall wrote: Hello, I'm not going to bother responding to the many posts that said the solution I mentioned was wrong, instead I'll just provide the example of how to do it, since it works. . lines removed . package blah; . lines removed .

mod_headers and .htaccess for P3P policy

2009-01-07 Thread Sergio Arrighi
Hello to everyone, I'm using apache 6 on a Windows server machine. I'm hosting a webapplication which is used in a third party web site included in an IFRAME. I've an issue with IE6 an IE7 about session replication. I've read on the internet that this issue is dued to P3P policies and that

Re: Delay / caching of resources?

2009-01-07 Thread Dennis Thrysøe
On 7Jan, 2009, at 10:40, Dennis Thrysøe wrote: Hi, I have a tomcat 6 setup on linux (CentOS 5) and see some odd behaviour. There are some JSP's that include (in a custom tag with pageContext.include()) static HTML resources that are in the webapp. However, when such HTML files are added

Re: Delay / caching of resources?

2009-01-07 Thread Mark Thomas
Dennis Thrysøe wrote: On 7Jan, 2009, at 10:40, Dennis Thrysøe wrote: Hi, I have a tomcat 6 setup on linux (CentOS 5) and see some odd behaviour. There are some JSP's that include (in a custom tag with pageContext.include()) static HTML resources that are in the webapp. However, when such

RE: Delay / caching of resources?

2009-01-07 Thread Caldarale, Charles R
From: Dennis Thrysøe [mailto:d...@geysirit.dk] Subject: Re: Delay / caching of resources? I have now found a potential explanation with the help of a good debugger: StandardContext.setCacheTTL() Who's calling that API? The only internal calls I find in Tomcat simply propagate the value

Re: Delay / caching of resources?

2009-01-07 Thread Dennis Thrysøe
On 7Jan, 2009, at 15:44, Caldarale, Charles R wrote: From: Dennis Thrysøe [mailto:d...@geysirit.dk] Subject: Re: Delay / caching of resources? I have now found a potential explanation with the help of a good debugger: StandardContext.setCacheTTL() Who's calling that API? The only internal

Tomcat ./shutdown

2009-01-07 Thread le
Hello, I use apache-tomcat-5.5.17 and sometimes when I call ./shutdown.sh, the java process which runs Tomcat still alive. Because this java process is still alive, the next call ./startup.sh does not work. Thus, I have to kill this Java process first. Could you please give me a hint how

Re: Tomcat ./shutdown

2009-01-07 Thread Kees Jan Koster
Dear Thinh, I use apache-tomcat-5.5.17 and sometimes when I call ./shutdown.sh, the java process which runs Tomcat still alive. Because this java process is still alive, the next call ./startup.sh does not work. Thus, I have to kill this Java process first. Could you please give me a

Re: Tomcat ./shutdown

2009-01-07 Thread Dennis Thrysøe
On 7Jan, 2009, at 16:11, l...@informatik.uni-hamburg.de wrote: Hello, I use apache-tomcat-5.5.17 and sometimes when I call ./shutdown.sh, the java process which runs Tomcat still alive. Because this java process is still alive, the next call ./startup.sh does not work. Thus, I have to

RE: Tomcat ./shutdown

2009-01-07 Thread Caldarale, Charles R
From: l...@informatik.uni-hamburg.de [mailto:l...@informatik.uni-hamburg.de] Subject: Tomcat ./shutdown I use apache-tomcat-5.5.17 and sometimes when I call ./shutdown.sh, the java process which runs Tomcat still alive. The usual cause of this is non-daemon threads improperly managed by a

Tomcat restart using code

2009-01-07 Thread Michael Rooz
Hi, Since I have not found a documented way of refreshing the ServerSocketFactory (in order to reload the ssl trust store) I would like to be able to perform a Tomcat Restart from within i.e. restart Tomcat using java code inside the servlet. Restarting the connector would also do the job for me.

Re: Tomcat ./shutdown

2009-01-07 Thread Gregor Schneider
Sometime there's an even more simple solution to it: Some applications just take ages when they're shut down. Very nice example for this is Apache Roller. Shutting down Tomcat without Roller goes instantly, shutting down Tomcat with Roller takes up to 5 minutes. So what happens if you shut down

Re: Tomcat restart using code

2009-01-07 Thread Kees Jan Koster
Dear Mike, Since I have not found a documented way of refreshing the ServerSocketFactory (in order to reload the ssl trust store) I would like to be able to perform a Tomcat Restart from within i.e. restart Tomcat using java code inside the servlet. Restarting the connector would also do the

Embedded.createConnector() problem

2009-01-07 Thread JimK
My code was already working fine to create a secure connector on all addresses on a port via: Embedded.createConnector((String)null, port, true); and afterwards set the properites needed for the secure connector including the cert file, etc: Connector.setproperty(keystore, filename); We

Re: Tomcat restart using code

2009-01-07 Thread Michael Rooz
Hi Jan, well - like I said I need to be able to refresh the ServerSocketFactory to reflect an updated truststore. I looked at the code and found a way to do this but it is not documented and I don't want to take the risk of experiencing undesirable side effects. My only option at this point

Apache Tomcat 5.5.X End of Life

2009-01-07 Thread Chad Kellerman
Tomcat Users, Is there an expected End of Life date for Tomcat 5.5.x? I couldn't find anything on the apache site or google? Thanks, Chad

Compilation problem when i release tomcat 5.5.26 to tomcat 5.5.27

2009-01-07 Thread Philippe Couas
Hi, I have replace tomcat 5.5.26 to tomcat 5.5.27 on same server with same JDK and same config. I have folowing error message jasper.JasperException: /jsp/servlet24/supervisionv5.jsp(6,23) Attribute value request.getContextPath()+/jsp/servlet24/supervisionv4.jsp is quoted with which must be

Re: Compilation problem when i release tomcat 5.5.26 to tomcat 5.5.27

2009-01-07 Thread Mark Hagger
I had a similar problem when I switched to tomcat6, as a workaround I ended up modifying my jsp to build the string outside of the %=..% bit and insert it in one lump. Ie changed something like %= ' + otherthing + '% into % String txt = ' + otherthing + '; % %= txt % which seemed to make it

pb compilation on jsp param with tomcat 5.5.27

2009-01-07 Thread Philippe Couas
Hi I have change tomcat 5.5.26 to 5.5.27 and i have following compilation error message Code : org.apache.jasper.JasperException: /jsp/servlet24/supervisionv2.jsp(180,35) Attribute value ((servlet24.PosteBean)context.getPoste(**)).getCodePoste()+_appletc is quoted with which must be

RE: Compilation problem when i release tomcat 5.5.26 to tomcat 5.5.27

2009-01-07 Thread Caldarale, Charles R
From: Philippe Couas [mailto:pco...@infodev.fr] Subject: Compilation problem when i release tomcat 5.5.26 to tomcat 5.5.27 /jsp/servlet24/supervisionv5.jsp(6,23) Attribute value request.getContextPath()+/jsp/servlet24/supervisionv4.jsp is quoted with which must be escaped when used within

Re: mod_headers and .htaccess for P3P policy

2009-01-07 Thread Hassan Schroeder
On Wed, Jan 7, 2009 at 5:49 AM, Sergio Arrighi sergio.arri...@iminholding.com wrote: I'm using apache 6 on a Windows server machine. I've read on the internet that this is possible using .htaccess file in the webapp directory. You've read wrong :-) '.htaccess' files are used with Apache

Single WAR to update multiple contexts

2009-01-07 Thread Sean W
Greetings! I have a single war packaged application that needs to have about 200 unique context paths running (200 copies of the application running - each uses a different database based on the context name). I know how to deploy 1 context at a time, but how can I do this so that if I want to

Re: mod_headers and .htaccess for P3P policy

2009-01-07 Thread David Fisher
When I had to deal with p3p policy then I simply put a directory called w3c in my webapps and dropped in a p3p.xml and policy.xml. Afterwards my webapp on a different url in tomcat could be opened in an iframe by our partners IIS served ASP application. w3c/p3p.xml w3c/policy.xml Is this

Re: Single WAR to update multiple contexts

2009-01-07 Thread Alan Chaney
Sean Wouldn't it be easier to have ONE webapp and determine the database from, for example, the URL its invoked with? Its a little difficult to know exactly how you are doing things but instead of having /ctx1 /ctx2 /ctx3 and mapping each one to ctx1.war why not have a filter in your setup

Re: SSL Accelerator - Front ending Tomcat

2009-01-07 Thread Brian Clark
From: Rainer Jung rainer.j...@kippdata.de To: Tomcat Users List users@tomcat.apache.org Sent: Tuesday, October 14, 2008 9:46:56 AM Subject: Re: SSL Accelerator - Front ending Tomcat Mike Koponick schrieb: Hello Everyone, I have not been a frequent

Re: Tomcat 6; getting logging to work

2009-01-07 Thread juan.velez
I followed the directions in that link (http://tomcat.apache.org/tomcat-6.0-doc/logging.html) and my logging messages still do not show up. I mean, I see the INFO messages generated by my web-app but if I change the level to FINE (or FINEST) I do not see it. I am using Tomcat 6.0.18 and Java Util

Re: Tomcat 6; getting logging to work

2009-01-07 Thread Filip Hanik - Dev Lists
have you defined 6mmi.org.apache.juli.FileHandler I don't see that in your addition Filip juan.velez wrote: I followed the directions in that link (http://tomcat.apache.org/tomcat-6.0-doc/logging.html) and my logging messages still do not show up. I mean, I see the INFO messages generated by

Re: Tomcat 6; getting logging to work

2009-01-07 Thread juan.velez
Yes I have handlers = 1catalina.org.apache.juli.FileHandler, 2localhost.org.apache.juli.FileHandler, \ 3manager.org.apache.juli.FileHandler, 4admin.org.apache.juli.FileHandler, \ 5host-manager.org.apache.juli.FileHandler, 6mmi.org.apache.juli.FileHandler, \

Tribes Startup Help

2009-01-07 Thread Mike Wannamaker
Hi, We are using 5.5.27 and using tribes, however instead of tomcat initializing and starting tribes we are doing it ourselves. Below is my code. I was just wondering if you see anything wrong with what I'm doing. public synchronized void startup() { if(_tribesChannel == null)

Re: Oracle database calling the web app?

2009-01-07 Thread Juha Laiho
Bill Davidson wrote: Is it possible to set up a callback like situation so that a trigger in an Oracle 10g database can call a method in a currently running webapp that's running in Tomcat 6? Yes, there's UTL_HTTP PL/SQL package available in Oracle, which provides HTTP client functionality. AQ

Re: Oracle database calling the web app?

2009-01-07 Thread Bill Davidson
Juha Laiho wrote: However, have you actually measured how much load it would put to various pieces of your system to not cache this data, but just fetch it from the DB more or less each time it is needed? We currently have the ability to turn the caching on or off. We generally only turn

Re: Oracle database calling the web app?

2009-01-07 Thread Bill Davidson
Ken Bowen wrote: Whoops, hold that. This is ok for outbound. For inbound, it seems Jboss is needed: http://activemq.apache.org/jboss-integration.html I'm not sure I understand how that says JBoss is needed to do inbound communications. There is a page on configuring Tomcat:

MemoryUserDatabaseMBean Broken in Tomcat 6?

2009-01-07 Thread Richard Eggert
It appears that MemoryUserDatabaseMBean is broken in Tomcat 6 (and probably earlier versions of Tomcat, though I haven't tried them). I've been playing around with the Tomcat's support for the MX4J HttpAdaptor as described at http://tomcat.apache.org/tomcat-6.0-doc/monitoring.html , and tried

RE: Tomcat 6; getting logging to work

2009-01-07 Thread Chris Hut
I believe these config lines only specify logging for Container-specific message (such as webapp initialization-related messaging): org.apache.catalina.core.ContainerBase.[Catalina].[localhost]... What you could do is specify a named handler like this:

Re: Tribes Startup Help

2009-01-07 Thread Filip Hanik - Dev Lists
hi Mike, it all looks good. There is one side effect you may not be aware of. by default the 'receiver' autobind is enabled. that means if receiver.setPort(port) is not available, it will increment the port number and try again. so the actual port might be different from what you think you

Re: Tomcat 6; getting logging to work

2009-01-07 Thread Filip Hanik - Dev Lists
yes, but you havent defined what 6mmi actually logs to all the other loggers have defined what directory and what file name is used, Filip juan.velez wrote: Yes I have handlers = 1catalina.org.apache.juli.FileHandler, 2localhost.org.apache.juli.FileHandler, \

http-only cookies

2009-01-07 Thread Diego Armando Gusava
Http-Only is support Tomcat 6? - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

RE: Tomcat 6 and log4j

2009-01-07 Thread Mark Thomas
From: Gregor Schneider [mailto:rc4...@googlemail.com] Ain't it just enough to copy commons-logging-1.1.jar do ${CATALINA_HOME}/lib, and that's it? No. And one suggestion: Why make it so difficult and have the user to do the build? Why not put the appropriate jars for download on the

RE: Apache Tomcat 5.5.X End of Life

2009-01-07 Thread Mark Thomas
-Original Message- From: Chad Kellerman [mailto:sunck...@gmail.com] Sent: 07 January 2009 16:38 To: Tomcat Users List Subject: Apache Tomcat 5.5.X End of Life Tomcat Users, Is there an expected End of Life date for Tomcat 5.5.x? I couldn't find anything on the apache site

RE: pb compilation on jsp param with tomcat 5.5.27

2009-01-07 Thread Mark Thomas
Line is jsp:plugin type=applet jreversion=1.4 code=dclock.LedClock.class archive=dclock.jar height=36 width=166 jsp:params jsp:param name=name value=%= ((servlet24.PosteBean)context.getPoste(**)).getCodePoste()+_appl etc% / The spec says you can't do this: xxx attribute=foobartoo

RE: MemoryUserDatabaseMBean Broken in Tomcat 6?

2009-01-07 Thread Mark Thomas
I couldn't find any mention of this in the Tomcat 6 bug database. Should I submit a bug report? Yes please. one with a patch to fix it woudl be even better. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org

RE: http-only cookies

2009-01-07 Thread Mark Thomas
Http-Only is support Tomcat 6? Not yet. Might make it for 6.0.19 if the current patch gets re-written to align it with the servlet 3 spec in time. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For

Tomcat not responding to https

2009-01-07 Thread Binu Mohan
Hi, I have an Apache Tomcat installation on a Windows Server 2003 machine. I have configured Tomcat to work with SSL by following the instructions given in the documentation (using the java ketytool utility). However, the configuration works fine on my development machine (XP

Re: Tomcat 6 does not start in a cluster. It simply hangs... Any Idea..

2009-01-07 Thread jsandhu2204
I have created stack trace when servers hangs. Please see attached. I would appreciate if you can help me with this. If I put distributable/ flag in the web.xml of the application. Tomcat6 does not start sometimes. It simply hangs.