Re: what ist $CATALINA_HOME/server ? (debian)

2010-12-08 Thread Christoph Kukulies
Am 07.12.2010 22:19, schrieb g f: Did you aptitude install tomcat6? If so why not modify the init.d script that came with that. If not perhaps you want to try to use the debs. apt-get install tomcat6 G AFAIK there isn't such a thing like a tomcat6 package under the debian distribution. And I

Getting hold of an IP address

2010-12-08 Thread Lyallex
Hi apache-tomcat-6.0.16 jdk1.6.0_03 My application contains instances of javax.servlet.http.HttpSessionListener and javax.servlet.Filter (among other classes of course) My question is, is it possible to obtain the originating IP address of a request from either of these classes I've had a good

Re: TOMCAT be in Hung state?

2010-12-08 Thread Daniel Baktiar
1) do you have some scheduled process that deletes the catalina.out every 45 days? usually in linux, when logger open a file and some other process deleted the file, it will not create new file, which i suspect the case in catalina.out 2) probably combined with some part of code swallowing fatal

Re: Getting hold of an IP address

2010-12-08 Thread Konstantin Kolinko
2010/12/8 Lyallex lyal...@gmail.com: My application contains instances of javax.servlet.http.HttpSessionListener and javax.servlet.Filter (among other classes of course) My question is, is it possible to obtain the originating IP address of a request from either of these classes

Re: Getting hold of an IP address

2010-12-08 Thread Lyallex
On 8 December 2010 10:04, Konstantin Kolinko knst.koli...@gmail.com wrote: ServletRequest.getRemoteAddr() (In a Filter.  There is no request in HttpSessionListener). Best regards, Konstantin Kolinko ahem ... yes, well that was easy wasn't it In my (weak) defense it's been a long while

how to enable Tomcat to handle proprietary TCP streams (non-http data)

2010-12-08 Thread razor
Hi I'm writing application composed from few loosely coupled components (dependency injection pattern, all compoments written by my team). First of them listens for connections, spawns new thread (serversocket.accept) receives data in proprietary format and then sends data to next component, next

RE: Issues on startup for tomcat 5.5 on RHEL 5.5

2010-12-08 Thread Jason Pyeron
-Original Message- From: Konstantin Kolinko Sent: Wednesday, December 08, 2010 0:29 To: Tomcat Users List Subject: Re: Issues on startup for tomcat 5.5 on RHEL 5.5 2010/12/7 Jason Pyeron jpye...@pdinc.us: The permissions on /usr/share/tomcat5/conf/ are 775 and owned by

RE: TOMCAT be in Hung state?

2010-12-08 Thread Karthik Nanjangude
Hi do you have some scheduled process that deletes the catalina.out every 45 days? No we do not have any other application doing the same. such as permgenspace out of memory, you will not anything in catalina.out Since the Catalina.out file is not being generated we do not know if the same

Re: what ist $CATALINA_HOME/server ? (debian)

2010-12-08 Thread g f
Not sure of your distro and your requirements but for squeeze there is: http://packages.debian.org/squeeze/tomcat6 lenny: http://packages.debian.org/lenny/tomcat5.5 Now the script modification is a different story. Cheers, GF On Wed, Dec 8, 2010 at 3:02 AM, Christoph Kukulies

Re: Issues on startup for tomcat 5.5 on RHEL 5.5

2010-12-08 Thread Konstantin Kolinko
2010/12/8 Jason Pyeron jpye...@pdinc.us: java.io.IOException: IOException writing to /usr/share/tomcat5/conf/tomcat-users.xml.new What you do not understand in the above message? Tomcat saves the file to a new name, then renames it. I understand the message, it says tomcat cannot write

Re: TOMCAT be in Hung state?

2010-12-08 Thread Felix Schumacher
Am Mittwoch, den 08.12.2010, 13:10 +0530 schrieb Karthik Nanjangude: Hi Spec a) JDK 1.6 b) 2 Web Server Tomcat 5.0.20 (on same O/s with different Startup /shutdown portsshare the same RAM / CPU Processor] c) O/s Linux Red hat [ Linux DTVMS1 2.6.18-128.1.10.el5PAE #1 SMP Wed

RE: Issues on startup for tomcat 5.5 on RHEL 5.5

2010-12-08 Thread Jason Pyeron
-Original Message- From: Konstantin Kolinko Sent: Wednesday, December 08, 2010 9:35 To: Tomcat Users List Subject: Re: Issues on startup for tomcat 5.5 on RHEL 5.5 2010/12/8 Jason Pyeron jpye...@pdinc.us: java.io.IOException: IOException writing to

Re: enforcing SSL only for external clients

2010-12-08 Thread Nicholas Sushkin
On Tuesday, December 07, 2010 14:34:55 Aggarwal, Ajay wrote: Aggarwal, Ajay wrote: My tomcat application (running on a linux host) has 2 types of clients. Local clients coming on localhost (127.0.0.1) and external clients coming on external interfaces. I want to enforce use of SSL only

Re: enforcing SSL only for external clients

2010-12-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, On 12/7/2010 6:02 PM, Caldarale, Charles R wrote: From: André Warnier [mailto:a...@ice-sa.com] Subject: Re: enforcing SSL only for external clients You will probably need 2 separate Connectors, one for HTTP and the other for HTTPS.

Re: how to enable Tomcat to handle proprietary TCP streams (non-http data)

2010-12-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Razor, On 12/8/2010 7:15 AM, razor wrote: I'm writing application composed from few loosely coupled components (dependency injection pattern, all compoments written by my team). First of them listens for connections, spawns new thread

Re: Questions about installing APR

2010-12-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mark, On 12/7/2010 12:55 PM, Mark Eggers wrote: man pkg-config From the description of pkg-config: The pkg-config program is used to retrieve information about installed libraries in the system. It is typically used to compile and link

Re: how to enable Tomcat to handle proprietary TCP streams (non-http data)

2010-12-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Łukasz, On 12/8/2010 2:23 PM, Łukasz Tołwiński wrote: I'm not sure how to reply to mailing list (am I replying to you or tomcat.users ? ) You succeeded in replying to me, but it's more appropriate to reply to the list. I'm still wondering what

HTTP status 404

2010-12-08 Thread Lava Saleem
Hi everyone, I have a single page html file with java script embadded in it, I have created a war file for it and deployed it successfully but when I click on the page I get the below error, the structure of my war file is the following webapp -- filename -- WEB-INF-- filename.htm + web.xml +

Re: HTTP status 404

2010-12-08 Thread Victor Kabdebon
I might be wrong but maybe you need to set something in your web.xml to deliver static files. (basically Tomcat is not designed to run static html files, you can use a combination of Apache serveur + tomcat serveur to do that). I strongely recommand you to use an IDE such as Netbeans, create a

Re: HTTP status 404

2010-12-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Lava, Didn't you ask this same question the day before yesterday? Have you read all the replies and questions? On 12/8/2010 2:39 PM, Lava Saleem wrote: I have a single page html file with java script embadded in it, I have created a war file for

Re: HTTP status 404

2010-12-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Victor, On 12/8/2010 2:45 PM, Victor Kabdebon wrote: I might be wrong but maybe you need to set something in your web.xml to deliver static files. (basically Tomcat is not designed to run static html files, you can use a combination of Apache

Re: how to enable Tomcat to handle proprietary TCP streams (non-http data)

2010-12-08 Thread razor
So i can just start my own thread (threads) for receiving non-http data (where to put initialization/starting stuff? as a new servlet ? ) and then my code will put received data in some 'public' synchronized queue/collection or database (like HSQLDB) and other threads/modules (and again,

Re: HTTP status 404

2010-12-08 Thread David Smith
I might be wrong but maybe you need to set something in your web.xml to deliver static files. (basically Tomcat is not designed to run static html files, you can use a combination of Apache serveur + tomcat serveur to do that). Sorry but that's just not correct. Any file in the webapp, but

Re: HTTP status 404

2010-12-08 Thread Victor Kabdebon
Christopher, Yes but using tomcat to server html files looks to me like using a hammer to kill a fly. Anyway everybody is free to do what he wants ! Concerning the IDE, its advantage is to be automatic, but in a way it adds an extra layer of difficulty... Victor http://www.voxnucleus.fr

Re: HTTP status 404

2010-12-08 Thread Victor Kabdebon
Sorry if I didn't write properly what I wanted to say, but what I was saying is just that if you want to serve only static html files there are many other simpler solutions to do that, that's all. Again even I use it for example to serve .css, .js files on my server so I agree it is 100 % possible

Separte http connector for 2 apps.

2010-12-08 Thread shrikant patel
Hi Experts, I have 2 applications call it app1 and app2 deployed on the same tomcat server (6.0.18). The external client use both of these apps. Right now both the apps use same http connector on port 8080. So threads and corresponding thread setting (like maxThreads, acceptCounts etc) associated

Re: HTTP status 404

2010-12-08 Thread David Smith
webapp -- filename -- WEB-INF-- filename.htm + web.xml + META-INF + classes + lib If I read this right, 'filename.htm' is being stored in webapp/filename/WEB-INF/filename.htm inside your .war file. FWIW, WEB-INF has no special meaning except in the top level of your .war archive A .war

Re: HTTP status 404

2010-12-08 Thread Hassan Schroeder
On Wed, Dec 8, 2010 at 12:05 PM, David Smith david.sm...@cornell.edu wrote: If you wanted to get filename.htm with the structure I think you are describing, you should be requesting /$WEBAPP/webapp/filename/WEB-INF/filename.htm Which (thankfully) won't work, per the spec :-) -- Hassan

Re: HTTP status 404

2010-12-08 Thread Lava Saleem
Hi Chris Thanks for the reply Didn't you ask this same question the day before yesterday? Have you read all the replies and questions? No this one is a different question yes I have read the replies and went through the documentation What does all that mean? Are those file paths? Are they

Re: HTTP status 404

2010-12-08 Thread Mark Eggers
Lava, Please read the following: http://tomcat.apache.org/tomcat-6.0-doc/appdev/deployment.html Pay particular attention to: http://tomcat.apache.org/tomcat-6.0-doc/appdev/deployment.html#Standard_Directory_Layout (please note the above link is line-wrapped) Here's an example. Each line

Re: HTTP status 404

2010-12-08 Thread André Warnier
Lava Saleem wrote: Hi everyone, I have a single page html file with java script embadded in it, I have created a war file for it and deployed it successfully but when I click on the page I get the below error, the structure of my war file is the following webapp -- filename -- WEB-INF--

RE: enforcing SSL only for external clients

2010-12-08 Thread Aggarwal, Ajay
Thanks to all who have given different suggestions. Binding HTTP (port 80) to 127.0.0.1 and HTTPS (port 443) to external/public IP will not work for me. My situation is slightly more complicated. For external clients, I want to enforce SSL only on part of my application (certain URLs) not all.

Re: enforcing SSL only for external clients

2010-12-08 Thread André Warnier
Aggarwal, Ajay wrote: Thanks to all who have given different suggestions. Binding HTTP (port 80) to 127.0.0.1 and HTTPS (port 443) to external/public IP will not work for me. My situation is slightly more complicated. Now why did I guess that already ? Probably the experience of

Re: enforcing SSL only for external clients

2010-12-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, On 12/8/2010 5:01 PM, André Warnier wrote: Aggarwal, Ajay wrote: For external clients, I want to enforce SSL only on part of my application (certain URLs) not all. I will look into URL Rewrite as suggested by Nicholas. Mixing SSL and

RE: enforcing SSL only for external clients

2010-12-08 Thread Aggarwal, Ajay
Most of the application will be over SSL for external clients. There is one part where the clients may upload or download a huge file over HTTP which I don't want to go through SSL. I am thinking uploading/downloading these huge files over SSL will create lot of stress on the server.

Re: Separte http connector for 2 apps.

2010-12-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Shrikant, On 12/8/2010 3:03 PM, shrikant patel wrote: So threads and corresponding thread setting (like maxThreads, acceptCounts etc) associated with connectors are shared between the 2 apps. That means if the traffic increase for app1 and request

Re: Tomcat dying on its own

2010-12-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Victor, On 12/6/2010 3:47 PM, Victor Kabdebon wrote: Your Linux may also be involved. If you have some weird configuration of your system, it may kill/shutdown some services / applications. If it's the Linux OOM killer, you should get a syslog

Re: Tomcat dying on its own

2010-12-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mark, On 12/6/2010 3:49 PM, Mark Thomas wrote: On 06/12/2010 20:44, Guillaume Carbonneau wrote: It happens every day or so. Nothing happens before in the log... I'm logging the requests but tomcat dies when there is no traffic it seems. I even

Re: enforcing SSL only for external clients

2010-12-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ajay, On 12/8/2010 5:24 PM, Aggarwal, Ajay wrote: Most of the application will be over SSL for external clients. There is one part where the clients may upload or download a huge file over HTTP which I don't want to go through SSL. I am thinking

Re: Setting listings=true on a per context basis

2010-12-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Fergus, On 12/7/2010 9:27 AM, Fergus McMenemie wrote: Thanks for the response. Other than reading the 300 page servlet spec is there a quicker way to accomplish what I want. Of the 354 pages of the Servlet Spec 2.5, only pages 19-154 are worth

Re: java thread open after Tomcat shutting down

2010-12-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Pix, On 12/7/2010 5:13 AM, pix_siro wrote: # give application 5 seconds to stop itself sleep 2 Fail - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

Re: enforcing SSL only for external clients

2010-12-08 Thread André Warnier
Aggarwal, Ajay wrote: Most of the application will be over SSL for external clients. There is one part where the clients may upload or download a huge file over HTTP which I don't want to go through SSL. I am thinking uploading/downloading these huge files over SSL will create lot of stress

Re: Tomcat dying on its own

2010-12-08 Thread Mark Thomas
On 08/12/2010 22:38, Christopher Schultz wrote: Mark, On 12/6/2010 3:49 PM, Mark Thomas wrote: On 06/12/2010 20:44, Guillaume Carbonneau wrote: It happens every day or so. Nothing happens before in the log... I'm logging the requests but tomcat dies when there is no traffic it seems. I

Re: Tomcat dying on its own

2010-12-08 Thread André Warnier
Mark Thomas wrote: On 08/12/2010 22:38, Christopher Schultz wrote: Mark, On 12/6/2010 3:49 PM, Mark Thomas wrote: On 06/12/2010 20:44, Guillaume Carbonneau wrote: It happens every day or so. Nothing happens before in the log... I'm logging the requests but tomcat dies when there is no

deploy log4j

2010-12-08 Thread cpanon
Hello I have an app that work perfectly in my IDE(JBuilder05, yes I know but it work fine), but on deployment I believe it is not reading the log4j with this error: java.lang.NullPointerException at java.util.Properties$LineReader.readLine(Unknown Source) followed by log4j:WARN No appenders

Re: deploy log4j

2010-12-08 Thread Mark Eggers
You don't say the following: Tomcat version JRE/JDK version Platform (OS and version) That being said, I use log4j (with or without Apache commons logging) for nearly every web application I run on Tomcat. Short answer: You don't manually read in your properties file with log4j. Read a

uniqueId of StaticMember

2010-12-08 Thread ASHOK PORALU
Hello, What exactly the uniqueId of StaticMember class? How is it being used in implementation? Can multiple static nodes have same uniqueId? Any pointers? Thanks,

Re: Setting listings=true on a per context basis

2010-12-08 Thread Fergus McMenemie
Chris, Thanks very much! On Wed, 08 Dec 2010 17:48:31 -0500, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Fergus, On 12/7/2010 9:27 AM, Fergus McMenemie wrote: Thanks for the response. Other than reading the 300 page servlet spec