Re: While tomcat is initializing

2008-08-01 Thread Tushar Madhukar
Hi, One clarification - do you want the cache init to take place at the start of the container OR your web application? In the former case, you can implement the org.apache.catalina.LifecycleListener interface and nest a element in the appropriate element in server.xml In the latter case, imple

While tomcat is initializing

2008-08-01 Thread berki
Hi, I coded a cache in java, and I was wondering if there was a way to load the cache into memory and insert data in it while tomcat is booting up. Is there hooks or something like that? Thanks in advanced! -- View this message in context: http://www.nabble.com/While-tomcat-is-initializing-tp

Re: Changing SSL Certificates

2008-08-01 Thread Ben Densmore
Is there anyone that might be willing to help me get this fixed? I've tried following the docs from TomCat and am now getting this error. keytool error: java.lang.Exception: Public keys in reply and keystore don't match We'd be willing to pay, i just need to get this fixed. Thanks, Ben On Fri,

Re: enabling/disabling a servlet filter conditionally

2008-08-01 Thread Hassan Schroeder
On Fri, Aug 1, 2008 at 3:30 PM, André Warnier <[EMAIL PROTECTED]> wrote: >> You could /probably/ -- untested conjecture -- break the FilterChain at >> that point by forwarding to a URL for which Filter B wasn't applied (or >> was applied only to a REQUEST rather than FORWARD. >> > On second read,

Re: enabling/disabling a servlet filter conditionally

2008-08-01 Thread André Warnier
Hassan Schroeder wrote: On Fri, Aug 1, 2008 at 1:39 PM, André Warnier <[EMAIL PROTECTED]> wrote: Can one dynamically disable a servlet filter under some conditions, from within another preceding filter ? You could /probably/ -- untested conjecture -- break the FilterChain at that point by fo

Re: enabling/disabling a servlet filter conditionally

2008-08-01 Thread André Warnier
Hassan Schroeder wrote: Thanks, Hassan. At least now, I know that it's not going to be dead easy, apart from the last case. Does anyone else have a devious idea to achieve this without rewriting Tomcat ? What about if I turn the question around : Suppose that in the servlet's web.xml I had

Re: Changing SSL Certificates

2008-08-01 Thread Hassan Schroeder
On Fri, Aug 1, 2008 at 2:54 PM, Ben Densmore <[EMAIL PROTECTED]> wrote: > Tomcat version - 6.0.16 > Error Message: java.io.FileNotFoundException: > /usr/local/apache-tomcat-6.0.16/webapps/ROOT/index.html (Too many open > files) > Vendor: Trustwave I can't imagine what the above has to do with sett

Re: request parameters mishandle utf-8 encoding

2008-08-01 Thread André Warnier
Christopher Schultz wrote: [...] Here is the definitive reference : http://www.faqs.org/rfcs/rfc2396.html and see 1.5. URI Transcribability and following if you are courageous. And the HTTP 1.1 RFC 2616 makes reference to the above RFC in what regards URL encoding. The point is that the URL c

Re: Changing SSL Certificates

2008-08-01 Thread Ben Densmore
Tomcat version - 6.0.16 Error Message: java.io.FileNotFoundException: /usr/local/apache-tomcat-6.0.16/webapps/ROOT/index.html (Too many open files) Vendor: Trustwave I followed the instructions they have here: https://www.securetrust.com/support/sslcertificates/install/tomcat but when I do I get

Re: enabling/disabling a servlet filter conditionally

2008-08-01 Thread Hassan Schroeder
On Fri, Aug 1, 2008 at 1:39 PM, André Warnier <[EMAIL PROTECTED]> wrote: > Can one dynamically disable a servlet filter under some conditions, from > within another preceding filter ? > And suppose that I control the code of filter A but have no access to the > code of filter B, and filter B has

Re: enabling/disabling a servlet filter conditionally

2008-08-01 Thread Pid
André Warnier wrote: Hi. Can one dynamically disable a servlet filter under some conditions, from within another preceding filter ? In other words, suppose I have a servlet configured approximately like this : filterA ... filterA parameters ... filterA servletX filte

Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: enabling/disabling a servlet filter conditionally

2008-08-01 Thread Robert Koberg
Hola Juan, Have a great vacation! On Fri, 2008-08-01 at 22:54 +0200, [EMAIL PROTECTED] wrote: > Hola, > > Estaré ausente de la oficina por vacaciones hasta el 20 de agosto. > > Para cualquier tema urgente por favor enviar el correo a la dirección [EMAIL > PROTECTED] > > Muchas gracias, > >

Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: enabling/disabling a servlet filter conditionally

2008-08-01 Thread jpls
Hola, Estaré ausente de la oficina por vacaciones hasta el 20 de agosto. Para cualquier tema urgente por favor enviar el correo a la dirección [EMAIL PROTECTED] Muchas gracias, Juan Pedro López Altiria TIC - To start

Re: Re: Re: Re: Re: Re: Re: Re: Re: enabling/disabling a servlet filter conditionally

2008-08-01 Thread jpls
Hola, Estaré ausente de la oficina por vacaciones hasta el 20 de agosto. Para cualquier tema urgente por favor enviar el correo a la dirección [EMAIL PROTECTED] Muchas gracias, Juan Pedro López Altiria TIC - To start

Re: Re: Re: Re: Re: Re: Re: Re: enabling/disabling a servlet filter conditionally

2008-08-01 Thread jpls
Hola, Estaré ausente de la oficina por vacaciones hasta el 20 de agosto. Para cualquier tema urgente por favor enviar el correo a la dirección [EMAIL PROTECTED] Muchas gracias, Juan Pedro López Altiria TIC - To start

Re: Re: Re: Re: Re: Re: Re: enabling/disabling a servlet filter conditionally

2008-08-01 Thread jpls
Hola, Estaré ausente de la oficina por vacaciones hasta el 20 de agosto. Para cualquier tema urgente por favor enviar el correo a la dirección [EMAIL PROTECTED] Muchas gracias, Juan Pedro López Altiria TIC - To start

Re: Re: Re: Re: Re: Re: enabling/disabling a servlet filter conditionally

2008-08-01 Thread jpls
Hola, Estaré ausente de la oficina por vacaciones hasta el 20 de agosto. Para cualquier tema urgente por favor enviar el correo a la dirección [EMAIL PROTECTED] Muchas gracias, Juan Pedro López Altiria TIC - To start

Re: Re: Re: Re: Re: enabling/disabling a servlet filter conditionally

2008-08-01 Thread jpls
Hola, Estaré ausente de la oficina por vacaciones hasta el 20 de agosto. Para cualquier tema urgente por favor enviar el correo a la dirección [EMAIL PROTECTED] Muchas gracias, Juan Pedro López Altiria TIC - To start

Re: Re: Re: Re: enabling/disabling a servlet filter conditionally

2008-08-01 Thread jpls
Hola, Estaré ausente de la oficina por vacaciones hasta el 20 de agosto. Para cualquier tema urgente por favor enviar el correo a la dirección [EMAIL PROTECTED] Muchas gracias, Juan Pedro López Altiria TIC - To start

Re: Re: Re: enabling/disabling a servlet filter conditionally

2008-08-01 Thread jpls
Hola, Estaré ausente de la oficina por vacaciones hasta el 20 de agosto. Para cualquier tema urgente por favor enviar el correo a la dirección [EMAIL PROTECTED] Muchas gracias, Juan Pedro López Altiria TIC - To start

Re: Re: enabling/disabling a servlet filter conditionally

2008-08-01 Thread jpls
Hola, Estaré ausente de la oficina por vacaciones hasta el 20 de agosto. Para cualquier tema urgente por favor enviar el correo a la dirección [EMAIL PROTECTED] Muchas gracias, Juan Pedro López Altiria TIC - To start

Re: enabling/disabling a servlet filter conditionally

2008-08-01 Thread jpls
Hola, Estaré ausente de la oficina por vacaciones hasta el 20 de agosto. Para cualquier tema urgente por favor enviar el correo a la dirección [EMAIL PROTECTED] Muchas gracias, Juan Pedro López Altiria TIC - To start

enabling/disabling a servlet filter conditionally

2008-08-01 Thread André Warnier
Hi. Can one dynamically disable a servlet filter under some conditions, from within another preceding filter ? In other words, suppose I have a servlet configured approximately like this : filterA ... filterA parameters ... filterA servletX filterB ... filterB pa

Re: JK ISAPI redirector delay

2008-08-01 Thread Rainer Jung
Peter Gallagher wrote: IIS is configured with isapi_redirect-1.2.26.dll and is redirecting requests to Tomcat successfully. However when attempting to download a Web Start application the ISAPI redirector appears to randomly introduce huge delays (15mins+) between TCP requests. I am unsure how to

JK ISAPI redirector delay

2008-08-01 Thread Peter Gallagher
IIS is configured with isapi_redirect-1.2.26.dll and is redirecting requests to Tomcat successfully. However when attempting to download a Web Start application the ISAPI redirector appears to randomly introduce huge delays (15mins+) between TCP requests. I am unsure how to diagnose this any fur

RE: Changing SSL Certificates

2008-08-01 Thread Radcliffe, William H.
I've never done SSL with Tomcat, but setting up the certificates should be close to or the same as Apache. In Apache you need the server certificate, any intermediate certificates, and the private key. The following makes me uneasy, but if you password protect your key, Apache won't start. -- B

Re: Changing SSL Certificates

2008-08-01 Thread Hassan Schroeder
On Fri, Aug 1, 2008 at 9:09 AM, Ben Densmore <[EMAIL PROTECTED]> wrote: > Does anyone have the steps involved in changing over to a new ssl > certificate? -- Hassan Schroeder [EMAIL PROTECTED] ---

RE: Changing SSL Certificates

2008-08-01 Thread Peter Crowther
Tomcat version? Error message (anything more than "blew up")? Vendor of new cert? Do you have to install a cert chain? - Peter > -Original Message- > From: Ben Densmore [mailto:[EMAIL PROTECTED] > Sent: 01 August 2008 17:09 > To: users@tomcat.apache.org > Subject: Changin

Changing SSL Certificates

2008-08-01 Thread Ben Densmore
I have a Tomcat dev server that I had originally used a self signed ssl certificate with. I now need to use a trusted certificate but when I imported it and changed the server.xml file to use this new certificate TomCat blew up. Does anyone have the steps involved in changing over to a new ssl cer

Re: Installation Problems

2008-08-01 Thread Johnny Kewl
- Original Message - From: "CrashOverride" <[EMAIL PROTECTED]> To: Sent: Friday, August 01, 2008 4:36 PM Subject: Re: Installation Problems Well, when I had it running before (and at the moment, I have it running on a different system), going to http://localhost:8111/ went strai

RE: Status of threads in Tomcat( window service)

2008-08-01 Thread Peter Crowther
> From: Johnny Kewl [mailto:[EMAIL PROTECTED] > From: "Thangavel Sankaranarayanan" <[EMAIL PROTECTED]> > > i am using tomcat as a window service > > ..so i couldn't create a thread dump... > http://localhost:8080/manager/status > > will give you some info on thread usage This assumes the OP has t

Re: Status of threads in Tomcat( window service)

2008-08-01 Thread Johnny Kewl
- Original Message - From: "Thangavel Sankaranarayanan" <[EMAIL PROTECTED]> To: Sent: Friday, August 01, 2008 4:05 PM Subject: Status of threads in Tomcat( window service) Hi, Please help me in find no of threads and thier status spawned by tomcat connector...at any instant of tim

Does the http connector have any kind of debug logging?

2008-08-01 Thread lists
Hi, I've been trying to enable debug logging on my http connector, but it never seems to go anywhere. ( Tomcat 5.5 ) I tried debug="4" in the connector but that didnt seem to generate something. Is there a full class name for the connector i can use, and set that to DEBUG in the log4j perhaps?

Re: Installation Problems

2008-08-01 Thread CrashOverride
Well, when I had it running before (and at the moment, I have it running on a different system), going to http://localhost:8111/ went straight to the TeamCity app. David Smith-2 wrote: > > Sounds like you have tomcat running, but maybe the ROOT webapp isn't > installed resulting in a 404 err

Re: [programmazione] Re: Tomcat Newbie

2008-08-01 Thread Luca Cicale
If you can use the root application create a dev directory into ROOT or create a new context named dev Bye Luca -- From: "Mr Junior" <[EMAIL PROTECTED]> Sent: Thursday, July 31, 2008 9:45 PM To: Subject: [programmazione] Re: Tomcat Newbie I n

[CVE-2008-2370] Apache Tomcat information disclosure vulnerability

2008-08-01 Thread Mark Thomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 CVE-2008-2370: Apache Tomcat information disclosure vulnerability Severity: Important Vendor: The Apache Software Foundation Versions Affected: Tomcat 4.1.0 to 4.1.37 Tomcat 5.5.0 to 5.5.26 Tomcat 6.0.0 to 6.0.16 The unsupported Tomcat 3.x, 4.0.x a

[CVE-2008-1232] Apache Tomcat XSS vulnerability

2008-08-01 Thread Mark Thomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 CVE-2008-1232: Apache Tomcat XSS vulnerability Severity: Low Vendor: The Apache Software Foundation Versions Affected: Tomcat 4.1.0 to 4.1.37 Tomcat 5.5.0 to 5.5.26 Tomcat 6.0.0 to 6.0.16 The unsupported Tomcat 3.x, 4.0.x and 5.0.x versions may be

Status of threads in Tomcat( window service)

2008-08-01 Thread Thangavel Sankaranarayanan
Hi, Please help me in find no of threads and thier status spawned by tomcat connector...at any instant of time... i am using tomcat as a window service ..so i couldn't create a thread dump... any other method which we can employ other than adding any extra API like JMX etc.. Thanks, Thangavel.S

Re: How to make tomcat to use javaw.exe instead of java.exe?

2008-08-01 Thread Johnny Kewl
- Original Message - From: "Bharat Dighe" <[EMAIL PROTECTED]> To: Sent: Friday, August 01, 2008 12:49 AM Subject: How to make tomcat to use javaw.exe instead of java.exe? I am using Apache Tomcat 5.5.26. Is there a way we can force catalina.bat to use javaw.exe instead of java.exe w

Re: Hot deployment Using Tomcat

2008-08-01 Thread Alessandro Ferrucci
Yes, the issue is that windows is extremely picky about locked files and deleting those files, check the antiJARLocking and antiResourceLocking attributes. -- Signed, Alessandro Ferrucci On Thu, Jul 31, 2008 at 7:43 PM, Hassan Schroeder < [EMAIL PROTECTED]> wrote: > On Thu, Jul 31, 2008 at 4:

Re: Tomcat Newbie

2008-08-01 Thread David Smith
Just create a folder named dev in tomcat's webapps directory and put your redirect page in there. You won't need the xml file unless you are defining database pools and/or other resources. If the redirect page is a jsp, you will have to go further, creating a WEB-INF folder in the dev folder

Re: Installation Problems

2008-08-01 Thread David Smith
Sounds like you have tomcat running, but maybe the ROOT webapp isn't installed resulting in a 404 error. What happens when you attempt to access TeamCity? --David CrashOverride wrote: I have been having some trouble with my tomcat installation. I am using tomcat 6 which I downloaded with th

Using EJBs deployed in JBoss from Tomcat

2008-08-01 Thread Denis Kezerashvili
I am having issues trying to uses session beans deployed on JBoss 5.0.0CR1 server. I am tryingto access them from a stand alone Tomcat Server 6.0.16. The issue is that I am missing javax.ejb.Handle class. As far as I know it is part of ejb-api.jar. However I am unable to locate such a jar anywher

catalina.bat stop SOMETIMES results in StandardServer.await: Invalid command '' received

2008-08-01 Thread HorseFace
Hej, I run tomcat in windows using cygwin to run "./catalina.bat start" and "./catalina.bat stop". Recently though some times when i run the stop command i get: StandardServer.await: Invalid command '' received or variations of that with letters from "SHUTDOWN" inside the parethesis for exampl

Deploy application from Eclipse (windows) to Tomcat (in linux).

2008-08-01 Thread Sam Wun
Hi, Is there any user guide I can read thru for deploying applicatoin from windows eclipse to linux tomcat? I am using tomcat 5.5 Thanks - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROT

Re: is it possible more than 1 tomcat in single system?

2008-08-01 Thread Edi
That's fine. Two tomcat with Single System is working now. But using LAN, From the other system, i tried to access that two tomcat system, but i am not able to access. please advise. Christian Andersson wrote: > > search your tomcats server.xml file for "8005" and you will se that this > port

Re: Apache/mod_jk serves random files from tomcat

2008-08-01 Thread Rainer Jung
dave.smith wrote: As I mentioned upgrading to mod_jk 1.2.26 was very easy. Unfortunately, Tomcat is now crashing with "An unexpected error has been detected by HotSpot Virtual Machine." # SIGSEGV (0xb) at pc=0xb7aeaf7b, pid=19887, tid=2991246224 # # Java VM: Java HotSpot(TM) Client VM (1.5.0_1

Re: How to enable SSI servlet

2008-08-01 Thread Mark Thomas
suman wrote: Hello, I enabled SSI servlet in CATALINA_HOME/conf/web.xml by uncommenting it. I restarted the tomcat server. Which bits did you uncomment? Still I see the SSI directives in a x.shtml are not executed.I see no error in catalina.log. Any idea how to check if at all the servelet is

Re: Programmatically detecting login or logout events

2008-08-01 Thread MartinOShea
Chris Thanks for the reply. In the various servlets making up this application, I don't currently have a user object in every request but tend to use request.getRemoteUser() where necessary. This also to minimizes traffic. But what you've suggested is good. Thanks Martin O'Shea. -- View this m