2016-11-14 76 views
-1

HTTP状态500 - 内部服务器错误MS Access数据库:错误 “抛出java.lang.ClassNotFoundException:在sun.jdbc.odbc.JdbcOdbcDriver”

例外

javax.servlet.ServletException: java.lang.ClassNotFoundException: sun.jdbc.odbc.JdbcOdbcDriver 
root cause 

java.lang.ClassNotFoundException: sun.jdbc.odbc.JdbcOdbcDriver 
note The full stack traces of the exception and its root causes are available in the GlassFish Server Open Source Edition 4.0 logs. 
+1

你检查,[这](http://stackoverflow.com/questions/22984438/java-lang-classnotfoundexception-sun-jdbc-odbc-jdbcodbcdriver -exception-occurin)? –

回答

0

尝试与添加的jar库缺少glassfish运行时的驱动程序类。

这是一个重复到:

java.lang.ClassNotFoundException: sun.jdbc.odbc.JdbcOdbcDriver Exception occurring. Why?

+0

我添加了“commons-lang-2.6.jar,commons-logging-1.1.1.jar,hsqldb.jar,jackcess-2.1.2.jar,ucanaccess-3.0.0” –

+0

对不起,但我不知道缺少类的jar库。我甚至没有在http://search.maven.org上找到它,它不是我的jdk的一部分。以“太阳”开头的课程。应该是jdk/jre的一部分。 –

相关问题