Error while starting tomcat. Failed creating jvm.dll

2011-10-18 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 F

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

2011-10-19 Thread Joe Hansen
011/10/19 Joe Hansen : > > 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: &

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 reque

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

2011-10-19 Thread Joe Hansen
Konstantin Kolinko wrote: > 2011/10/19 Joe Hansen : > > 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 > &

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, wrote: > Hi > > > > I get the following AJP errors when I try to access a webpage after > ztarting > > Apache and Tomcat.

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

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

2010-05-04 Thread Joe Hansen
, May 4, 2010 at 10:36 AM, Mark Thomas 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:\

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

2010-05-04 Thread Joe Hansen
Mark Thomas 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 >> was that the Spring Context Loader was loading twice. First bec

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 wrote: > On 04/05/2010 17:59, Joe Hansen wrote: >> Mark, Here's the server.xml before moving abc out of the webapps directory: >> >>         >                       unpackWARs="true" autoDeploy="tr

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

2010-05-04 Thread Joe Hansen
%n log4j.appender.A2.File=c:/Tomcat6/logs/trestlewood.log log4j.appender.A2.MaxFileSize=100KB log4j.appender.A2.MaxBackupIndex=4 Please advise! Thank you! Joe On Tue, May 4, 2010 at 11:30 AM, Caldarale, Charles R wrote: >> 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

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 stomp

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

2010-05-04 Thread Joe Hansen
empty abc.log and xyz.log files. When I delete c:\Tomcat\lib\log4j-1.2.15.jar, I get Tomcat startup errors (NoClassDefFoundError: org/apache/log4j/Category). Also empty abc.log and xyz.log files are created. Joe On Tue, May 4, 2010 at 3:20 PM, Caldarale, Charles R wrote: >> From: Joe

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 ca

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 tr

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

2010-05-04 Thread Joe Hansen
pps-common-lib-logging/ But that doesn't solve my issue. Thanks, Joe On Tue, May 4, 2010 at 4:58 PM, Caldarale, Charles R wrote: >> From: Joe Hansen [mailto:joe.hansen...@gmail.com] >> Subject: Re: Log4j logging doesn't work when a web application is moved >> outsi

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

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 Tomcat/conf/Catalina/xyz.

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 java.lang.SecurityException

Re: Enabling CGIServlet causes SecurityException in Tomat 6

2010-06-02 Thread Joe Hansen
ing to the webapplication's web.xml file. Thanks, Joe On Wed, Jun 2, 2010 at 5:07 PM, Joe Hansen 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 r

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
, Oct 2, 2009 at 4:17 PM, Joe Hansen 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 than 2 years > now. This morning I noticed that the websites were down. When I >

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 ht

Re: java.lang.OutOfMemoryError: Java heap space

2009-10-04 Thread Joe Hansen
post 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 wrote: > On 03.10.2009 20:07, Joe Hansen wrote: >> Hey All, >

Re: java.lang.OutOfMemoryError: Java heap space

2009-10-04 Thread Joe Hansen
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 wrote: > Rainer, Thank you so much

Re: java.lang.OutOfMemoryError: Java heap space

2009-10-05 Thread Joe Hansen
get stuck? Thank you! Joe On Sun, Oct 4, 2009 at 2:36 PM, Rainer Jung 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

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 F

Re: java.lang.OutOfMemoryError: Java heap space

2009-10-05 Thread Joe Hansen
he session-timeout value from 30 minutes to 240 minutes. Thanks, Joe On Mon, Oct 5, 2009 at 1:04 PM, André Warnier wrote: > Joe Hansen wrote: >> >> Rainer, >> >> Here are the KeepAlive values in httpd.conf: >> >> KeepAlive Off >> MaxKeepAliveReque

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 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% i

Re: java.lang.OutOfMemoryError: Java heap space

2009-10-06 Thread Joe Hansen
o this forum 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 wrote: > On 05.10.2009 18:58, Joe Hansen wrote: >> Thank you so much for your tips, Rainer! >> >> The websites went down

Re: java.lang.OutOfMemoryError: Java heap space

2009-10-06 Thread Joe Hansen
stand what's happening. Thanks, Joe On Tue, Oct 6, 2009 at 10:23 AM, Joe Hansen 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

Re: java.lang.OutOfMemoryError: Java heap space

2009-10-06 Thread Joe Hansen
Total 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

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 wrote: > On 06.10.2009 19:44, Joe Hansen wrote: > I will only comment the threads for the AJP pool. Everything

Re: java.lang.OutOfMemoryError: Java heap space

2009-10-06 Thread Joe Hansen
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 pointe

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

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

Re: Help with security-constraint in web.xml

2010-01-04 Thread Joe Hansen
es on the httpd end, right? Can you 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 wrote: >> From: Joe Hansen [mailto:joe.hansen...@gmail.com] >> Subject: Help with security-cons

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

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 wrote: >> From: Joe Hansen [mailto:joe.hansen...@gmail.com] >> Subject: Re: Help with security-constraint in web.xml &g

Re: Help with security-constraint in web.xml

2010-01-04 Thread Joe Hansen
Chuck, I just forgot to enable the HTTPS Connector! Login form is working now over https. Many thanks for your help. You saved my day. Thanks, Joe On Mon, Jan 4, 2010 at 4:06 PM, Caldarale, Charles R wrote: >> From: Joe Hansen [mailto:joe.hansen...@gmail.com] >> Subject: R

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 tha

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

2012-10-04 Thread Joe Hansen
hultz < ch...@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 su