History-Research-Environment / HRE--History-Research-Environment

Main repo for HRE code
https://historyresearchenvironment.org/
GNU Affero General Public License v3.0
32 stars 6 forks source link

Change server side code from using com.sun.net.httpserver.HttpServer to Jetty #41

Closed MichaelErichsen closed 6 years ago

MichaelErichsen commented 6 years ago

This class is not meant as API:

[ERROR] Access restriction: The type 'HttpServer' is not API (restriction on classpath entry 'C:\Program Files\Java\jre1.8.0_172\lib\rt.jar') [ERROR] C:\Users\michael\git\HRE--History-Research-Environment\HRE--History-Research-Environment\org.historyresearchenvironment\bundles\org.historyresearchenvironment.server\src\org\historyresearchenvironment\server\listeners\ServerRequestListener.java:[35] [ERROR] final HttpServer server = HttpServer.create(new InetSocketAddress(preferences.getInt("SERVERPORT", 8000)), [ERROR] 0);

It now prevents Maven from building HRE.

MichaelErichsen commented 6 years ago

Documentation:

http://www.vogella.com/tutorials/Jetty/article.html

MichaelErichsen commented 6 years ago

More documentation:

http://www.eclipse.org/jetty/documentation/current/embedding-jetty.html

MichaelErichsen commented 6 years ago

Done.