i am trying to develop a small struts application which connects to oracle database. i added the necessary parts in datasourse element of the struts-config.xml. but when the server starts the following error displayed at the console org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'jdbc:oracle:thin:@192.168.8.202:1521:orcl10'
in set the following jar files in the build path. i am using eclipse ide ojdbc14.jar, classes111.jar
could you please help me to resolve my problem. thanks jittos....
Are those jars being copied to the WEB-INF/lib folder? If not, you should.
posted 12 years ago
i set it in the build path of application. and also copied to the lib directory manually. but it didn't work. is there any other jar files specially for oracle. in ordinary java application this connection strings worked with out any problem. but in struts application it creates problem. any more idea about it? thanks jittos....
Me too have the same problem what are main reasons for "HTTP Status 404 - Servlet action is not available" to occur in struts while using < datasource > tag.....I am using eclipse 3.2 and oracle 10g...i have configured the build path with jdbc driver ojdbc14.jar,c ommons-pool-1.3.jar, commons-dbcp-1.2.2.jar, commons-collections-3.2.jar...
when i comment <datasources> tag in struts-config.xml it works properly.....Otherwise it throws the above pblm......help me
Iam also very new to struts , my application is working fine with oracle connectivity , maybe you should try and add spring-jdbc.jar into the path. Hope this would be of some help.
posted 12 years ago
could you please sent the data-source part of the struts-config file where you put the driver details. also could you please send me the list of jar files that you added in the build path. thank you. jittos....
For spring framework, you have to include following jar files:
1. spring.jar 2. spring-aop.jar 3. spring-bean.jar 4. spring-core.jar 5. spring-context.jar 6. spring-dao.jar 7. spring-hibernate.jar 8. spring-mock.jar 9. spring-jdbc.jar 10. spring-orm.jar 11. spring-remoting.jar 12. spring-support.jar 13. spring-web.jar 14. spring-webmvc.jar For Hibernate support, you have to include following jar files into the path of server. And path for the jar file is C:\Program Files\MyEclipse 5.1.0 GA\eclipse\plugins\com.genuitec.org.hibernate.eclipse_5.1.0\myeclipse-data\3.0\lib