[Geoserver-users] Problem with geoserver wrapper

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.


Turvey, Peter G (UK) ha scritto:

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)/

You have spaces in the path, either remove them or quote them
in the enviroment variables.

Hope this helps
Cheers
Andrea

--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.

Thanks for that Andrea, that has sorted out the problem.
It turned out that the GEOSERVER_DATA_DIR environment variable had to
have quotes and the JAVA_HOME environment variable only worked if it did
not have quotes !
Still, I got there in the end.

Cheers
         Peter

-----Original Message-----
From: Andrea Aime [mailto:aaime@anonymised.com]
Sent: 21 November 2008 10:46
To: Turvey, Peter G (UK)
Cc: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] Problem with geoserver wrapper

               *** WARNING ***

This mail has originated outside your organization, either from an
external partner or the Global Internet.
     Keep this in mind if you answer this message.

Turvey, Peter G (UK) ha scritto:

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)/

You have spaces in the path, either remove them or quote them in the
enviroment variables.

Hope this helps
Cheers
Andrea

--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.

********************************************************************
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.
********************************************************************