使用 BLOB 给出“java.lang.ClassNotFoundException: oracle.sql.BLOB”如果是SPRING-Hibernate应用程序,如果是ORACLE作为数据库!
我在 SPRING-Hibernate 应用程序中使用 BLOB,在 ORACLE 作为数据库的情况下给出“java.lang.ClassNotFoundException:oracle.sql.BLOB”!
正是我得到以下信息:
Caused by:
org.springframework.dao.InvalidDataAccessApiUsageException: Couldn't initialize OracleLobHandler because Oracle driver classes are not available. Note that OracleLobHandler requires Oracle JDBC driver 9i or higher!
nested exception is java.lang.ClassNotFoundException: oracle.sql.BLOB
I am using BLOBs in my SPRING-Hibernate application its, giving "java.lang.ClassNotFoundException: oracle.sql.BLOB" in case of ORACLE as a database!
Exactly I am getting following:
Caused by:
org.springframework.dao.InvalidDataAccessApiUsageException: Couldn't initialize OracleLobHandler because Oracle driver classes are not available. Note that OracleLobHandler requires Oracle JDBC driver 9i or higher!
nested exception is java.lang.ClassNotFoundException: oracle.sql.BLOB
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您的类路径上需要
ojdbc.jar
(或类似文件)(这是 Oracle JDBC 驱动程序)这是驱动程序列表,选择适合您环境的驱动程序。
You need
ojdbc.jar
(or similar) on your classpath (this is the Oracle JDBC driver)Here is a list of drivers, pick the one that suits your environment.
也许您的 OSGI 清单没有导出正确的包?
Maybe your OSGI manifest does not export the right packages?