When I run the simple example:
$ git clone git://github.com/graphhopper/graphhopper.git
$ cd graphhopper; git checkout master
$ ./graphhopper.sh -a web -i europe_germany_berlin.pbf
I got the error message as follows:
ERROR [2018-09-18 22:05:00,399] io.dropwizard.cli.ServerCommand: Unable to start server, shutting down
Can anyone help me with this problem? Many thanks.
What is the full output you get? Which JDK version are you using?
## using java from C:\Program Files\Java\jdk-10.0.2
## existing jar found web/target/graphhopper-web-0.12-SNAPSHOT.jar
## now web. JAVA_OPTS=-Xms128m -Xmx256m
INFO [2018-09-18 22:04:59,912] io.dropwizard.server.DefaultServerFactory: Registering jersey handler with root path prefix: /
INFO [2018-09-18 22:04:59,912] io.dropwizard.server.DefaultServerFactory: Registering admin handler with root path prefix: /
INFO [2018-09-18 22:05:00,037] io.dropwizard.bundles.assets.ConfiguredAssetsBundle: Registering ConfiguredAssetBundle with name: assets for path /maps/*
INFO [2018-09-18 22:05:00,053] io.dropwizard.server.ServerFactory: Starting GraphHopperApplication
_ _
__ _ _ __ __ _ _ __ | |__ | |__ ___ _ __ _ __ ___ _ __
/ _` | '__/ _` | '_ \| '_ \| '_ \ / _ \| '_ \| '_ \ / _ \ '__|
| (_| | | | (_| | |_) | | | | | | | (_) | |_) | |_) | __/ |
\__, |_| \__,_| .__/|_| |_|_| |_|\___/| .__/| .__/ \___|_|
|___/ |_| |_| |_|
INFO [2018-09-18 22:05:00,084] org.eclipse.jetty.setuid.SetUIDListener: Opened application@481558ce{HTTP/1.1,[http/1.1]}{localhost:8989}
INFO [2018-09-18 22:05:00,084] org.eclipse.jetty.setuid.SetUIDListener: Opened admin@2668c286{HTTP/1.1,[http/1.1]}{localhost:8990}
INFO [2018-09-18 22:05:00,084] org.eclipse.jetty.server.Server: jetty-9.4.z-SNAPSHOT; built: 2018-06-05T18:24:03.829Z; git: d5fc0523cfa96bfebfbda19606cad384d772f04c; jvm 10.0.2+13
INFO [2018-09-18 22:05:00,100] com.graphhopper.reader.osm.GraphHopperOSM: version 0.12|2018-09-18T21:23:36Z (5,14,4,3,3,2)
INFO [2018-09-18 22:05:00,100] com.graphhopper.reader.osm.GraphHopperOSM: graph CH|car|RAM_STORE|2D|NoExt|,,,,, details:edges:0(0MB), nodes:0(0MB), name:(0MB), geo:0(0MB), bounds:1.7976931348623157E308,-1.7976931348623157E308,1.7976931348623157E308,-1.7976931348623157E308, CHGraph|fastest|car, shortcuts:0, nodesCH:(0MB)
INFO [2018-09-18 22:05:00,399] org.eclipse.jetty.server.AbstractConnector: Started application@481558ce{HTTP/1.1,[http/1.1]}{localhost:8989}
INFO [2018-09-18 22:05:00,399] org.eclipse.jetty.server.AbstractConnector: Started admin@2668c286{HTTP/1.1,[http/1.1]}{localhost:8990}
ERROR [2018-09-18 22:05:00,399] io.dropwizard.cli.ServerCommand: Unable to start server, shutting down
! java.lang.IllegalStateException: Couldn't load from existing folder: france-gh but also cannot use file for DataReader as it wasn't specified!
! at com.graphhopper.GraphHopper.importData(GraphHopper.java:685)
! at com.graphhopper.GraphHopper.process(GraphHopper.java:661)
! at com.graphhopper.GraphHopper.importOrLoad(GraphHopper.java:639)
! at com.graphhopper.http.GraphHopperManaged.start(GraphHopperManaged.java:71)
! at io.dropwizard.lifecycle.JettyManaged.doStart(JettyManaged.java:27)
! at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
! at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:138)
! at org.eclipse.jetty.server.Server.start(Server.java:419)
! at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:117)
! at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:113)
! at org.eclipse.jetty.server.Server.doStart(Server.java:386)
! at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
! at io.dropwizard.cli.ServerCommand.run(ServerCommand.java:53)
! at io.dropwizard.cli.EnvironmentCommand.run(EnvironmentCommand.java:44)
! at io.dropwizard.cli.ConfiguredCommand.run(ConfiguredCommand.java:87)
! at io.dropwizard.cli.Cli.run(Cli.java:78)
! at io.dropwizard.Application.run(Application.java:93)
! at com.graphhopper.http.GraphHopperApplication.main(GraphHopperApplication.java:33)
INFO [2018-09-18 22:05:00,399] org.eclipse.jetty.server.AbstractConnector: Stopped application@481558ce{HTTP/1.1,[http/1.1]}{localhost:8989}
INFO [2018-09-18 22:05:00,399] org.eclipse.jetty.server.AbstractConnector: Stopped admin@2668c286{HTTP/1.1,[http/1.1]}{localhost:8990}