Monday, 9 May 2011

weblogic.xml Versions in your Webapp

Using the wrong version of weblogic.xml in your Weblogic webapp causes eclipse to shout about a whole bunch of errors. For example, using the following schemata:
<wls:weblogic-web-app xmlns:wls="" xmlns:xsi="" 
causes the following error:

...which, if you can't read it says: "The errors below were detected when validating the file "j2ee_1_4.xsd" via the file "weblogic.xml". In most cases these errors can be detected by validating "j2ee_1_4.xsd" directly. However it is possible that errors will only occur when j2ee_1_4.xsd is validated in the context of weblogic.xml".

… and I guess that it’s because you’re trying to mix different versions of Java Enterprise Editions

The fix is to ensure that that you use the latest versions of the schemata in your weblogic.xml and these are currently:
<wls:weblogic-web-app xmlns:wls="" 
for Weblogic version 10.3.

No comments: