Thursday, 14 January 2016

jetty - Cannot access GeoServer on http://localhost:8080/geoserver/web


I have a fresh installation of GeoServer 2.8.0 on Windows 7. I installed GeoSever several times before, and usually, I can access it after installation simply in the browser via http://localhost:8080/geoserver/web. However, this time I only get an:



enter image description here


What could I possibly do?


This is what I get on manual startup:




C:\Program Files (x86)\GeoServer 2.6.2\bin>call "C:\Program Files (x86)\Java\jre
6\bin\java.exe" -DGEOSERVER_DATA_DIR="C:\Program Files (x86)\GeoServer 2.6.2\dat
a_dir" -Xmx512m -XX:MaxPermSize=128m -DSTOP.PORT=8079 -DSTOP.KEY=geoserver -Djet
ty.port=8080 -Djetty.logs="C:\Program Files (x86)\GeoServer 2.6.2\logs" -jar "C:
\Program Files (x86)\GeoServer 2.6.2\start.jar"
2015-11-03 11:43:24.475::INFO: Logging to STDERR via org.mortbay.log.StdErrLog

2015-11-03 11:43:24.638::WARN: Deprecated configuration used for C:\Program Fil
es (x86)\GeoServer 2.6.2/webapps
2015-11-03 11:43:24.676::INFO: jetty-6.1.8
2015-11-03 11:43:24.924::WARN: failed org.mortbay.jetty.webapp.WebAppContext@27
391d{/geoserver,file:/C:/Program%20Files%20(x86)/GeoServer%202.6.2/webapps/geose
rver/}
java.lang.UnsupportedClassVersionError: org/geoserver/GeoserverInitStartupListen
er : Unsupported major.minor version 51.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)

at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$000(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoade
r.java:366)
at org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoade
r.java:337)

at org.mortbay.jetty.handler.ContextHandler.loadClass(ContextHandler.jav
a:1035)
at org.mortbay.jetty.webapp.WebXmlConfiguration.initListener(WebXmlConfi
guration.java:629)
at org.mortbay.jetty.webapp.WebXmlConfiguration.initWebXmlElement(WebXml
Configuration.java:367)
at org.mortbay.jetty.webapp.WebXmlConfiguration.initialize(WebXmlConfigu
ration.java:289)
at org.mortbay.jetty.webapp.WebXmlConfiguration.configure(WebXmlConfigur
ation.java:222)

at org.mortbay.jetty.webapp.WebXmlConfiguration.configureWebApp(WebXmlCo
nfiguration.java:180)
at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.jav
a:1217)
at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:
510)
at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:448
)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
39)

at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection
.java:152)
at org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHan
dlerCollection.java:156)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
39)
at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection
.java:152)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
39)

at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:
130)
at org.mortbay.jetty.Server.doStart(Server.java:222)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
39)
at org.mortbay.xml.XmlConfiguration.main(XmlConfiguration.java:977)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)

at org.mortbay.start.Main.invokeMain(Main.java:183)
at org.mortbay.start.Main.start(Main.java:497)
at org.mortbay.start.Main.main(Main.java:115)
2015-11-03 11:43:24.958::WARN: failed ContextHandlerCollection@116ab4e
java.lang.UnsupportedClassVersionError: org/geoserver/GeoserverInitStartupListen
er : Unsupported major.minor version 51.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)

at java.net.URLClassLoader.access$000(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoade
r.java:366)
at org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoade
r.java:337)
at org.mortbay.jetty.handler.ContextHandler.loadClass(ContextHandler.jav
a:1035)

at org.mortbay.jetty.webapp.WebXmlConfiguration.initListener(WebXmlConfi
guration.java:629)
at org.mortbay.jetty.webapp.WebXmlConfiguration.initWebXmlElement(WebXml
Configuration.java:367)
at org.mortbay.jetty.webapp.WebXmlConfiguration.initialize(WebXmlConfigu
ration.java:289)
at org.mortbay.jetty.webapp.WebXmlConfiguration.configure(WebXmlConfigur
ation.java:222)
at org.mortbay.jetty.webapp.WebXmlConfiguration.configureWebApp(WebXmlCo
nfiguration.java:180)

at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.jav
a:1217)
at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:
510)
at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:448
)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
39)
at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection
.java:152)

at org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHan
dlerCollection.java:156)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
39)
at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection
.java:152)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
39)
at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:
130)

at org.mortbay.jetty.Server.doStart(Server.java:222)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
39)
at org.mortbay.xml.XmlConfiguration.main(XmlConfiguration.java:977)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.mortbay.start.Main.invokeMain(Main.java:183)
at org.mortbay.start.Main.start(Main.java:497)

at org.mortbay.start.Main.main(Main.java:115)
2015-11-03 11:43:24.04::INFO: Opened C:\Program Files (x86)\GeoServer 2.6.2\log
s\2015_11_03.request.log
2015-11-03 11:43:24.05::WARN: failed HandlerCollection@1434234
java.lang.UnsupportedClassVersionError: org/geoserver/GeoserverInitStartupListen
er : Unsupported major.minor version 51.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)

at java.net.URLClassLoader.access$000(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoade
r.java:366)
at org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoade
r.java:337)
at org.mortbay.jetty.handler.ContextHandler.loadClass(ContextHandler.jav
a:1035)

at org.mortbay.jetty.webapp.WebXmlConfiguration.initListener(WebXmlConfi
guration.java:629)
at org.mortbay.jetty.webapp.WebXmlConfiguration.initWebXmlElement(WebXml
Configuration.java:367)
at org.mortbay.jetty.webapp.WebXmlConfiguration.initialize(WebXmlConfigu
ration.java:289)
at org.mortbay.jetty.webapp.WebXmlConfiguration.configure(WebXmlConfigur
ation.java:222)
at org.mortbay.jetty.webapp.WebXmlConfiguration.configureWebApp(WebXmlCo
nfiguration.java:180)

at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.jav
a:1217)
at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:
510)
at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:448
)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
39)
at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection
.java:152)

at org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHan
dlerCollection.java:156)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
39)
at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection
.java:152)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
39)
at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:
130)

at org.mortbay.jetty.Server.doStart(Server.java:222)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
39)
at org.mortbay.xml.XmlConfiguration.main(XmlConfiguration.java:977)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.mortbay.start.Main.invokeMain(Main.java:183)
at org.mortbay.start.Main.start(Main.java:497)

at org.mortbay.start.Main.main(Main.java:115)
2015-11-03 11:43:24.047::WARN: Error starting handlers
java.lang.UnsupportedClassVersionError: org/geoserver/GeoserverInitStartupListen
er : Unsupported major.minor version 51.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$000(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)

at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoade
r.java:366)
at org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoade
r.java:337)
at org.mortbay.jetty.handler.ContextHandler.loadClass(ContextHandler.jav
a:1035)
at org.mortbay.jetty.webapp.WebXmlConfiguration.initListener(WebXmlConfi
guration.java:629)

at org.mortbay.jetty.webapp.WebXmlConfiguration.initWebXmlElement(WebXml
Configuration.java:367)
at org.mortbay.jetty.webapp.WebXmlConfiguration.initialize(WebXmlConfigu
ration.java:289)
at org.mortbay.jetty.webapp.WebXmlConfiguration.configure(WebXmlConfigur
ation.java:222)
at org.mortbay.jetty.webapp.WebXmlConfiguration.configureWebApp(WebXmlCo
nfiguration.java:180)
at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.jav
a:1217)

at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:
510)
at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:448
)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
39)
at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection
.java:152)
at org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHan
dlerCollection.java:156)

at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
39)
at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection
.java:152)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
39)
at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:
130)
at org.mortbay.jetty.Server.doStart(Server.java:222)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:

39)
at org.mortbay.xml.XmlConfiguration.main(XmlConfiguration.java:977)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.mortbay.start.Main.invokeMain(Main.java:183)
at org.mortbay.start.Main.start(Main.java:497)
at org.mortbay.start.Main.main(Main.java:115)
2015-11-03 11:43:24.118::INFO: Started SelectChannelConnector@0.0.0.0:8080


Answer



You need Java 7 to run this version of Geoserver. If you install it and reinstall Geoserver (pointing to the jre7) you should be fine.


I would also recommend to install the new version to a different directory. At the moment you seem to have it installed to "C:\Program Files (x86)\GeoServer 2.6.2\" (see log messages above). A clean reinstall would be better.


No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...