JPA stops working after redeploy in glassfish

大兔子大兔子 提交于 2019-12-11 18:23:32

问题


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


回答1:


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




回答2:


It's generally a good idea to always restart the server after deploying. You can run out of perm gen space, and have other weird issues as well.

Since you're saying it works after restarting, I would chalk it up to that.



来源:https://stackoverflow.com/questions/4557815/jpa-stops-working-after-redeploy-in-glassfish

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