In java webapp,hsqldb url won't accept relative path. is it due to maven configuration?

I believe the syntax of jdbc. Url in general. Properties is incorrect - you cannot specify a classpath location for file it has to be an absolute or relative path.

Refer to jdbcConnection javadoc.

I believe the syntax of jdbc. Url in general. Properties is incorrect - you cannot specify a classpath location for file - it has to be an absolute or relative path.

Refer to jdbcConnection javadoc.

I removed the classpath keyword. It's there because the one I use for model module is working just fine. Even though I removed the classpath neither jdbc.

Url=jdbc:hsqldb:file:mynewdb;create=true nor jdbc. Url=jdbc:hsqldb:file:/mynewdb;create=true nor jdbc. Url=jdbc:hsqldb:file:/target/mynewdb;create=true nor jdbc.

Url=jdbc:hsqldb:file:target/mynewdb;create=true are working, but I believe, it follows connection string rules : jdbc:hsqldb:file:' (same semantics as the legacy form) – black sensei May 14 at 11:23.

The database file path is relative to the current working directory of your JVM. In the case you run your JVM from Maven sunfire plugin (for instance), you have to set the property workingDirectory (or corresponding option of any other plugin). You may use res: mode instead of file: to get your database from classpath but it is limited to a read-only access.

My HSQLDB file database is working by using the following JDBC URL: jdbc:hsqldb:res:/db/mydb Where mydb is the name of the HSQLDB file and is located in the following directory: /WEB-INF/classes/db.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions