Re: Tomcat hangs on Startup

2009-09-22 Thread lists
Path perhaps ? What's defined for java_home ? Sent via BlackBerry from T-Mobile - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

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 star

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 Be

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 im

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 i

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 To: Tomcat Users List Sent: Tuesday, September 22, 2009 3:32:07 PM Subject: Re: Deploying Tomcat on Windows CE Ajay Kapur

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 p

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 und

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 creat

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 Wind

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: 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 t

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 > 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 - T

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 wrote: > Alan wrote: > >> Any help would be more than appreciated. > > And when you try with a more recent version? > > Mark > > > > >

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 wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Jeffrey, > > On 9/22/2009 11:00 AM,

Re: webapps examples and security manager

2009-09-22 Thread Mark Thomas
Alan wrote: > 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: users-h...@tomcat.apache

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: 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

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: 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: 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 log4j.ja

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 fr_FR.UT

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

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 40

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 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 configu

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 sounds

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 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 will enable you t

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 tom

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 web

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" LC_NUMERIC="fr_FR

[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 n

Re: Log4j

2009-09-22 Thread Antonio Petrelli
2009/9/22 Nishant Chandra : > 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

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" LC_COLL

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

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 app

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 /e

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