tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James Green <james.mk.gr...@gmail.com>
Subject Re: Inno Setup Script?
Date Thu, 11 Apr 2013 10:21:49 GMT
A follow-up with the solution.

This works:
C:\Program Files\Our Local Services\tomcat\bin\tomcat7.exe //IS//Tomcat7
--DisplayName="Apache Tomcat 7" --JavaHome="C:\Program Files\Our Local
Services\tomcat\..\java-7-32bit" --Install="C:\Program Files\Our Local
Services\tomcat\bin\tomcat7.exe" --Jvm="C:\Program Files\Our Local
Services\tomcat\..\java-7-32bit\bin\client\jvm.dll"
--JvmOptions="-Djava.io.tmpdir=C:\Program Files\Our Local
Services\tomcat\temp;-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager;-Djava.util.logging.config.file=C:\Program
Files\Our Local Services\tomcat\conf\logging.properties;"
--Classpath="C:\Program Files\Our Local
Services\tomcat\bin\bootstrap.jar;C:\Program Files\Our Local
Services\tomcat\bin\tomcat-juli.jar" --StartMode=jvm --StopMode=jvm
--StartClass=org.apache.catalina.startup.Bootstrap --StartParams=start
--StopClass=org.apache.catalina.startup.Bootstrap --StopParams=stop
--LogPath="C:\Program Files\Our Local Services\tomcat\logs" --LogLevel=DEBUG

This does not:
C:\Program Files\Our Local Services\tomcat\bin\tomcat7.exe //IS//Tomcat7
--DisplayName="Apache Tomcat 7" --JavaHome="C:\Program Files\Our Local
Services\tomcat\..\java-7-32bit\" --Install="C:\Program Files\Our Local
Services\tomcat\bin\tomcat7.exe" --Jvm="C:\Program Files\Our Local
Services\tomcat\..\java-7-32bit\bin\client\jvm.dll"
--JvmOptions="-Djava.io.tmpdir=C:\Program Files\Our Local
Services\tomcat\temp;-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager;-Djava.util.logging.config.file=C:\Program
Files\Our Local Services\tomcat\conf\logging.properties;"
--Classpath="C:\Program Files\Our Local
Services\tomcat\bin\bootstrap.jar;C:\Program Files\Our Local
Services\tomcat\bin\tomcat-juli.jar" --StartMode=jvm --StopMode=jvm
--StartClass=org.apache.catalina.startup.Bootstrap --StartParams=start
--StopClass=org.apache.catalina.startup.Bootstrap --StopParams=stop
--LogPath="C:\Program Files\Our Local Services\tomcat\logs" --LogLevel=DEBUG

The difference is that in the working line the value for JavaHome does NOT
end with a backslash. This was finally identified by comparing registry
data between our custom installer and the official one.

Now to build much the same but for HSQL...

James



On 11 April 2013 10:08, James Green <james.mk.green@gmail.com> wrote:

> Getting quite frustrated now.
>
> Here's the line the installer is now running:
>
> C:\Program Files\Our Local Services\tomcat\bin\tomcat7.exe //IS//Tomcat7
> --DisplayName="Apache Tomcat 7" --JavaHome="C:\Program Files\Our Local
> Services\tomcat\..\java-7-32bit\" --Install="C:\Program Files\Our Local
> Services\tomcat\bin\tomcat7.exe" --Jvm="C:\Program Files\Our Local
> Services\tomcat\..\java-7-32bit\bin\client\jvm.dll"
> --JvmOptions="-Djava.io.tmpdir=C:\Program Files\Our Local
> Services\tomcat\temp;-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager;-Djava.util.logging.config.file=C:\Program
> Files\Our Local Services\tomcat\conf\logging.properties;"
> --Classpath="C:\Program Files\Our Local
> Services\tomcat\bin\bootstrap.jar;C:\Program Files\Our Local
> Services\tomcat\bin\tomcat-juli.jar" --StartMode=jvm --StopMode=jvm
> --StartClass=org.apache.catalina.startup.Bootstrap --StartParams=start
> --StopClass=org.apache.catalina.startup.Bootstrap --StopParams=stop
> --LogPath="C:\Program Files\Our Local Services\tomcat\logs" --LogLevel=DEBUG
>
> If I subsequently run tomcat7w.exe, the JVM home is not set, nor are lots
> of other matters. Again, we're seeing error code 1 from Tomcat.
>
> EIther I'm doing something dumb or this just doesn't work as described.
>
> James
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message