From: Greg W. <gre...@us...> - 2003-09-28 23:31:10
|
User: gregwilkins Date: 03/09/28 16:30:09 Modified: extra/win32 Tag: Jetty_4_2 readme.txt Added: extra/win32 Tag: Jetty_4_2 Wrapper.exe wrapper.conf wrapper_license.txt Removed: extra/win32 Tag: Jetty_4_2 jetty.bat jettyw98.bat Log: win32 wrapper Revision Changes Path No revision No revision 1.1.2.1 +12 -77 Jetty/extra/win32/readme.txt Index: readme.txt =================================================================== RCS file: /cvsroot/jetty/Jetty/extra/win32/readme.txt,v retrieving revision 1.1 retrieving revision 1.1.2.1 diff -u -w -r1.1 -r1.1.2.1 --- readme.txt 4 May 2003 19:01:41 -0000 1.1 +++ readme.txt 28 Sep 2003 23:30:08 -0000 1.1.2.1 @@ -1,97 +1,32 @@ -There are two ways to run Jetty as a service on a Win32 platform: -+ Compile the C code in %JETTY_HOME%\win32\service. +This directory uses the java wrapper provided by http://wrapper.tanukisoftware.org +to provide jetty as an Win32 service. -or +The file wrapper.conf needs to be edited and the location of your JVM added: -+ Obtain a copy of the free JavaService.exe from Alexandria - Software Consulting: + wrapper.java.command=c:/j2sdk1.4.1/bin/java - http://www.alexandriasc.com/software/JavaService/index.html -Note that JavaService.exe does NOT suffer from the bug that causes -the service to end if the user starting the service logs off, -whereas this can happen with provided C code. +No other changes are required if the admin.xml & jetty.xml configuration +files are used to run Jetty. -In both cases described below, it is assumed that the following -environment variables have been set correctly: -set JAVA_HOME=C:\Java\JDK1.4.1 -REM -- Sun Java VM choices are server, hotspot and classic -- -set JAVA_VM=%JAVA_HOME\jre\bin\server -set JETTY_HOME=C:\Java\Jetty -set CLASSPATH=%JETTY_HOME%\lib\org.mortbay.jetty.jar -set CLASSPATH=%CLASSPATH%;%JETTY_HOME%\lib\javax.servlet.jar -set CLASSPATH=%CLASSPATH%;%JETTY_HOME%\ext\jasper-runtime.jar -set CLASSPATH=%CLASSPATH%;%JETTY_HOME%\ext\jasper-compiler.jar -set CLASSPATH=%CLASSPATH%;%JETTY_HOME%\ext\ant.jar -set CLASSPATH=%CLASSPATH%;%JAVA_HOME%\lib\tools.jar +To run Jetty on the console, use -If you are not using jdk 1.4, you will also need to add an xml parser -to the classpath. Note you can also add these jars to the ext directory -of your JRE. + Wrapper.exe -c wrapper.conf +To install Jetty as a win32 service: -Using the C Code -================ -1. If the C code in %JETTY_HOME%\win32\service has not been compiled: + Wrapper.exe -i wrapper.conf - edit %JETTY_HOME%\win32\service\make # set JDK variable - cd %JETTY_HOME%\win32\service - nmake -2. Copy the jettysvc.exe file to the JVM DLL directory: +To remove the Jetty service - copy %JETTY_HOME%\win32\service\jettysvc.exe %JAVA_VM% + Wrapper.exe -r wrapper.conf -3. Goto that directory: - cd %JAVA_VM% -4. Test that you can run the exe: - jettysvc.exe -? -5. Test that the exe can run Jetty: - - jettysvc.exe -c -Djava.class.path=%CLASSPATH% -DDEBUG %JETTY_HOME%\etc\jetty.xml wrkdir=%JETTY_HOME% - # use browser to hit http://localhost:8080 - # ctrl-C - -6. Install the service: - - jettysvc.exe -i -Djava.class.path=%CLASSPATH% -DDEBUG %JETTY_HOME%\etc\jetty.xml wrkdir=%JETTY_HOME% - -7. Use the services applet from the control panel to start Jetty (or - reboot if that makes it feel more win32 :-). - -8. Use browser to hit http://localhost:8080 and check the log files in - - %JETTY_HOME/logs - -9. The Service can be removed with: - - jettysvc.exe -r - - -Using JavaService.exe -===================== -1. Copy JavaService.exe to %JETTY_HOME%\bin\JettyService.exe. Note that - the path MUST NOT have spaces in it! - -2. Install the service: - - %JETTY_HOME%\bin\JettyService -install "Jetty Java HTTP Server" %JAVA_VM%\jvm.dll -Djava.class.path=%CLASSPATH% -start org.mortbay.jetty.win32.Service -params ./etc/jetty.xml -stop org.mortbay.jetty.win32.Service -method stopAndDestroy -out ./logs/jettysvc.out -err ./logs/jettysvc.err -current %JETTY_HOME% - - (Check the documentation in the JavaService download for more options.) - -3. Use the services applet from the control panel to start the Jetty - Java HTTP Server service. - -4. Use the event viewer to check for any error messages. - -5. The Service can be removed with: - - %JETTY_HOME%\bin\JettyService -uninstall "Jetty Java HTTP Server" No revision No revision 1.1.2.1 +249 -0 Jetty/extra/win32/Attic/Wrapper.exe <<Binary file>> 1.1.2.1 +91 -0 Jetty/extra/win32/Attic/wrapper.conf 1.1.2.1 +23 -0 Jetty/extra/win32/Attic/wrapper_license.txt |