I have been trying to install the wrapper to run GeoServer as a Windows Service.
I’ve got a Windows 2003 Server SP2.
I have installed Java SE Development Kit 6 Update 10.
I have installed GeoServer 1.7.0
I have downloaded the latest geoserver_service_wrapper.zip file and unzipped it into my “D:\Program Files\GeoServer 1.7.0” folder.
I have a System Environment variable : JAVA_HOME = C:\Program Files\Java\jdk1.6.0_10
I have a System Environment Variable : GEOSERVER_DATA_DIR = D:\Program Files\GeoServer 1.7.0\data_dir
Not sure I need this but I’ve also got a User Environment Variable : GEOSERVER_DATA_DIR = D:\Program Files\GeoServer 1.7.0\data_dir
If I start GeoServer by using the menu options ('Start / All Programs / GeoServer 1.7.0 / Start Server" ) then I can access the GeoServer Admin pages at http://localhost:8080/geoserver/config/index.do and all of the Demo pages etc. seem to work fine.
After that I stopped the GeoServer ('Start / All Programs / GeoServer 1.7.0 / Stop Server" ) and then tried to run the Windows Service wrapper from the command line using
wrapper.exe c ./bin/wrapper/wrapper.conf
This produces an error :-
java.lang.NoClassDefFoundError : Files\GeoServer
Caused by : java.lang.ClassNotFoundException : Files\GeoServer
at java.net.URLClassLoader$1.run (URLClassLoader.java:200)
…
…
Could not find the main class Files\GeoServer
And, not surprisingly, typing in the url http://localhost:8080/geoserver/config/index.do does not give the GeoServer Admin page.
Any advice would be gratefully received.
Cheers
Peter Turvey
BAE Systems
Integrated System Technologies
Grange Road
Christchurch
Dorset
BH23 4JE
BAE Systems Integrated System Technologies Limited
Registered Office: Warwick House, PO Box 87, Farnborough Aerospace Centre, Farnborough, Hants, GU14 6YU, UK
Registered in England & Wales No: 3456325
This email and any attachments are confidential to the intended recipient and may also be privileged. If you are not the intended recipient please delete it from your system and notify the sender. You should not copy it or use it for any purpose nor disclose or distribute its contents to any other person. |
---|