java.lang.NoClassDefFoundError: com/mysql/jdbc/MySQLConnection

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 finally found 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/

转载于:https://www.cnblogs.com/duadu/archive/2013/01/15/6335505.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值