Hi All,
I am new to
Struts and trying to create a small application. I am using NetBeans 6.1
IDE and mysql database shipped with the IDE.
But the application is not able to connect to the database.
Below is the that particular code.
I am using GlassFish app server. When i run the application i am getting below lines in the app server console.
I have included mysql-connector-java-3.0.10-stable-bin.jar, mysql-connector-java-3.0.16-ga-bin.jar, commons-dbcp.jar, mysql-connector-java-5.1.10-bin.jar while trying different approach to connect to the database but all in vain.
I tried with other sample
java program (only .java file) and tried to connect with the same driver and mysql database which is working perfectly.
Even i tried with another mysql driver org.gjt.mm.mysql.Driver but in vain. I tried with DBCP also by declaring everything in struts-config.xml but also not worked.
I am not getting any exception/ error while running above code but not even getting statements from the declaration of driver and onwards.
Please help me in above. I have been trying on this from last 5 days.
Please let me know if anything is required.
Thanks in advance.