Re: SSL Not working on tomcat 5.5.29

2010-07-06 Thread kareem_s_m
When I run in NON SSL (port 8080, stuff is written to the log files). When I run under SSL (8443) nothing is written to the same log files. Konstantin Kolinko wrote: 2010/7/2 kareem_s_m kareemud...@gmail.com: Also nothing is written to the log flies. Nothing at all? The logs are

java.lang.IllegalStateException: Timer already cancelled

2010-07-06 Thread Yevgen Krapiva
Hi guys. I have a servlet that uses connection pool with the use of MySQL driver. When I start or reload Tomcat the application works fine, then if I redeploy my application it cannot get a connection from a DataSource object. The following exception is thrown: java.lang.IllegalStateException:

Re: java.lang.IllegalStateException: Timer already cancelled

2010-07-06 Thread Pid
On 06/07/2010 08:05, Yevgen Krapiva wrote: Hi guys. I have a servlet that uses connection pool with the use of MySQL driver. When I start or reload Tomcat the application works fine, then if I redeploy my application it cannot get a connection from a DataSource object. The following

How to split the default stdout log?

2010-07-06 Thread 郑翼羽
Hello everyone, I am using Tomcat 5.5.28 in Windows systems. Because there are lots of codes like System.out.println( some info here) in the apps, after a few days the file stdout_*.log in the /logs folder becomes so large that we cannot open it. Due to some reasons, I cannot modify the codes,

Re: How to split the default stdout log?

2010-07-06 Thread André Warnier
郑翼羽 wrote: Hello everyone, I am using Tomcat 5.5.28 in Windows systems. Because there are lots of codes like System.out.println( some info here) in the apps, after a few days the file stdout_*.log in the /logs folder becomes so large that we cannot open it. Due to some reasons, I cannot modify

Re: How to split the default stdout log?

2010-07-06 Thread 郑翼羽
Thanks Andre! But when tomcat5 starts, it will generate a file like stdout_mmdd.log, but when it runs for a couple of days, there will be only one file, and all the infos are appended to that file. What I want is that tomcat can automatic generate multiple files such as one file one day so

Tomcat crashed after servicing too many HTTPS connection

2010-07-06 Thread Goo Sam Kong
I am using Tomcat 5.5.15 with JDK 1.5.0 update 7 on RedHat Enterprise. I tested my web application by refreshing a page many times, the Tomcat server crashed and thrown exception below: Jul 6, 2010 11:21:38 AM org.apache.tomcat.util.net.PoolTcpEndpoint acceptSocket SEVERE: Endpoint [SSL:

Re: How to split the default stdout log?

2010-07-06 Thread André Warnier
郑翼羽 wrote: Thanks Andre! But when tomcat5 starts, it will generate a file like stdout_mmdd.log, but when it runs for a couple of days, there will be only one file, and all the infos are appended to that file. What I want is that tomcat can automatic generate multiple files such as one file

Re: Tomcat crashed after servicing too many HTTPS connection

2010-07-06 Thread Pid
On 06/07/2010 09:48, Goo Sam Kong wrote: I am using Tomcat 5.5.15 with JDK 1.5.0 update 7 on RedHat Enterprise. I tested my web application by refreshing a page many times, the Tomcat server crashed and thrown exception below: How many times? Was your test automated? What did you expect

Re: Tomcat crashed after servicing too many HTTPS connection

2010-07-06 Thread Goo Sam Kong
Hi Pid, Around 50 times, I press the refresh button on browser manually. I do not want to see Tomcat crash. I did the same test on Tomcat 5.5.16 with JDK 1.5.0 update 7 on Windows XP, Tomcat is running fine without any issue. On 6 July 2010 17:11, Pid p...@pidster.com wrote: On 06/07/2010

Re: SSL Not working on tomcat 5.5.29

2010-07-06 Thread Konstantin Kolinko
2010/7/6 kareem_s_m kareemud...@gmail.com: When I run in NON SSL (port 8080, stuff is written to the log files). When I run under SSL (8443) nothing is written to the same log files. In the configuration fragment that you provided you are running with all 8080, 8443, 8009 at the same time.

Re: SSL Not working on tomcat 5.5.29

2010-07-06 Thread Konstantin Kolinko
2010/7/6 Konstantin Kolinko knst.koli...@gmail.com: 2010/7/6 kareem_s_m kareemud...@gmail.com: When I run in NON SSL (port 8080, stuff is written to the log files). When I run under SSL (8443) nothing is written to the same log files. In the configuration fragment that you provided you are

Re: java.lang.IllegalStateException: Timer already cancelled

2010-07-06 Thread Yevgen Krapiva
I've tried today the latest driver available - 5.1.13. I've places the driver to %CATALINA_HOME%/lib. I also tried to move it to WEB-INF\lib, but it is appeared that Tomcat (I'm using 6.0.26) doesn't see it when trying to create connection from a DataSource. He says ClassNotFoundException. I

Re: java.lang.IllegalStateException: Timer already cancelled

2010-07-06 Thread Konstantin Kolinko
2010/7/6 Yevgen Krapiva ykrap...@gmail.com: Hi guys. I have a servlet that uses connection pool with the use of MySQL driver. When I start or reload Tomcat the application works fine, then if I redeploy my application it cannot get a connection from a DataSource object. Do not use eviction

Re: java.lang.IllegalStateException: Timer already cancelled

2010-07-06 Thread Yevgen Krapiva
Thanks, I'll do that. What about minEvictableIdleTimeMillis ? Just delete it ? 2010/7/6 Konstantin Kolinko knst.koli...@gmail.com 2010/7/6 Yevgen Krapiva ykrap...@gmail.com: Hi guys. I have a servlet that uses connection pool with the use of MySQL driver. When I start or reload Tomcat

Re: java.lang.IllegalStateException: Timer already cancelled

2010-07-06 Thread Konstantin Kolinko
2010/7/6 Yevgen Krapiva ykrap...@gmail.com: Thanks, I'll do that. What about minEvictableIdleTimeMillis ? Just delete it ? You can delete it. It is the timeBetweenEvictionRunsMillis attribute that controls whether the Evictor will be enabled. The other attributes make no difference.

Re: java.lang.IllegalStateException: Timer already cancelled

2010-07-06 Thread Pid
On 06/07/2010 11:34, Yevgen Krapiva wrote: I've tried today the latest driver available - 5.1.13. I've places the driver to %CATALINA_HOME%/lib. I also tried to move it to WEB-INF\lib, but it is appeared that Tomcat (I'm using 6.0.26) doesn't see it when trying to create connection from a

RE: Tomcat crashed after servicing too many HTTPS connection

2010-07-06 Thread Caldarale, Charles R
From: Goo Sam Kong [mailto:skgo...@gmail.com] Subject: Re: Tomcat crashed after servicing too many HTTPS connection I did the same test on Tomcat 5.5.16 with JDK 1.5.0 update 7 on Windows XP Why are you mucking around with versions of Tomcat that are over four years old? Many, many

RE: How to call an external class from a webapp (i.e. - implement a plugin)

2010-07-06 Thread Joseph Morgan
What's wrong with providing instructions to the customer on how to install the plugin with a particular web app? -Original Message- From: Goren Il [mailto:gore...@hotmail.com] Sent: Monday, July 05, 2010 2:44 AM To: users@tomcat.apache.org Subject: How to call an external class from a

RE: How to split the default stdout log?

2010-07-06 Thread Caldarale, Charles R
From: 郑翼羽 [mailto:ground...@gmail.com] Subject: Re: How to split the default stdout log? But when tomcat5 starts, it will generate a file like stdout_mmdd.log, but when it runs for a couple of days, there will be only one file Not sure there's going to be any ready way for Tomcat to

Re: How to split the default stdout log?

2010-07-06 Thread 郑翼羽
Thanks. The bad news is all the output codes are in a single webapp, and have no hope to use log4j instead of the current system.out codes. Just I hope to find a way that can make tomcat generate a stdout.log file eveyday, or at any interval. On Tue, Jul 6, 2010 at 8:51 PM, Caldarale, Charles

favicon when serving non-html

2010-07-06 Thread Dola Woolfe
Hi, When I serve up, say, a PDF file, how do I control the favicon? Here's my code: response.reset(); response.setContentType(IOUtilities.gMIMEType(fn)); response.setHeader(Content-disposition, inline; filename= + file.getName()); OutputStream outStream =

RE: How to split the default stdout log?

2010-07-06 Thread Caldarale, Charles R
From: 郑翼羽 [mailto:ground...@gmail.com] Subject: Re: How to split the default stdout log? The bad news is all the output codes are in a single webapp, and have no hope to use log4j instead of the current system.out codes. Read what I posted - use swallowOutput to capture the writes to

Re: favicon when serving non-html

2010-07-06 Thread Peter Crowther
On 6 July 2010 15:10, Dola Woolfe dolac...@yahoo.com wrote: When I serve up, say, a PDF file, how do I control the favicon? What is the behaviour you would like/expect from the user agent in this case? - Peter

RE: favicon when serving non-html

2010-07-06 Thread Caldarale, Charles R
From: Dola Woolfe [mailto:dolac...@yahoo.com] Subject: favicon when serving non-html When I serve up, say, a PDF file, how do I control the favicon? Any request for a favicon is separate from the main page; you shouldn't have to do anything. Use an HTTP monitor (eg, Firebug) to see how

Re: How to split the default stdout log?

2010-07-06 Thread André Warnier
郑翼羽 wrote: Thanks. The bad news is all the output codes are in a single webapp, and have no hope to use log4j instead of the current system.out codes. Just I hope to find a way that can make tomcat generate a stdout.log file eveyday, or at any interval. Hi again. I tried what I suggested

Re: How to call an external class from a webapp (i.e. - implement a plugin)

2010-07-06 Thread Goren Il
There are 2 issues (not in order of priority): 1. The steps are not straight forward, and may cause the system to stop working (the customer should change the WAR suffix to zip, open it, add the files and rename it back) 2. When we provide a new version, we will replace the WAR and all the

WebappClassLoader clearReferencesThreads

2010-07-06 Thread Leo Donahue - PLANDEVX
This is really a two part question. The first question has to do with the error in the log file and the second question has to do with making connections to other app servers in Tomcat. Part 1: I have a webapp (http://planning.maricopa.gov/apnxy) running under Tomcat 6.0.26 that makes a

RE: How to call an external class from a webapp (i.e. - implement a plugin)

2010-07-06 Thread Caldarale, Charles R
From: Goren Il [mailto:gore...@hotmail.com] Subject: Re: How to call an external class from a webapp (i.e. - implement a plugin) Aren't there other webapps that have plugin capabilities? The philosophy of the servlet spec is to have self-contained webapps, so plugins aren't really catered

RE: WebappClassLoader clearReferencesThreads

2010-07-06 Thread Caldarale, Charles R
From: Leo Donahue - PLANDEVX [mailto:leodona...@mail.maricopa.gov] Subject: WebappClassLoader clearReferencesThreads I looked at the source for WebappClassLoader: http://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk/java/ org/apache/catalina/loader/ and I see that Tomcat is trying to

Re: FW: problem with org.apache.catalina.core.ApplicationHttpRequest method.

2010-07-06 Thread Mark Thomas
On 30/06/2010 16:23, Ranjix R wrote: Hi guys, sorry for the bother. I do have a question related to how a certain feature was implemented in Tomcat (6.0, probably all of them), that's why I address the question to the dev-list and the user-list. Cross-posting to both lists is poor

Re: favicon when serving non-html

2010-07-06 Thread Pid
On 06/07/2010 15:10, Dola Woolfe wrote: Hi, When I serve up, say, a PDF file, how do I control the favicon? Here's my code: response.reset(); response.setContentType(IOUtilities.gMIMEType(fn)); response.setHeader(Content-disposition, inline; filename= + file.getName());

Strange difference in behavior ELSupport in Tomcat 6.0.20 and Tomcat 6.0.26

2010-07-06 Thread Roxana
Hi, I have a problem that i don't understand and i hope you can help me with. I migrate from Tomcat 6.0.20 to Tomcat 6.0.26 and suddenly i get an exception like this: 05-Jul-2010 16:22:50 org.apache.catalina.core.StandardWrapperValve invoke SEVERE: Servlet.service() for servlet jsp threw

Re: JNI error under tomcat: java.lang.UnsatisfiedLinkError

2010-07-06 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dennis, On 7/5/2010 3:35 AM, dennis ch wrote: modelJNI.java === public final static native void initModel(); native code = #include HEC.h #include vector #include string [snip] void initModel() { You can't use JNI like

Re: favicon when serving non-html

2010-07-06 Thread Dola Woolfe
Thanks for the responses. When I serve up a pdf file with the code below, it shows it in an embedded acrobat, as desired. However, the icon in the browser (in the tab) is the Tomcat logo. I'd like to change it to something else. - Original Message From: Pid p...@pidster.com To:

Re: favicon when serving non-html

2010-07-06 Thread Len Popp
The usual way to specify the favicon is by putting it at the root of the web site, e.g. http://www.example.com/favicon.ico. On the server, this file is usually found in [Tomcat dir]/webapps/ROOT/favicon.ico - change that file to whatever icon you want. There are some other ways to specify the

RE: favicon when serving non-html

2010-07-06 Thread Caldarale, Charles R
From: Dola Woolfe [mailto:dolac...@yahoo.com] Subject: Re: favicon when serving non-html When I serve up a pdf file with the code below, it shows it in an embedded acrobat, as desired. However, the icon in the browser (in the tab) is the Tomcat logo. Again, take a look at the HTTP requests

Re: Strange difference in behavior ELSupport in Tomcat 6.0.20 and Tomcat 6.0.26

2010-07-06 Thread Pid
On 06/07/2010 18:20, Roxana wrote: Hi, I have a problem that i don't understand and i hope you can help me with. I migrate from Tomcat 6.0.20 to Tomcat 6.0.26 and suddenly i get an exception like this: 05-Jul-2010 16:22:50 org.apache.catalina.core.StandardWrapperValve invoke SEVERE:

Re: SSL Not working on tomcat 5.5.29

2010-07-06 Thread kareem_s_m
Server.xml is well formed as I can render it in IE. Also, the cert path is right. Konstantin Kolinko wrote: 2010/7/6 kareem_s_m kareemud...@gmail.com: When I run in NON SSL (port 8080, stuff is written to the log files). When I run under SSL (8443) nothing is written to the same log

Re: How to split the default stdout log?

2010-07-06 Thread 郑翼羽
My Environment: Using CATALINA_BASE: D:\tomcat5528 Using CATALINA_HOME: D:\tomcat5528 Using CATALINA_TMPDIR: D:\tomcat5528\temp Using JRE_HOME:D:\java\jdk1.5.0_12 Using CLASSPATH: D:\tomcat5528\bin\bootstrap.jar Server version: Apache Tomcat/5.5.28 Server built: Jul 24