The "ear file may be corrupted and incomplete" solution was encountered when deploying an application (such as war) under was (WebSphere6 or WebSphere7)

Source: Internet
Author: User
The ear file may be corrupted and/or incomplete. Ensure that the application is in the current version of WebSphere (R) Application Server compatible Java (TM) Platform, Enterprise Edition (Java EE) level.

Analysis:

Knowing that the problem is caused by using the <tablib> tag under the Web-app node in the Web. xml file by viewing the log is that when the Web-app version of the Web. xml file is 2.4, the <tablib> tag needs to be nested on the outer layer <jsp-config> tags.

Note: Because WebSphere has strict requirements on the Web. xml file configuration specification, reference <tablib> Improper is just one of the reasons for the above problem. Other reasons such as the incorrect order of filter and servlet configuration in the Web. xml file can also cause the above problem.


Modify the following:

<web-app>

...

...

<jsp-config>

<taglib>
<taglib-uri>xxx</taglib-uri>
<taglib-location>xxxxxx</taglib-location>
</taglib>
</jsp-config>
</web-app>


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.