ClassNotFoundException: org.apache.derby.jdbc.EmbeddedDriver when trying to use JPA with Derby

夙愿已清 提交于 2019-12-06 03:55:37

ClassNotFoundException indicates that the class in question (org.apache.derby.jdbc.EmbeddedDrive) is not on your classpath. Put it (the derby jar) there and try again.

To use a third-party JDBC driver that is not installed with WebLogic Server, you need to update the WebLogic Server's CLASSPATH to include the location of the JDBC driver classes. Edit the commEnv.cmd/sh script in WL_HOME/common/bin and prepend your classes.

This applies to the JDBC driver for Derby (see third party driver). If you don't know where to put the JAR, put it in WL_HOME\server\lib with other JDBC drivers bundled with Weblogic.

PS: I wonder why you're not using Kodo which is the default persistence engine of WebLogic but this is another story.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!