I would echo Ian's feedback about starting with the platform independent
binary that includes a copy of jetty.
The link to the jetty configuration used by the platform independent binary
is here:
https://github.com/geoserver/geoserver/tree/master/src/release/jetty
If you can get geoserver working with the latest jetty (and we would be
happy to help as much as we can on the email list here) it would be a great
contribution back to the project - it takes some effort each time we
upgrade and your success could help guide the way.
--
Jody Garnett
On 11 October 2017 at 12:45, <[email protected]> wrote:
> hello good peepl,
>
> im stuck in getting a fresh bare geoserver-2.11.2 up and running in jetty.
> For years ive been running under tomcat, but i wanna get rid of all the
> fancy stuff tomcat provides, and see how jetty performs my geoserver setups
> - if its good im gonna switch about 20 major installations onto the
> jettybased geoserver in the time to come..
>
>
> Ive installed on FreeBSD 11.1-Release, and i compiled the complete
> geoserver installation from the freebsd ports (native repository to the OS).
> Im running openjdk version "1.8.0_144" OpenJDK 64-Bit Server VM (build
> 25.144-b01, mixed mode)
>
>
> Now i supposed i could start the servlet container, hosting an empty
> geoserver installation. however.. nothing happens:
>
> ##
> $ java -jar start.jar
> WARNING: Nothing to start, exiting ...
> ##
>
>
> After reading some input from the web, ive made a start.ini file,
> containing this:
> ##
> -Djetty.port=8081
> -DSTOP.PORT=8079
> -DSTOP.KEY=opengeo
> --exec
> -Xms128m
> -Xmx768m
> -Djava.endorsed.dirs=lib/
> etc/jetty.xml
> etc/jetty-deploy.xml
> etc/jetty-http.xml
> etc/webdefault.xml
> -DGEOSERVER_GEOJSON_LEGACY_CRS=true
> ##
>
>
> now it displays:
> ##
> $ java -jar ar start.jar --lib=lib/:webapps/geoserver/W
> EB-INF/classes/:/usr/local/lib:etc/:bin/:data_dir:resources/ --debug
> Using Standard sun.nio.fs.BsdFileSystem pattern: glob:**/start.d/*.ini
> jetty.home=/usr/local/geoserver
> jetty.base=/usr/local/geoserver
> Parsing collected arguments
> parse("-Djetty.port=8081", "/usr/local/geoserver/start.ini", true)
> parse("-DSTOP.PORT=8079", "/usr/local/geoserver/start.ini", true)
> parse("-DSTOP.KEY=opengeo", "/usr/local/geoserver/start.ini", true)
> parse("--exec", "/usr/local/geoserver/start.ini", true)
> parse("-Xms128m", "/usr/local/geoserver/start.ini", true)
> parse("-Xmx768m", "/usr/local/geoserver/start.ini", true)
> parse("-Djava.endorsed.dirs=lib/", "/usr/local/geoserver/start.ini", true)
> parse("etc/jetty.xml", "/usr/local/geoserver/start.ini", true)
> parse("etc/jetty-deploy.xml", "/usr/local/geoserver/start.ini", true)
> parse("etc/jetty-http.xml", "/usr/local/geoserver/start.ini", true)
> parse("etc/webdefault.xml", "/usr/local/geoserver/start.ini", true)
> parse("-DGEOSERVER_GEOJSON_LEGACY_CRS=true", "/usr/local/geoserver/
> start.ini", true)
> parse("--lib=lib/:webapps/geoserver/WEB-INF/classes/:/usr/lo
> cal/lib:etc/:bin/:data_dir:resources/", "<command-line>", true)
> parse("--debug", "<command-line>", true)
> Registering all modules
> getPaths('modules/*.mod')
> Using relative path pattern: glob:**/modules/*.mod
> Building Module Graph
> Expanding Libs
> rawlibref = lib/
> expanded = lib/
> getPaths('lib/')
> Using relative path pattern: glob:**/lib
> Found [lib] /usr/local/geoserver/lib
> Found [lib] /usr/local/geoserver/lib
> Adding classpath component: /usr/local/geoserver/lib
> rawlibref = webapps/geoserver/WEB-INF/classes/
> expanded = webapps/geoserver/WEB-INF/classes/
> getPaths('webapps/geoserver/WEB-INF/classes/')
> Using relative path pattern: glob:**/webapps/geoserver/WEB-INF/classes
> Found [webapps/geoserver/WEB-INF/classes] /usr/local/geoserver/webapps/g
> eoserver/WEB-INF/classes
> Found [webapps/geoserver/WEB-INF/classes] /usr/local/geoserver/webapps/g
> eoserver/WEB-INF/classes
> Adding classpath component: /usr/local/geoserver/webapps/g
> eoserver/WEB-INF/classes
> rawlibref = /usr/local/lib
> expanded = /usr/local/lib
> getPaths('/usr/local/lib')
> Using absolute path pattern: glob:/usr/local/lib
> Found [lib] /usr/local/lib
> Adding classpath component: /usr/local/lib
> rawlibref = etc/
> expanded = etc/
> getPaths('etc/')
> Using relative path pattern: glob:**/etc
> Found [etc] /usr/local/geoserver/etc
> Found [etc] /usr/local/geoserver/etc
> Adding classpath component: /usr/local/geoserver/etc
> rawlibref = bin/
> expanded = bin/
> getPaths('bin/')
> Using relative path pattern: glob:**/bin
> Found [bin] /usr/local/geoserver/bin
> Found [bin] /usr/local/geoserver/bin
> Adding classpath component: /usr/local/geoserver/bin
> rawlibref = data_dir
> expanded = data_dir
> getPaths('data_dir')
> Using relative path pattern: glob:**/data_dir
> rawlibref = resources/
> expanded = resources/
> getPaths('resources/')
> Using relative path pattern: glob:**/resources
> Found [resources] /usr/local/geoserver/resources
> Found [resources] /usr/local/geoserver/resources
> Adding classpath component: /usr/local/geoserver/resources
> Expanding Modules
> StartArgs: StartArgs [enabledModules=[], xmlRefs=[etc/jetty.xml,
> etc/jetty-deploy.xml, etc/jetty-http.xml, etc/webdefault.xml],
> properties=org.eclipse.jetty.start.Props@1f32e575, jvmArgs=[-Xms128m,
> -Xmx768m]]
> Command Line: 23 entries
> [0]: "/usr/local/openjdk8/jre/bin/java"
> [1]: "-Xms128m"
> [2]: "-Xmx768m"
> [3]: "-Djava.io.tmpdir=/tmp/"
> [4]: "-Djetty.home=/usr/local/geoserver"
> [5]: "-Djetty.base=/usr/local/geoserver"
> [6]: "-Djava.endorsed.dirs=lib/"
> [7]: "-DGEOSERVER_GEOJSON_LEGACY_CRS=true"
> [8]: "-Djetty.port=8081"
> [9]: "-DSTOP.KEY=opengeo"
> [10]: "-DSTOP.PORT=8079"
> [11]: "-cp"
> [12]: "/usr/local/geoserver/lib:/usr/local/geoserver/webapps/geose
> rver/WEB-INF/classes:/usr/local/lib:/usr/local/geoserver/
> etc:/usr/local/geoserver/bin:/usr/local/geoserver/resources"
> [13]: "org.eclipse.jetty.xml.XmlConfiguration"
> [14]: "GEOSERVER_GEOJSON_LEGACY_CRS=true"
> [15]: "java.endorsed.dirs=lib/"
> [16]: "jetty.port=8081"
> [17]: "STOP.KEY=opengeo"
> [18]: "STOP.PORT=8079"
> [19]: "/usr/local/geoserver/etc/jetty.xml"
> [20]: "/usr/local/geoserver/etc/jetty-deploy.xml"
> [21]: "/usr/local/geoserver/etc/jetty-http.xml"
> [22]: "/usr/local/geoserver/etc/webdefault.xml"
> 2017-10-11 21:42:09.812:INFO::main: Logging initialized @143ms
> 2017-10-11 21:42:09.839:WARN:oejx.XmlConfiguration:main:
> java.lang.NullPointerException
> at org.eclipse.jetty.xml.XmlConfiguration$1.run(XmlConfiguratio
> n.java:1186)
> at java.security.AccessController.doPrivileged(Native Method)
> at org.eclipse.jetty.xml.XmlConfiguration.main(XmlConfiguration
> .java:1174)
> 2017-10-11 21:42:09.893:WARN:oejsh.DefaultHandler:main:
> java.lang.NullPointerException
> at org.eclipse.jetty.server.handler.DefaultHandler.<init>(Defau
> ltHandler.java:66)
> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
> Method)
> at sun.reflect.NativeConstructorAccessorImpl.newInstance(Native
> ConstructorAccessorImpl.java:62)
> at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(De
> legatingConstructorAccessorImpl.java:45)
> at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
> at org.eclipse.jetty.util.TypeUtil.construct(TypeUtil.java:549)
> at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration
> .newObj(XmlConfiguration.java:806)
> at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration
> .itemValue(XmlConfiguration.java:1125)
> at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration
> .value(XmlConfiguration.java:1030)
> at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration
> .newArray(XmlConfiguration.java:874)
> at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration
> .itemValue(XmlConfiguration.java:1129)
> at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration
> .value(XmlConfiguration.java:1030)
> at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration
> .set(XmlConfiguration.java:457)
> at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration
> .configure(XmlConfiguration.java:411)
> at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration
> .newObj(XmlConfiguration.java:815)
> at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration
> .itemValue(XmlConfiguration.java:1125)
> at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration
> .value(XmlConfiguration.java:1030)
> at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration
> .set(XmlConfiguration.java:457)
> at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration
> .configure(XmlConfiguration.java:411)
> at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration
> .configure(XmlConfiguration.java:354)
> at org.eclipse.jetty.xml.XmlConfiguration.configure(XmlConfigur
> ation.java:262)
> at org.eclipse.jetty.xml.XmlConfiguration$1.run(XmlConfiguratio
> n.java:1243)
> at java.security.AccessController.doPrivileged(Native Method)
> at org.eclipse.jetty.xml.XmlConfiguration.main(XmlConfiguration
> .java:1174)
> Exception in thread "main" java.lang.IllegalStateException: Unknown
> configuration type: web-app in org.eclipse.jetty.xml.XmlConfi
> guration@41629346
> at org.eclipse.jetty.xml.XmlConfiguration.setConfig(XmlConfigur
> ation.java:198)
> at org.eclipse.jetty.xml.XmlConfiguration.<init>(XmlConfigurati
> on.java:138)
> at org.eclipse.jetty.xml.XmlConfiguration$1.run(XmlConfiguratio
> n.java:1231)
> at java.security.AccessController.doPrivileged(Native Method)
> at org.eclipse.jetty.xml.XmlConfiguration.main(XmlConfiguration
> .java:1174)
> Destroying java.lang.UNIXProcess@7c1b2c2
> ##
>
>
>
> I dont know how to proceed any longer - i hoped someone here could help me
> on the right track again :)
>
>
>
> best regards
> Johnny from denmark
>
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> Geoserver-users mailing list
>
> Please make sure you read the following two resources before posting to
> this list:
> - Earning your support instead of buying it, but Ian Turton:
> http://www.ianturton.com/talks/foss4g.html#/
> - The GeoServer user list posting guidelines:
> http://geoserver.org/comm/userlist-guidelines.html
>
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Geoserver-users mailing list
Please make sure you read the following two resources before posting to this
list:
- Earning your support instead of buying it, but Ian Turton:
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines:
http://geoserver.org/comm/userlist-guidelines.html
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users