[Geoserver-users] trouble starting GeoServer

Glad that things are (kind of) working!

I realized, after I hit Send, that startup.bat is broken in 1.7.5 (and probably has been broken for a while [1]). I just recreated that file earlier this week, so if you want to script the GeoServer startup, you can pull that down from a nightly build:

https://svn.codehaus.org/geoserver/branches/1.7.x/src/release/bin/startup.bat

and to shutdown:

https://svn.codehaus.org/geoserver/branches/1.7.x/src/release/bin/shutdown.bat

As for the wrapper not working, I'm still a bit unsure. If the standalone command works, the wrapper should too...

[1] http://jira.codehaus.org/browse/GEOS-3178

Thanks,
Mike Pumphrey
OpenGeo - http://opengeo.org

Roberts, Sebastian wrote:

I tried running startup.bat, and got the message 'C:\Program is not recognized as a command, operable program or batch
file. When you hit enter to continue the window disappears, but
GeoServer did not successfully start.

Since the JAVA_HOME path is C:\Program Files... I tried putting the
whole thing in quotes. Then when I ran statup.bat, the command window
just disappeared after a split second with no error.

I tried running your second option from a command prompt at the
geoserver directory, and GeoServer starts! (I did notice a warning:
Native library load failed.java.lang.UnsatisfiedLinkError: no gdaljni in
java.library.path)

I still don't understand why the the wrapper.exe and the startup.bat
don't work, but since I can get GeoServer stared, consider the problem
solved.

Thanks for you help, Sebastian Roberts

-----Original Message-----
From: Mike Pumphrey [mailto:mike@anonymised.com] Sent: Tuesday, June 23, 2009 1:42 PM
To: Roberts, Sebastian
Cc: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] trouble starting GeoServer

Hrm. What happens when you try to run the startup.bat file in the bin
directory...or, failing that, this command manually (cd to your
GeoServer instance first):

"%JAVA_HOME%\bin\java" -DGEOSERVER_DATA_DIR="%GEOSERVER_DATA_DIR%"
-Djava.awt.headless=true -DSTOP.PORT=8079 -DSTOP.KEY=geoserver -jar
start.jar

Thanks,
Mike Pumphrey
OpenGeo - http://opengeo.org

Roberts, Sebastian wrote:

Yes, I have been using the manual method all along without any luck. The
JAVA_HOME user environment variable is set to;
C:\Program Files\Java\jdk1.6.0_13
With no quotes. Sebastian

-----Original Message-----
From: Mike Pumphrey [mailto:mike@anonymised.com] Sent: Tuesday, June 23, 2009 11:22 AM
To: Justin Deoliveira
Cc: Roberts, Sebastian; geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] trouble starting GeoServer

To change an environment variable and have it stick, I set it through
the GUI.

Right Click My Computer -> Properties (or go to System Control Panel)
Click Advanced
Click Environment Variables

Then find the appropriate variable (in this case JAVA_HOME) in this

case

and click Edit. Click OK twice.

Subsequent windows will have the variable persist.

Let us know how you fare...

Thanks,
Mike Pumphrey
OpenGeo - http://opengeo.org

Justin Deoliveira wrote:

Roberts, Sebastian wrote:

Justin,

I edited my Path Environment variable, but got the same result (the

log

file has the same text).

I'm not certain what you mean by "restarting your command line

prompt".

Just shutting down the command line prompt window, and starting a new

one. I know on windows when you make changes to the environment they

do

not affect existing running prompts. There might be some other way to

do

this in windows but I just start a new prompt.

Thanks for your help, Sebastian