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 bran

Re: Problems with logging.properties

2010-10-20 Thread Edson Carlos Ericksson Richter
Thanks, Using only the package: org.springframework.beans.factory.level=WARNING to define the level worked really well. Regards, Edson. Em 20/10/2010 14:54, Jason Britton escreveu: Have you tried being less than class specific in your log level assignment? Instead of org.springframewor

Recursive dependency between the tomcat-catalina-ha and tomcat-catalina

2010-10-20 Thread Ivan
Hi, From the pom file of tomcat-catalina-ha, it depends on the tomcat-catalina. But one class HTMLManagerServlet in the tomcat-catalina has a reference to a class BackupManager in the tomcat-catalina-ha. Is there a way to remove the recursive dependency between those two components ? By th

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. The

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.I

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 5.

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: tomcat 6.0.29 hung

2010-10-20 Thread Jason Britton
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.I won't post entire stacktraces here but almo

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

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 not

Re: Securing A Directory Listing

2010-10-20 Thread Edson Carlos Ericksson Richter
Sure, there are more HTTP methods that someone would want to protect from. Thanks for pointing out. Regards, Edson. Em 20/10/2010 18:51, Mark Thomas escreveu: On 20/10/2010 15:09, Edson Carlos Ericksson Richter wrote: Secure Area /mysecurearea GET Bad advice. Don't put the http-method in

Re: Securing A Directory Listing

2010-10-20 Thread Mark Thomas
On 20/10/2010 15:09, Edson Carlos Ericksson Richter wrote: > > Secure Area > > /mysecurearea > GET > Bad advice. Don't put the http-method in there. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For add

Re: Source Address based Realms

2010-10-20 Thread Srinivasa Rao.Kandula
I'm providing my comments assuming that you are a Java developer. 1. Do you see any issues using a Servlet filter for doing this? 2. You could use realms if you can access ServletRequest object which will give you the IP address of the client. But I don't think you can access Se

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. Proce

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: SecureAreaConstraint Secure Area /mysecurearea GET Only authorized users. MY_USERS NONE BASIC NAME_YOUR_REALM Access to secure area. MY_USERS (be sure

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 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 wrote: > On 20/10/2010 11:50, Keith Masten wrote: > > I would like to

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: 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=jsse&l=1 > it's not in the Javadoc for o

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 searche

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?

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

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: > > port="8443" maxThreads="200" >scheme="https" secure="true" SSLEnabled="true" >keystoreFile="${user.home}/.keystore" keystor

Re: Securing A Directory Listing

2010-10-20 Thread Mark Thomas
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? Mark > I have tried many variations in the web.xml using file based realms and none > of these have wor

JSSE sslProtocol accepted values

2010-10-20 Thread msinatl
Hi, If I'm using the sample SSL connector configuration that comes with Tomcat 6.0.28: Where can I find a list of the acceptable values (besides "TLS") for sslProtocol if I'm using the (default) JSSE connector? Is my only option to use the APR connector if I want to offer support for SSL v3.0

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 org.springframework.beans.factory.xml.XmlB

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

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 Ver

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

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 16:46, Oliver Wulff wrote: > > 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 retriev

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 S

Container managed security and Proxy support

2010-10-20 Thread Oliver Wulff
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 whether the u

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 y

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

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 tr

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: "file:///C:/Users/Edson/.netbeans/6.9/apache-tomcat-6.0.26_base/logs/somethingelse.201

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 ag

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 consid

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 m

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

2010-10-20 Thread Martin O'Shea
Well, I believe I've identified and run the thread dumps as suggested. I am using default Quartz properties without any customisations of my own in a dedicated properties file. The job is set to print out a message every minute and appears to be fine. This is an extract from the first dump where T

Tomcat on Linux

2010-10-20 Thread Viju Varkey
Hi, I am using jdk 1.4 and Ant 1.8.0 for building Tomcat 5.5.31 on Linux. But the build fails with the following error: build-static: [style] Warning: the task name

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: 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 mailto:p...@pidster.com>> > > On 19/10/2010 08:51, Wesley Acheson wrote: > > On Tue, Oct 19, 2010 at 3:54 AM, ganu MailList > mailto:ganu4maill...@gmail.com>> wrote: > >> I need transmit one java project to the WAR package

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

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

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 org.apac

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