When a local project is deployed to a linux environment, org. hibernate. hql. ast. the HqlToken is abnormal. The specific cause is that the packages in weblogic conflict with those in the project. Baidu is everywhere.
Solution
1. First, add weblogic. xml to put weblogic. xml in the same directory as web. xml. In this way, the packages or classes under web-inf can be preferentially executed. It can solve the package conflict.
[Html]
Weblogic-web-app>
<Container-descriptor>
<Prefer-web-inf-classes> true </prefer-web-inf-classes>
</Container-descriptor>
</Weblogic-web-app>
<Weblogic-web-app>
<Container-descriptor>
<Prefer-web-inf-classes> true </prefer-web-inf-classes>
</Container-descriptor>
</Weblogic-web-app>
Then, the following error occurs in weblogic10: ClassCastException: weblogic. xml. jaxp. RegistrySAXParserFactory cannot be cast.
2. Remove WEB-INF from xml-apis-1/lib .*.*
3. Restart the service. The project is started normally and the deletion function is used normally.