JPA在重新部署玻璃鱼后停止工作 [英] JPA stops working after redeploy in glassfish

查看:183
本文介绍了JPA在重新部署玻璃鱼后停止工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用带有glassfish和eclipselink的oracle xe。持久对象出现问题。新鲜重启glassfish应用程序后工作正常。如果应用程序通过管理界面重新编译和重新部署。持久物体停止工作。内部异常:java.sql.SQLException:ORA-17041 :(无错误消息)1
错误代码:17041

>

我做错了什么?

编辑:
粘贴日志 http://pastebin.com/qC01ztkx

解决方案

发现问题。我在我的应用程序中引用了ojdbc6.jar。我已经删除了参考文件并通过将所述jar复制到glassfish / lib中提供了ojdbc6.jar文件。


Using oracle xe with glassfish and eclipselink. Problems with persisting objects arise. After fresh restart of glassfish app works ok. If app is recompiled and redeployed via admin interface. Persisting objects stops working. The error is:

Internal Exception: java.sql.SQLException: ORA-17041: (no message for error) 1 Error Code: 17041

What am I doing wrong?

EDIT: Pasted logs http://pastebin.com/qC01ztkx

解决方案

Found the problem. I had a reference to ojdbc6.jar in my app. I have removed the reference and supplied glassfish with ojdbc6.jar by copying said jar to glassfish/lib

这篇关于JPA在重新部署玻璃鱼后停止工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆