jQuery in Action, 2nd edition
The moose likes JSP and the fly likes Problems Conectiong Database to a WebApplication - Unable to get connection, DataSource invalid Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JSP
Reply Bookmark "Problems Conectiong Database to a WebApplication - Unable to get connection, DataSource invalid" Watch "Problems Conectiong Database to a WebApplication - Unable to get connection, DataSource invalid" New topic
Author

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

Eliezer Ferra
Greenhorn

Joined: Jul 06, 2011
Posts: 1

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
Bartender

Joined: Oct 14, 2005
Posts: 16480
    
    2

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.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Problems Conectiong Database to a WebApplication - Unable to get connection, DataSource invalid
 
Similar Threads
Problem with classes from included jar libraries
how to send bean objct to another jsp
exceptions occurring here
Stripes, Spring, JPA, Hibernate, struggling to tie them all together
Returning a String from Server (REST) and getting Errors..