本地的工程部署到linux环境下,出现org.hibernate.hql.ast.HqlToken 异常,具体原因的是weblogic下的包和工程下的包冲突,百度到处都是,不说了。
解决方法
1、 首先增加weblogic.xml,直接将 weblogic.xml放到和web.xml同目录下就可以了。这样可以优先执行web-inf下的包或者类。可以解决包冲突的解决办法。
<weblogic-web-app>
<container-descriptor>
<prefer-web-inf-classes>true</prefer-web-inf-classes>
</container-descriptor>
</weblogic-web-app>
然后出现 weblogic10出现ClassCastException: weblogic.xml.jaxp.RegistrySAXParserFactory cannot be cast异常。
2、 从WEB-INF/lib下删除xml-apis-1.*.*
3、 重启服务,工程启动正常,删除功能正常使用