Re: Apache + Tomcat + mod_jk ; Why wrong content type?

2012-10-04 Thread Joe Hansen
...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Joe, On 10/3/12 1:47 AM, Joe Hansen wrote: We are using Apache 2.2 + Tomcat 7 + mod_jk (all 64-bit) on a RedHat box. I have configured the settings such that the static content like css and javascript are served by httpd

Apache + Tomcat + mod_jk ; Why wrong content type?

2012-10-02 Thread Joe Hansen
Hi All, We are using Apache 2.2 + Tomcat 7 + mod_jk (all 64-bit) on a RedHat box. I have configured the settings such that the static content like css and javascript are served by httpd rather than tomcat. However, when I do so, the css files are returned with a content type=text/plain rather

Error while starting tomcat. Failed creating jvm.dll

2011-10-19 Thread Joe Hansen
Hi, I have installed Tomcat 6.0.29 on a machine running Windows 7 Professional (64bit) and JDK 1.5.0_22. When I start Tomcat, I see the following error message in the log file: [206 javajni.c] [error] %1 is not a valid Win32 application. [985 prunsrv.c] [error] Failed creating java C:\Program

Re: Error while starting tomcat. Failed creating jvm.dll

2011-10-19 Thread Joe Hansen
...@gmail.com wrote: 2011/10/19 Joe Hansen joe.hansen...@gmail.com: Hi, I have installed Tomcat 6.0.29 on a machine running Windows 7 Professional (64bit) and JDK 1.5.0_22. Why not 6.0.33? When I start Tomcat, I see the following error message in the log file: [206 javajni.c] [error

AJP Errors. Apache + Tomcat

2011-10-19 Thread Joe Hansen
Hi, I get the following AJP errors when I try to access a webpage after starting Apache and Tomcat. Both Apache web server and Tomcat start up fine but I get these errors in Apache logs and I get a 503 Service Temporarily Unavailable message in the browser. Apparently Tomcat isn't seeing the

Re: Error while starting tomcat. Failed creating jvm.dll

2011-10-19 Thread Joe Hansen
Kolinko knst.koli...@gmail.comwrote: 2011/10/19 Joe Hansen joe.hansen...@gmail.com: Thanks for the quick reply, Konstantin! I uninstalled Tomcat, then installed JDK 6 64-bit version and I do not get that error anymore. The problem happened because I was pointing Tomcat to a 32-bit JDK rather

Re: AJP Errors. Apache + Tomcat

2011-10-19 Thread Joe Hansen
I uninstalled Tomcat and installed a newer version (6.0.33) and the problem disappeared. It is strange because the config files are the same. On Wed, Oct 19, 2011 at 2:16 AM, j...@gniffelnieuws.net wrote: Hi I get the following AJP errors when I try to access a webpage after ztarting

Enabling CGIServlet causes SecurityException in Tomat 6

2010-06-02 Thread Joe Hansen
Hey All, We are using Tomcat 6 on a RedHat box. Today I installed AWStats and AWStats needs CGI. So I enabled the CGIServlet in the Tomcat's web.xml file. When I restarted Tomcat, I got the following error message: SEVERE: Error deploying web application directory docs

Re: Enabling CGIServlet causes SecurityException in Tomat 6

2010-06-02 Thread Joe Hansen
to the webapplication's web.xml file. Thanks, Joe On Wed, Jun 2, 2010 at 5:07 PM, Joe Hansen joe.hansen...@gmail.com wrote: Hey All, We are using Tomcat 6 on a RedHat box. Today I installed AWStats and AWStats needs CGI. So I enabled the CGIServlet in the Tomcat's web.xml file. When I restarted Tomcat, I got

Re: Log4j logging doesn't work when a web application is moved outside Tomcat/webapps directory

2010-05-05 Thread Joe Hansen
Mark, Chuck, Andre, and Charles, You guys rock! Mark, I followed your recommendations and 1. I copied the virtual host webapps directories outside Tomcat. c:/hosts/abc.local/webapps c:/hosts/xyz.local/webapps 2. Copied the manager.xml to Tomcat/conf/Catalina/abc.local and

Log4j logging doesn't work when a web application is moved outside Tomcat/webapps directory

2010-05-04 Thread Joe Hansen
Hey all, We are using Tomcat 6 on a Windows XP box. We have a web application named abc. It was initially in the c:\Tomcat\webapps directory. I then moved the c:\Tomcat\webapps\abc directory to c:\Tomcat\abc. I then changed the Tomcat/conf/server.xml file to reflect this change... Host

Re: Log4j logging doesn't work when a web application is moved outside Tomcat/webapps directory

2010-05-04 Thread Joe Hansen
On Tue, May 4, 2010 at 10:36 AM, Mark Thomas ma...@apache.org wrote: On 04/05/2010 17:32, Joe Hansen wrote: Hey all, We are using Tomcat 6 on a Windows XP box. We have a web application named abc. It was initially in the c:\Tomcat\webapps directory. I then moved the c:\Tomcat\webapps\abc directory

Re: Log4j logging doesn't work when a web application is moved outside Tomcat/webapps directory

2010-05-04 Thread Joe Hansen
/Engine /Service /Server On Tue, May 4, 2010 at 10:53 AM, Mark Thomas ma...@apache.org wrote: On 04/05/2010 17:43, Joe Hansen wrote: Thank you for the super quick reply Mark! We are using Java Spring. The reason for moving the web application out of the webapps directory

Re: Log4j logging doesn't work when a web application is moved outside Tomcat/webapps directory

2010-05-04 Thread Joe Hansen
On Tue, May 4, 2010 at 11:13 AM, Mark Thomas ma...@apache.org wrote: On 04/05/2010 17:59, Joe Hansen wrote: Mark, Here's the server.xml before moving abc out of the webapps directory:         Host name=abc.local appBase=webapps/abc                       unpackWARs=true autoDeploy=true

Re: Log4j logging doesn't work when a web application is moved outside Tomcat/webapps directory

2010-05-04 Thread Joe Hansen
: From: Joe Hansen [mailto:joe.hansen...@gmail.com] Subject: RE: Log4j logging doesn't work when a web application is moved outside Tomcat/webapps directory Looks like I have some reading to do! Will post back after I read some Tomcat documentation. Start here: http://tomcat.apache.org

Re: Log4j logging doesn't work when a web application is moved outside Tomcat/webapps directory

2010-05-04 Thread Joe Hansen
Thanks Andre and Chuck. Andre, I renamed Tomcat/abc/ to Tomcat/webapps-abc/ to keep the naming consistent. The directory structure that you've advocated is exactly the same as the one Chuck told me. And I have implemented that. However, logging is still an issue. One webapp's log4j seems to

Re: Log4j logging doesn't work when a web application is moved outside Tomcat/webapps directory

2010-05-04 Thread Joe Hansen
: From: Joe Hansen [mailto:joe.hansen...@gmail.com] Subject: Re: Log4j logging doesn't work when a web application is moved outside Tomcat/webapps directory However, logging is still an issue. One webapp's log4j seems to stomp over other webapp's log files. What could I be doing wrong? Where

Re: Log4j logging doesn't work when a web application is moved outside Tomcat/webapps directory

2010-05-04 Thread Joe Hansen
Chuck, There are common classes in Tomcat/lib/ but they don't attempt to do any logging. However, the abc Spring Web application does initialize a Quartz object which runs once every hour and does some logging. I don't know if that has any implications. Thanks, Joe Here's the stack trace from

Re: Log4j logging doesn't work when a web application is moved outside Tomcat/webapps directory

2010-05-04 Thread Joe Hansen
Thanks for the reply, Charles! When commons-logging.jar is present in Tomcat/lib and WEB-INF/lib directories, I get the following error : Invalid class loader hierarchy. You have more than one version of 'org.apache.commons.logging.Log' visible, which is not allowed. Here's the complete stack

Re: Log4j logging doesn't work when a web application is moved outside Tomcat/webapps directory

2010-05-04 Thread Joe Hansen
/2009/09/02/log4j-multiple-web-apps-common-lib-logging/ But that doesn't solve my issue. Thanks, Joe On Tue, May 4, 2010 at 4:58 PM, Caldarale, Charles R chuck.caldar...@unisys.com wrote: From: Joe Hansen [mailto:joe.hansen...@gmail.com] Subject: Re: Log4j logging doesn't work when a web application

Re: Log4j logging doesn't work when a web application is moved outside Tomcat/webapps directory

2010-05-04 Thread Joe Hansen
This thread has grown too long. For anyone following this thread, here's the summary: Two web applications, each with a Virtual Host entry in server.xml file. Tomcat/webapps-abc Tomcat/webapps-xyz These two web applications have different log4j.properties files. These log4j property files log to

Help with security-constraint in web.xml

2010-01-04 Thread Joe Hansen
Hey all, We are using Tomcat 6.0 / Apache 2.2. We would like the user to login over HTTPS rather than plain HTTP. So, I have defined the following security-constraint in the web.xml file of our web application: security-constraint display-nameLogin/display-name

Re: Help with security-constraint in web.xml

2010-01-04 Thread Joe Hansen
please elaborate on how to do it or give me pointers on how it could be done? Thank you!! Joe On Mon, Jan 4, 2010 at 2:57 PM, Caldarale, Charles R chuck.caldar...@unisys.com wrote: From: Joe Hansen [mailto:joe.hansen...@gmail.com] Subject: Help with security-constraint in web.xml What do I

Re: Help with security-constraint in web.xml

2010-01-04 Thread Joe Hansen
Chuck, No, I said you could handle the SSL encryption/decryption in httpd; the redirection still has to occur by Tomcat recognizing a reference to a confidential resource. I did configure the SSL on the httpd end (c:\Apache\conf\extra\httpd-ssl.conf) file. As far as how to do so, you'll

Re: Help with security-constraint in web.xml

2010-01-04 Thread Joe Hansen
the login form. I'm sure there must be a simple explanation. Chuck, please help me out!! Thank you, Joe On Mon, Jan 4, 2010 at 3:25 PM, Caldarale, Charles R chuck.caldar...@unisys.com wrote: From: Joe Hansen [mailto:joe.hansen...@gmail.com] Subject: Re: Help with security-constraint in web.xml

Re: Help with security-constraint in web.xml

2010-01-04 Thread Joe Hansen
sslProtocol=TLS / Connector port=8009 protocol=AJP/1.3 redirectPort=443 / Many thanks for your help. You saved my day. Thanks, Joe On Mon, Jan 4, 2010 at 4:06 PM, Caldarale, Charles R chuck.caldar...@unisys.com wrote: From: Joe Hansen [mailto:joe.hansen...@gmail.com] Subject: Re: Help with security

Re: java.lang.OutOfMemoryError: Java heap space

2009-10-08 Thread Joe Hansen
Yup, it looks like you have more of your application objects taking up memory than the tickets you were worried about. So True! We are right now designing and developing our next generation of websites and this experience will surely come handy. I will now think twice before I store anything in

Re: java.lang.OutOfMemoryError: Java heap space

2009-10-07 Thread Joe Hansen
WoW! jmap was a great command to learn Chris! Thank you so much! I generated a histogram of the Objects in the java heap (while things were stable) and here's what I got: Object Histogram: SizeCount Class description --- 149989048

Re: java.lang.OutOfMemoryError: Java heap space

2009-10-06 Thread Joe Hansen
is amazing, Rainer. I am grateful to you and Andre for your efforts. Thank you! Regards, Joe On Tue, Oct 6, 2009 at 7:25 AM, Rainer Jung rainer.j...@kippdata.de wrote: On 05.10.2009 18:58, Joe Hansen wrote: Thank you so much for your tips, Rainer! The websites went down yet again. Increasing

Re: java.lang.OutOfMemoryError: Java heap space

2009-10-06 Thread Joe Hansen
what's happening. Thanks, Joe On Tue, Oct 6, 2009 at 10:23 AM, Joe Hansen joe.hansen...@gmail.com wrote: Rainer, Thanks for looking at those long thread dumps for me!! I am sorry. I did NOT take these dumps at the right time (i.e. when Tomcat was inundated with requests and couldn't cope

Re: java.lang.OutOfMemoryError: Java heap space

2009-10-06 Thread Joe Hansen
Reference Handler 1 waiting = 1 Total org.apache.catalina.startup.Bootstrap.main 1 runnable = 1 Total VM Thread 1 runnable = 1 Total GC task thread 1 runnable = 1 Total VM Periodic Task Thread 1 waiting on condition = 1 Total Thanks, Joe On Tue, Oct 6, 2009 at 11:44 AM, Joe Hansen joe.hansen

Re: java.lang.OutOfMemoryError: Java heap space

2009-10-06 Thread Joe Hansen
) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Thread.java:595) ** END NESTED EXCEPTION ** On Tue, Oct 6, 2009 at 1:11 PM, Rainer Jung rainer.j...@kippdata.de wrote: On 06.10.2009 19:44, Joe Hansen wrote: I will only comment the threads for the AJP

Re: java.lang.OutOfMemoryError: Java heap space

2009-10-06 Thread Joe Hansen
wrote: On 06.10.2009 21:44, Joe Hansen wrote: Thanks for your feedback, Rainer. The DAO objects/methods that you've mentioned are used for almost every page on our website. So I am not surprised to find them in the thread dumps. However, as you pointed out, the parameters to these methods

Re: java.lang.OutOfMemoryError: Java heap space

2009-10-05 Thread Joe Hansen
? Thank you! Joe On Sun, Oct 4, 2009 at 2:36 PM, Rainer Jung rainer.j...@kippdata.de wrote: Hi Joe, On 04.10.2009 21:45, Joe Hansen wrote: Rainer, Thank you so much for your kind reply! I have increased the java heap size to 512MB (-Xms512m -Xmx512m). I am hoping that would fix the issue. I had

Re: java.lang.OutOfMemoryError: Java heap space

2009-10-05 Thread Joe Hansen
Rainer, Here are the KeepAlive values in httpd.conf: KeepAlive Off MaxKeepAliveRequests 100 KeepAliveTimout 15 Thanks, Joe What are your KeepAlive* settings ? - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org

Re: java.lang.OutOfMemoryError: Java heap space

2009-10-05 Thread Joe Hansen
-timeout value from 30 minutes to 240 minutes. Thanks, Joe On Mon, Oct 5, 2009 at 1:04 PM, André Warnier a...@ice-sa.com wrote: Joe Hansen wrote: Rainer, Here are the KeepAlive values in httpd.conf: KeepAlive Off MaxKeepAliveRequests 100 KeepAliveTimout 15 Well, since you have KeepAlive Off

Re: java.lang.OutOfMemoryError: Java heap space

2009-10-05 Thread Joe Hansen
. Thanks, Joe On Mon, Oct 5, 2009 at 1:53 PM, André Warnier a...@ice-sa.com wrote: Joe Hansen wrote: Thank you for the reply, Andre. I now understand how setting KeepAlive to On would improve the performance of a website (The Apache manual says that a 50% increase in throughput could

Re: java.lang.OutOfMemoryError: Java heap space

2009-10-04 Thread Joe Hansen
it to the mailing list because its very long. Would you be able to please tell me what should I be looking for within this long thread dump? Thanks again, Rainer :) Joe On Sat, Oct 3, 2009 at 12:24 PM, Rainer Jung rainer.j...@kippdata.de wrote: On 03.10.2009 20:07, Joe Hansen wrote: Hey All, I get

Re: java.lang.OutOfMemoryError: Java heap space

2009-10-04 Thread Joe Hansen
in the number of httpd processes. I am wondering if I should raise the MaxClients value in prefork.c and worker.c modules. Can anyone on this forum please explain why new httpd processes are spawned and why aren't the old processes terminated? Thanks, Joe On Sun, Oct 4, 2009 at 1:45 PM, Joe Hansen

java.lang.OutOfMemoryError: Java heap space

2009-10-03 Thread Joe Hansen
Hey All, I get this error (java.lang.OutOfMemoryError: Java heap space) after my Apache 2.0/Tomcat 5.5/mod_jk installation has been up and running for a few hours. This problem started just since two days. Never had this issue before! I have also noticed that as soon as I startup the server, 9

SSLException: No available certificate or key corresponds to the SSL cipher suites which are enabled

2009-10-02 Thread Joe Hansen
Hey all, Apache 2.0/Tomcat 5.5/mod_jk installed on RedHat Enterprise Linux ES 4.0. Our web server has been up and running smoothly for more than 2 years now. This morning I noticed that the websites were down. When I checked the logs, I found the following message: java.io.FileNotFoundException:

Re: SSLException: No available certificate or key corresponds to the SSL cipher suites which are enabled

2009-10-02 Thread Joe Hansen
/keystore.tomcat keystorePass=changeit keystoreType=PKCS12 / -Joe On Fri, Oct 2, 2009 at 4:17 PM, Joe Hansen joe.hansen...@gmail.com wrote: Hey all, Apache 2.0/Tomcat 5.5/mod_jk installed on RedHat Enterprise Linux ES 4.0. Our web server has been up and running smoothly for more