문제

i work on ubuntu with java EE-Eclipse ,tomcat and mariadb.i have written a test class and when i run as java application,it can connect to mariadb.but when i test in servlet and run on tomcat server,this line "Class.forName("org.mariadb.jdbc.Driver");"dosen't work...i don't know why and can not solve this problem.help!help!

도움이 되었습니까?

해결책

You need to add the driver jar to WEB-INF/lib in your Tomcat application / war file.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top