Quantcast
Channel: CSDN博客推荐文章
Viewing all articles
Browse latest Browse all 35570

org.hibernate.hql.ast.HqlToken 异常及hibernate不能删除功能解决

$
0
0

本地的工程部署到linux环境下,出现org.hibernate.hql.ast.HqlToken 异常,具体原因的是weblogic下的包和工程下的包冲突,百度到处都是,不说了。


解决方法

1、 首先增加weblogic.xml,直接将 weblogic.xml放到和web.xml同目录下就可以了。这样可以优先执行web-inf下的包或者类。可以解决包冲突的解决办法。 

<weblogic-web-app>
<container-descriptor>
<prefer-web-inf-classes>true</prefer-web-inf-classes>
</container-descriptor>
</weblogic-web-app>

然后出现weblogic10出现ClassCastException: weblogic.xml.jaxp.RegistrySAXParserFactory cannot be cast异常。


2、 从WEB-INF/lib下删除xml-apis-1.*.*  

3、 重启服务,工程启动正常,删除功能正常使用



作者:xiaxiaorui2003 发表于2013-4-1 15:53:39 原文链接
阅读:29 评论:0 查看评论

Viewing all articles
Browse latest Browse all 35570

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>