WebLogic Release minor issues--weblogic.descriptor.descriptorexception:validation problems were FOUND

Source: Internet
Author: User

The app was released a few days ago with an error message that looks like this:

Weblogic.descriptor.DescriptorException:VALIDATION problems were FOUND

Problem:cvc-enumeration-valid:string value ' 3.0 ' is not a valid enumeration value for Web-app-versiontype in namespace H Ttp://java.sun.com/xml/ns/javaee:<null>

Depending on the error message, it is possible to judge a version-related validation problem and see "Web-app", so inference is a problem in the Web. xml File! Baidu a bit, see how other colleagues are how to analyze and solve this problem!

Yes, there is a mismatch between the configuration in the Web. xml file and the WebLogic application server (our application server is: WebLogic Server version: 10.3.6.0),weblogic10.3.6 does not support WEB-APP_3_0. The definition of XSD!

1: Error when the Web-app element of Web. XML in the project is configured as follows

    <Web-appversion= "3.0"xmlns= "Http://java.sun.com/xml/ns/javaee"xmlns:jsp= "http://java.sun.com/xml/ns/javaee/jsp"Xmlns:xsi= "Http://www.w3.org/2001/XMLSchema-instance"Xmlns:web= "Http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"xsi:schemalocation= "Http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"      >

2: Change to the form shown below there's no such thing as this little problem.

    <Web-appversion= "2.5"xmlns= "Http://java.sun.com/xml/ns/javaee"xmlns:jsp= "http://java.sun.com/xml/ns/javaee/jsp"Xmlns:xsi= "Http://www.w3.org/2001/XMLSchema-instance"Xmlns:web= "Http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"xsi:schemalocation= "Http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"      >

Well, the approximate way to solve the problem is this, first carefully understand what the error message means, if you can fix or have ideas on the test. If the idea is not smooth on Baidu to see how other users are how to analyze and solve this problem, in general, many of the problems encountered in the development of the Internet will have some solutions, if you can not find a matching scheme, you may also think of some new ideas to solve the problem, really do not ask colleagues to check books, Finally, we can not solve the experts to help you see! Haha, but the general three steps is almost!

Refer to the following:

http://blog.csdn.net/wangmuming/article/details/22187307

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.