Skip to content

Commit

Permalink
Fix "No suitable driver found" error when deploying war.
Browse files Browse the repository at this point in the history
  • Loading branch information
k-tamura committed Jan 25, 2017
1 parent da71193 commit cfd6c66
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,7 @@ public class ApplicationUtils {
Logger.error(e);
}
try {
if (!databaseURL.startsWith("jdbc:derby:memory")) {
databaseDriver = bundle.getString("database.driver");
}
databaseDriver = bundle.getString("database.driver");
} catch (Exception e) {
Logger.error(e);
}
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ easybuggy.port=8989

# In-memory database URL (derby)
database.url=jdbc:derby:memory:demo;create=true
database.driver=org.apache.derby.jdbc.EmbeddedDriver

# Local MySQL server
#database.url=jdbc:mysql://localhost:3306/easybuggy?user=easybuggy&password=password
Expand Down

0 comments on commit cfd6c66

Please sign in to comment.