openrdf-sesame database / triplestore in eclipse wtp project with tomcat
-
27-05-2021 - |
Вопрос
I want to use an openrdf-sesame triplestore in an Eclipse WTP project with a Tomcat server. I need to put some sample date to this triplestore to use it in my wtp project.
If I use Tomcat without Eclipse, I have to deploy the two war-files (openrdf-sesame.war
, openrdf-workbench.war
) with the tomcat-manager to Tomcat. Then I can access the openrdf-workbench via http://localhost:8080/openrdf-workbench/
to put the sample data on the triplestore, but in Eclipse it's not possible to deploy the two war-files with the tomcat-manager.
How can I use sesame in an eclipse-wtp project inside tomcat?
Edit:
I tried Jeen Broekstra answer, but now I get a lot of errors in Eclipse.
Решение
It is possible to deploy the standard Sesame war files from Eclipse, it's quite easy actually:
- Go to "File -> import ... -> Web -> WAR file" and select the
openrdf-sesame.war
file. - Choose the appropriate Tomcat server as your target runtime and click next.
- In the next screen (import web libraries), leave everything unchecked, click Finish.
Once you've done this, openrdf-sesame will be availabe in Eclipse as a web project, which you can deploy and run on Tomcat like any other web project.