RE: Upgradtion of tomcat and java version

2010-10-22 Thread Caldarale, Charles R
> From: André Warnier [mailto:a...@ice-sa.com] > Subject: Re: Upgradtion of tomcat and java version > rujin raj wrote: > > > > 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.

Re: Upgradtion of tomcat and java version

2010-10-22 Thread André Warnier
rujin raj wrote: 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. ... What, all of us ? How much are you paying ? -

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 prese

Threads blocked by HttpServletRequest#getAttribute("javax.servlet.request.X509Certificate") on Tomcat 6.0.10 with OpenJDK 1.6.0

2010-10-22 Thread Yong Yuan
Hello, I have an application that calls request.getAttribute("javax.servlet.request.X509Certificate") to get a HTTP request's peer certificates. It turned out, unfortunately, this call would cause large number of threads to block. Looking at thread dumps, I noticed that most of the threads were blo

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

2010-10-22 Thread Konstantin Kolinko
2010/10/21 Francesc Oller : 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 of signaled des

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

2010-10-22 Thread Konstantin Kolinko
2010/10/21 Sánchez, José Manuel : > 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 > /srv/tomcat/bin/native/unix/j

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. > http://forums.sun.com/thread.jspa?threadID=343023&start=15&

Re: Rotating Tomcat-Logs

2010-10-22 Thread Konstantin Kolinko
2010/10/21 André Warnier : > > 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. > - would use the s

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 defaul

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

2010-10-22 Thread Konstantin Kolinko
2010/10/22 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 w

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 re

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=343023&start=15&tstart=0 -- D Mansfield Jason Britton wrote: Thanks for the insight Dave. I have several threads

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 elements this way: ... ... - Chuck THIS COMMUNICATION MAY

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 t

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 nex

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 > Tag inside of the context.xml like: > > ... > type="java.lang.String" override="false" /> > ... > If I've interpreted the spec correctly, y

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 COMMUNICATI

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

RE: Question

2010-10-22 Thread Marshall, Marc
I am defining each of the Environment Variables in an Tag inside of the context.xml like: ... ... I am getting an nullpoint exception when doing something with information returned from Context.lookup("java:comp/env/EnvironmentVariables") method here is the exact stack trace: Oct 22, 2010

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. Il giorno ven, 22/10/2010 alle 07.45 -0700, Richard da Silva ha scritto: > "You need to specify that it's an HTTP connector, rather than say an > AJP connector. > > Check your co

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 perfor

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

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

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

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 add

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 is

Re: Securing A Directory Listing

2010-10-22 Thread Keith Masten
Configured the web.xml for BASIC authentication. 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"; version="2.4"> Vision Application Logs applogs

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

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 http://www.sonicle.

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 Pid *
It's not an error. p On 22 Oct 2010, at 13:51, Martin Gainty 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 Nachricht ist

Re: Urgent: how to run htaccess on tomcat

2010-10-22 Thread Pid *
On 22 Oct 2010, at 10:36, abhishek jain 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 > struts 1.2 > Pl. h

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 prob

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

2010-10-22 Thread Pid *
On 22 Oct 2010, at 13:54, Richard da Silva 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 > install SSL Cer

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 install

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 hoefl

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 wrote: > abhishek jain wrote: > >> On Fri, Oct 22, 2010 at 3:31 PM, André Warnier wrote: >> >> abhishek jain wrote: >>> >>> On Fri, Oct 22, 2010 at 3:05 PM, abhishek jain wrote: Hi friends, > I am in middle of urgent produ

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 wrote: > Hello, I'm trying to figure out how to solve a very stupid pr

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 w

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 http://tomcat.apache.org/tomcat-6.0-doc/virtual-h

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 To: Tomcat Users List Date: 10/22/2010 12:37 PM Subject: Re: javax.naming.NamingException: Cannot create resource instance On 22/10/2010 06:40, Aparna1 V wro

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 wrote: abhishek jain wrote: On Fri, Oct 22, 2010 at 3:05 PM, abhishek jain wrote: 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

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

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 an

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 wrote: > abhishek jain wrote: > >> On Fri, Oct 22, 2010 at 3:05 PM, abhishek jain >> wrote: >> >> 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

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 wrote: 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. Than

Re: Rotating Tomcat-Logs

2010-10-22 Thread Tobias Crefeld
Am Thu, 21 Oct 2010 11:13:53 +0200 schrieb André Warnier : > 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 necessary becaus

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

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

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 servl

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 ty

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