java.lang.NoClassDefFoundError: com/mysql/jdbc/MySQLConnection
2013-01-15 14:00
1706 查看
java.lang.NoClassDefFoundError: com/mysql/jdbc/MySQLConnection
After getting the ADF BCs up, I tried creating a facelet page to display the results. Upon trying to run the page, I received a similar mysql class not found exception. After many searches and computer restarts due to wls hanging on shutdown… I have finallyfound the solution to
Error 500–Internal Server Error
oracle.jbo.JboException: JBO-29114 ADFContext is not setup to process messages for this exception. Use the exception stack trace and error code to investigate the root cause of this exception. Root cause error code is JBO-29000. Error message parameters
are {0=java.lang.NoClassDefFoundError, 1=com/mysql/jdbc/MySQLConnection}
I tried everything from
adding the mysql jar file to proj libraries
adding to “Database: JDBC Driver Options” in preferences
adding to C:\Oracle\Middleware\wlserver_10.3\server\ext\jdbc\mysql\
adding to C:\Users\USERNAME\AppData\Roaming\JDeveloper\system11.1.2.2.39.61.83.1\DefaultDomain
No dice, and just when I was about to call it quits… came across this post:
https://forums.oracle.com/forums/thread.jspa?threadID=424970
“I found that placing the connector jar in the <jdk install>/jre/lib/ext resolved this issue for me.”
FINALLY! Got a page to show up with data! Still, very strange… I’m not sure why after all the attempts to include jar file as part of the project and in the defaultdomain it would still not be picked up!
Things I like about the new jdev:
The connections are part of the project and can be directly imported along with a fresh new checkout from svn.
From:http://wesfang.wordpress.com/2012/09/06/java-lang-noclassdeffounderror-commysqljdbcmysqlconnection-and-2-hours-later/
相关文章推荐
- java.lang.AbstractMethodError com.mysql.jdbc.Connection.isValid(I)Z
- java链接MySQL数据库时使用com.mysql.jdbc.Connection的包会出红线问题 java.lang.ClassNotFoundException: com.mysql.jdbc.Driver问题
- java.lang.NoClassDefFoundError: com/mysql/jdbc/MySQLConnection
- java.lang.NoClassDefFoundError: Could not initialize class com.mysql.jdbc.ConnectionImpl
- java.lang.AbstractMethodError: com.mysql.jdbc.Connection.isValid(I)Z
- 关于配置spring中dbcp2时错误java.lang.AbstractMethodError: com.mysql.jdbc.Connection.isValid(I)Z的解决
- java.lang.ClassNotFoundException: com.mysql.jdbc.Driver 解决方法
- java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
- java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
- 在idea配置的请况下遇到java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
- java.lang.classNotFound Exception:com.mysql.jdbc.Driver
- java.lang.UnsupportedClassVersionError: com/mysql/cj/jdbc/Driver : Unsupported major.minor version 5
- java.lang.ClassNotFoundException: com.mysql.jdbc.Driver原因
- java.lang.AbstractMethodError: com.mysql.jdbc.PreparedStatement.setCharacterStream(ILjava/io/Reader;
- java.lang.ClassNotFoundException: com.mysql.jdbc.Driver 解决方法
- java.lang.ClassNotFoundException:com.mysql.jdbc.Driver解决方法
- 关于java.lang.ClassNotFoundException: com.mysql.jdbc.Driver的解决办法
- java.lang.ClassNotFoundException: com.mysql.jdbc
- 连接mysql的时候出现:java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
- java.lang.ClassNotFoundException: com.mysql.jdbc.Driver