Re: Problem with Tomcat 6 cluster

2009-09-22 Thread Sumedh Sakdeo
Hi Jason, Copied the file content here: [Mon Sep 14 13:58:08 2009][2436:4032] [info] mod_jk.c (2825): mod_jk/1.2.26 initialized [Mon Sep 14 13:58:09 2009][2436:4032] [info] mod_jk.c (2825): mod_jk/1.2.26 initialized [Mon Sep 14 13:58:11 2009][3572:3316] [info] mod_jk.c (2825): mod_jk/1.2.26

Tomcat hangs on startup

2009-09-22 Thread RogerV
I'm running Tomcat 6.0.18 on Debian Linux (Lenny). Tomcat is configured to start automatically through the init process, but it hangs using 95+% of the CPU and won't respond to /etc/init.d/tomcat stop. I have to kill the process. I've tried manually starting it as root with /etc/init.d/tomcat

Re: Create FileInputStream in servlet from remote file with accentuated character name

2009-09-22 Thread André Warnier
Christopher Schultz wrote: ... What is the source of that file name? Is it hard-coded into your Java code? If so, how? Did you just type fichié.txt into your .java file, or did you use \uxyz syntax to specify the UNICODE character you intended? If you are reading the filename from a remote

Re: Tomcat hangs on startup

2009-09-22 Thread Mark Thomas
RogerV wrote: I'm running Tomcat 6.0.18 on Debian Linux (Lenny). Tomcat is configured to start automatically through the init process, but it hangs using 95+% of the CPU and won't respond to /etc/init.d/tomcat stop. I have to kill the process. I've tried manually starting it as root with

Log4j

2009-09-22 Thread Nishant Chandra
Hi, I want to use Log4j and log from different web apps to one directory - tomcat_home/output/logs/{webapp_context}_service.log What should be the configuration in log4j.properties? I am currently using log4j.appender.xml.file=${catalina.base}/output/logs/service.log What I want is to append

Re: Tomcat hangs on startup

2009-09-22 Thread Rainer Jung
On 22.09.2009 10:29, Mark Thomas wrote: RogerV wrote: I'm running Tomcat 6.0.18 on Debian Linux (Lenny). Tomcat is configured to start automatically through the init process, but it hangs using 95+% of the CPU and won't respond to /etc/init.d/tomcat stop. I have to kill the process. I've

Re: Create FileInputStream in servlet from remote file with accentuated character name

2009-09-22 Thread Sylvie Perrin
André, I follow your tutorial and all outputs in Widows Explorer, DOS Command Window and Linux Window are consistents concerning file names display. For locale set under Linux, here is the output: LANG=fr_FR.UTF-8 LC_CTYPE=fr_FR.UTF-8 LC_NUMERIC=fr_FR.UTF-8 LC_TIME=fr_FR.UTF-8

Re: Log4j

2009-09-22 Thread Antonio Petrelli
2009/9/22 Nishant Chandra nishant.chan...@gmail.com: I want to use Log4j and log from different web apps to one directory - tomcat_home/output/logs/{webapp_context}_service.log What should be the configuration in log4j.properties? I am currently using

[ANN] Compile Tomcat Web apps into native Windows/Linux executables (beta)

2009-09-22 Thread Excelsior Java Team
Please help us beta test Apache Tomcat support in the forthcoming Excelsior JET 7.0 release. Excelsior JET is a compliant Java SE 6 implementation (JVM) with an ahead-of-time native code compiler. Version 7.0 will enable you to compile Apache Tomcat together with your Web applications into a

Re: Create FileInputStream in servlet from remote file with accentuated character name

2009-09-22 Thread André Warnier
Sylvie Perrin wrote: André, I follow your tutorial and all outputs in Widows Explorer, DOS Command Window and Linux Window are consistents concerning file names display. That's good. For locale set under Linux, here is the output: LANG=fr_FR.UTF-8 LC_CTYPE=fr_FR.UTF-8

Re: [ANN] Compile Tomcat Web apps into native Windows/Linux executables (beta)

2009-09-22 Thread ramzi khlil
Hi, I think it's not a good idea especially when application are subject to modification frequetly or if we plan to deploy a new application on the server. Tomcat has a very interesting feature which allows user to load application on fly without closing the server. But If I compile tomcat and

Re: [ANN] Compile Tomcat Web apps into native Windows/Linux executables (beta)

2009-09-22 Thread Serge Fonville
Hi, I think it's not a good idea especially when application are subject to modification frequetly or if we plan to deploy a new application on the server. Tomcat has a very interesting feature which allows user to load application on fly without closing the server. But If I compile tomcat

Re: [ANN] Compile Tomcat Web apps into native Windows/Linux executables (beta)

2009-09-22 Thread Leon Rosenberg
On Tue, Sep 22, 2009 at 1:41 PM, Excelsior Java Team j...@excelsior-usa.com wrote: Please help us beta test Apache Tomcat support in the forthcoming Excelsior JET 7.0 release. Excelsior JET is a compliant Java SE 6 implementation (JVM) with an ahead-of-time native code compiler. Version 7.0

Re: [ANN] Compile Tomcat Web apps into native Windows/Linux executables (beta)

2009-09-22 Thread André Warnier
Leon Rosenberg wrote: ... As for preventing decompilation, how many people/companies are actually delivering a war which they need to protect from decompiling? How many people would install such a product, one they can't configure anymore, one that is even infectable by viruses? This just

Re: [ANN] Compile Tomcat Web apps into native Windows/Linux executables (beta)

2009-09-22 Thread Leon Rosenberg
On Tue, Sep 22, 2009 at 4:12 PM, André Warnier a...@ice-sa.com wrote: Leon Rosenberg wrote: ... As for preventing decompilation, how many people/companies are actually delivering a war which they need to protect from decompiling? How many people would install such a product, one they can't

Re: what does j_security_check do in clustering?

2009-09-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Rex, On 9/20/2009 11:26 PM, Rex Wang wrote: I am using clustering, and the security checking process can not complete if the session affinity = false. Looks like the login name and password are posted to another node, and some times I got a 400

Re: Create FileInputStream in servlet from remote file with accentuated character name

2009-09-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, On 9/22/2009 4:00 AM, André Warnier wrote: what I am trying to say is that such matters are horrible, because *everything* matters. Eh.. well, yeah. :) Your note about making sure, in the source code of the program, that the filename is

Re: Create FileInputStream in servlet from remote file with accentuated character name

2009-09-22 Thread Sylvie Perrin
André, Thanks to you, my testcase is now running without any exception. André Warnier a écrit : Sylvie Perrin wrote: I just remind that I have these lines in my tomcat auto-start script : LC_ALL=fr_FR export LC_ALL Thuis, you should probably change, to be the same as your own locale

RE: Log4j

2009-09-22 Thread Jeffrey Janner
I had a similar problem with log4j. We host our webapp for various customers, an instance (host) per customer, therefore the same code for each customer. I tried sharing log4j.jar in shared/lib, but found all customer loading into the same log file - very confusing. My solution was to put

Re: Log4j

2009-09-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jeffrey, On 9/22/2009 11:00 AM, Jeffrey Janner wrote: My solution was to put log4j.jar in WEB-INF/lib of each instance, along with individual log4j.properties files and setting different file paths in the properties files. Only solution I could

Re: Create FileInputStream in servlet from remote file with accentuated character name

2009-09-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Sylvie, On 9/22/2009 11:01 AM, Sylvie Perrin wrote: The cause was the LC_ALL variable in my script starting tomcat. I set it to fr_FR.UTF-8 as you suggest and now, my test is OK ! I wonder if Java uses the file.encoding system property (which is

Re: tomcat6 and allowLinking problems

2009-09-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Daniel, On 9/21/2009 8:23 PM, Daniel Blumenthal wrote: I'm trying to use symlinks during development, but for some reason the allowLinking attribute doesn't seem to be working for me. I'm using Tomcat6 on a Mac Mini. First, I added it to my

webapps examples and security manager

2009-09-22 Thread Alan
Hi there, I installed tomcat5 via Fink on Snow Leopard 10.6.1 kernel 64 bits: amadeus[2249]:/sw/var/log/tomcat5% $CATALINA_HOME/bin/catalina.sh version Using CATALINA_BASE: /sw/var/tomcat5 Using CATALINA_HOME: /sw/var/tomcat5 Using CATALINA_TMPDIR: /sw/var/tomcat5/temp Using JRE_HOME:

Re: webapps examples and security manager

2009-09-22 Thread Mark Thomas
Alan wrote: snip/ Any help would be more than appreciated. And when you try with a more recent version? Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail:

Re: Log4j

2009-09-22 Thread Nishant Chandra
Thanks. This should work. I hope there was better logging infrastructure in terms of compressing the file, ftp, log service, archival etc. Nishant On Tue, Sep 22, 2009 at 8:35 PM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jeffrey,

Re: webapps examples and security manager

2009-09-22 Thread Alan
Thanks for your reply. Not yet, which one would suggest me please? Alan On Tue, Sep 22, 2009 at 17:27, Mark Thomas ma...@apache.org wrote: Alan wrote: snip/ Any help would be more than appreciated. And when you try with a more recent version? Mark

Re: Create FileInputStream in servlet from remote file with accentuated character name

2009-09-22 Thread Len Popp
On 2009-09-22, at 11:33, Christopher Schultz ch...@christopherschultz.net wrote: Somebody needs to write a virus that just converts everything to UTF-8 so we can be done with it. I hear you can contract out that sort of work these days. :-) -- Len

RE: webapps examples and security manager

2009-09-22 Thread Caldarale, Charles R
From: Alan [mailto:alanwil...@gmail.com] Subject: Re: webapps examples and security manager Not yet, which one would suggest me please? The latest, always (6.0.20). - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the

Deploying Tomcat on Windows CE

2009-09-22 Thread Ajay Kapur
Hi, We have a web application that runs on Tomcat 6x. We want to deploy this application on a symbol MC 3090 device running windows CE as the OS. Would it be possible to deploy Tomcat 6x on Windows CE and run our application on that? Thanks, Ajay

RE: Deploying Tomcat on Windows CE

2009-09-22 Thread Caldarale, Charles R
From: Ajay Kapur [mailto:ajay.ka...@appsassociates.com] Subject: Deploying Tomcat on Windows CE We have a web application that runs on Tomcat 6x. We want to deploy this application on a symbol MC 3090 device running windows CE as the OS. Would it be possible to deploy Tomcat 6x on Windows

Re: Create FileInputStream in servlet from remote file with accentuated character name

2009-09-22 Thread André Warnier
Christopher Schultz wrote: ... Then of course, after the above trivial matter of the filename is resolved, one may have to tackle the matter of how the file contents are encoded. At least the programmer has some measure of control over that. Not if she doesn't know what they have been

Re: Create FileInputStream in servlet from remote file with accentuated character name

2009-09-22 Thread André Warnier
Sylvie Perrin wrote: ... - your application, running (later) under Tomcat, is supposed to read these files and do something with them. I suppose that you do not know in advance, what the names of these files will be, and you just have to take what is there. Is that correct ? You perfectly

Re: Deploying Tomcat on Windows CE

2009-09-22 Thread André Warnier
Ajay Kapur wrote: Hi, We have a web application that runs on Tomcat 6x. We want to deploy this application on a symbol MC 3090 device running windows CE as the OS. Would it be possible to deploy Tomcat 6x on Windows CE and run our application on that? Probably. How much are you willing to

Re: Deploying Tomcat on Windows CE

2009-09-22 Thread Ajay Kapur
Could you give me a ballpark estimate of what it could cost and how long the development would take? Thanks, Ajay   From: André Warnier a...@ice-sa.com To: Tomcat Users List users@tomcat.apache.org Sent: Tuesday, September 22, 2009 3:32:07 PM Subject: Re:

Re: Create FileInputStream in servlet from remote file with accentuated character name

2009-09-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, On 9/22/2009 3:24 PM, André Warnier wrote: Ok, then we need Christopher's Java knowledge now. Or you could look at the API ;) Christopher, how does one, in Java, read a directory item by item ? See my other message on this thread which

Re: Create FileInputStream in servlet from remote file with accentuated character name

2009-09-22 Thread André Warnier
Christopher Schultz wrote: ... I wonder if Java uses the file.encoding system property (which is set by the portion of $LC_ALL after the .) to convert bytes returned from the filesystem into filenames and vice versa. Yeah, that appears to be the case: Christopher, your detailed analysis is

Re: Create FileInputStream in servlet from remote file with accentuated character name

2009-09-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, On 9/22/2009 3:58 PM, André Warnier wrote: your detailed analysis is impressive and undoubtedly accurate, but beyond what I can swallow right now in Java and after 2 glasses of Spanish wine. It's probably better than having 2 pints of