GeoKnow / Facete2

The next version of Facete
14 stars 4 forks source link

java.lang.IllegalStateException: required key [jdbc.driver] not found #19

Closed mielvds closed 10 years ago

mielvds commented 10 years ago

The proper JDBC driver seems to be missing (Ubuntu, tomcat 7.0.30) or misconfigured. Where is this key defined?

Aklakan commented 10 years ago

Hi, did you install the Deb Package?

Maybe you are experiencing this issue due to a corrupted jar that ships with ubuntu:

http://stackoverflow.com/questions/14712308/ubuntu-tomcat7-java-lang-classnotfoundexception-org-apache-tomcat-dbcp-dbcp-bas

Quick fix:

sudo wget -O /usr/share/java/tomcat-dbcp-7.0.30.jar http://search.maven.org/remotecontent?filepath=org/apache/tomcat/tomcat-dbcp/7.0.30/tomcat-dbcp-7.0.30.jar

I will add this to the docs soon.

Also, if you experience any other issues, please cross check with https://github.com/AKSW/Sparqlify/tree/master/sparqlify-debian-tomcat7

There I collected some more pitfalls with a project that uses a similar setup as this one.

mielvds commented 10 years ago

I'd already tried the above, didn't fix it. Next I'll check out sparqlify, thx!

mielvds commented 10 years ago

Restart of the server fixed it; I assume it was the corrupted jar.