• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

UNABLE to connect to JavaDB

 
Ranch Hand
Posts: 79
Android Java ME Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic