Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Starting dbpedia-spotlight server fails #17

Open
rmitsch opened this issue Mar 29, 2019 · 0 comments
Open

Starting dbpedia-spotlight server fails #17

rmitsch opened this issue Mar 29, 2019 · 0 comments

Comments

@rmitsch
Copy link

rmitsch commented Mar 29, 2019

I couldn't find any information on how to launch the spotlight server after building the model and failed in trying so far. I'd appreciate any pointers.

More specifically: Building the model with e. g. ./index_db.sh wdir zh_CN zh/stopwords.list None models/zh was successful. I'm not quite sure how to actually start the spotlight server now though - https://github.com/dbpedia-spotlight/dbpedia-spotlight-model mentions
java -jar dbpedia-spotlight-1.0.jar en http://localhost:2222/rest
but model-quickstarter doesn't generate a jar with that name. Instead I see several options:

dbpedia-spotlight/rest/target/rest-1.0-jar-with-dependencies.jar
dbpedia-spotlight/rest/target/rest-1.0.jar
dbpedia-spotlight/core/target/core-1.0.jar
dbpedia-spotlight/core/target/core-1.0-jar-with-dependencies.jar
dbpedia-spotlight/target/spotlight-1.0-jar-with-dependencies.jar
dbpedia-spotlight/index/target/index-1.0-jar-with-dependencies.jar
dbpedia-spotlight/index/target/index-1.0.jar

dbpedia-spotlight/target/spotlight-1.0-jar-with-dependencies.jar seemed the most promising to me, but running

java -jar target/spotlight-1.0-jar-with-dependencies.jar zh http://localhost:2222/rest

yields Could not find or load main class org.dbpedia.spotlight.web.rest.Server.

Launching the other jars (with suffix -with-dependencies) also outputs error message - e. g.

Exception in thread "main" java.lang.UnsupportedClassVersionError: org/dbpedia/spotlight/web/rest/Server : Unsupported major.minor version 52.0

What is the correct way to launch dbpedia-spotlight with my model?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant