Re: Tomcat on FreeBSD

2007-08-22 Thread Ronald Klop
On Wed Aug 22 04:09:29 CEST 2007 Tomcat Users List users@tomcat.apache.org wrote: Ronald Klop wrote: What java version are you running? Ronald. On Fri Aug 17 16:00:41 CEST 2007 Tomcat Users List users@tomcat.apache.org wrote: Hi, I have installed Tomcat 5.5.23_1 on FreeBSD 6.2. I

Re: Does anyone have an approach to checking if Tomcat instance is UP?

2007-08-22 Thread Peter Stavrinides
In what context?? over the network?, over the web?, on the server? There is a portion of the shell script used in a Linux implementation for Tomcat 5.5 that checks for the running process: if start-stop-daemon --test --start --pidfile $CATALINA_PID \ --user $TOMCAT5_USER

Re: Very Slow Startup with APR

2007-08-22 Thread Markus Schönhaber
Rainer Jung wrote: Markus Schönhaber wrote: Just to confirm that I don't get it wrong again: it is to be expected that the value of RANDFILE is ignored in my case since im using tcnative 1.10? That's my expectation too. Fine, thanks. Regards mks

Delete Tomcat logs

2007-08-22 Thread Andrew Hole
Do you know some Windows script to delete Tomcat logs after 5 days? Thanks a lot

Re: JDBCRealm + Expired Passwords

2007-08-22 Thread Peter Stavrinides
I also didn't understand exactly what you mean, but 'JDBCRealm'... implies using a database, so the simple way is to redirect and use a web form to change it, which is easy enough. If you don't want to use a web form then its an entirely different story, I assume some sort of extension or

Single Sign On

2007-08-22 Thread Andrew Hole
Exists some way to implement Single Sign On without source code changes? Could you tell me a little bit about Single Sign On? Thanks a lot

Re: Single Sign On

2007-08-22 Thread Gregor Schneider
http://tomcat.apache.org/tomcat-5.5-doc/config/host.html#Single%20Sign%20On Gregor -- what's puzzlin' you, is the nature of my game gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2 gpgp-key available @ http://pgpkeys.pca.dfn.de:11371

Re: Single Sign On

2007-08-22 Thread Pid
Andrew Hole wrote: Exists some way to implement Single Sign On without source code changes? Could you tell me a little bit about Single Sign On? Thanks a lot In many environments, but particularly in portal environments, it is desireable to have a user challenged to authenticate themselves

Re: Single Sign On

2007-08-22 Thread Andrew Hole
Single sign on using valve is interesting, but is it possible use him if I have different application running in different tomcat instances? I think that only works with different applications under same tomcat instance. Thank you On 8/22/07, Pid [EMAIL PROTECTED] wrote: Andrew Hole wrote:

Re: 20 Tips for Using Tomcat in Production

2007-08-22 Thread Karel V Sedlacek
Thanks for this info,... How do I implement this tip? #18. Use the -server JVM option. This enables the server JVM, which JIT compiles bytecode much earlier, and with stronger optimizations. Startup and first calls will be slower due to JIT compilation taking more time, but subsequent ones will

Re: Single Sign On

2007-08-22 Thread Edmund Urbani
Andrew Hole wrote: Single sign on using valve is interesting, but is it possible use him if I have different application running in different tomcat instances? I think that only works with different applications under same tomcat instance. Thank you You might want to take a look at the

Re: 20 Tips for Using Tomcat in Production

2007-08-22 Thread Ben Souther
It depends on which operating system you're using and how you've installed Tomcat. Can you tell us which it is? On Wed, 2007-08-22 at 07:19, Karel V Sedlacek wrote: Thanks for this info,... How do I implement this tip? #18. Use the -server JVM option. This enables the server JVM, which

Re: JDBCRealm + Expired Passwords

2007-08-22 Thread Stephen More
In looking at the docs: http://tomcat.apache.org/tomcat-5.5-doc/config/realm.html there is no Attribute for userCredExpireCol. How do I configure the JDBCRealm to look at an expiration column ? -Steve On 8/22/07, Peter Stavrinides [EMAIL PROTECTED] wrote: I also didn't understand exactly what

Re: 20 Tips for Using Tomcat in Production

2007-08-22 Thread Leon Rosenberg
as far as i know this option is outdated, hence the vm automatically goes into server mode if it detects a server class machine (=2GB RAM, 2 processors (which also includes ht or dualcore) leon maybe wrong though On 8/22/07, Ben Souther [EMAIL PROTECTED] wrote: It depends on which operating

Re: Delete Tomcat logs

2007-08-22 Thread Ronald Klop
On Wed Aug 22 10:58:13 CEST 2007 Tomcat Users List users@tomcat.apache.org wrote: Do you know some Windows script to delete Tomcat logs after 5 days? Thanks a lot Windows has a scheduler. Put 'DEL c:\Tomcat\logs\*.*' in it every 5 days. Ronald.

RES: 20 Tips for Using Tomcat in Production

2007-08-22 Thread Milanez, Marcus
If you are running tomcat under windows services, you can select which JVM you want to use through bin/tomcatXw.exe. -Mensagem original- De: Karel V Sedlacek [mailto:[EMAIL PROTECTED] Enviada em: quarta-feira, 22 de agosto de 2007 08:19 Para: Tomcat Users List Assunto: Re: 20 Tips for

Re: Delete Tomcat logs

2007-08-22 Thread David Smith
AFAIK, this won't work on Windows unless you stop tomcat before and restart tomcat after. Windows keeps the log file open and will do strange things if you take the file out from underneath it. I believe log4j has options to support what the OP wants through log rotation. --David Ronald

Re: JDBCRealm + Expired Passwords

2007-08-22 Thread Peter Stavrinides
Hi Steven You are limited as to what logic the realm performs automatically, checking for expired passwords requires some manual work on your side. You might want to look at implementing a JAASRealm, and your own login module: See the bottom of this page:

Re: Delete Tomcat logs

2007-08-22 Thread Peter Stavrinides
You might want to truncate, 'not delete', instead. David Smith wrote: AFAIK, this won't work on Windows unless you stop tomcat before and restart tomcat after. Windows keeps the log file open and will do strange things if you take the file out from underneath it. I believe log4j has options

wierd performance in tomcat/java: help consult

2007-08-22 Thread dr_pompeii
hello after to test my project in tomcat 5.5.23 and jdk 5 update 12 in network(intranet-only until now with 2 clients) i see that this is fast, after of a some time i can see a wonderful exception related with java heap exception thrown by the tomcat after to search in google, i found the

Re: Tomcat on FreeBSD

2007-08-22 Thread Arend P. van der Veen
Ronald Klop wrote: On Wed Aug 22 04:09:29 CEST 2007 Tomcat Users List users@tomcat.apache.org wrote: Ronald Klop wrote: What java version are you running? Ronald. On Fri Aug 17 16:00:41 CEST 2007 Tomcat Users List users@tomcat.apache.org wrote: Hi, I have installed Tomcat 5.5.23_1 on

Re: wierd performance in tomcat/java: help consult

2007-08-22 Thread David Delbecq
Well, i see two performance bottlenecks in your description 1) You gave a max memory to your tomcat jvm that is above what your server supports. You shouldn't give jvm more memory thant what is really available without swapping (that is 512M minus all that is used by other applications in your

URL mangling

2007-08-22 Thread Hehl, Thomas
I have two ways of running my webapp. One is your basic webapp where tomcat answers the responses directly. The second runs security software the forwards the requests to another tomcat instance. This second version was mandated by our clients. The second version is brand new to us and I'm now

Re: URL mangling

2007-08-22 Thread Ben Souther
So now I'm trying to see if there's a way to mangle these urls dynamically on the security server instead so that I can use the same JSP for everything. I tried using a filter, but that works ONLY for the actual request itself. Filters evidently don't see requests for images or stylesheets,

RE: URL mangling

2007-08-22 Thread Hehl, Thomas
/* Shouldn't that get everything? I have a debug at the beginning of doFilter that prints out the request and I only get the original one, nothing for the images and stuff. -Original Message- From: Ben Souther [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 22, 2007 9:03 AM To:

Re: 20 Tips for Using Tomcat in Production

2007-08-22 Thread Ronald Klop
See the table in this page. On Windows on i586 java always defaults to client runtime. (amd64 or ia-64 are different) http://java.sun.com/docs/hotspot/gc5.0/ergo5.html If you can set JAVA_OPTS=-server java starts with it. Print System.getProperties() and you can see what runtime is used.

Running Apache Tomcat and Apache on Win XP

2007-08-22 Thread hano
Hi, I'm a little confused about Apache Tomcat. When installed (Win XP) do I get both the Apache HTTP server and the Tomcat? I needed the Apache HTTP server for some PHP development tests. And did try to install it on may machine, but it didn't work. Now I realise that I have Apache Tomcat on

Re: Tomcat on FreeBSD

2007-08-22 Thread Ronald Klop
On Wed Aug 22 14:47:04 CEST 2007 Tomcat Users List users@tomcat.apache.org wrote: Ronald Klop wrote: On Wed Aug 22 04:09:29 CEST 2007 Tomcat Users List users@tomcat.apache.org wrote: Ronald Klop wrote: What java version are you running? Ronald. On Fri Aug 17 16:00:41 CEST 2007

Re: 20 Tips for Using Tomcat in Production

2007-08-22 Thread Karel Sedlacek
OK, let me give this a whirl. Karel At 09:20 AM 8/22/2007, you wrote: See the table in this page. On Windows on i586 java always defaults to client runtime. (amd64 or ia-64 are different) http://java.sun.com/docs/hotspot/gc5.0/ergo5.html If you can set JAVA_OPTS=-server java starts with it.

Re: Running Apache Tomcat and Apache on Win XP

2007-08-22 Thread Filip Hanik - Dev Lists
you do need Apache Httpd to serve PHP, Tomcat doesn't do it. but there is no problem running both httpd and Tomcat on the same machine Filip hano wrote: Hi, I'm a little confused about Apache Tomcat. When installed (Win XP) do I get both the Apache HTTP server and the Tomcat? I needed the

RE: 20 Tips for Using Tomcat in Production

2007-08-22 Thread Caldarale, Charles R
From: Leon Rosenberg [mailto:[EMAIL PROTECTED] Subject: Re: 20 Tips for Using Tomcat in Production as far as i know this option is outdated, hence the vm automatically goes into server mode if it detects a server class machine (=2GB RAM, 2 processors (which also includes ht or dualcore)

Re: [OT] 20 Tips for Using Tomcat in Production

2007-08-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Karel, Karel V Sedlacek wrote: I am running a 4 core, 8GB, Server 2003 SP1 EE (not R2) machine. One JRE: 1.5.0_09 Oh, it's a Windows machine. Are those ever called servers? ;) (Just kidding.) - -chris -BEGIN PGP SIGNATURE- Version:

RE: 20 Tips for Using Tomcat in Production

2007-08-22 Thread Karel Sedlacek
Thank you, we are running Windows,... will check the Service properties. At 09:55 AM 8/22/2007, you wrote: From: Leon Rosenberg [mailto:[EMAIL PROTECTED] Subject: Re: 20 Tips for Using Tomcat in Production as far as i know this option is outdated, hence the vm automatically goes into

RES: 20 Tips for Using Tomcat in Production

2007-08-22 Thread Milanez, Marcus
Another tip that could be considered is the use of Tomcat Native Libraries (http://tomcat.heanet.ie/native/) , what do you think? -Mensagem original- De: Caldarale, Charles R [mailto:[EMAIL PROTECTED] Enviada em: quarta-feira, 22 de agosto de 2007 10:56 Para: Tomcat Users List Assunto:

Re: Single Sign On

2007-08-22 Thread Mark Montague
On Wed, Aug 22, 2007 07:00, Andrew Hole [EMAIL PROTECTED] wrote: Single sign on using valve is interesting, but is it possible use him if I have different application running in different tomcat instances? I think that only works with different applications under same tomcat instance. For

RE: [OT] 20 Tips for Using Tomcat in Production

2007-08-22 Thread Hehl, Thomas
Oh, it's a Windows machine. Are those ever called servers? ;) Well, I'm a Unix guy, so that's not what I call them. :) -Original Message- From: Christopher Schultz [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 22, 2007 10:15 AM To: Tomcat Users List Subject: Re: [OT] 20 Tips for

Re: RES: 20 Tips for Using Tomcat in Production

2007-08-22 Thread Karel Sedlacek
Marcus, I'm not sure I understand... Karel At 10:21 AM 8/22/2007, you wrote: Another tip that could be considered is the use of Tomcat Native Libraries (http://tomcat.heanet.ie/native/) , what do you think? -Mensagem original- De: Caldarale, Charles R [mailto:[EMAIL PROTECTED]

Re: Very Slow Startup with APR

2007-08-22 Thread Jim Jagielski
On Aug 21, 2007, at 11:26 AM, Markus Schönhaber wrote: Rainer Jung wrote: There's an addition in tcnative 1.1.10: http://svn.apache.org/viewvc/tomcat/connectors/trunk/jni/native/ src/ssl.c?view=diffrev=524725r1=524724r2=524725

RES: RES: 20 Tips for Using Tomcat in Production

2007-08-22 Thread Milanez, Marcus
Hi Karel, Take a look at http://tomcat.apache.org/tomcat-5.5-doc/apr.html, which describes native libraries. We started using it sometime ago and we noticed better response times in or application. -Mensagem original- De: Karel Sedlacek [mailto:[EMAIL PROTECTED] Enviada em:

Re: JDBCRealm + Expired Passwords

2007-08-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Stephen, Stephen More wrote: On 8/21/07, Christopher Schultz [EMAIL PROTECTED] wrote: Stephen More wrote: Has anyone written or know of a JDBCRealm that supports an expired password ? Do you mean that you want expired-password-users to be

Re: wierd performance in tomcat/java: help consult

2007-08-22 Thread dr_pompeii
hi David thanks so much for the information 2)Some part of your web application is not releasing the memory it uses. i dont think so, i am working with Hibernate and jdbcTemplate(when i work with jasperreports) and i use c3p0 but to clear some doubt, i see this Also look at JProbe, or

Re: wierd performance in tomcat/java: help consult

2007-08-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ash, dr_pompeii wrote: after to test my project in tomcat 5.5.23 and jdk 5 update 12 in network(intranet-only until now with 2 clients) i see that this is fast, after of a some time i can see a wonderful exception related with java heap exception

Re: 20 Tips for Using Tomcat in Production

2007-08-22 Thread Leon Rosenberg
On 8/22/07, Milanez, Marcus [EMAIL PROTECTED] wrote: Another tip that could be considered is the use of Tomcat Native Libraries (http://tomcat.heanet.ie/native/) , what do you think? PLEASE DONT! Leon -Mensagem original- De: Caldarale, Charles R [mailto:[EMAIL PROTECTED] Enviada

Re: Very Slow Startup with APR

2007-08-22 Thread Markus Schönhaber
Jim Jagielski wrote: Well, the comment doesn't seem to match what the code is doing :) OK, this statement of yours might relativize the impression of dumbness I have given here a little bit. Or maybe not ;-) I'm guessing that the problem the patch was trying to solve was due to the

Re: wierd performance in tomcat/java: help consult

2007-08-22 Thread dr_pompeii
Hello Christopher thanks for the reply This sounds like a memory leak. it could be, but Are you sure that you always close your connections, statements, and ResultSets in finally blocks (or are using a library that does this)? This is sometimes the cause of memory leaks. i work with

Re: Very Slow Startup with APR

2007-08-22 Thread Jim Jagielski
On Aug 22, 2007, at 11:32 AM, Markus Schönhaber wrote: 2. If tcnative 1.1.10 is used, set the environment variable RANDFILE to point to some random source which can be accessed without danger of blocking (for example /dev/urandom) or create a static random file in the home dir of the user

Re: Does anyone have an approach to checking if Tomcat instance is UP?

2007-08-22 Thread Goldstein, Barry A
I have a script that checks to make sure that Tomcat is listening on the appropriate port. #!/bin/bash ... main() { ... chktomcat tomcat1 chktomcat tomcat2 ... } ... chktomcat() { netstat -a | grep $1 /dev/null 21 RC=$? if (( RC == 0 ))

Re: 20 Tips for Using Tomcat in Production

2007-08-22 Thread Karel Sedlacek
I think I'll stick to the recommendations that I sort of understand... Thanks Karel At 11:22 AM 8/22/2007, you wrote: On 8/22/07, Milanez, Marcus [EMAIL PROTECTED] wrote: Another tip that could be considered is the use of Tomcat Native Libraries (http://tomcat.heanet.ie/native/) , what do

Logging Problem on Upgrade to Tomcat 6

2007-08-22 Thread Ashley Hollands
Hi I have recently upgraded from Tomcat 5.5 to 6.0 and from Java 1.5 to 6. I use Log4J for all my web application logging and have discovered that after the upgrade, any exceptions thrown in the web application are not logged to my web application log, but to the top-level Tomcat log. Does

Tomcat 5 + Red Hat Linux. Exception trying to load keystore

2007-08-22 Thread bajistaman
I followed the instructions from http://tomcat.apache.org/tomcat-5.0-doc/ssl-howto.html and I have executed the following: keytool -genkey -alias tomcat -keyalg RSA When I run: keytool -list I have the tomcat cert: tomcat, Aug 22, 2007, keyEntry, Certificate fingerprint (MD5):

RE: Tomcat 5 + Red Hat Linux. Exception trying to load keystore

2007-08-22 Thread Caldarale, Charles R
From: bajistaman [mailto:[EMAIL PROTECTED] Subject: Tomcat 5 + Red Hat Linux. Exception trying to load keystore But when I start tomcat I get the following Exception [ERROR] 22/08/2007 08:29:35,704] [org.apache.tomcat.util.net.jsse.JSSESocketFactory] Exception trying to load keystore

RES: 20 Tips for Using Tomcat in Production

2007-08-22 Thread Milanez, Marcus
What's wrong? Problems with native libraries? -Mensagem original- De: Leon Rosenberg [mailto:[EMAIL PROTECTED] Enviada em: quarta-feira, 22 de agosto de 2007 12:23 Para: Tomcat Users List Assunto: Re: 20 Tips for Using Tomcat in Production On 8/22/07, Milanez, Marcus [EMAIL PROTECTED]

Re: Logging Problem on Upgrade to Tomcat 6

2007-08-22 Thread Filip Hanik - Dev Lists
if you want a global log4j (instead of tomcat's own framework) http://tomcat.apache.org/tomcat-6.0-doc/logging.html then you will need to be tomcat-juli.jar and tomcat-juli-adapters.jar as described in the docs, let me know if you need more clarification Filip Ashley Hollands wrote: Hi I have

RE: 20 Tips for Using Tomcat in Production

2007-08-22 Thread Caldarale, Charles R
From: Milanez, Marcus [mailto:[EMAIL PROTECTED] Subject: RES: 20 Tips for Using Tomcat in Production What's wrong? Problems with native libraries? Makes the environment much more complex and is platform-specific, eliminating one of Tomcat's highly desirable attributes - platform

Re: Very Slow Startup with APR

2007-08-22 Thread Jim Jagielski
On Aug 21, 2007, at 10:02 AM, Rainer Jung wrote: Followup to self: There's an addition in tcnative 1.1.10: Looks like this went through further refactoring in: http://svn.apache.org/viewvc/tomcat/connectors/trunk/jni/native/ src/ssl.c?r1=524725r2=525163 I just checked HEAD on trunk

RE: Tomcat 5 + Red Hat Linux. Exception trying to load keystore

2007-08-22 Thread bajistaman
Thanks, but we are already using the one that we got from sun's web site, any other clue? Johann -- View this message in context: http://www.nabble.com/Tomcat-5-%2B-Red-Hat-Linux.-Exception-trying-to-load-keystore-tf4312574.html#a12279431 Sent from the Tomcat - User mailing list archive at

jsvc.exec error: Cannot find daemon loader

2007-08-22 Thread Ole Ersoy
Hi, I'm trying to run tomcat with jsvc. I did all the things in the manual, and now I'm trying to run it with: ./bin/jsvc -cp ./bin/bootstrap.jar \ -outfile ./logs/catalina.out -errfile ./logs/catalina.err \ org.apache.catalina.startup.Bootstrap And I get this in catalina.err:

RE: Tomcat 5 + Red Hat Linux. Exception trying to load keystore

2007-08-22 Thread Caldarale, Charles R
From: bajistaman [mailto:[EMAIL PROTECTED] Subject: RE: Tomcat 5 + Red Hat Linux. Exception trying to load keystore Thanks, but we are already using the one that we got from sun's web site You might think you are, but the stack trace shows you definitely are not: at

RE: Tomcat 5 + Red Hat Linux. Exception trying to load keystore

2007-08-22 Thread bajistaman
You are right, when I look up the services I can see that Tomcat is running using the JVM that you have told me: /usr/lib/jvm/java/bin/java -Djava.awt.headless=true -Dcatalina.ext.dirs=/usr/... I changed that from the tomcat5.conf file: # tomcat5 service configuration file # you could also

Re: Tomcat 5 + Red Hat Linux. Exception trying to load keystore

2007-08-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Johann, bajistaman wrote: But probably as I'm executing Tomcat as a service the service def should be the one that is pointing to the wrong JVM. Any idea how the change the service def? To somewhat reiterate Chuck's comment: you are working

RE: Logging Problem on Upgrade to Tomcat 6

2007-08-22 Thread Ashley Hollands
Thanks for the reply Filip if you want a global log4j (instead of tomcat's own framework)... I have configured Tomcat to use Log4J at the top-level using the documentation you recommend no problem, but it doesn't solve my problem. What I want is for the Exception to get logged at the web

Re: Logging Problem on Upgrade to Tomcat 6

2007-08-22 Thread Filip Hanik - Dev Lists
Ashley Hollands wrote: Thanks for the reply Filip if you want a global log4j (instead of tomcat's own framework)... I have configured Tomcat to use Log4J at the top-level using the documentation you recommend no problem, but it doesn't solve my problem. What I want is for the

Re: Tomcat 5 + Red Hat Linux. Exception trying to load keystore

2007-08-22 Thread bajistaman
Ok, I'll keep away from this forum the packaged tomcat questions. When I get the real one I'll be back. Thanks, Johann -- View this message in context: http://www.nabble.com/Tomcat-5-%2B-Red-Hat-Linux.-Exception-trying-to-load-keystore-tf4312574.html#a12280051 Sent from the Tomcat - User

RE: Logging Problem on Upgrade to Tomcat 6

2007-08-22 Thread Ashley Hollands
I did build the extra JAR files as described in the documentation. Whether I am using Log4J at the Tomcat level, or using Tomcat's default logging, I do get log messages in my web app log. For example if I add the following to my web app log4j.properties: log4j.logger.com.mycompany=INFO it logs

Re: Delete Tomcat logs

2007-08-22 Thread Vivek Mohan
Is there a way to delete tomcat logs which are older than 5 days? On 8/22/07, Peter Stavrinides [EMAIL PROTECTED] wrote: You might want to truncate, 'not delete', instead. David Smith wrote: AFAIK, this won't work on Windows unless you stop tomcat before and restart tomcat after. Windows

Re: Delete Tomcat logs

2007-08-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Vivek, Vivek Mohan wrote: Is there a way to delete tomcat logs which are older than 5 days? You could configure Tomcat to use log4j instead of juli and use a DailyRollingFileAppender -- it will generate a new file every day and you can simply

Re: Logging Problem on Upgrade to Tomcat 6

2007-08-22 Thread Filip Hanik - Dev Lists
it will only log to the webapp.log if your application catches the exception, then issues a log.error(msg,exception) (tomcat will do the same assuming it was correctly configured) if you provide a sample war, I can validate it for you Filip Ashley Hollands wrote: I did build the extra JAR

RE: Logging Problem on Upgrade to Tomcat 6

2007-08-22 Thread Ashley Hollands
What is confusing me is that I never had to catch the exception and log it from within my application in Tomcat 4, 5 or 5.5 - it just appeared in the web app log automatically. Is there no way to configure Log4J/Tomcat 6 to do the same thing without having to do as you suggest? Ashley

Re: Logging Problem on Upgrade to Tomcat 6

2007-08-22 Thread Filip Hanik - Dev Lists
Ashley Hollands wrote: What is confusing me is that I never had to catch the exception and log it from within my application in Tomcat 4, 5 or 5.5 - it just appeared in the web app log automatically. Is there no way to configure Log4J/Tomcat 6 to do the same thing without having to do as you

RE: Logging Problem on Upgrade to Tomcat 6

2007-08-22 Thread Ashley Hollands
OK - I'll run through the steps from scratch again and see if I have more joy this time. By the way, I have been using Tribes in my application and it works really well. I did have a problem initially as I was sending a class that did not exist in Tomcat's classpath, only in the web application

Re: Logging Problem on Upgrade to Tomcat 6

2007-08-22 Thread Filip Hanik - Dev Lists
Ashley Hollands wrote: OK - I'll run through the steps from scratch again and see if I have more joy this time. let me know how it goes, I can help out more. By the way, I have been using Tribes in my application and it works really well. I did have a problem initially as I was sending a

Re: Running Apache Tomcat and Apache on Win XP

2007-08-22 Thread samk
Download the http server from Apache In Response To: Hi, I'm a little confused about Apache Tomcat. When installed (Win XP) do I get both the Apache HTTP server and the Tomcat? I needed the Apache HTTP server for some PHP development tests. And did try to install it on may machine, but it

RE: Logging Problem on Upgrade to Tomcat 6

2007-08-22 Thread Ashley Hollands
There wasn't any trace at all - I added my own logging to tell me that one server had sent the message, but on the other server there was no sign of why it wasn't being delivered to the ChannelListener until I turned on debug logging and then it reported the ClassNotFoundException, but not at the

Re: JDBCRealm + Expired Passwords

2007-08-22 Thread Stephen More
On 8/22/07, Christopher Schultz [EMAIL PROTECTED] wrote: 1. Checks to see if the Session exists and has a Principal. 2. Checks to see if the Session contains my User object. If not, it loads the User object and performs the real login (as opposed to the basic authentication provided by

Re: jsvc.exec error: Cannot find daemon loader

2007-08-22 Thread Markus Schönhaber
Ole Ersoy schrieb: I'm trying to run tomcat with jsvc. I did all the things in the manual, and now I'm trying to run it with: ./bin/jsvc -cp ./bin/bootstrap.jar \ -outfile ./logs/catalina.out -errfile ./logs/catalina.err \ org.apache.catalina.startup.Bootstrap And I

Re: Logging Problem on Upgrade to Tomcat 6

2007-08-22 Thread Filip Hanik - Dev Lists
Ashley Hollands wrote: There wasn't any trace at all - I added my own logging to tell me that one server had sent the message, but on the other server there was no sign of why it wasn't being delivered to the ChannelListener until I turned on debug logging and then it reported the

The Solution

2007-08-22 Thread bajistaman
Well, just as a matter of corollary of the soluction everybody was right because even if I had the Sun Jvm installed, the red hat tomcat5 service was getting the JAVA_HOME env entry from the one defined in the file /etc/sysconfig/tomcat5 and not from /etc/tomcat5/tomcat5.conf, so if you changed

How to specify derby home to the JVM

2007-08-22 Thread Ping Yu
People in the list, I would like to specify derby home to the JVM so that the JVM can pickup the database.I added one line in catalina.bat. I added the last line to JAVA_OPTS as shown below: set JAVA_OPTS=%JAVA_OPTS% -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager

RE: Logging Problem on Upgrade to Tomcat 6

2007-08-22 Thread Ashley Hollands
basically, if you have classes outside of the scope of Tribes classloader, you are better off just sending a byte[] and do the serialization/deserialization Yes - that is basically how I dealt with it in the end. By the way, I have followed the Log4J instructions again (they don't say that

Container managed securty

2007-08-22 Thread Ali Ok
Hi, I use Tomcat's JDBC realm for security. However, I want to use a very customized login form (like remember me option or javascript based modal login form). How can I make these work? I cant access j_security_check servlet directly from a page or from a servlet. Is there a method like

RE: URL mangling

2007-08-22 Thread Ben Souther
Yes, it should. Are you running tomcat behind Apache HTTPD or another web server to serve up static content? On Wed, 2007-08-22 at 09:17, Hehl, Thomas wrote: /* Shouldn't that get everything? I have a debug at the beginning of doFilter that prints out the request and I only get the

Re: jsvc.exec error: Cannot find daemon loader

2007-08-22 Thread Ole Ersoy
Hi Markus, Thank you for the suggestion. I tried that as well, but I still get the same message. I think there is something funky going on with Fedora, as described here: http://i-hacker.blogspot.com/2007/01/cannot-find-daemon-loader-issue-with.html I also tried what they did, but still no

why does mod_jk still try to send the request to a shutdown machine?

2007-08-22 Thread Guofeng Zhang
Hi, I use Apache as the load balancer and configured mod_jk to work in failover mode. The master and slave run on separate machines. To test how the failover works, I shut down the master machine, then I access my application. But it takes about one minute for me to see the first page. I