Errors in session replication and very high server load

2009-12-18 Thread mohame...@easy-dialog.info
Dear All, I have a strange problem. When I added a new server to my tomcat cluster I have noticed that the load is getting very high on the server. Tomcat log show a lot of these lines 18.12.2009 09:07:14 org.apache.catalina.ha.tcp.SimpleTcpCluster memberAdded INFO: Replication member

AW: Re: AW: Re: AW: RE: RE: Ignore http header if-modified-since

2009-12-18 Thread Abid Hussain
Hi, I'm using Tomcat 6.0.20, installed on a german Windows XP. I'm quite sure that the cause is tomcat's code. When I use e.g. for startup polish locale: -Duser.language=pl -Duser.region=PL Tomcat delivers the Last-Modified header in polish: Pt, 18 gru 2009 08:33:49 GMT The Date header is

Re: AW: Re: AW: RE: RE: Ignore http header if-modified-since

2009-12-18 Thread André Warnier
Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Abid, On 12/17/2009 12:08 PM, Abid Hussain wrote: I used the startup parameters -Duser.language=en -Duser.region=US This caused Tomcat to deliver the Last-Modified in the correct format. That solved the problem, no 404

Tomcat 5.5.17 - allowLinking property - symbolic links

2009-12-18 Thread Vishwa. K
Tomcat 5.5.17 Solaris 5.10 Our Web Application is required to display hyperlinks to external files that reside outside the web application based on certain business rules. The users could then download these large PDF files. We went ahead with the idea of symbolic links supported by Tomcat.

Re: Tomcat 5.5.17 - allowLinking property - symbolic links

2009-12-18 Thread Mark Thomas
On 18/12/2009 10:01, Vishwa. K wrote: I was wondering if this is the expected behaviour of Tomcat in this scenario or is it a bug? It is expected behaviour. Mark - To unsubscribe, e-mail:

Re: Tomcat 5.5.17 - allowLinking property - symbolic links

2009-12-18 Thread Ingo Gambin
Hehe, this I learned only a few days ago. I hope you didn't loose valuable information. But yes, this is the expected behaviour. In order to solve the problem you just have to add 'fake' docBases ... see below in the answers I got from Chris. Although i have to add, that adding the

Re: War file of my web application is not running through TOMCAT SERVER

2009-12-18 Thread Jason Bourne
Jason Bourne wrote: I have developed a web application in advance java. I am using java as front end, MySQL as Back-end and TOMCAT 5.5 SERVER to run the application. I have made a .war file of my application and pasted it in webapps folder of TOMCAT. The problem is when I start TOMCAT

Re: AW: Re: AW: Re: AW: RE: RE: Ignore http header if-modified-since

2009-12-18 Thread Mark Thomas
On 18/12/2009 08:41, Abid Hussain wrote: Hi, I'm using Tomcat 6.0.20, installed on a german Windows XP. I'm quite sure that the cause is tomcat's code. And I'm quite sure it isn't. I have tested trunk, 6.0.x and 6.0.20 and all behave correctly. When I use e.g. for startup polish

Re: AW: Re: AW: RE: RE: Ignore http header if-modified-since

2009-12-18 Thread Mark Thomas
On 18/12/2009 09:36, André Warnier wrote: Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Abid, On 12/17/2009 12:08 PM, Abid Hussain wrote: I used the startup parameters -Duser.language=en -Duser.region=US This caused Tomcat to deliver the Last-Modified in the

Re: War file of my web application is not running through TOMCAT SERVER

2009-12-18 Thread Pid
On 18/12/2009 10:31, Jason Bourne wrote: Jason Bourne wrote: I have developed a web application in advance java. I am using java as front end, MySQL as Back-end and TOMCAT 5.5 SERVER to run the application. I have made a .war file of my application and pasted it in webapps folder of TOMCAT.

AW: Re: AW: Re: AW: RE: RE: Ignore http header if-modified-since

2009-12-18 Thread Abid Hussain
Hi again, It seems that Mark is right. I just tried it with another webapp and also in a clean installation and the headers are correct there, even if the locale is set to polish. Have to investigate further what causes the misspelled header. There aren't any filters in my webapp that modify

How to set envirnment variable to install tomcat on linux machine?

2009-12-18 Thread VinayTJ
Hi all, I am new to linux. I wanted to install tomcat on Linux machine. i have placed tomcat5.5 in opt/tomcat directory. Now the system is expecting to set the enviornmental variables. where and how can i set the same? (CATALINA_HOME and JAVA_HOME) Thanks, Vinay -- View this message in

Re: How to set envirnment variable to install tomcat on linux machine?

2009-12-18 Thread Ingo Gambin
Am Freitag, den 18.12.2009, 04:32 -0800 schrieb VinayTJ: Hi all, I am new to linux. I wanted to install tomcat on Linux machine. i have placed tomcat5.5 in opt/tomcat directory. export JAVA_HOME=jdk/jre-directory export CATALINA_HOME=/opt/tomcat Now the system is expecting to set the

Re: How to set envirnment variable to install tomcat on linux machine?

2009-12-18 Thread Given Shirinda
export CATALINA_HOME=/opt/apache-tomcat-5.5.25 export JAVA_HOME=/opt/jdk1.5.0_14 export JDK_HOME=$JAVA_HOME export JRE_HOME=$JAVA_HOME/jre export PATH=$PATH:$JAVA_HOME/bin export PATH=$PATH:$CATALINA_HOME/bin - To unsubscribe,

RE: FileNotFoundException in Tomcat6.0

2009-12-18 Thread jkv
Hello Charles, I am using a war file named sample.war to deploy my sample application in tomcat 6.0. I have my log4j.properties file with that exact name in WEB-INF/classes folder. That is I copy the war file into webapps folder of tomcat and when I run tomcat it gets explode into folder sample,

Re: How to access JNDI resources on Tomcat level

2009-12-18 Thread vramanaj
Can we have the below 2 security constraints in web.xml ? auth-methods are different for the both. In our existing application we have 2nd security-constraint/login-config is existing. As part of Josso configuration, we need have the configuration like 1st one. Can we club both of them with out

Re: FileNotFoundException in Tomcat6.0

2009-12-18 Thread jkv
Hello, This method takes a filename. Since you've not provided a path to the file, here, where did you put your file to ensure that it gets properly loaded? - I have my file here WEB-INF/classes/log4j.properties. What path are you using when you try to open the file? If you aren't

Re: How to set envirnment variable to install tomcat on linux machine?

2009-12-18 Thread Ingo Gambin
sorry forgot where... both commands work from console/terminal or you can add them to your personal bash-config file. put 'em at the end of /home/yourusername/.bashrc or you can add them to the startup-script of tomcat as first lines /opt/tomcat/bin/startup.sh or if you have

Re: How to set envirnment variable to install tomcat on linux machine?

2009-12-18 Thread VinayTJ
hi, I have set the env variables. but while starting the tomcat i.e executing startup.sh , it is saying The BASEDIR environment variable is not defined correctly This environment variable is needed to run this program can u pls help me out form this? Thanks, vinay Given Shirinda wrote:

Re: AW: Re: AW: RE: RE: Ignore http header if-modified-since

2009-12-18 Thread André Warnier
Mark Thomas wrote: On 18/12/2009 09:36, André Warnier wrote: Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Abid, On 12/17/2009 12:08 PM, Abid Hussain wrote: I used the startup parameters -Duser.language=en -Duser.region=US This caused Tomcat to deliver the

RE: Need Some info

2009-12-18 Thread Karthik Nanjangude
Hi Ok the spec for the application Remote OS : Linux redhat JDK :15 Web container : Tomcat 6.0.20 web application using JNDI Connection pool to Oracle DB 10G Driver ojdbc14.jar Local O/s :Win2000 Jdk 1.6 Jconsole Question 1 I am able to connect to the Remote Tomcat server via jconsole, but

Re: How to access JNDI resources on Tomcat level

2009-12-18 Thread André Warnier
vramanaj wrote: Can we have the below 2 security constraints in web.xml ? auth-methods are different for the both. There was an earlier thread on this same list about that, about a week ago. Basically the answer is no, because the Servlet Spec does not allow for that. (In other words, it is

Re: Using RemoteAddressValve with an Apache mod_proxy_balancer

2009-12-18 Thread André Warnier
Caldarale, Charles R wrote: From: André Warnier [mailto:a...@ice-sa.com] Subject: Re: Using RemoteAddressValve with an Apache mod_proxy_balancer If anyone points me to where the code of the RemoteAddrValve can be found, I'd like to have a look. Download the source package, and look in:

Re: AW: Re: AW: Re: AW: RE: RE: Ignore http header if-modified-since

2009-12-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mark, On 12/18/2009 5:32 AM, Mark Thomas wrote: On 18/12/2009 08:41, Abid Hussain wrote: Hi, I'm using Tomcat 6.0.20, installed on a german Windows XP. I'm quite sure that the cause is tomcat's code. And I'm quite sure it isn't. I have

AW: Re: AW: Re: AW: RE: RE: Ignore http header if-modified-since

2009-12-18 Thread Abid Hussain
OK, it seems that tomcat is working correctly. Still I would like to get the root cause of my problem which is again: The last-modified response header is delivered in the locale of the server. E.g. if this locale is polish or germen, the header is delivered in polish resp. german format which

Re: Using RemoteAddressValve with an Apache mod_proxy_balancer

2009-12-18 Thread Mark Thomas
On 18/12/2009 15:20, André Warnier wrote: By the way, in the file LocalStrings_fr.properties that is in that same directory, there are quite a few typos. That's more my level, me being a native French speaker and all. How do I submit a corrected version, with a minimum of fuss ? Get the

Re: Ignore http header if-modified-since

2009-12-18 Thread Len Popp
Add some debugging code to your app to find the point where the Last-Modified header is added. Call HttpServletResponse.containsHeader to see if the header has been set. -- Len On Fri, Dec 18, 2009 at 10:47, Abid Hussain abid.huss...@dilax.com wrote: OK, it seems that tomcat is working

Re: Using RemoteAddressValve with an Apache mod_proxy_balancer

2009-12-18 Thread André Warnier
Mark Thomas wrote: On 18/12/2009 15:20, André Warnier wrote: By the way, in the file LocalStrings_fr.properties that is in that same directory, there are quite a few typos. That's more my level, me being a native French speaker and all. How do I submit a corrected version, with a minimum of

Re: Using RemoteAddressValve with an Apache mod_proxy_balancer

2009-12-18 Thread Mark Thomas
On 18/12/2009 16:21, André Warnier wrote: Mark Thomas wrote: On 18/12/2009 15:20, André Warnier wrote: By the way, in the file LocalStrings_fr.properties that is in that same directory, there are quite a few typos. That's more my level, me being a native French speaker and all. How do I

Re: FileNotFoundException in Tomcat6.0

2009-12-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Kumaravel, On 12/18/2009 7:45 AM, jkv wrote: I was actually not specifing any path to open a file text.txt as i had it under WEB-INF/classes/test.txt, assuming my classes folder should be in classpath. While your file was in the class path, you

Re: 2 Apache 1 Tomcat

2009-12-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Elli, On 12/17/2009 10:45 PM, Elli Albek wrote: A note on reverse proxy: request.getRemoteIP() will normally return the IP of the proxy and not the IP of the client. This is a good point, but only pertains to HTTP proxying. If you use AJP, the

Re: Tomcat 5.5.17 - allowLinking property - symbolic links

2009-12-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ingo, On 12/18/2009 5:10 AM, Ingo Gambin wrote: Although i have to add, that adding the Context... directive to conf/Catalina/localhost/name.xml did not work for me on Tomcat 5.5. Technically speaking, the path is not always

Re: Using RemoteAddressValve with an Apache mod_proxy_balancer

2009-12-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mark, On 12/18/2009 11:42 AM, Mark Thomas wrote: On 18/12/2009 16:21, André Warnier wrote: or do I need some special editor or setting, or do I just convert these codes to their UTF-8 equivalents and submit it as such ? You can use:

Tomcat shutdown issues

2009-12-18 Thread SRama
Hi I have some issues with tomcat, after starting the tomcat when I give request to my application tomcat console showing the following error message.. Dec 18, 2009 2:59:23 PM org.apache.catalina.startup.Catalina start INFO: Server startup in 3955 ms Dec 18, 2009 2:59:27 PM

Re: Tomcat shutdown issues

2009-12-18 Thread Pejus M. Das
Looks like your server started pretty quick. Are there any applications deployed? What url are you hitting when you get the reset exception. Do you see the tomcat start page? Pejus On Fri, Dec 18, 2009 at 8:10 PM, SRama su...@techie.com wrote: Hi I have some issues with tomcat, after

Re: Tomcat shutdown issues

2009-12-18 Thread Konstantin Kolinko
2009/12/18 SRama su...@techie.com: Hi I have some issues  with tomcat, after starting the tomcat when I give request to my application tomcat console showing the following error message.. Dec 18, 2009 2:59:23 PM org.apache.catalina.startup.Catalina start INFO: Server startup in 3955 ms

Re: Tomcat shutdown issues

2009-12-18 Thread SRama
before starting the server I am checking both port address if any other applicaion using the same port I am dynamicaly chaning the shutdown port and http port. 2. I am not using AJP Connector and redirect port so I have removed. Can you think because of the issues comming? ?xml version=1.0

Re: Tomcat shutdown issues

2009-12-18 Thread SRama
Tomcat console Error message : Using CATALINA_BASE: C:\Users\x1\WDD\dpcdrom\tomcat Using CATALINA_HOME: C:\Users\x1\WDD\dpcdrom\tomcat Using CATALINA_TMPDIR: C:\Users\x1\WDD\dpcdrom\tomcat\temp Using JRE_HOME:C:\Users\x1\WDD\dpcdrom\java\JavaWin Dec 18, 2009 5:03:55

Re: Tomcat shutdown issues

2009-12-18 Thread SRama
I have depolyed my application it's working fine. but I am not able to shutdown... Pejus M. Das wrote: Looks like your server started pretty quick. Are there any applications deployed? What url are you hitting when you get the reset exception. Do you see the tomcat start page? Pejus

Re: Tomcat shutdown issues

2009-12-18 Thread Konstantin Kolinko
2009/12/19 SRama su...@techie.com: before starting the server I am checking both port address if any other applicaion using the same port I am dynamicaly chaning the shutdown port and http port. You won't be able to shutdown Tomcat using the shutdown script, if the script does not know what

Getting 404's on embedded Tomcat.

2009-12-18 Thread Clay McCoy
OS X 10.6.2, Java 1.6.0_17, tomcat 6.0.18 I've spent hours researching how to configure embedded Tomcat. It starts up fine, Spring config works, but I get 404's when loading the jsps ( http://localhost:8080/App/test.jsp) . I have the code that I am using to start Tomcat here:

Re: Logging all traffics to Tomcat servers

2009-12-18 Thread Bill Barker
Christopher Schultz ch...@christopherschultz.net wrote in message news:4b2aa7c4.1060...@christopherschultz.net... -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Fidelis, On 12/17/2009 3:42 PM, Fidelis Mnyanyi wrote: Thanks Konstantin for your response. I tried to use AccessLogValve, but

Re: Using RemoteAddressValve with an Apache mod_proxy_balancer

2009-12-18 Thread Bill Barker
André Warnier a...@ice-sa.com wrote in message news:4b2bdc92.9050...@ice-sa.com... Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mark, On 12/18/2009 11:42 AM, Mark Thomas wrote: On 18/12/2009 16:21, André Warnier wrote: or do I need some special editor or