geofabrik / OpenRailRouting

routing on railway tracks using OpenStreetMap data and the GraphHopper routing engine
Apache License 2.0
168 stars 30 forks source link

Error running the server web front-end #8

Closed nielsw2 closed 5 years ago

nielsw2 commented 5 years ago

When I try to run the web front-end via

java -Xmx2500m -Xms50m -Dgraphhopper.prepare.ch.weightings=no   -Dgraphhopper.datareader.file=graphhopper/europe_germany_berlin.pbf -Dgraphhopper.profiles=freight_diesel   -jar target/railway_routing-0.0.1-SNAPSHOT-jar-with-dependencies.jar server

I get the error:

   Unrecognized field at: assets.resourcePathToUriMappings
    Did you mean?:
      - mappings
      - overrides
      - cacheSpec
      - mimeTypes
      - cacheControlHeader

I can run GraphHopper from the graphhopper subdirectory just fine using the Berlin PBF file.

Nakaner commented 5 years ago

The command is called "serve", not "server".

nielsw2 commented 5 years ago

When you do not enter any command the code returns:

       [-h] [-v] {server,check,import,match}

So perhaps there is a typo there? (as it suggests "server", not "serve").

Nonetheless, when I use "serve" I still get exactly the same error as before:

io.dropwizard.configuration.ConfigurationParsingException: default configuration has an error:
  * Unrecognized field at: assets.resourcePathToUriMappings
    Did you mean?:
      - mappings
      - overrides
      - cacheSpec
      - mimeTypes
      - cacheControlHeader
amoe commented 5 years ago

You haven't passed in the name of the .yml configuration file. Dropwizard wants a .yml configuration file as the argument to its server command. Just leaving this here for any Googlers.