Weblogic 10g下部署web项目报错:ClassNotFoundException: org.hibernate.hql.ast.HqlToken
网上找的一个解决方法:在你的WEB-INF下建立一个weblogic.xml文件,然后设置一个属性,优先加载你程序中的包,就没问题了,该属性是:<prefer-web-inf-classes>true</prefer-web-inf-classes>
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>
<prefer-web-inf-classes>true</prefer-web-inf-classes>
</container-descriptor>
<context-root>/</context-root>
</weblogic-web-app>