欢迎访问 生活随笔!

生活随笔

当前位置: 首页 > 编程资源 > 编程问答 >内容正文

编程问答

weblogic hibernate HqlToken

发布时间:2025/3/15 编程问答 29 豆豆
生活随笔 收集整理的这篇文章主要介绍了 weblogic hibernate HqlToken 小编觉得挺不错的,现在分享给大家,帮大家做个参考.

org.hibernate.QueryException: ClassNotFoundException: org.hibernate.hql.ast.HqlToken 包冲突

可行的解决方法,也是官方的解决办法,其它的均是瞎折腾,不可行:
在weblogic.xml中加

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

完整的内容如下:

<?xml version="1.0" encoding="utf-8" standalone="no"?>
<weblogic-web-app xmlns="http://www.bea.com/ns/weblogic/90"
xmlns:j2ee="http://java.sun.com/xml/ns/j2ee/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.bea.com/ns/weblogic/90 http://www.bea.com/ns/weblogic/90/weblogic-web-app.xsd">
<jsp-descriptor>
<page-check-seconds>10</page-check-seconds>
</jsp-descriptor>
<container-descriptor>
<prefer-web-inf-classes>true</prefer-web-inf-classes>
</container-descriptor>
</weblogic-web-app>

 

 

 

 

 

转载于:https://www.cnblogs.com/chengzhenhua/archive/2013/04/25/3043076.html

总结

以上是生活随笔为你收集整理的weblogic hibernate HqlToken的全部内容,希望文章能够帮你解决所遇到的问题。

如果觉得生活随笔网站内容还不错,欢迎将生活随笔推荐给好友。