在本地测试通过的web应用部署到测试环境的weblogic,结果应用部署完成后,访问应用
时报错,org.hibernate.QueryException: ClassNotFoundException:
org.hibernate.hql.ast.HqlToken .
本地使用的weblogic是11g,10.3.2.0,测试环境的weblogic也是11g,版本号为:
10.3.3.0;仔细核对了下,不应该是程序的问题,就怀疑jar冲突引起的。
在工程的weblogic.xml中,找到<container-descriptor>
<prefer-web-inf-classes>false</prefer-web-inf-classes>
</container-descriptor>,修改“prefer-web-inf-classes”的值为true,重
启应用,问题解决。
时报错,org.hibernate.QueryException: ClassNotFoundException:
org.hibernate.hql.ast.HqlToken .
本地使用的weblogic是11g,10.3.2.0,测试环境的weblogic也是11g,版本号为:
10.3.3.0;仔细核对了下,不应该是程序的问题,就怀疑jar冲突引起的。
在工程的weblogic.xml中,找到<container-descriptor>
<prefer-web-inf-classes>false</prefer-web-inf-classes>
</container-descriptor>,修改“prefer-web-inf-classes”的值为true,重
启应用,问题解决。