[izpack-users] Starting Tomcat

Miraodb miraodb at hotmail.com
Fri Mar 24 11:34:28 CET 2006


Hi Subir,

This looks good to me. So my guess is that the problem is comming from
tomcat itseld or from a bad environment.
Two things:

In startup.bat i see:

set CURRENT_DIR=%cd%
if not "%CATALINA_HOME%" == "" goto gotHome
set CATALINA_HOME=%CURRENT_DIR%
if exist "%CATALINA_HOME%\bin\catalina.bat" goto okHome
cd ..
set CATALINA_HOME=%cd%
cd %CURRENT_DIR%
:gotHome
if exist "%CATALINA_HOME%\bin\catalina.bat" goto okHome
echo The CATALINA_HOME environment variable is not defined correctly
echo This environment variable is needed to run this program
goto end
:okHome

Which means that no matter if you have preset the CATALINA_HOME environment
variable or not, it will be set automatically to the current folder.
However, running the startup.bat from %TOMCAT_HOME%/bin, means that
"%CATALINA_HOME% will refer to %TOMCAT_HOME%/bin, and thus,
"%CATALINA_HOME%\bin\catalina.bat will actually be
"%TOMCAT_HOME%\bin\bin\catalina.bat

This folder doesn't exist and therefore the batch file tells you "The
CATALINA_HOME environment variable is not defined correctly"

I see two options:

either start startup.bat from %TOMCAT_HOME% instead of %TOMCAT_HOME%/bin
or
set manually %CATALINA_HOME% in the startup.bat.

something like

SET CATALINA_HOME=%TOMCAT_HOME%
or
SET CATALINA_HOME=..

Hope that helps,
cheers,
fabrice

Which
----- Original Message ----- 
From: "Subir Bhaumik" <subir_05 at rediffmail.com>
To: <izpack-users at lists.berlios.de>
Sent: Friday, March 24, 2006 11:15 AM
Subject: [izpack-users] Starting Tomcat



Hi

I want to start tomcat through IzPack installer.But at the time of occurence
of that particular job it is showing


 The CATALINA_HOME environment variable is not defined correctly
This environment variable is needed to run this program


I think here i am wrong here
""<arg>$context/jakarta-tomcat-5.0.27</arg><arg>${ENV[CATALINA_HOME]}</arg>"
"


Here is my ProcessPanel.Spec.xml

<processing>
  <job name="Starting Tomcat">
    <os family="windows" />
    <executefile name="$context/jakarta-tomcat-5.0.27/bin/startup.bat">

<arg>$context/jakarta-tomcat-5.0.27</arg><arg>${ENV[CATALINA_HOME]}</arg>
    </executefile>
  </job>
</processing>


Please tell me the exact way to define Env. variable.

Warm Regards

Subir





More information about the izpack-users mailing list