This week's book giveaway is in the Cloud/Virtualizaton forum.
We're giving away four copies of Mesos in Action and have Roger Ignazio on-line!
See this thread for details.
Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

UNABLE to connect to JavaDB

 
Trupti Mehta
Ranch Hand
Posts: 79
Android Java Java ME
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Hi,

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.

Thanks

Trupti
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic