Org. hibernate. hql. ast. HqlToken exception and hibernate cannot be deleted

Source: Internet
Author: User

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.

 


 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.