WebLogic preferentially loads jar package Configuration

Source: Internet
Author: User

WebLogic comes with many jar packages. Errors often occur when the jar in the project is different from the jar version in weblogic.

To solve the jar package conflict in WebLogic, you can create a weblogic. xml file under Web-INF.

The content is as follows:

<? XML version = "1.0"?>
<Weblogic-web-app
Xmlns = "http://www.bea.com/ns/weblogic/weblogic-web-app"
Xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance"
Xsi: schemalocation = "http://www.bea.com/ns/weblogic/weblogic-web-app http://www.bea.com/ns/weblogic/weblogic-web-app/1.0/weblogic-web-app.xsd">
<Container-Descriptor>
<Prefer-web-INF-classes> true </prefer-web-INF-classes> // preferentially load the jar package in the WEB Project
</Container-Descriptor>
</Weblogic-web-app>

Reprinted please note address: http://www.cnblogs.com/likehua/

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.