Re: [OT] Context Chicken Egg Problem

2009-12-16 Thread Elli Albek
Another simple way to use tomcat with eclipse is to start tomcat with remote debugging, and attach to it from eclipse. A couple of switches in the tomcat startup script should do it. - To unsubscribe, e-mail:

Re: Tomcat 6 and IIS 7

2009-12-16 Thread Peter Crowther
2009/12/15 Tuan Quan tuan_q...@yahoo.com However, then Tomcat stop, and IIS start, running netstat -an got below: TCP[::]:80[::]:0 LISTENING Even though, I set IIS to bind to one IP, run IE on the machine to both IP addresses gave me IIS page. OK,

Re: Need Some info

2009-12-16 Thread Pid
On 16/12/2009 07:46, Karthik Nanjangude wrote: Hi Need Some info 1) Is there a way to track the JNDI based Connection Pool usage within the TOMCAT The JMX API offers access to lots of internal, including Tomcat defined DataSources. 2) Is it possible to start alistener-class

FileNotFoundException in Tomcat6.0

2009-12-16 Thread jkv
Hello, I am using tomcat 6.0 and created a log4j configuration folder under WEB-INF/classes/log4j.properties. I have my log4j.jar file in WEB-INF/lib folder. I created a simple servlet where in the init method I have the following line PropertyConfigurator.configure(log4j.properties); but this

Re: Very slow shutdown - 3 mins

2009-12-16 Thread Wayne Pope
thanks guys, I'll ask dev whats going on. el al wrote: You have many threads that are not part of Tomcat, as Chuck mentions. Whatever you start in the webapp you have to close as well. You can close via a shutdown listener (Context listener), or if you use something like Spring which

RE: Need Some info

2009-12-16 Thread Karthik Nanjangude
Hi The JMX API offers access to lots of internal, including Tomcat defined DataSources. Are u mentioning this can be tracked via jconsole (jdk5) or some others free tool (if any plz mention) listener-class I have declared a non gui ( with init) alone Servlet and declared the same in

Re: 'Parametrizing' context.xml?

2009-12-16 Thread Mario Splivalo
Pid wrote: On 14/12/2009 16:21, Mario Splivalo wrote: Is there a way to 'parametrize' context.xml, for instance, in a manner one can 'parametrize' build.xml? For some webapplication in context.xml one puts, for instance, JDBC specific stuff. But, several developers can have different

Re: Could not init service for worker=jkstatus

2009-12-16 Thread Rainer Jung
On 16.12.2009 01:54, Carlos Ortiz wrote: Hi I having a problem with mod_jk [ Could not init service for worker=avizpado] where avizpado is my workername [ you can see all the configuration attatch] i already have test if the port 8009 is open [nmap and telenet] and is open but i have absolute

Re: Could not init service for worker=jkstatus

2009-12-16 Thread Rainer Jung
On 16.12.2009 12:52, Rainer Jung wrote: = Vhost Settings #MOD JK JkOptions +ForwardURIProxy JkOptions +ForwardURIEscaped The above two lines are likely the culprit. +ForwardURIProxy is the default and is incompatible with

Re: tomcat jdbc pool is not proxying resultSets and preparedStatements

2009-12-16 Thread Guillermo Fernandes
Hi Filip, Yes, we are aware that the API allow us to write our own JdbcInterceptor so we are writing an interceptor to handle this issue by creating a proxy for the statement and resultSet. We will attach it to the bugzilla ticket as a workaround, but we think the issue should be fixed inside

Ignore http header if-modified-since

2009-12-16 Thread Abid Hussain
Hallo, when processing ajax-requests Tomcat sometimes responds with a 404 instead of delivering XML. This seems to happen when the http header if-modified-since in the request doesn't somehow contain the right value. At least, if the request doesn't contain this header, tomcat responds

Re: Logo file location

2009-12-16 Thread David kerber
Caldarale, Charles R wrote: From: David kerber [mailto:dcker...@verizon.net] Subject: Logo file location In TC 5.5.x or 6.0.x, Where in my webapp folder structure should I put a small .bmp file that I use for putting a logo on generated reports? Use ServletContext.getResourceAsStream() to

[SECURITY] CVE-2009-3555 SSL Man-In-The-Middle attack - Status update

2009-12-16 Thread Timir Hazarika
Guys, I just tried patching 6.0.20 with the tomcat6 fix mentioned at http://www.mail-archive.com/users@tomcat.apache.org/msg70131.html This gives me a concurrentmodificationexception: java.util.ConcurrentModificationException at java.util.HashMap$HashIterator.nextEntry(Unknown Source)

RE: FileNotFoundException in Tomcat6.0

2009-12-16 Thread Caldarale, Charles R
From: jkv [mailto:j.kumara...@gmail.com] Subject: FileNotFoundException in Tomcat6.0 I created a simple servlet where in the init method I have the following line PropertyConfigurator.configure(log4j.properties); but this is throwing FileNotFoundException?? Let's see the stack trace.

RE: Ignore http header if-modified-since

2009-12-16 Thread Looijmans, Mike
I assume you mean 304 (Not modified) instead of 404 (Not found). Simplest I can think of is to NOT put the last-modified header in your response. Then the browser won't send you an if-modified-since back. On the other hand, if you can put a datestamp on the response - e.g. a file date or by

Re: Ignore http header if-modified-since

2009-12-16 Thread Ronald Klop
If it is 304 and not 404. You can implement the lastModified method on your Servlet and always return 0 or -1 (see the javadocs). Ronald. On Wed, 16 Dec 2009 15:47:33 +0100, Looijmans, Mike mike.looijm...@oce.com wrote: I assume you mean 304 (Not modified) instead of 404 (Not found).

Re: Could not init service for worker=jkstatus

2009-12-16 Thread Carlos Ortiz
Hi all ready fix your comments [same problem ] , sorry about the subject should read Could not init service for worker=avizpado Any Ideas Rainer Jung escribió: On 16.12.2009 12:52, Rainer Jung wrote: = Vhost Settings #MOD JK

RE: Accumulation of Request Processors objects causes tomcat stuck?

2009-12-16 Thread Caldarale, Charles R
From: Michal Singer [mailto:michal.sin...@expand.com] Subject: RE: Accumulation of Request Processors objects causes tomcat stuck? Uploaded server.xml Your Executor elements have no attributes other than names, so you're using the defaults. To quote from the doc: minSpareThreads (int)

tomcat 5.5 - tomcat 6.0

2009-12-16 Thread Xavier Vercoutere
Hi, I recently migrated from tomcat 5.5 on a Windows 2003 server to tomcat 6.0 on a Windows 2008 server. Everything is functioning perfectly except for the built-in scheduling. I have to restart the Tmocat 6.0 service almost every 2 days to keep the schedule going. I never head this

Re: Could not init service for worker=jkstatus

2009-12-16 Thread Rainer Jung
On 16.12.2009 15:52, Carlos Ortiz wrote: Hi all ready fix your comments [same problem ] , sorry about the subject should read Could not init service for worker=avizpado Any Ideas No, especially not because you didn't post the new configuration and I don't know what all ready fix your

RE: tomcat 5.5 - tomcat 6.0

2009-12-16 Thread Caldarale, Charles R
From: Xavier Vercoutere [mailto:xavier.vercout...@korfina.be] Subject: tomcat 5.5 - tomcat 6.0 Everything is functioning perfectly except for the built-in scheduling. What built-in scheduling is that? One of your webapps? I have to restart the Tmocat 6.0 service almost every 2 days to

RE: tomcat 5.5 - tomcat 6.0

2009-12-16 Thread Xavier Vercoutere
From: Xavier Vercoutere [mailto:xavier.vercout...@korfina.be] Subject: tomcat 5.5 - tomcat 6.0 Everything is functioning perfectly except for the built-in scheduling. What built-in scheduling is that? One of your webapps? It's a custom sync job ran by the quartz scheduler I have to

RE: tomcat 5.5 - tomcat 6.0

2009-12-16 Thread Caldarale, Charles R
From: Xavier Vercoutere [mailto:xavier.vercout...@korfina.be] Subject: RE: tomcat 5.5 - tomcat 6.0 I've attached the log files in a rar file. Attachments usually don't make it through (something stripped this one), and please never use .rar format for compression (it conflicts with standard

RE: tomcat 5.5 - tomcat 6.0

2009-12-16 Thread Xavier Vercoutere
Hi What is the preferred method for attachments ? -Original Message- From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] Sent: woensdag 16 december 2009 16:11 To: Tomcat Users List Subject: RE: tomcat 5.5 - tomcat 6.0 From: Xavier Vercoutere

can't get TLS to work, only SSL3

2009-12-16 Thread Edmund Urbani
Hello all, I have Tomcat 6.0.16 running with TLS enabled (at least I thought so) and would have expected it to support both SSL and TLS connections. The curious thing is, that only SSL3 works - with SSL3 disabled in eg. FF3 no connection is possible. The negotiated encryption (with SSL3

2 Apache 1 Tomcat

2009-12-16 Thread Fernando Monteiro Duarte
Hi, I have 2 Apache HTTPD server with my portal. Now I have 1 applicattion that is in a Tomcat server. I would like to configure mod_jk in these 2 Apache HTTPD to this 1 Apache Tomcat. If I configure 1 Apache HTTPD with 1 Apache Tomcat, the application works perfectly, but if I configure the 2

Tomcat 5.0.28 JSessionID

2009-12-16 Thread Tyson Beffa
Hello All- We are trying to find a way to change the JSessionID in tomcat 5.0.28. Has any one had any luck in finding a way to change the default JSessionID? We are having cookie problems with the default jsessionid conflicting with another jsessionid that serves content. Thanks- This

Re: [SECURITY] CVE-2009-3555 SSL Man-In-The-Middle attack - Status update

2009-12-16 Thread Mark Thomas
On 16/12/2009 14:29, Timir Hazarika wrote: Guys, I just tried patching 6.0.20 with the tomcat6 fix mentioned at http://www.mail-archive.com/users@tomcat.apache.org/msg70131.html This gives me a concurrentmodificationexception: snip/ While this does seem to resolve concurrent

Re: Tomcat 5.0.28 JSessionID

2009-12-16 Thread Mark Thomas
On 16/12/2009 16:59, Tyson Beffa wrote: Hello All- We are trying to find a way to change the JSessionID in tomcat 5.0.28. Has any one had any luck in finding a way to change the default JSessionID? We are having cookie problems with the default jsessionid conflicting with another

Tomcat 5.5.28 with simple valve causes startup errors

2009-12-16 Thread Martin B. Smith
Hi folks, I'm getting some exceptions with a vanilla Tomcat 5.5.28 and a simple logging valve. I'm using the following version of Java: java version 1.5.0_22 Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_22-b03) Java HotSpot(TM) 64-Bit Server VM (build 1.5.0_22-b03, mixed

Re: Tomcat 5.5.28 with simple valve causes startup errors

2009-12-16 Thread Mark Thomas
On 16/12/2009 17:28, Martin B. Smith wrote: Hi folks, I'm getting some exceptions with a vanilla Tomcat 5.5.28 and a simple logging valve. I'm using the following version of Java: java version 1.5.0_22 Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_22-b03) Java HotSpot(TM)

RE: Native binaries 1.1.18 are missing

2009-12-16 Thread Jeffrey Janner
Thanks. I've been looking for them for a few weeks now. Jeff -Original Message- From: Mladen Turk [mailto:mt...@apache.org] Sent: Monday, December 14, 2009 1:44 PM To: users@tomcat.apache.org Subject: Re: Native binaries 1.1.18 are missing On 12/14/2009 07:58 PM, Jeffrey Janner wrote:

RE: tomcat 5.5 - tomcat 6.0

2009-12-16 Thread Caldarale, Charles R
From: Xavier Vercoutere [mailto:xavier.vercout...@korfina.be] Subject: RE: tomcat 5.5 - tomcat 6.0 What is the preferred method for attachments ? None. But back to your real problem: none of the things you described are related to Tomcat, since there's no built-in scheduling facility.

RE: 2 Apache 1 Tomcat

2009-12-16 Thread Caldarale, Charles R
From: Fernando Monteiro Duarte [mailto:fmds...@gmail.com] Subject: 2 Apache 1 Tomcat I have 2 Apache HTTPD server with my portal. Now I have 1 applicattion that is in a Tomcat server. I would like to configure mod_jk in these 2 Apache HTTPD to this 1 Apache Tomcat. Tomcat version? httpd

Re: Tomcat 5.5.28 with simple valve causes startup errors

2009-12-16 Thread Martin B. Smith
On 12/16/2009 11:33 AM, Mark Thomas wrote: On 16/12/2009 17:28, Martin B. Smith wrote: Hi folks, I'm getting some exceptions with a vanilla Tomcat 5.5.28 and a simple logging valve. I'm using the following version of Java: java version 1.5.0_22 Java(TM) 2 Runtime Environment, Standard Edition

RE: Tomcat 6 and IIS 7

2009-12-16 Thread Jeffrey Janner
Tuan - What where your expected results on the netstats? Please post the results of each (all port 80 lines). The one you list below is the any address bind for IPv6. You may only be forcing config on IPv4, and that is causing the issue. I don't run an IIS7 here, so I can't tell how to force an

RE: Tomcat 5.0.28 JSessionID

2009-12-16 Thread Jeffrey Janner
Mark - Can you point to area in the documentation to read up on this. For some reason, it's not clear to me which section I should look for this. Jeff -Original Message- From: Mark Thomas [mailto:ma...@apache.org] Sent: Wednesday, December 16, 2009 10:19 AM To: Tomcat Users List Subject:

RE: Tomcat 5.0.28 JSessionID

2009-12-16 Thread Jeffrey Janner
Mark - Never mind. I finally found it. It's a Session Property. http://tomcat.apache.org/tomcat-5.5-doc/config/systemprops.html I'll be able to figure it out from here. Jeff -Original Message- From: Jeffrey Janner [mailto:jeffrey.jan...@polydyne.com] Sent: Wednesday, December 16, 2009

Re: [SECURITY] CVE-2009-3555 SSL Man-In-The-Middle attack - Status update

2009-12-16 Thread Timir Hazarika
Mark, I can't seem to find the newer patch, could you share a link please ? Thanks, Timir On Wed, Dec 16, 2009 at 9:42 PM, Mark Thomas ma...@apache.org wrote: On 16/12/2009 14:29, Timir Hazarika wrote: Guys, I just tried patching 6.0.20 with the tomcat6 fix mentioned at

Re: [SECURITY] CVE-2009-3555 SSL Man-In-The-Middle attack - Status update

2009-12-16 Thread Timir Hazarika
Never mind - I just figured out what text modifications went into that revision. Mark, any news on 6.0.21 timelines ? Up for release vote yet ? Thanks, Timir On Wed, Dec 16, 2009 at 11:45 PM, Timir Hazarika timir.hazar...@gmail.comwrote: Mark, I can't seem to find the newer patch, could you

Re: tomcat jdbc pool is not proxying resultSets and preparedStatements

2009-12-16 Thread Filip Hanik - Dev Lists
correct, there is an AbstractStatementInterceptor that you would extend in order to write such an extension. Filip On 12/16/2009 06:02 AM, Guillermo Fernandes wrote: Hi Filip, Yes, we are aware that the API allow us to write our own JdbcInterceptor so we are writing an interceptor to handle

Re: [SECURITY] CVE-2009-3555 SSL Man-In-The-Middle attack - Status update

2009-12-16 Thread Mark Thomas
On 16/12/2009 20:05, Timir Hazarika wrote: Never mind - I just figured out what text modifications went into that revision. Mark, any news on 6.0.21 timelines ? Up for release vote yet ? Nothing certain but should be soon. Keep an eye on the dev list for any news on tags, release votes etc.

Using RemoteAddressValve with an Apache mod_proxy_balancer

2009-12-16 Thread Martin B. Smith
Howdy! I'm trying to ensure that only specific instances of Apache are allowed to proxy requests into my Tomcat 5.5.28 instances. Unfortunately, it looks like Tomcat is seeing the actual client IP making the original request to Apache. Does anyone have a configuration that only allows

Re: Using RemoteAddressValve with an Apache mod_proxy_balancer

2009-12-16 Thread André Warnier
Martin B. Smith wrote: Howdy! I'm trying to ensure that only specific instances of Apache are allowed to proxy requests into my Tomcat 5.5.28 instances. Unfortunately, it looks like Tomcat is seeing the actual client IP making the original request to Apache. Does anyone have a configuration

Re: Using RemoteAddressValve with an Apache mod_proxy_balancer

2009-12-16 Thread André Warnier
Martin B. Smith wrote: Howdy! I'm trying to ensure that only specific instances of Apache are allowed to proxy requests into my Tomcat 5.5.28 instances. Unfortunately, it looks like Tomcat is seeing the actual client IP making the original request to Apache. Does anyone have a configuration

Re: 2 Apache 1 Tomcat

2009-12-16 Thread Elli Albek
Or use apache as reverse HTTP proxy in front of Tomcat. In that case tomcat is an HTTP server and there is nothing special to do (just configure HTTP connector). You can put as many apache reverse proxies as you need, tomcat configuration is agnostic to the proxies for the most part. This will

AJP connector and java keystore

2009-12-16 Thread Egeste
I'm using tomcat6, deploying a webapp via mod_jk, but my application is failing because java does not like my self signed certificate. I do not want users to access tomcat directly. How can I tell tomcat that my cert is trusted? Thanks -Steve

Re: AJP connector and java keystore

2009-12-16 Thread André Warnier
Egeste wrote: I'm using tomcat6, deploying a webapp via mod_jk, but my application is failing because java does not like my self signed certificate. I do not want users to access tomcat directly. How can I tell tomcat that my cert is trusted? If you have mod_jk (and thus Apache) in front,

Re: AJP connector and java keystore

2009-12-16 Thread Egeste
You are correct, i misinterpreted the issue. Thank you for the information about tomcatAuthentication On Dec 16, 2009, at 5:02 PM, André Warnier wrote: Egeste wrote: I'm using tomcat6, deploying a webapp via mod_jk, but my application is failing because java does not like my self signed

Re: Using RemoteAddressValve with an Apache mod_proxy_balancer

2009-12-16 Thread Bill Barker
André Warnier a...@ice-sa.com wrote in message news:4b294eb6.4090...@ice-sa.com... Martin B. Smith wrote: Howdy! I'm trying to ensure that only specific instances of Apache are allowed to proxy requests into my Tomcat 5.5.28 instances. Unfortunately, it looks like Tomcat is seeing the

Re: Using RemoteAddressValve with an Apache mod_proxy_balancer

2009-12-16 Thread Martin B. Smith
On 12/16/2009 11:01 PM, Bill Barker wrote: André Warnier a...@ice-sa.com wrote in message news:4b294eb6.4090...@ice-sa.com... Martin B. Smith wrote: Howdy! I'm trying to ensure that only specific instances of Apache are allowed to proxy requests into my Tomcat 5.5.28 instances.

RE: Accumulation of Request Processors objects causes tomcat stuck?

2009-12-16 Thread Michal Singer
The engine class only does some initialization, we did not implement it all :-) Thanks Caldarale, Charles R wrote: From: Michal Singer [mailto:michal.sin...@expand.com] Subject: RE: Accumulation of Request Processors objects causes tomcat stuck? Uploaded server.xml Your Executor

Can I make my servlet wait/delay for... maybe 500 - 1000 ms

2009-12-16 Thread Ingo Gambin
Hi, this time I encountered another problem. (my setup: Tomcat 5.5, itext 5.0.0) i wrote a servlet that, using itext, extracts 1 page of a source pdf from directory A file and writes this 1 page as temporary pdf-file into another directory B. This works great but in the same move (after i