logging in tomcat 6

2008-10-30 Thread Ghufran
Hi i have configured tomcat 6.0.18 in my test environment. i can see that the SEVERE exceptions are going into localhost.2008-10-xx.log file and these exceptions are not being printed in catalina.out file. Is there a way, i can get these exceptions in catalina.out file too. I also want to

Re: How can I hard code the IP address on a single server with multiple Tomcat instances.

2008-10-30 Thread Serge Fonville
You can define a CATALINA_HOME/BASE in the startup file(catalina.bat/sh). (all it does now is use the global environment variable because it isn't specified inside the file)You could define a HOME1 and HOME2 variable, but that would require a lot more changes inside the startup file. To be sure,

Convenient web application configuration.

2008-10-30 Thread Jason Cipriani
I'm using Tomcat 6.0.18 on Windows XP SP3, Windows Server 2003, and Windows Vista (UAC disabled). I have a web application with a lot of configuration options, all currently stored as servlet initialization parameters in WEB-INF/web.xml. The parameters are site specific and are different for my

Re: Clustering in tomcat

2008-10-30 Thread kashif_tomcat
Thanks Filip... i have got out of that problem... after adding clustering port in iptable. now i am getting another exception and following is detail. when i add distributable/ tag in web.xml of my applicatoin and start tomcat. then after login my application crashs and i get following

Re: Clustering in tomcat

2008-10-30 Thread Filip Hanik - Dev Lists
http://tomcat.apache.org/tomcat-6.0-doc/ look for Cluster Basics Filip kashif_tomcat wrote: Thanks Filip... i have got out of that problem... after adding clustering port in iptable. now i am getting another exception and following is detail. when i add distributable/ tag in web.xml of

Re: How can I hard code the IP address on a single server with multiple Tomcat instances.

2008-10-30 Thread dOE
Thanks for the reply Serge, On Win32 I have the CATALINA_HOME set to pont to where Tomcat is installed, and were server1 resides. To configure CATALINA_BASE the same way, but pont to another directory that ONLY contains *conf*, *webapps*, *logs*, *temp*, and *work*? What would need to be in the

Re: How can I hard code the IP address on a single server with multiple Tomcat instances.

2008-10-30 Thread Serge Fonville
If you have two completely separate installations, you should specify a catalina home in the batch file that starts the instance, if just the config an apps are separate, specify a catalina base in the startup fileAlso you could use http://www.linuxjournal.com/article/8561 for a more step by step

Tomcat memory increasing without any activity on our webapp

2008-10-30 Thread Pierre Goupil
Hello all, We have a Spring webapp running in a Tomcat 5.5 (5.5.7 or 5.5.25 depending upon the machines). When we start it up without any surfing on it or without any activity of any kind, the JVM memory first goes to some level, then stays at this level for 5-10 minutes and after some times it

RE: Tomcat memory increasing without any activity on our webapp

2008-10-30 Thread Caldarale, Charles R
From: Pierre Goupil [mailto:[EMAIL PROTECTED] Subject: Tomcat memory increasing without any activity on our webapp When we start it up without any surfing on it or without any activity of any kind, the JVM memory first goes to some level, then stays at this level for 5-10 minutes and after

RE: Convenient web application configuration.

2008-10-30 Thread Caldarale, Charles R
From: Jason Cipriani [mailto:[EMAIL PROTECTED] Subject: Convenient web application configuration. Is there a better place I can store site-specific configuration options? Read the doc: http://tomcat.apache.org/tomcat-6.0-doc/config/context.html#Context%20Parameters Is there some other way

RE: Howto ip-protect a specific url in webapp?

2008-10-30 Thread Caldarale, Charles R
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Subject: Howto ip-protect a specific url in webapp? I can restrict the whole /foo by using valve in /etc/tomcat5/Catalina/localhost/foo.xml but howto protect only /foo/admin? Either put the check in the servlet that handles /foo/admin, or

Re: Tomcat6+ISAPI+IIS+Integrated Authentication+Large User

2008-10-30 Thread Scrumpy Jack
Hi I've uploaded a fresh log which shows only an attempted connection from an affected user (DOMAIN\mbn) A subsequent test with a 'normal' user produced a large log showing the successful connection. Thanks Paul Rainer Jung-3 wrote: Scrumpy Jack schrieb: Hi I'm trying to resolve an issue

RE: Tomcat6+ISAPI+IIS+Integrated Authentication+Large User

2008-10-30 Thread Martin Gainty
Paul- unless otherwise configured please re-xmit (or display inline) the latest of %WINDIR%/system32/LogFiles/W3SVC1/*.log thx Martin __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official

Cookie problem in 5.5.26

2008-10-30 Thread Stephen More
I see in version 5.5.26 there are Cookie handling/parsing changes! 5.5.25 and prior I was able to read cookie values that included colons: cookie-name: lastaccess cookie-value: 10/30/2008%2010:41:00%20AM 5.5.26 and after: cookie-name: lastaccess cookie-value: 10/30/2008%2010 Other

ProxyDirContext.lookup(String) using a lot of CPU time

2008-10-30 Thread Roberto Fasciolo
Hello, While profiling my application running on tomcat 6.0 and wicket 1.3.5 I've noticed that a lot of CPU time is used in this tomcat's method: ProxyDirContext.lookup(String). My guess is that the problem is due to the fact that wicket is deployed as a servlet filter (mapped on /*) and when a

Re: Cookie problem in 5.5.26

2008-10-30 Thread Mark Thomas
Stephen More wrote: I see in version 5.5.26 there are Cookie handling/parsing changes! 5.5.25 and prior I was able to read cookie values that included colons: cookie-name: lastaccess cookie-value: 10/30/2008%2010:41:00%20AM 5.5.26 and after: cookie-name: lastaccess cookie-value:

Re: Cookie problem in 5.5.26

2008-10-30 Thread Tim Funk
An extreme kludge is to create a Filter which creates a HttpServletRequestWrapper which overrides getCookies() with a custom implementation. That custom implementation would read the headers, find the cookies and perform its own parsing mechanism to read the cookies. -Tim Mark Thomas

Re: relation between Tomcat and Apache Commons

2008-10-30 Thread Petr Sumbera
Rainer Jung-3 wrote: Commons collections seems to be a relict and not really used. DBCP and pool is contained in tomcat-dbcp.jar. We ranem the packages in order to make to dbcp and pool classes independant of any webapp bundled dbcp or pool versions. And how about commons-daemon.jar in

Problem to install APR Tomcat Native Library

2008-10-30 Thread Torsten.Romer
I am trying to install the APR Tomcat Native Library on a Solaris SPARC server. Since it has only OpenSSL installed and no build system available, I compiled libapr 1.3.3 and libtcnative 1.1.14 on another machine with the same OS. I then copied the lib folders of both libs to the server, and

JSVC vs standard startup / shutdown scripts

2008-10-30 Thread Andrew Feller
QUESTION: What is the best practice for running Tomcat? JSVC daemon or startup / shutdown scripts as a non-root user and forwarding HTTPS requests to a non-privileged port? While reading the Professional Apache Tomcat 6 (ISBN: 978-0-471-75361-2), they recommend running Tomcat to start it up

Re: Problem to install APR Tomcat Native Library

2008-10-30 Thread Andrew Ralph Feller, afelle1
Torsten, Have you updated your LD_LIBRARY_PATH to include APR lib? A- On 10/30/08 12:15 PM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I am trying to install the APR Tomcat Native Library on a Solaris SPARC server. Since it has only OpenSSL installed and no build system available, I

RE: Problem to install APR Tomcat Native Library

2008-10-30 Thread Torsten.Romer
Hi Andrew, Yes, I did that. So both libapr and libtcnative are in the LD_LIBRARY_PATH/java.library.path that Tomcat includes in the message that it couldn't load the library. I even included the OpenSSL libs in the path. Torsten -Original Message- From: Andrew Ralph Feller, afelle1

RE: Problem to install APR Tomcat Native Library

2008-10-30 Thread Martin Gainty
pls follow Andrew's advice..if windows its probably a dll? so you'll want to copy apr-1.lib to %JRE_HOME%\bin Martin __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender.

RE: JSVC vs standard startup / shutdown scripts

2008-10-30 Thread Torsten.Romer
Hi Andrew, We let all our Tomcats run on a non-privileged port and use some init script using startup.sh/shutdown.sh, and have an Apache httpd forwarding requests with AJP. We then use Apache httpd for things like terminating SSL, do RADIUS or LDAP authentication, load balancing several

RE: Problem to install APR Tomcat Native Library

2008-10-30 Thread Torsten.Romer
Hi Martin, It is Solaris SPARC. Would it help to copy shared libs into the JRE bin folder? I symlinked them into $JAVA_HOME/jre/lib/sparc but that didn't help either. Torsten -Original Message- From: Martin Gainty [mailto:[EMAIL PROTECTED] Sent: 30. oktober 2008 18:34 To: Tomcat

RE: Problem to install APR Tomcat Native Library

2008-10-30 Thread Martin Gainty
yes I would do that..symlink is specific to your shell session and only works at shell command line or thru java shell out e.g. java.lang.Runtime.exec(shell call); Viel Gluck Martin __ Disclaimer and confidentiality note Everything in this e-mail

Re: JSVC vs standard startup / shutdown scripts

2008-10-30 Thread Andrew Ralph Feller, afelle1
Thanks for the response Torsten! In our environment, the machines we have Tomcat running on strictly use Tomcat 6, APR for SSL support, and we load balance applications through an external load balancer. We have been able to get by without brining HTTPD for things like mod_rewrite or any of the

Re: Failed to install Tomcat5 service

2008-10-30 Thread Tradium
CAn some tell me how to enter the instructions below: 1) Start | Run and type cmd in the Open: Click OK. I go to the start biutton, Run and type Open return I get a DOS window and when I enter sc delete Tomcat5, it says specified service does not exist as an installed service But when I try

Re: Problem to install APR Tomcat Native Library

2008-10-30 Thread Andrew Ralph Feller, afelle1
Torsten, What is your LD_LIBRARY_PATH set to? Is it something like this: export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/apr/lib Are there world permissions for anyone to read this directory? I know you mentioned that you front-end Tomcat with HTTPD and assumed your use of APR is to free

Re: Convenient web application configuration.

2008-10-30 Thread br1
jason cipriani-2 wrote: Ideally I'd be able to put the settings in context.xml and web.xml somewhere outside of the web application directory, and leave them out of the web-app's local files, and so they wouldn't have to be packaged with the WAR and deploying the WAR wouldn't blow away

Re: Logging

2008-10-30 Thread Mohit Anchlia
I am wondering if someone could help me in identifying why I recieve those extra logs. They just keep growing. Same messages in log4j log file and catalina.out On Wed, Oct 29, 2008 at 9:53 AM, Mohit Anchlia [EMAIL PROTECTED] wrote: I added log4j.xml in classes dir in .war and log4j.jar in

RE: Convenient web application configuration.

2008-10-30 Thread Caldarale, Charles R
From: br1 [mailto:[EMAIL PROTECTED] Subject: Re: Convenient web application configuration. The easiest way is to place Context and the different Resource elements into each Tomcat's server.xml file. Certainly not easiest by any definition of the term that I'm familiar with, especially in a

RE: relation between Tomcat and Apache Commons

2008-10-30 Thread Caldarale, Charles R
From: Petr Sumbera [mailto:[EMAIL PROTECTED] Subject: Re: relation between Tomcat and Apache Commons Btw I don't see any benefit using jsvc. Is somebody using it? Why? Judging from the comments on this list, many people are using it. The primary reason is to avoid running Tomcat as root

Tomcat 6.0.18 clustering

2008-10-30 Thread firefinger
Hello, I would like to create a Tomcat 6.0.18. cluster with session replication based on JDBC store, and with WAR auto-deployment on tomcat instances. The would be like this: Load Balancer / \ Cluster1 Cluster2 / \/ \ Tomcat1 Tomcat2

Re: JSVC vs standard startup / shutdown scripts

2008-10-30 Thread David Smith
I don't have any personal issue with moving to running Tomcat directly as the non-privileged account meant for Tomcat ... Just to clarify, jsvc runs tomcat as an unprivileged user as well. One advantage to jsvc is it allows tomcat to be run by itself without funky iptables rules or a

RE: Problem to install APR Tomcat Native Library

2008-10-30 Thread Torsten.Romer
Yes, it is set to something like LD_LIBRARY_PATH=/opt/app/libtcnative/lib:/opt/app/apr/lib:$LD_LIBRARY_PATH The files are all world readable and even owned by the user running Tomcat. I just want to mention that I compiled both libs with another prefix than where I have copied them to now -

RE: JSVC vs standard startup / shutdown scripts

2008-10-30 Thread Torsten.Romer
simpler = better Fully agree. Keep it simple. We however have to put an httpd in front in the DMZ anyway because our security people would never allow us to put any business logic there. And they want us to change protocol on the way to the application so the switch from HTTPS to AJP is good

Re: Convenient web application configuration.

2008-10-30 Thread Jason Cipriani
On Thu, Oct 30, 2008 at 8:22 AM, Pid [EMAIL PROTECTED] wrote: Is your build process automated, say with ant or maven? If so, it should be a relatively simple one-off job to configure multiple output war files from one codebase with several configurations. I'm developing with Eclipse but could

Re: JSVC vs standard startup / shutdown scripts

2008-10-30 Thread Andrew Ralph Feller, afelle1
Thanks for the reply David! If you startup jsvc and do ps axu | grep jsvc, you will find two processes with one being owned by root and the other by the non-root account. The non-root process will actually handle the incoming requests, however the root process is needed to bind to port 443 since

Re: relation between Tomcat and Apache Commons

2008-10-30 Thread Andrew Ralph Feller, afelle1
Chuck, I'm already following up on this on a different thread, however it seems possible to run Tomcat on a non-privileged port with a non-root account and have requests for port 443 redirected to Tomcat's listening port. This way Tomcat can run as non-root and no need to compile and use JSVC.

RE: relation between Tomcat and Apache Commons

2008-10-30 Thread Caldarale, Charles R
From: Andrew Ralph Feller, afelle1 [mailto:[EMAIL PROTECTED] Subject: Re: relation between Tomcat and Apache Commons it seems possible to run Tomcat on a non-privileged port with a non-root account and have requests for port 443 redirected to Tomcat's listening port. Of course - but it

Re: Logging

2008-10-30 Thread Mark Thomas
Mohit Anchlia wrote: I added log4j.xml in classes dir in .war and log4j.jar in WEB-INF/lib dir in .war. This helped me in getting the logs in app.log, but didn't stop logs in catalina.out Because you haven't configured Tomcat to use log4j for its internal logging. Filip gave you the steps to

Re: Convenient web application configuration.

2008-10-30 Thread Juha Laiho
Jason Cipriani wrote: I have a web application with a lot of configuration options, all currently stored as servlet initialization parameters in WEB-INF/web.xml. The parameters are site specific and are different for my development machine, the machines of the two other developers working on

Re: JSVC vs standard startup / shutdown scripts

2008-10-30 Thread David Smith
Right. This is very much the same way other services like Apache httpd do things. The privileged process is there to catch signals and open ports for listening. The unprivileged process does the actual work. --David Andrew Ralph Feller, afelle1 wrote: Thanks for the reply David! If you

Re: Problem to install APR Tomcat Native Library

2008-10-30 Thread Rainer Jung
[EMAIL PROTECTED] schrieb: Yes, it is set to something like LD_LIBRARY_PATH=/opt/app/libtcnative/lib:/opt/app/apr/lib:$LD_LIBRARY_PATH The files are all world readable and even owned by the user running Tomcat. I just want to mention that I compiled both libs with another prefix than

Version 6.0.18 of Tomcat

2008-10-30 Thread John Byrne
I've tried for 2 days now to get my own HelloWorld program working with Apache Tomcat. I have the exact same structure that the examples and ROOT containers in the distribution have. However, I get an error in the users log specifying a class is not found. Is this my Test.class file it can't

RE: Convenient web application configuration.

2008-10-30 Thread br1
Hi, Caldarale, Charles R wrote: From: br1 [mailto:[EMAIL PROTECTED] Subject: Re: Convenient web application configuration. The easiest way is to place Context and the different Resource elements into each Tomcat's server.xml file. Certainly not easiest by any definition of the term

Re: antioJarLocking not working

2008-10-30 Thread James Ravn
From: Aaron Axelsen [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Date: Sun, 31 Aug 2008 14:39:46 -0500 Subject: Re: antioJarLocking not working I tried sticking the jars there - but it did not seem to make any difference. Let me recap on what we are trying to accomplish.

Sticky Session AND session duplication?

2008-10-30 Thread Greg Dick
Hi, I know that for typical web applications one of these approaches is generally enough to achieve load balancing across nodes in a cluster, but we here with an ICEfaces application would find it useful to do both. Session duplication to ensure the spreading around of session information,

Re: Logging

2008-10-30 Thread Mohit Anchlia
Thanks ..but I don't see that reply from Filip. Could you please give that to me. On Thu, Oct 30, 2008 at 2:19 PM, Mark Thomas [EMAIL PROTECTED] wrote: Mohit Anchlia wrote: I added log4j.xml in classes dir in .war and log4j.jar in WEB-INF/lib dir in .war. This helped me in getting the logs in

Re: Version 6.0.18 of Tomcat

2008-10-30 Thread David Smith
However, I get an error in the users log specifying a class is not found. Is this my Test.class file it can't find? Nope. The class not found is listeners.SessionListener. Can you post Test/WEB-INF/web.xml? Also can you post some info regarding your file layout? The container itself

RE: Logging

2008-10-30 Thread Caldarale, Charles R
From: Mohit Anchlia [mailto:[EMAIL PROTECTED] Subject: Re: Logging Thanks ..but I don't see that reply from Filip. Could you please give that to me. Look in the archives for your threads. The main page: http://marc.info/?l=tomcat-user This month:

Re: Sticky Session AND session duplication?

2008-10-30 Thread Mark Thomas
Greg Dick wrote: Hi, I know that for typical web applications one of these approaches is generally enough to achieve load balancing across nodes in a cluster, but we here with an ICEfaces application would find it useful to do both. Session duplication to ensure the spreading around of

Re: Logging

2008-10-30 Thread Mohit Anchlia
I think I remember now. But I quite didn't understand what tomcat-juli.jar is and how it will help with this issue. Any reference would be helpful. On Thu, Oct 30, 2008 at 4:07 PM, Caldarale, Charles R [EMAIL PROTECTED] wrote: From: Mohit Anchlia [mailto:[EMAIL PROTECTED] Subject: Re: Logging

RE: Logging

2008-10-30 Thread Martin Gainty
Mohit- the configuration as well as the specifics of how to setup log handlers for logging.properties are located at http://tomcat.apache.org/tomcat-6.0-doc/logging.html HTH Martin __ Disclaimer and confidentiality note Everything in this e-mail

RE: Version 6.0.18 of Tomcat -- Web.xml file and file/directory structure

2008-10-30 Thread Martin Gainty
Good Evening John- in /WEB-INF/web.xml make sure your listener is configured in e.g. listener listener-classlisteners.SessionListener/listener-class /listener Keep up the good work Martin __ Disclaimer and confidentiality note

RE: Version 6.0.18 of Tomcat -- Web.xml file and file/directory structure

2008-10-30 Thread Caldarale, Charles R
From: John Byrne [mailto:[EMAIL PROTECTED] Subject: RE: Version 6.0.18 of Tomcat -- Web.xml file and file/directory structure Attached is my web.xml file. Your web.xml file is completely wrong for your test application. All of those extra filters, listeners, and servlets which aren't

Re: Version 6.0.18 of Tomcat -- Web.xml file and file/directory structure

2008-10-30 Thread Mark Thomas
Martin Gainty wrote: Good Evening John- in /WEB-INF/web.xml make sure your listener is configured in e.g. listener listener-classlisteners.SessionListener/listener-class /listener No. Completely wrong. The whole point is that Tomcat *can't* find a listener that is already

RE: Sticky Session AND session duplication?

2008-10-30 Thread Martin Gainty
Hi Greg makes perfect sense to deliver the same lookfeel but more importantly maintaining same performance characteristics Does IceSoft have a configurable option to direct the client to the same webappserver as a previous browser session? Advantages of icesoft over using (Load-Balance)

Re: Version 6.0.18 of Tomcat -- Web.xml file and file/directory structure

2008-10-30 Thread David Smith
Strip your web.xml file down to this: ?xml version=1.0 encoding=ISO-8859-1? web-app xmlns=http://java.sun.com/xml/ns/javaee; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd;

RE: Logging

2008-10-30 Thread Caldarale, Charles R
From: Mohit Anchlia [mailto:[EMAIL PROTECTED] Subject: Re: Logging But I quite didn't understand what tomcat-juli.jar is and how it will help with this issue. The tomcat-juli.jar provides the APIs that core Tomcat code calls; in the standard distribution, this is a streamlined and renamed

Re: Sticky Session AND session duplication?

2008-10-30 Thread Sanjeev Verma
Hi Greg: Please see below for my comments. Regards Sanjeev On Thu, 2008-10-30 at 15:58 -0700, Greg Dick wrote: Hi, I know that for typical web applications one of these approaches is generally enough to achieve load balancing across nodes in a cluster, but we here with an ICEfaces

Re: Clustering in tomcat

2008-10-30 Thread Sanjeev Verma
For session replication to happen in a cluster, all attributes stored in the session object should be serializable - that is why you are seeing the exception you see below. On Thu, 2008-10-30 at 03:40 -0700, kashif_tomcat wrote: Thanks Filip... i have got out of that problem... after adding

RE: antioJarLocking not working

2008-10-30 Thread Caldarale, Charles R
From: James Ravn [mailto:[EMAIL PROTECTED] Subject: Re: antioJarLocking not working jruby-rack makes a call to the ServletContext's getRootPath() method No such animal; perhaps you mean getRealPath()? It looks like this is returning the erroneous /temp-appname which doesn't exist. Works

140.211.11.130

2008-10-30 Thread Philippe Couas
Hi, My UNIX logs give me trace OU_PKTS_DROP DST=140.211.11.130 . It seems that is apache foundation ? Why ? Regards Philippe