I am developing a web application using Hibernate, JavaDB with NetBeans. I think things are working weird. Previously, I just used to get error msg like below:
Then I came to know that we have to start JavaDB server manaully, while running the app doesn't do it on its own. So I start Java DB server. Now, when I select Run, it tells can't start Sun Application SErver. Start manually. Why does this happen? I start it manually. the application runs, and I get NullPointerException on jsp page at lines Clas.forName, & get Connection. The code I am using is as follows:
I also tried make the mediaData databse connected and then run. But no results. I have made Network (NOT Embedded) Connection with databse . Can anyone tell, what must be the point.
I am stuck out very badly and can't figure out a way to solve the problem. Please help me, am in hrry. Have spent so mcuh of time solving this problem.
In my Sun Application Server Properties, it is already clicked on Java DB Start Enabled. Project includes Hibernate, derbyclinet.jar & Java DB Driver.
Where am I going wrong and what is missing. Please help me out at the earliest.