Hello guys,
I have written a code to connect the DERBY database with a jsp. I am using Netbeans IDE 7.0.1
I get the following exception at runtime
I have created a connection pool and resource. Moreover I have included the following libraries in the project:
Glassfish Server 3.1
derby.jar
Jdk 1.7
jstl 1.1
Please help me resolve this..
derby.jar file location : F:\Program Files\glassfish-3.1.1\javadb\lib\derby.jar I have added this jar file manually to the libraries. However this has not helped me.
Additional info :
The xml file for the jdbc resource is as follows :
The use of a DB in the presentation layer is considered a poor practice, and even the framers of the JSTL Specification recommend using the JSTL SQL tags only in prototype code and never in production code.
Bear Bibeault wrote:I hope that this is not in production code.
This is not a production code. I have just started learning JSP.
I can easily connect with derby using a simple java class. however, I am not able to figure out the exact problem here using JSP.
Changed the Server to Apache TomCat Instead of derby.jar, added derbyClient.jar file in the libraries
Now I can connect to Derby and display the table data
Thanks for replying Tim Moores
I wish to win the lottery. I wish for a lovely piece of pie. And I wish for a tiny ad:
New web page for Paul's Rocket Mass Heaters movies