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>