Good afternoon everyone,

I was recently working on getting https working with geoserver 2.16.0 (comes 
packaged with  jetty.version 9.4.18.v20190429).

As soon as you enable the https module in the start.ini file, it fails to start 
with the following error:

/usr/lib/jvm/jre-1.8.0/bin/java -server -Xms16G -Xmx16G -Xmn2G -XX: +UseG1GC 
-DSTOP.PORT=8079 -DSTOP.KEY=geoserver -jar start.jar 2020-04-14 
22:12:01.961:WARN:oejx.XmlConfiguration:main: java.lang.IllegalStateException: 
No constructor class. org.eclipse.jetty.server.ServerConnector([],{}) in 
file:/opt/software/etc/ jetty-https.xml Caused by: 
java.lang.IllegalStateException: No constructor class 
org.eclipse.jetty.server.ServerConnector([],{}) in 
file:/opt/software/etc/jetty-https.xml


>From talking to developers of jetty, they believed it was a result of using 
>older etc/ files from a previous jetty version with the current version 
>packaged.

I managed to get the https working by copying jetty-https.xml, jetty-ssl.xml, 
jetty-ssl-context.xml from the appropriate version geoserver is packaged with 
into the etc/ directory delivered by the geoserver package. I was then able to 
finish configuring geoserver for https via the embedded jetty provided.

I wrote a stackoverflow question regarding this and plan to update it with an 
answer as well:
Jetty https module causing startup to fail
https://stackoverflow.com/q/61220799/5637073


Figured I would bring it up to this distro so hopefully a bug can be written 
and the files ultimately updated so future out of the box deployments can 
easily support https for other users. I think I just "did enough" to get the 
https components working as a few other files appeared to have other updates 
for the version packaged that were missing from the geoserver package. 
_______________________________________________
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

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to