unknown database while running servlet code

i am trying my hands on simple servlet and database connectivity program but i have been facing issue with db connectivity after running my code and filling up the form and submitting it i get unknown databaseissue.Have been looking into many sites for the plausible solution but couldn't get any..