Re: Logging hostname/virutal name in the log

2010-10-20 Thread Konstantin Kolinko
2010/10/19 Mohit Anchlia mohitanch...@gmail.com: Currently we use proxy and x-forwarded. Proxy uses snat so when it gets logged we see something like: 10.128.1.5 65.204.229.11 - - [14/Oct/2010:22:29:49 -0700] POST /adi.cgi HTTP/1.1 200 753 10.128.1.5 is proxy's ip 65.204.229.11 is browser

How does Tomcat on Mac OS X Server handle requests to different domain names?

2010-10-20 Thread Thomas Hauk
I'm setting up a Mac OS X Server (10.5) machine, and that will include setting up Tomcat. The machine will be the host for at least two different domain names -- let's say myapp.example.com and myapp.anotherexample.com -- each of which will need to be hooked up to a different servlet. In other

Re: org.apache.tomcat.jni programming question

2010-10-20 Thread Francesc Oller
Ooopps, yes, I forgot it. Thanks, francesc El dc 20 de 10 de 2010 a les 06:50 +0200, en/na Mladen Turk va escriure: On 10/20/2010 01:21 AM, Francesc Oller wrote: Please what I am doing wrong? Socket.bind(s, addr); You need to tell the socket to listen after binding it to the

Java out of memory error

2010-10-20 Thread rujin raj
Hi all, In my tomcat application server frequently i am getting the java out of memory error. *Error:* 20 Oct, 2010 1:09:41 PM org.apache.tomcat.util.threads.ThreadPool$ControlRunnable run SEVERE: Caught exception (java.lang.OutOfMemoryError: unable to create new native thread) executing

Re: DBCP connections not in accordance with netstat output

2010-10-20 Thread Felix Schumacher
Hi Marc, Am Mittwoch, den 20.10.2010, 00:54 +0200 schrieb Marc Wilmots: Hi List, I installed Lambda Probe to debug a problem that I'm having with a Liferay portal (5.1.2): Tomcat: 6.0.26 with dbcp JDK: 1.6.0_18 DB: Oracle 10.2.0.4 (ojdbc14) RHEL 5.4 64Bits When launching a stress

Re: Java out of memory error

2010-10-20 Thread Pid
On 20/10/2010 09:15, rujin raj wrote: Hi all, In my tomcat application server frequently i am getting the java out of memory error. *Error:* 20 Oct, 2010 1:09:41 PM org.apache.tomcat.util.threads.ThreadPool$ControlRunnable run SEVERE: Caught exception (java.lang.OutOfMemoryError: unable

Re: How to write the web.xml file in WAR package

2010-10-20 Thread Pid
On 20/10/2010 02:33, ganu MailList wrote: 2010/10/19 Pid p...@pidster.com mailto:p...@pidster.com On 19/10/2010 08:51, Wesley Acheson wrote: On Tue, Oct 19, 2010 at 3:54 AM, ganu MailList ganu4maill...@gmail.com mailto:ganu4maill...@gmail.com wrote: I need transmit one

Re: How does Tomcat on Mac OS X Server handle requests to different domain names?

2010-10-20 Thread Pid
On 20/10/2010 07:51, Thomas Hauk wrote: I'm setting up a Mac OS X Server (10.5) machine, and that will include setting up Tomcat. The machine will be the host for at least two different domain names -- let's say myapp.example.com and myapp.anotherexample.com -- each of which will need to be

Re: Java out of memory error

2010-10-20 Thread rujin raj
Hi, 789 errors for only 81Mb sent seems a little high. Are you load testing or is this in production? Is there any modification required in configuration file? Thia is production machine. How can I test the load how much it will capable? How much memory does the machine have? The Physical

RE: Java out of memory error

2010-10-20 Thread Caldarale, Charles R
From: rujin raj [mailto:rujin...@gmail.com] Subject: Re: Java out of memory error Windows 2008 ent Server 64 bit is installed. Tomcat and JAVA are 32 bit You're never going to be able to run that many threads in a 32-bit process. Use a 64-bit JVM, or reduce the max threads count

RE: Tomcat on Linux

2010-10-20 Thread Caldarale, Charles R
From: Viju Varkey [mailto:viju.var...@gmail.com] Subject: Tomcat on Linux I am using jdk 1.4 and Ant 1.8.0 for building Tomcat 5.5.31 on Linux. You're going to be hard pressed to find anyone that cares about building Tomcat on a JDK level that hasn't been supported by Sun/Oracle for ages.

Re: Problems with logging.properties

2010-10-20 Thread Edson Carlos Ericksson Richter
By It works I want to mean, some changes works (like the filename), but the specific filters does not. Please advise. Edson. Em 19/10/2010 21:04, Edson Carlos Ericksson Richter escreveu: It works:

ssl setup in tomcat

2010-10-20 Thread Hemanth Gundlapudi
Hi ,   I am planning to setup secure connection in our environment which consist of apache webserver, tomcat ( two instances running on the same machine) which talks to a third party application maintained by third party vendor.   I have ssl.crt and ssl.key files in apache, in tomcat i have ca

Re: Tomcat memory leak error launching web app in NetBeans 6.9.1

2010-10-20 Thread Pid
On 20/10/2010 12:41, Martin O'Shea wrote: And then when I terminate the Quartz application, but leave Tomcat running, the second dump appears to be show no trace of these messages at all. So does this indicate that Quartz has shut down but only after my application has stopped within Tomcat,

Re: ssl setup in tomcat

2010-10-20 Thread Pid
On 20/10/2010 12:44, Hemanth Gundlapudi wrote: Hi , I am planning to setup secure connection in our environment which consist of apache webserver, tomcat ( two instances running on the same machine) which talks to a third party application maintained by third party vendor. What are your

Container managed security and Proxy support

2010-10-20 Thread Oliver Wulff
img src=http://zdownload.zurich.com/mailimages/ZHP_MailHeader.gif; / Hi there Different Realms are already provided by Tomcat to configure the authentication. This allows the application developer to use the standard Servlet API to retrieve security related informations like username and

RE: Tomcat memory leak error launching web app in NetBeans 6.9.1

2010-10-20 Thread Martin O'Shea
Thanks for this. I've copied the logs over to an incident in Quartz's forum so hopefully, I can get to the bottom of this issue. http://forums.terracotta.org/forums/posts/list/4341.page -Original Message- From: Pid [mailto:p...@pidster.com] Sent: 20 Oct 2010 16 37 To: Tomcat Users List

Re: Container managed security and Proxy support

2010-10-20 Thread Pid
On 20/10/2010 16:46, Oliver Wulff wrote: img src=http://zdownload.zurich.com/mailimages/ZHP_MailHeader.gif; / Hi there Different Realms are already provided by Tomcat to configure the authentication. This allows the application developer to use the standard Servlet API to retrieve

Re: Container managed security and Proxy support

2010-10-20 Thread Oliver Wulff
Thanks. To recap, I configure AJP13 with tomcatAuthentication equals to false but I still need the login-config and security-constraints in the web.xml... Where can I let tomcat know to which roles a user belongs to? Thanks Oliver

Re: Container managed security and Proxy support

2010-10-20 Thread Pid
On 20/10/2010 17:02, Oliver Wulff wrote: Thanks. To recap, I configure AJP13 with tomcatAuthentication equals to false but I still need the login-config and security-constraints in the web.xml... Where can I let tomcat know to which roles a user belongs to? That has to be done via Realm,

Securing A Directory Listing

2010-10-20 Thread Keith Masten
I would like to know how to secure a directory listing for read-only access. I have tried many variations in the web.xml using file based realms and none of these have worked. I attempted the BASIC and DIGEST method configurations. Any assistance provided would be greatly appreciated. Tomcat

RE: Source Address based Realms

2010-10-20 Thread Aggarwal, Ajay
bump... looking for ideas... anybody? -Original Message- From: Aggarwal, Ajay [mailto:ajay.aggar...@stratus.com] Sent: Tuesday, October 19, 2010 10:29 AM To: Tomcat Users List Subject: RE: Source Address based Realms Sorry. I meant... Is there another way to achieve this, i.e. without

Re: Problems with logging.properties

2010-10-20 Thread Jason Britton
Have you tried being less than class specific in your log level assignment? Instead of org.springframework.beans.factory.config.FieldRetrievingFactoryBean.level = WARNING org.springframework.beans.factory.support.DefaultListableBeanFactory.level = WARNING

Re: JSSE sslProtocol accepted values

2010-10-20 Thread Mark Thomas
On 20/10/2010 13:21, msinatl wrote: Hi, If I'm using the sample SSL connector configuration that comes with Tomcat 6.0.28: Connector port=8443 maxThreads=200 scheme=https secure=true SSLEnabled=true keystoreFile=${user.home}/.keystore

Re: JSSE sslProtocol accepted values

2010-10-20 Thread msinatl
...specifically? Call me slow, but I'm not having a lot of luck with keyword searches, and it's not in the Javadoc for org.apache.coyote.http11.Http11Protocol. Mark Thomas wrote: On 20/10/2010 13:21, msinatl wrote: Hi, If I'm using the sample SSL connector configuration that comes

RE: Securing A Directory Listing

2010-10-20 Thread Caldarale, Charles R
From: Mark Thomas [mailto:ma...@apache.org] Subject: Re: Securing A Directory Listing On 20/10/2010 11:50, Keith Masten wrote: I would like to know how to secure a directory listing for read-only access. OK, I'll bite. How is a directory listing anything other than read-only? I was

Re: JSSE sslProtocol accepted values

2010-10-20 Thread Ken Bowen
? Top hit googling for JSSE =SSE Reference Guide for the J2SDK, v 1.4.2 http://download.oracle.com/javase/1.4.2/docs/guide/security/jsse/JSSERefGuide.html On Oct 20, 2010, at 3:35 PM, msinatl wrote: ...specifically? Call me slow, but I'm not having a lot of luck with keyword searches,

RE: JSSE sslProtocol accepted values

2010-10-20 Thread Caldarale, Charles R
From: msinatl [mailto:msilverbo...@cfglife.com] Subject: Re: JSSE sslProtocol accepted values Call me slow, but I'm not having a lot of luck with keyword searches What's the first link that pops up when you Google for JSSE? http://lmgtfy.com/?q=jssel=1 it's not in the Javadoc for

Re: JSSE sslProtocol accepted values

2010-10-20 Thread msinatl
http://download-llnw.oracle.com/javase/6/docs/technotes/guides/security/StandardNames.html#SSLContext Thanks. Ken Bowen wrote: ? Top hit googling for JSSE =SSE Reference Guide for the J2SDK, v 1.4.2 http://download.oracle.com/javase/1.4.2/docs/guide/security/jsse/JSSERefGuide.html

Re: Securing A Directory Listing

2010-10-20 Thread Keith Masten
I left out something Mark, so I am glad to chose to comment on this. I want to password protect the directory, so that consumers will be required to login for viewing of this data. On Wed, Oct 20, 2010 at 2:29 PM, Mark Thomas ma...@apache.org wrote: On 20/10/2010 11:50, Keith Masten wrote: I

RE: Securing A Directory Listing

2010-10-20 Thread Caldarale, Charles R
From: Keith Masten [mailto:spmdt...@gmail.com] Subject: Re: Securing A Directory Listing I want to password protect the directory, so that consumers will be required to blogin for viewing of this data. Ok, that makes more sense. Can you post your webapp's WEB-INF/web.xml so we can see

Re: Securing A Directory Listing

2010-10-20 Thread Edson Carlos Ericksson Richter
It's easy: 1) Setup a Realm (http://tomcat.apache.org/tomcat-6.0-doc/realm-howto.html) 2) In web.xml, add security entries like: security-constraint display-nameSecureAreaConstraint/display-name web-resource-collection web-resource-nameSecure Area/web-resource-name description/

tomcat 6.0.29 hung

2010-10-20 Thread Jason Britton
I have a tomcat instance hanging up (and currently still hung up) and would really appreciate pointers on how to debug further. A belated thanks to Konstantin for the info on kill -QUIT pid to retrieve thread dumps But I was only able to pull thread dumps on the hung process using jvisualvm.

RE: Securing A Directory Listing

2010-10-20 Thread Prastein, Rebeccah H
For the benefit of the original poster: If you don't specify any http-methods for the web-resource-collection, the default behavior is that all methods are protected. If you specify one or more http-methods, the behavior is that those specified are protected, and any that are not specified are

Re: tomcat 6.0.29 hung

2010-10-20 Thread Pid
On 20/10/2010 21:37, Jason Britton wrote: I have a tomcat instance hanging up (and currently still hung up) and would really appreciate pointers on how to debug further. A belated thanks to Konstantin for the info on kill -QUIT pid to retrieve thread dumps But I was only able to pull thread

org.apache.tomcat.jni.Poll programming question

2010-10-20 Thread Francesc Oller
Again, this code doesn't work: import org.apache.tomcat.jni.*; import java.util.*; public class ExampleAPR { public static void main(String[] args) { int err = 0; try { // Initialize APR library Library.initialize(null); // Create pool long pool

Re: DBCP connections not in accordance with netstat output

2010-10-20 Thread Phil Steitz
On 10/20/10 5:32 AM, Felix Schumacher wrote: Hi Marc, Am Mittwoch, den 20.10.2010, 00:54 +0200 schrieb Marc Wilmots: Hi List, I installed Lambda Probe to debug a problem that I'm having with a Liferay portal (5.1.2): Tomcat: 6.0.26 with dbcp JDK: 1.6.0_18 DB: Oracle 10.2.0.4 (ojdbc14) RHEL

Re: tomcat 6.0.29 hung

2010-10-20 Thread Phil Steitz
On 10/20/10 7:11 PM, Jason Britton wrote: Thankfully when I pulled up jvisualvm on the server and issued thread dumps, even though the stacktraces for the threads did not come up within jvisualvm the thread stacktraces were dumped to stdout. So I did get thread stacktraces in my tomcat log.

Re: tomcat 6.0.29 hung

2010-10-20 Thread Jason Britton
commons-dbcp-1.2.1.jar and commons-pool-1.3.jar I have a connection handler class that I wrote around a static instance of SharedPoolDataSource. SharedPoolDataSource gets initialized in static block. Locking shown in stacktrace is occurring within aSharedPoolDataSource.getConnection() call.

Re: How does Tomcat on Mac OS X Server handle requests to different domain names?

2010-10-20 Thread Thomas Hauk
On Oct 20, 2010, at 3:22 AM, Pid wrote: Presumably by 'different servlet' you mean different 'web application which contains one or more servlets'? I'm not sure what kind of distinction you're trying to get at here, so let me phrase what I need in another way. I have brandedapp1.war and