Skip to content

Database connection issues. #23

@madsravn

Description

@madsravn

Hi, I'm having troubles accessing the database with the differ-webapp.

My current differ.properties looks like:

db.driverClassName=com.mysql.jdbc.Driver
db.url=localhost:3306
db.username=differ
db.password=differ

and while I can register a user using the Register button, reading from the database seems to create errors by throwing the exception: "Could not get
JDBC connection; nested exception is java.sql.SQLExcetion: No suitable
driver found for localhost:3306". Am I even using the correct driverClassName?

Another things is that in my tomcat log it says

SEVERE: The web application [] registered the JDBC driver 
[com.mysql.jdbc.Driver] but failed to unregister it when the web 
application was stopped. To prevent a memory leak, the JDBC Driver has 
been forcibly unregistered.

It would seem there is missing some kind of cleanup which then makes tomcat forcibly kill the driver which results in the database not being accessible for later interaction.

As a last resort, is there a way to use the tool without the web application? I mean in a way where I still will be receiving some visual information as output like the web application? Maybe a generated HTML page showing the information the web application would. I have tried running the command line tool by using the run-two.sh file and the reports generated doesn't seem to produce anything visual - even the web report *.drep file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions