My main problem is I have a class, Database.java, that access and updates the JDBC Derby database. Using unit test class, Database.java passes but using a servlet it throws exception. What can be the reason?
Below the codes are available.
I have a program Database.java which is
I wrote a unit test for class DatabaseTest which successfully tests and verifies the Database class