Re: Is there any JMX property which indicates no requests is being processed?

2010-10-22 Thread Pid
On 21/10/2010 21:58, Ruslan Gainutdinov wrote: Hello! Is there any JMX property which indicates no requests is being processed, and no requests are waiting in the queue? Implement the Executor element, then examine it using JConsole. You'll see the properties you need. p I am trying to

Re: javax.naming.NamingException: Cannot create resource instance

2010-10-22 Thread Pid
On 22/10/2010 06:40, Aparna1 V wrote: oh! but i need to connect to both those datasources. Is this not possible in tomcat6? Yes it is possible. And on top of that, you've got two ResourceLink name attributes pointing to the same class with different names. This is irrelevant. The type

Re: Servlet throws exceptions

2010-10-22 Thread Pid
On 22/10/2010 03:41, Thomas Hauk wrote: As per my previous post, I'm setting up Tomcat 6.0.24 with Apache on Mac OS X Server 10.5, using the built-in versions that come with the OS, and Java 1.5.0_26 (the latest from Apple, just released). When I invoke a specific operation in my servlet

Re: Servlet throws exceptions

2010-10-22 Thread Thomas Hauk
On Oct 22, 2010, at 12:12 AM, Pid wrote: You don't need the window server for this. I didn't think so. Whatever that is. :) Add -Djava.awt.headless=true to the environment variable CATALINA_OPTS. I think that's worked, although I'll do a few more restarts to be sure. Thanks! For future

Urgent: how to run htaccess on tomcat

2010-10-22 Thread abhishek jain
Hi friends, I am in middle of urgent production issue. Can some one help me how to allow .htaccess on tomcat i have a virtualhost on apache with tomcat installed. Apache 2.x tomcat 5.5.x struts 1.2 Pl. help asap. Thanks -- Thanks and kind Regards, Abhishek jain

Re: Urgent: how to run htaccess on tomcat

2010-10-22 Thread abhishek jain
On Fri, Oct 22, 2010 at 3:05 PM, abhishek jain abhishek.netj...@gmail.comwrote: Hi friends, I am in middle of urgent production issue. Can some one help me how to allow .htaccess on tomcat i have a virtualhost on apache with tomcat installed. Apache 2.x tomcat 5.5.x struts 1.2 Pl. help

Re: Rotating Tomcat-Logs

2010-10-22 Thread Tobias Crefeld
Am Thu, 21 Oct 2010 11:13:53 +0200 schrieb André Warnier a...@ice-sa.com: In addition, it is somewhat of a moving target, since Linux distributions seem to each superpose their own schemes to the standard Tomcat scheme (like using jsvc, and/or re-directing to SYSLOG e.g.). Today this is

Re: Urgent: how to run htaccess on tomcat

2010-10-22 Thread André Warnier
abhishek jain wrote: On Fri, Oct 22, 2010 at 3:05 PM, abhishek jain abhishek.netj...@gmail.comwrote: Hi friends, I am in middle of urgent production issue. Can some one help me how to allow .htaccess on tomcat i have a virtualhost on apache with tomcat installed. Apache 2.x tomcat 5.5.x

Re: Urgent: how to run htaccess on tomcat

2010-10-22 Thread abhishek jain
On Fri, Oct 22, 2010 at 3:31 PM, André Warnier a...@ice-sa.com wrote: abhishek jain wrote: On Fri, Oct 22, 2010 at 3:05 PM, abhishek jain abhishek.netj...@gmail.comwrote: Hi friends, I am in middle of urgent production issue. Can some one help me how to allow .htaccess on tomcat i have

Login page timeout

2010-10-22 Thread Gabriele Bulfon
Hello, I'm trying to figure out how to solve a very stupid problem. I have a solution, but I want to know if there is some other better ways. I have a webapp configured with jaas security. The login form page is configured and the security check works perfectly. But, if a user starts the browser

Tomcat cluster error (null pointer except) on NioReceiver.java:266

2010-10-22 Thread Stefano Suzzi
Hi, i've 3 tomcat 6.0.26 on 3 different IBM machines linux RedHat el 5, kernel.osrelease = 2.6.18-194.el5 . The 3 tomcat are giving an error that cannot replicate the session, of course I cannot replicate the error in my devel systems that work perfectly with the same configuration. In anycase

Re: Urgent: how to run htaccess on tomcat

2010-10-22 Thread André Warnier
abhishek jain wrote: On Fri, Oct 22, 2010 at 3:31 PM, André Warnier a...@ice-sa.com wrote: abhishek jain wrote: On Fri, Oct 22, 2010 at 3:05 PM, abhishek jain abhishek.netj...@gmail.comwrote: Hi friends, I am in middle of urgent production issue. Can some one help me how to allow

Re: javax.naming.NamingException: Cannot create resource instance

2010-10-22 Thread Aparna1 V
It fails to parse the server.xml when i declare more than one resource under the Context element. Please help me out... From: Pid p...@pidster.com To: Tomcat Users List users@tomcat.apache.org Date: 10/22/2010 12:37 PM Subject: Re: javax.naming.NamingException: Cannot create resource

Re: javax.naming.NamingException: Cannot create resource instance

2010-10-22 Thread Pid
On 22/10/2010 11:24, Aparna1 V wrote: It fails to parse the server.xml when i declare more than one resource under the Context element. You really, really need to read the v6 docs. http://tomcat.apache.org/tomcat-6.0-doc/appdev/index.html

Re: Login page timeout

2010-10-22 Thread Mark Thomas
On 22/10/2010 05:15, Gabriele Bulfon wrote: Hello, I'm trying to figure out how to solve a very stupid problem. I have a solution, but I want to know if there is some other better ways. I have a webapp configured with jaas security. The login form page is configured and the security check

Re: Login page timeout

2010-10-22 Thread Jason Britton
Top result doing google search http://www.mindspill.org/kiwiThread$msgnum=207 See Mark's response bottom of page: https://issues.apache.org/bugzilla/show_bug.cgi?id=3839#c14 On Fri, Oct 22, 2010 at 3:15 AM, Gabriele Bulfon gbul...@sonicle.comwrote: Hello, I'm trying to figure out how to

Re: Urgent: how to run htaccess on tomcat

2010-10-22 Thread abhishek jain
On Fri, Oct 22, 2010 at 3:52 PM, André Warnier a...@ice-sa.com wrote: abhishek jain wrote: On Fri, Oct 22, 2010 at 3:31 PM, André Warnier a...@ice-sa.com wrote: abhishek jain wrote: On Fri, Oct 22, 2010 at 3:05 PM, abhishek jain abhishek.netj...@gmail.comwrote: Hi friends, I am in

RE: Login page timeout

2010-10-22 Thread Martin Gainty
can you verify this error is corrected with TC 7.0.5? thanks, Martin __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir

SSL Certificate : Unable to configure Tomcat server.xml

2010-10-22 Thread Richard da Silva
Hi all, I've been fighting with a very silly problem all day. I have an instance of Sun Identity Manager (IDM) running on a Tomcat server. To be able to use some of its Resources features, we have had to create and install SSL Certificates. Using some of the online documentation on the

Re: SSL Certificate : Unable to configure Tomcat server.xml

2010-10-22 Thread Pid *
On 22 Oct 2010, at 13:54, Richard da Silva roman_s...@yahoo.com wrote: Hi all, I've been fighting with a very silly problem all day. I have an instance of Sun Identity Manager (IDM) running on a Tomcat server. To be able to use some of its Resources features, we have had to create and

Re: tomcat 6.0.29 hung

2010-10-22 Thread Jason Britton
So while working on reproducing tomcat webapp hang as earlier discussed, a different tomcat serving up a single webapp on same box also stopped responding, jvm for this tomcat is still running but when trying to reach it via browser I get error page of unable to connect. Thread dumps for both

Re: Urgent: how to run htaccess on tomcat

2010-10-22 Thread Pid *
On 22 Oct 2010, at 10:36, abhishek jain abhishek.netj...@gmail.com wrote: Hi friends, I am in middle of urgent production issue. That's unfortunate. p Can some one help me how to allow .htaccess on tomcat i have a virtualhost on apache with tomcat installed. Apache 2.x tomcat 5.5.x

Re: Login page timeout

2010-10-22 Thread Pid *
It's not an error. p On 22 Oct 2010, at 13:51, Martin Gainty mgai...@hotmail.com wrote: can you verify this error is corrected with TC 7.0.5? thanks, Martin __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese

RE: tomcat 6.0.29 hung

2010-10-22 Thread Caldarale, Charles R
From: Jason Britton [mailto:jbritto...@gmail.com] Subject: Re: tomcat 6.0.29 hung My thoughts are this is the thread causing all the backup AJP Thread 1 RUNNABLE, sitting on socketRead0, Has locked 0x2aaad303cad0 (a com.acompany.model.customer.CustomerData) which almost all other

Re: Login page timeout

2010-10-22 Thread Gabriele Bulfon
Ok, my workaround will be a javascript code to run a timeout and reload the Login page, trying to reset the timeout when the user is typing. Gabriele Bulfon - Sonicle S.r.l. Tel +39 028246016 Int. 30 - Fax +39 028243880 Via Felice Cavallotti 16 - 20089, Rozzano - Milano - ITALY

[ANN] Apache Tomcat 7.0.4 beta released

2010-10-22 Thread Mark Thomas
The Apache Tomcat team announces the immediate availability of Apache Tomcat 7.0.4 beta. Apache Tomcat 7.0 includes new features over Apache Tomcat 6.0, including support for the new Servlet 3.0, JSP 2.2 and EL 2.2 specifications, web application memory leak detection and prevention, improved

Re: Securing A Directory Listing

2010-10-22 Thread Keith Masten
Configured the web.xml for BASIC authentication. ?xml version=1.0 encoding=ISO-8859-1? web-app xmlns=http://java.sun.com/xml/ns/j2ee; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd;

Re: tomcat 6.0.29 hung

2010-10-22 Thread Jason Britton
Hi Chuck - How the application is doing its locking is definitely exacerbating the problem of the thread just sitting on that socket read to the database and never getting to release the lock, this is just one particular application out of two different tomcats that are locking up with same core

Re: SSL Certificate : Unable to configure Tomcat server.xml

2010-10-22 Thread Richard da Silva
You need to specify that it's an HTTP connector, rather than say an AJP connector. Check your configuration against the docs. Sorry, I don't understand what you said. Specify this where, exactly?  And, which docs should I check? I've been over everything, and have found nothing remotely

Re: SSL Certificate : Unable to configure Tomcat server.xml

2010-10-22 Thread Pid
On 22/10/2010 14:04, Pid * wrote: On 22 Oct 2010, at 13:54, Richard da Silva roman_s...@yahoo.com wrote: Hi all, I've been fighting with a very silly problem all day. I have an instance of Sun Identity Manager (IDM) running on a Tomcat server. To be able to use some of its Resources

Re: tomcat 6.0.29 hung

2010-10-22 Thread Pid
On 22/10/2010 15:42, Jason Britton wrote: Hi Chuck - How the application is doing its locking is definitely exacerbating the problem of the thread just sitting on that socket read to the database and never getting to release the lock, this is just one particular application out of two

Question

2010-10-22 Thread Marshall, Marc
Hi, I am a new user to Tomcat and am converting from Websphere server to a Tomcat 6.0 server running out of eclipse. The Websphere server has Environment variables in java:comp/env/EnvironmentVariables. After looking at the context.xml documentation I had assumed that I could place them in

Re: tomcat 6.0.29 hung

2010-10-22 Thread Jason Britton
one of two of the hanging applications are doing db connection validation. The application using DBCP configures it's SharedPoolDataSource using setValidationQuery(select 'validationQuery' from dual); setTestOnBorrow(true); Funny enough, thread stacktrace below shows

Re: Question

2010-10-22 Thread Pid
On 22/10/2010 16:27, Marshall, Marc wrote: Hi, I am a new user to Tomcat and am converting from Websphere server to a Tomcat 6.0 server running out of eclipse. The Websphere server has Environment variables in java:comp/env/EnvironmentVariables. After looking at the context.xml

Re: Missing property keepAliveTimeout on Connector in 6.0.29?

2010-10-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, On 10/21/2010 3:30 PM, Caldarale, Charles R wrote: From: Christopher Schultz [mailto:ch...@christopherschultz.net] Subject: Missing property keepAliveTimeout on Connector in 6.0.29? I'm updating all my software to re-do my performance

Re: SSL Certificate : Unable to configure Tomcat server.xml

2010-10-22 Thread Stefano Suzzi
I use this in my configuration and it works, i think you miss the protocol and scheme attribute. Ciao. Stefano. Connector port=8443 protocol=HTTP/1.1 SSLEnabled=true maxThreads=150 scheme=https secure=true clientAuth=false sslProtocol=TLS

RE: Question

2010-10-22 Thread Marshall, Marc
I am defining each of the Environment Variables in an Environment Tag inside of the context.xml like: Context ... Environment name=email.abc.signup.subject value=Sign Up for the ABC Plan type=java.lang.String override=false / ... /Context I am getting an nullpoint exception when

Re: tomcat 6.0.29 hung

2010-10-22 Thread Dave Mansfield
Jason Britton wrote: So while working on reproducing tomcat webapp hang as earlier discussed, a different tomcat serving up a single webapp on same box also stopped responding, jvm for this tomcat is still running but when trying to reach it via browser I get error page of unable to connect.

RE: SSL Certificate : Unable to configure Tomcat server.xml

2010-10-22 Thread Caldarale, Charles R
From: Stefano Suzzi [mailto:s.su...@protesa.it] Subject: Re: SSL Certificate : Unable to configure Tomcat server.xml i think you miss the protocol and scheme attribute. The OP clearly had the scheme specified, and the protocol defaults to HTTP/1.1. Start again. - Chuck THIS COMMUNICATION

RE: Question

2010-10-22 Thread Caldarale, Charles R
From: Marshall, Marc [mailto:marc.marsh...@sug.com] Subject: RE: Question I am defining each of the Environment Variables in an Environment Tag inside of the context.xml like: Context ... Environment name=email.abc.signup.subject value=Sign Up for the ABC Plan

RE: Question

2010-10-22 Thread Marshall, Marc
Is there something that I could add to my context.xml file to add the EnvironmentVariables to my directory tree? I am attempting to keep from modifying my code because it runs in Websphere in production and I am using Tomcat in my local environment. Thanks in advance for any help. Sorry next

Re: tomcat 6.0.29 hung

2010-10-22 Thread Jason Britton
Thanks for the insight Dave. I have several threads sitting spinning on socket read at the moment and dba reports zero database locks of any kind on database they're trying to read from (a qa database). Quite baffled as to what's happening to these database connections and why every now and then

RE: Question

2010-10-22 Thread Caldarale, Charles R
From: Marshall, Marc [mailto:marc.marsh...@sug.com] Subject: RE: Question Is there something that I could add to my context.xml file to add the EnvironmentVariables to my directory tree? You should be able to code the Environment elements this way: Context ... Environment

Re: tomcat 6.0.29 hung

2010-10-22 Thread Dave Mansfield
This might be related, and don't know if you've read it - it's a bit out of date, and depends on versions of stuff you're using, Jason. http://forums.sun.com/thread.jspa?threadID=343023start=15tstart=0 -- D Mansfield Jason Britton wrote: Thanks for the insight Dave. I have several threads

Re: tomcat 6.0.29 hung

2010-10-22 Thread Pid
On 22/10/2010 16:47, Jason Britton wrote: one of two of the hanging applications are doing db connection validation. The application using DBCP configures it's SharedPoolDataSource using setValidationQuery(select 'validationQuery' from dual); That looks weird. Is that really

Re: Tomcat cluster error (null pointer except) on NioReceiver.java:266

2010-10-22 Thread Konstantin Kolinko
2010/10/22 Stefano Suzzi s.su...@protesa.it: Hi, i've 3 tomcat 6.0.26  on 3 different IBM machines linux RedHat  el 5, kernel.osrelease = 2.6.18-194.el5 . The 3 tomcat are giving an error that cannot replicate the session, of course I cannot replicate the error in my devel systems that work

Re: SSL Certificate : Unable to configure Tomcat server.xml

2010-10-22 Thread Pid
On 22/10/2010 19:02, Caldarale, Charles R wrote: From: Stefano Suzzi [mailto:s.su...@protesa.it] Subject: Re: SSL Certificate : Unable to configure Tomcat server.xml i think you miss the protocol and scheme attribute. The OP clearly had the scheme specified, and the protocol defaults to

Re: Rotating Tomcat-Logs

2010-10-22 Thread Konstantin Kolinko
2010/10/21 André Warnier a...@ice-sa.com: Anyway, I am interested in finding a scheme, based on JULI, and which : - would generally-speaking start by directing ALL Tomcat logs to one single file, NOT rotated by JULI You can use the java.util.logging.FileHandler class provided by JRE. -

RE: tomcat 6.0.29 hung

2010-10-22 Thread Caldarale, Charles R
From: Dave Mansfield [mailto:dmansfi...@sbcglobal.net] Subject: Re: tomcat 6.0.29 hung This might be related, and don't know if you've read it - it's a bit out of date, and depends on versions of stuff you're using, Jason.

Re: Can not load daemon jsvc tomcat-juli.jar

2010-10-22 Thread Konstantin Kolinko
2010/10/21 Sánchez, José Manuel jmsanc...@ifoc.es: Environment: Tomcat 7.0.2 -  running on 32-bit 1 GB ram java version 1.6.0_21 Debian 2.6.26-2-686 -- Tomcat directory (manual installation) /srv/tomcat /srv/tomcat/bin/tomcat-juli.jar /srv/tomcat/bin/bootstrap.jar

Re: org.apache.tomcat.jni.Poll programming question

2010-10-22 Thread Konstantin Kolinko
2010/10/21 Francesc Oller francesc.ol...@upc.edu: I cannot say that I throughly know this. Most part of the below answers is just from reading the sources: 1.- call Poll.poll fails with: Poll.poll: Unknown error 4294847295 From Poll.java of Tomcat trunk: * @param descriptors Array

Upgradtion of tomcat and java version

2010-10-22 Thread rujin raj
Hi, My Company gave one assignment to upgrade the present setup. Herewith I explained my present setup. I am expecting your help and suggestion to finish this job. I have a HP Blade server with 2 CPU (Quad Core 3.166 GHz), 32 GB RAM and Windows 2008 Enterprise Server 64 bit with SP2. At