I can't answer part 1 not knowing the Play Framework but as the primary developer on the Jena JDBC component I can take a stab at part 2
The connection settings you have look slightly wrong, an example from their documentation is as follows:
# Default database configuration
db.default.driver=org.h2.Driver
db.default.url=jdbc:h2:mem:play
So it looks like you want the class name of the driver not the JAR name as you appear to have used so TDB configuration should look roughly like the following:
db.tdb.driver=org.apache.jena.jdbc.tdb.TDBDriver
db.tdb.url=jdbc:jena:tdb:location=/localhost/application
And there should be no need to provide a username/password.
Also note that as described in their Connecting with JDBC documentation you will need to add the TDB Driver JAR as an additional dependency to your application following the Managing Library Dependencies documentation.
If you still cannot make a successful connection then this may be down to a known bug JENA-646, Jena JDBC does not currently expose the appropriate meta information for drivers to be automatically detected by the Java Service Provider mechanism so if Play relies on this you may not be able to make a connection without somehow first initialising the TDBDriver
class. You can either call TDBDriver.register()
in your code or take advantage of the jdbc.drivers
system property as detailed in the JENA-646 comments.