ClassNotFoundException: org.hibernate.hql.ast.HqlToken 语法解析器异常,提示找不到指定的Class
weblogic.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE weblogic-web-app PUBLIC "-//BEA Systems, Inc.//DTD Web Application 8.1//EN" "http://www.bea.com/servers/wls810/dtd/weblogic810-web-jar.dtd">
<weblogic-web-app>
<container-descriptor>
<index-directory-enabled>true</index-directory-enabled>
<prefer-web-inf-classes>true</prefer-web-inf-classes>
</container-descriptor>
<context-root>/</context-root>
</weblogic-web-app>
红色的部分是让weblogic 优先加载本项目下面的lib
本文介绍了解决在WebLogic环境下部署应用时遇到的ClassNotFoundException问题,特别是当尝试加载org.hibernate.hql.ast.HqlToken时出现的异常。文章提供了weblogic.xml配置示例,展示了如何设置优先加载项目内的lib库。
3669

被折叠的 条评论
为什么被折叠?



