Help coderanch get a
new server
by contributing to the fundraiser
  • 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
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

Problems Conectiong Database to a WebApplication - Unable to get connection, DataSource invalid

 
Greenhorn
Posts: 1
Netbeans IDE Eclipse IDE MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi

I'm following this tutorial http://netbeans.org/kb/docs/web/mysql-webapp.html#setUpJDBC and i'm getting this error messages when trying to run the index.jsp file. The errors are:

In the Browser:



In the output of the server im getting this:


My web.xml looks like this:



Any ideas?
 
Marshal
Posts: 28289
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I would suggest you get started with JDBC in a much simpler environment. Forget about JSP and JNDI and Java EE and all of that stuff, it just confuses the issue so you have no idea where to look for the problem. Just write a simple command-line application to help you get familiar with JDBC.
 
reply
    Bookmark Topic Watch Topic
  • New Topic