RE: Tomcat Filter Ordering

2007-12-06 Thread Caldarale, Charles R
> From: Jacob Rhoden [mailto:[EMAIL PROTECTED] > Subject: Tomcat Filter Ordering > > Is there a way to specify in tomcat the order the filters > must be placed in the filter chain. Read the Servlet spec (section 6.2.4): "The order the container uses in building the chain of filters to be appli

Tomcat Filter Ordering

2007-12-06 Thread Jacob Rhoden
Hi, I am trying to separate all work from within one large filter, into two smaller filters. One filter for handling authentication/authorisation and another to handle url redirecting. However the authentication filter must run before the rewriting filter. Is there a way to specify in tomcat

LDAP as resource in context.xml

2007-12-06 Thread Sebastian Gerdes
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello, im just working on a web application, where I use a LDAP realm for the authentification and a postgresql resource in my context.xml. Both are working fine. Now I need to access the LDAP in my running web application again. I do not want to sto

Re: java.library.path / Unsatisfied Link Error problem with Linux Tomcat 5.5

2007-12-06 Thread Lionel Crine
Hello, I had a similar problem, did a try a chmod 755 ? David Marshall wrote: I'm not doing a System.loadLibrary. The library is needed by a third-party jar that I am using. SInce it works from within Eclipse I know that their jar and the shared object (.so file) work correctly together

Re: How to Deploy WAR using a sub-context path?

2007-12-06 Thread Mark Thomas
Scott McClanahan wrote: > Is tomcat 5.5 still accepting enhancements? Could we expect to see this > capability in a tomcat 5.5 release? Thanks. Yes. Assuming the patch is good (I haven't tested it yet) I'll propose it for backport. Mark ---

Re: [Windows service] how to set service name

2007-12-06 Thread galevsky
Caldarale, Charles R unisys.com> writes: > > > From: news [mailto:news ger.gmane.org] On Behalf Of galevsky > > Subject: [Windows service] how to set service name > > > > I would like to know if it is possible to set the service > > name in parameter to NSIS installer. > > Use the service.b

Re: Tomcat 4.1.31 crashing with memory errors, crashing with no errors and shutting down cleanly without manual intervention

2007-12-06 Thread Sean Carnes
Andrew, Believe me I wish this was on Linux s many things would be so much easier for someone who is used to unix, but unfortunately we are on windows server 2k3 the decision was made before I got here. We are moving to either linux or Solaris in the future but that will take a while. The hi

RE: [Windows service] how to set service name

2007-12-06 Thread Caldarale, Charles R
> From: news [mailto:[EMAIL PROTECTED] On Behalf Of galevsky > Subject: [Windows service] how to set service name > > I would like to know if it is possible to set the service > name in parameter to NSIS installer. Use the service.bat script; the optional second argument is the desired service

Re: Tomcat and Apache Deny rules

2007-12-06 Thread Martin Gainty
also suggest LocationMatch with uses reg expression http://httpd.apache.org/docs/1.3/mod/core.html#location fred .htaccess is a nix technology although the workaround of specifying AccessFileName seems to work it seems under (non-cygwin) NTFS any filename starting with . is set to 'system file han

[Windows service] how to set service name

2007-12-06 Thread galevsky
Hi all, I am running a silent install of the installer. I would like to know if it is possible to set the service name in parameter to NSIS installer. Because I install my Tomcat v5.5.25 on machines that are running Tomcat v5.0.X and Tomcat5 service name is already used. If I try to install man

Re: How to Deploy WAR using a sub-context path?

2007-12-06 Thread Scott McClanahan
On Wed, 2007-12-05 at 08:12 +, Mark Thomas wrote: > Eric B. wrote: > > I have submitted the bug & patch to Bugzilla > > (http://issues.apache.org/bugzilla/show_bug.cgi?id=44021). However, I am > > not 100% sure that my patch is in the right format/etc. Can you take a > > quick look at it

Re: Tomcat and Apache Deny rules

2007-12-06 Thread Aaron Brown
After extensive searching, I actually found my answer in the archive hereI needed to put the deny rules in a tag in httpd.conf rather than VirtualHost, Directory, or .htaccess. Thanks everyone, Aaron On 12/6/07 12:32 PM, "fredk2" <[EMAIL PROTECTED]> wrote: > > > Hi, > > Any reasons as to

Re: Tomcat 4.1.31 crashing with memory errors, crashing with no errors and shutting down cleanly without manual intervention

2007-12-06 Thread Andrew Miehs
Do you also have performance data for the front end machines? What OS are you running? Would definitely recommending installing sar (or sysstat package) if you are running linux. If Linux, which kernel? If it really is heap, have a look at: http://hausheer.osola.com/docs/5 for a simple desc

Re: Question about multiple SSL at same machine

2007-12-06 Thread Alex Florentino
ok, my site is hosted at http://www.ilandinternet.com/ and we access the router, now another question... such as the router already setup one network internal and external(valid IP), is possible setup two valid ip to one router ? because we have three ip valids and we use only one ip, but I not k

Re: Tomcat and Apache Deny rules

2007-12-06 Thread fredk2
Hi, Any reasons as to why not set the directives in the httpd.conf instead of .htaccess ? .htaccess only matters to requests for the directory it is in. Fred Aaron Brown-5 wrote: > > I've been trying to block the litefinder malicious bot which scours our > site > every day and tries to access

RE: How to check my current JVM settings

2007-12-06 Thread Caldarale, Charles R
> From: Stefano Martines [mailto:[EMAIL PROTECTED] > Subject: Re: How to check my current JVM settings > > is tomcat 5.0.28 or 5.0.30 no more supported? > Then we have to switch to tomcat 5.5, right? No, you don't "have to". It's just that there is no more development or bug fixing on the 5.0 l

Re: How to check my current JVM settings

2007-12-06 Thread Stefano Martines
is tomcat 5.0.28 or 5.0.30 no more supported? Then we have to switch to tomcat 5.5, right? - Original Message From: "Caldarale, Charles R" <[EMAIL PROTECTED]> To: Tomcat Users List Sent: Thursday, December 6, 2007 5:41:05 PM Subject: RE: How to check my current JVM settings > From: Ste

Re: Tomcat 4.1.31 crashing with memory errors, crashing with no errors and shutting down cleanly without manual intervention

2007-12-06 Thread Sean Carnes
Andrew, The performance data that we have is for the backend servers. We are monitoring the normal things cpu, memory, load swap, context switches, threads etc etc on the system but nothing specific to the tomcat service, just the overall health of the system. It is not easy to put a lot of prof

RE: How to check my current JVM settings

2007-12-06 Thread Caldarale, Charles R
> From: Stefano Martines [mailto:[EMAIL PROTECTED] > Subject: Re: How to check my current JVM settings > > 1) but how can I see what is the current setting? > 2) where should I set the CATALINA_OPTS , on catalina.50.bat ? > 3) What is the syntax of defining JVM paramters? You can't use CATALINA_

RE: How to check my current JVM settings

2007-12-06 Thread Peter Crowther
> From: Stefano Martines [mailto:[EMAIL PROTECTED] > Hi, > it is Windows 2000, > tomcat 5.0.28 > tomcat runs as service (tomcat5.exe) > Java 1.4.2x >From a swift Google - I don't run Tomcat as a service, so beware of this >information! Start tomcat5w.exe (should be in Tomcat's bin directory). T

Re: How to check my current JVM settings

2007-12-06 Thread Stefano Martines
Thanks, 1) but how can I see what is the current setting? 2) where should I set the CATALINA_OPTS , on catalina.50.bat ? 3) What is the syntax of defining JVM paramters? sorry for my basic questions thank you - Original Message From: Phi-Long LE <[EMAIL PROTECTED]> To: Tomcat Users Lis

Re: Tomcat 4.1.31 crashing with memory errors, crashing with no errors and shutting down cleanly without manual intervention

2007-12-06 Thread Andrew Miehs
On 06/12/2007, at 5:12 PM, Peter Crowther wrote: From: Sean Carnes [mailto:[EMAIL PROTECTED] The back-end servers seem to be responding in a timely fashion right now. We have performance data from the time period and nothing seems abnormal. I unfortunately missed the first part of this threa

Re: How to check my current JVM settings

2007-12-06 Thread Phi-Long LE
use the CATALINA_OPTS variable to set your JVM parameters... You can also define CATALINA_OPTS="-Xoptionsfile=toto.conf" and within toto.conf explicit JVM parameter P. Le 06/12/2007 17:02, Stefano Martines a écrit : Hi, it is Windows 2000, tomcat 5.0.28 tomcat runs as service (tomcat5.exe)

RE: Tomcat 4.1.31 crashing with memory errors, crashing with no errors and shutting down cleanly without manual intervention

2007-12-06 Thread Peter Crowther
> From: Sean Carnes [mailto:[EMAIL PROTECTED] > Thanks for the quick response. Your evaluation is similar to > what I have > been saying to my counterparts in regards to load balancing. > The back-end > servers seem to be responding in a timely fashion right now. We have > performance data from

Re: Tomcat 4.1.31 crashing with memory errors, crashing with no errors and shutting down cleanly without manual intervention

2007-12-06 Thread Stefano Martines
How can I increase the heap size? I know abouth -Xms but I dont know where to put this paramter, which line etc.? - Original Message From: Peter Crowther <[EMAIL PROTECTED]> To: Tomcat Users List Sent: Thursday, December 6, 2007 4:38:57 PM Subject: RE: Tomcat 4.1.31 crashing with memor

Re: Tomcat 4.1.31 crashing with memory errors, crashing with no errors and shutting down cleanly without manual intervention

2007-12-06 Thread Sean Carnes
Pete, Thanks for the quick response. Your evaluation is similar to what I have been saying to my counterparts in regards to load balancing. The back-end servers seem to be responding in a timely fashion right now. We have performance data from the time period and nothing seems abnormal. I thi

Re: How to check my current JVM settings

2007-12-06 Thread Stefano Martines
Hi, it is Windows 2000, tomcat 5.0.28 tomcat runs as service (tomcat5.exe) Java 1.4.2x thank you - Original Message From: Peter Crowther <[EMAIL PROTECTED]> To: Tomcat Users List Sent: Thursday, December 6, 2007 4:39:33 PM Subject: RE: How to check my current JVM settings Operating s

Re: Null datasource trying to connect to JNDI connection.

2007-12-06 Thread Craig Dunn
Any ideas on how to trace whats going on? There are still no exceptions being thrown. Sorry, I've figured that part out now - thanks for your help. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-

Re: Null datasource trying to connect to JNDI connection.

2007-12-06 Thread Craig Dunn
Did you see a factory attribute in any of the Tomcat doc for JDBC DataSources? http://tomcat.apache.org/tomcat-6.0-doc/jndi-datasource-examples-howto.h tml OK, Thanks for that - I've removed the Factory setting, placed everything where it is recommended, and yes, I did already have a web.xml

RE: Tomcat 4.1.31 crashing with memory errors, crashing with no errors and shutting down cleanly without manual intervention

2007-12-06 Thread Peter Crowther
> From: Peter Crowther > Looks like that slight increase in load has tipped you over > from being just-about-alright to just-about-failing. If you > can't increase heap space, can't decrease load and can't > alter the application, your only remaining choice is to add > capacity: install another se

RE: How to check my current JVM settings

2007-12-06 Thread Peter Crowther
Operating system? Tomcat version? Installed as service or running from batch file? Java version? > -Original Message- > From: Stefano Martines [mailto:[EMAIL PROTECTED] > Sent: 06 December 2007 15:21 > To: users@tomcat.apache.org > Subject: How to check my current JVM settings > > Hi, > I

RE: Tomcat 4.1.31 crashing with memory errors, crashing with no errors and shutting down cleanly without manual intervention

2007-12-06 Thread Peter Crowther
> From: Sean Carnes [mailto:[EMAIL PROTECTED] > *We are having an issue with the tomcat service crashing > version 4.1.31, > sometimes with these memory errors and sometimes not. We > have a backup but > once the load moves to that server the backup crashes also almost > immediately after the load

Tomcat 4.1.31 crashing with memory errors, crashing with no errors and shutting down cleanly without manual intervention

2007-12-06 Thread Sean Carnes
*We are having an issue with the tomcat service crashing version 4.1.31, sometimes with these memory errors and sometimes not. We have a backup but once the load moves to that server the backup crashes also almost immediately after the load balancer switches. This has happened multiple times to u

RE: Null datasource trying to connect to JNDI connection.

2007-12-06 Thread Caldarale, Charles R
> From: Mark Shifman [mailto:[EMAIL PROTECTED] > Subject: Re: Null datasource trying to connect to JNDI connection. > > What would you do if you wanted to add a different version of > DBCP, ie Commons DBCP 1.3-SNAPSHOT? > Would you put the jar in $CATALINA_HOME/lib and then use the factory > at

Tomcat and Apache Deny rules

2007-12-06 Thread Aaron Brown
I've been trying to block the litefinder malicious bot which scours our site every day and tries to access pages with the incorrect case, thus causing crazy amounts of errors to get thrown. We have an Apache 2.2.4 front end using mod_jk to load balance against 9 Tomcat instances on 6 separate mach

How to check my current JVM settings

2007-12-06 Thread Stefano Martines
Hi, I don’t how to check my JVM settings for my Tomcat. 1) How can I see the current JVM settings of my Tomcat application, (initial Heap size, max and min heap size) ? where are they stored? 2) How can I change these paramters? Thank Stefano __

RE: Tomcat5.exe increasing memory allocation

2007-12-06 Thread Peter Crowther
> From: Stefano Martines [mailto:[EMAIL PROTECTED] > I am running Tomcat 5.0.28 in a production environment. > It has the default settings you get from the initial installation. > The Tomcat5.exe process allocates 250 MB memory right now and > it is increasing from day to day. > > What is the reaso

Re: Null datasource trying to connect to JNDI connection.

2007-12-06 Thread Mark Shifman
What would you do if you wanted to add a different version of DBCP, ie Commons DBCP 1.3-SNAPSHOT? Would you put the jar in $CATALINA_HOME/lib and then use the factory attribrute? mas Caldarale, Charles R wrote: From: Craig Dunn [mailto:[EMAIL PROTECTED] Subject: Null datasource trying to conne

RE: Deploying to a sub context

2007-12-06 Thread Caldarale, Charles R
> From: eladm [mailto:[EMAIL PROTECTED] > Subject: Re: Deploying to a sub context > > I would like the users to be able to access the "media" > context with the url : "http:domain/images/media/". That's not how you described it in your earlier message, but nevertheless... As has been discussed

Tomcat5.exe increasing memory allocation

2007-12-06 Thread Stefano Martines
Hi, I am running Tomcat 5.0.28 in a production environment. It has the default settings you get from the initial installation. The Tomcat5.exe process allocates 250 MB memory right now and it is increasing from day to day. What is the reason? How can I stop the increase of memory allocation? I

RE: Null datasource trying to connect to JNDI connection.

2007-12-06 Thread Caldarale, Charles R
> From: Craig Dunn [mailto:[EMAIL PROTECTED] > Subject: Null datasource trying to connect to JNDI connection. > > In my server.xml: The usual comment: don't put elements in server.xml; doc reference: http://tomcat.apache.org/tomcat-6.0-doc/config/context.html > factory="org.apache.commons.dbc

RE: AccessControlException in Coyote Http11Processor (Tomcat 6.0.14). Bug in Coyote ?

2007-12-06 Thread Reich, Matthias
I think the problem arises because a.public static final boolean IS_SECURITY_ENABLED = (System.getSecurityManager() != null); is more a macro definition than a constant definition. But as Java does not support macros, the compiler cannot replace occurrences of 'IS_SECURITY_ENABLED' wi

Null datasource trying to connect to JNDI connection.

2007-12-06 Thread Craig Dunn
Hi, I have an issue connecting to MSSQL 2000 from Tomcat 6.0 (Linux) using JNDI. When I try and lookup the DataSource object it comes back as null I have configured; In my server.xml: The class calling the data source does so like this; Context initCtx = new InitialContext(

JSP/Servlets and SSL access

2007-12-06 Thread Marcello Maggioni
Hi. I'm implementing an Access control system on a Web Application with Tomcat As of now the login.jsp passes the username and the password to the Servlet that manages the login in clear text. I would like to add security in the login process using SSL to encrypt the data. How can I make the us

Re: Deploying to a sub context

2007-12-06 Thread eladm
Thanks Konstantin for your answer I am using tomcat 5.5 I understand your answer and tried it. Another sub - question : I would like the users to be able to access the "media" context with the url : "http:domain/images/media/". This means I would need to somehow tell tomcat to

Re: AccessControlException in Coyote Http11Processor (Tomcat 6.0.14). Bug in Coyote ?

2007-12-06 Thread Delian Krustev
On Wed, 05 Dec 2007 22:13:00 + Mark Thomas wrote: > Did it happen straight away or did it work for a while and then fail? Dec 3, 2007 10:14:24 PM org.apache.catalina.startup.Catalina start INFO: Server startup in 152362 ms .. Dec 3, 2007 10:17:22 PM org.apache.catalina.core.ApplicationDispa