I am having difficulty getting GeoServer to run as a Windows service using the wrapper files that were included in release 1.4.0-RC3.
GeoServer starts and stops fine from the Start Menu… “C:\Program Files\Java\jdk1.5.0_09\bin\java.exe” -DGEOSERVER_DATA_DIR=“%GEOSERVER_DATA_DIR%” -Xmx300m -jar start.jar
… but does not start when I try to start it as a service using the java wrapper (i.e. C:\Program Files\GeoServer 1.4.0-RC3>wrapper.exe -r ./bin/wrapper/wrapper.conf)
The log file indicates that the JVM cannot find a class it is expecting (java.lang.NoClassDefFoundError: Files\GeoServer)
Here is a section of the wrapper log file, giving the context for the error.
STATUS | wrapper | 2006/11/15 11:02:38 | → Wrapper Started as Console
DEBUG | wrapper | 2006/11/15 11:02:38 | Using system timer.
DEBUG | wrapperp | 2006/11/15 11:02:38 | server listening on port 32000.
STATUS | wrapper | 2006/11/15 11:02:38 | Launching a JVM…
DEBUG | wrapper | 2006/11/15 11:02:38 | command: “C:\Program Files\Java\jdk1.5.0_09\bin\java” -Djetty.home=. -DGEOSERVER_DATA_DIR=C:\Program Files\GeoServer 1.4.0-RC3\webapps\geoserver\conf -Xms3m -Xmx64m -Djava.library.path=“lib” -classpath “bin/wrapper/lib/wrapper.jar;start.jar;lib/ant-1.6.4.jar;lib/commons-el-1.0.jar;lib/commons-lang-2.1.jar;lib/concurrent-1.3.4.jar;lib/db2jcc_dummy-8.2.1.jar;lib/geoapi-2.0.jar;lib/jasper-compiler-5.5.15.jar;lib/jasper-compiler-jdt-5.5.15.jar;lib/jasper-runtime-5.5.15.jar;lib/jcl104-over-slf4j-1.0.1.jar;lib/jdbc-stdext-2.0.jar;lib/jdom-1.0.jar;lib/jetty-6.0.1.jar;lib/jetty-util-6.0.1.jar;lib/jsp-api-2.0.jar;lib/jsr108-0.01.jar;lib/jta-1.0.1B.jar;lib/jts-1.7.1.jar;lib/servlet-api-2.5-6.0.1.jar;lib/slf4j-simple-1.0.1.jar;lib/vecmath-1.3.1.jar;lib/xercesImpl-2.6.2.jar;lib/xmlParserAPIs-2.6.2.jar” -Dwrapper.key=“mGaKb75GkUKFsfnW” -Dwrapper.port=32000 -Dwrapper.debug=“TRUE” -Dwrapper.use_system_time=“TRUE” -Dwrapper.version=“3.1.2” -Dwrapper.native_library=“wrapper” -Dwrapper.cpu.timeout=“10” -Dwrapper.jvmid=1 org.tanukisoftware.wrapper.WrapperSimpleApp org.mortbay.start.Main etc/jetty.xml
DEBUG | wrapper | 2006/11/15 11:02:38 | JVM started (PID=644)
INFO | jvm 1 | 2006/11/15 11:02:38 | java.lang.NoClassDefFoundError: Files\GeoServer
INFO | jvm 1 | 2006/11/15 11:02:38 | Exception in thread “main”
DEBUG | wrapper | 2006/11/15 11:02:38 | JVM process exited with a code of 1, setting the wrapper exit code to 1.
ERROR | wrapper | 2006/11/15 11:02:38 | JVM exited while loading the application.
DEBUG | wrapper | 2006/11/15 11:02:38 | JVM was only running for 0 seconds leading to a failed restart count of 1.
DEBUG | wrapper | 2006/11/15 11:02:38 | Waiting 5 seconds before launching another JVM.
View this message in context: Error starting Geoserver (1.4.0-RC3) as a Windows Service
Sent from the GeoServer - User mailing list archive at Nabble.com.