Yes, tried TomEE scripts and Tomcat7 scripts. Tomcat7 scripts and EXE's
work while TomEE failed to create Windows service and run the Windows
service.

I used tomcat7w to modify the options, so TomEE instance can run instead of
Tomcat 7.0.32 instance/container.


On Sat, Nov 24, 2012 at 2:56 AM, Romain Manni-Bucau
<rmannibu...@gmail.com>wrote:

> Hi,
>
> Did you try our own scripts? (service*.bat)
> Le 24 nov. 2012 05:46, "Howard W. Smith, Jr." <smithh032...@gmail.com> a
> écrit :
>
> > Can someone please point me to a reliable blog or set of instructions
> that
> > will allow me to successfully install, start, and stop TomEE 1.5+
> SNAPSHOT
> > as a Windows Service on Windows Server 2003?
> >
> > I have read all of these [1][2][3][4][5], copy/pasted Tomcat command-line
> > options, copied msvcr71.dll to tomee /bin folder, defined JAVA_HOME
> > environment setting, updated PATH system variable, but I am getting the
> > very generic/non-helpful Windows error message that basically said,
> failed
> > to start the service.
> >
> > [1] http://tomcat.apache.org/tomcat-7.0-doc/windows-service-howto.html
> > [2]
> >
> >
> http://stackoverflow.com/questions/141411/tomcat-6-0-18-service-will-not-start-on-a-windows-server
> > [3] service.bat (bundled in tomee /bin folder)
> > [4]
> >
> >
> http://serverfault.com/questions/223743/apache-tomcat-windows-service-ignoring-java-home-environment-variable
> > [5] https://issues.apache.org/bugzilla/show_bug.cgi?id=41538
> >
> > Below is a batch file that I created to install TomEE as a Windows
> Service;
> > install was successful, but running/starting the service fails. Please
> see
> > below and advise on what I might be missing or doing wrong.
> >
> > @ECHO OFF
> > REM copy this file to D:\apache-tomee-plus-1.5.1-SNAPSHOT\bin and execute
> > there
> >
> > ECHO Installing Windows service...
> >
> > TomEE.x86.exe //IS//TomEE --DisplayName="Apache TomEE"
> >
> >
> --Classpath=D:\apache-tomee-plus-1.5.1-SNAPSHOT\bin\bootstrap.jar;D:\apache-tomee-plus-1.5.1-SNAPSHOT\bin\tomcat-juli.jar"
> > --Install="D:\apache-tomee-plus-1.5.1-SNAPSHOT\bin\TomEE.x86.exe"
> > --Jvm=auto --StartMode=jvm --StopMode=jvm
> > --StartClass=org.apache.catalina.startup.Bootstrap --StartParams=start
> > --StopClass=org.apache.catalina.startup.Bootstrap --StopParam=stop
> > --LogLevel Info --LogPrefix TomEE
> > ++JvmOptions=-Dcatalina.base="D:\apache-tomee-plus-1.5.1-SNAPSHOT"
> > ++JvmOptions=-Dcatalina.home="D:\apache-tomee-plus-1.5.1-SNAPSHOT"
> >
> >
> ++JvmOptions=-Djava.endorsed.dirs="D:\apache-tomee-plus-1.5.1-SNAPSHOT\endorsed"
> > ++JvmOptions=-Djava.io.tmpdir="D:\temp"
> >
> >
> ++JvmOptions=-Djava.util.logging.manager="org.apache.juli.ClassLoaderLogManager"
> >
> >
> ++JvmOptions=-Djava.util.logging.config.file="D:\apache-tomee-plus-1.5.1-SNAPSHOT\conf\logging.properties"
> > ++JvmOptions=-Xmx1024M ++JvmOptions=-XX:MaxPermSize=384m
> > ++JvmOptions=-XX:+CMSClassUnloadingEnabled
> > ++JvmOptions=-XX:+CMSPermGenSweepingEnabled
> >
> > REM *** after installed, had to rename TomEE.x86.exe to TomEE.exe, since
> > Windows service referenced TomEE.exe
> >
> > REM ** to remove service, TomEE.x86.exe //DS//TomEE
> > REM ***
> http://tomcat.apache.org/tomcat-7.0-doc/windows-service-howto.html
> >
>

Reply via email to