This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JDBC 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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "UNABLE to connect to JavaDB " Watch "UNABLE to connect to JavaDB " New topic
Author

UNABLE to connect to JavaDB

Trupti Mehta
Ranch Hand

Joined: Oct 08, 2000
Posts: 79


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


Regards,
Trupti (SCJP)
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: UNABLE to connect to JavaDB
 
Similar Threads
exception in login page using apache derby
SQLServerException: TCP/IP connection to the host has failed.
Runtime Exceptions for JDBC program using Derby Client in Netbeans
error sql after removing all jdbc connection
Derby database connection error