windows installer manual startup.bat path

Description

As per email discussion - the windows installer startup.bat generated by NSI is no longer functioning.

Windows exe-installer creates a startup.bat file that does not start. For some reason the batch file must be run from GEOSERVER_HOME, not from GEOSERVER_HOME\bin. I am remembering that change to jre8 had this effect with older Geoserver versions as well.

Adding "cd .." manually fixes the issue:

REM does not start without the next line cd.. REM startup.bat created by the installer follows call "C:\Program Files (x86)\Java\jre1.8.0_72\bin\java.exe" -DGEOSERVER_DATA_DIR="C:\Program Files (x86)\GeoServer 2.9-beta2\data_dir" -Xmx512m -DSTOP.PORT=8079 -DSTOP.KEY=geoserver -Djetty.port=8080 -Djetty.logs="C:\Program Files (x86)\GeoServer 2.9-beta2\logs" -jar "C:\Program Files (x86)\GeoServer 2.9-beta2\start.jar"

After fixing the launch file Geoserver starts. Login fails still from some pages, for example from About GeoServer with the familiar error
Problem accessing /geoserver/web/wicket/j_spring_security_check. Reason:
Not Found

Once logged in from the main page things seem to work. One small glitch:
Go to workspace settings, check Settings-Enabled
-> Enabled box gets covered by the title Primary Contact and can't be unchecked. Tested with Firefox 45.0.2.

Environment

None

Attachments

1

Activity

Jukka Rahkonen 
September 20, 2017 at 7:44 AM

Works with recent Geoserver versions (2.10, 2.11, 2.12-beta) but I can't say exactly since when.

Jody Garnett 
April 20, 2016 at 12:36 AM
(edited)

Trying the installer with the manual run option on windows 7 ... and it works for me with no changes required to the path (see attached screen snap).

Jody Garnett 
April 20, 2016 at 12:29 AM

I am assuming the above feedback is from windows installer with manual option.

Fixed

Details

Assignee

Reporter

Affects versions

Components

Priority

Created April 20, 2016 at 12:27 AM
Updated September 20, 2017 at 7:44 AM
Resolved September 20, 2017 at 7:44 AM