It's not a secret anymore!
The moose likes JDBC and Relational Databases and the fly likes UNABLE to connect to JavaDB Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "UNABLE to connect to JavaDB " Watch "UNABLE to connect to JavaDB " New topic

UNABLE to connect to JavaDB

Trupti Mehta
Ranch Hand

Joined: Oct 08, 2000
Posts: 79


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.



Trupti (SCJP)
I agree. Here's the link:
subject: UNABLE to connect to JavaDB
jQuery in Action, 3rd edition