My main problem is I have a class, Database.java, that access and updates the JDBC Derby database. Using unittest 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
But when call the Database instance from the servlet Voter, it gives the ClassNotFoundException