• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Eliezer Ferra
Greenhorn
Posts: 1
Eclipse IDE MySQL Database Netbeans IDE
  • Mark post as helpful
  • send pies
  • 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?
 
Paul Clapham
Sheriff
Posts: 21322
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • 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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic