tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Caldarale, Charles R" <Chuck.Caldar...@unisys.com>
Subject RE: ContextListener executes twice
Date Tue, 22 Jul 2008 19:14:42 GMT
> From: Riaz, Bob [mailto:Bob.Riaz@Pearson.com]
> Subject: RE: ContextListener executes twice
>
> Ok. Removed it. But if the conf/Catalina/[host]/[appName].xml
> overrides this, this should make no difference, right?

True, but there's no point in leaving invalid junk lying around just waiting to cause trouble.

> The JAVA_HOME variable points to the bin in the jdk folder,
> same error if JAVA_HOME points to jdk folder.

JAVA_HOME must point to the directory one up from bin.  Looks like the environment variable
is not being seen by the process running the startup.bat script.  Open up a command prompt
window, cd to your Tomcat bin directory, enter a set command with no parameters and see what
you've got.  If JAVA_HOME is set properly, running startup.bat will get you something like
this:

Using CATALINA_BASE:   C:\apache-tomcat-6.0.16
Using CATALINA_HOME:   C:\apache-tomcat-6.0.16
Using CATALINA_TMPDIR: C:\apache-tomcat-6.0.16\temp
Using JRE_HOME:        C:\jdk1.6.0

(Yes, it says JRE_HOME, that's acceptable.)  Tomcat will start running in another command
prompt window.

To check JAVA_HOME, try this:

%JAVA_HOME%\bin\java.exe -version

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus
for use only by the intended recipient. If you received this in error, please contact the
sender and delete the e-mail and its attachments from all computers.

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message