title: Validation error with web.xml and weblogic.xml in WebLogic
body: <p>I'm trying to deploy a web application on a WebLogic 12c server but I'm getting validation errors in the XML. I tried changing the version of the schema and namespace but it didn't work and I cannot figure out what exactly is wrong.</p>
  
  <p>My web.xml file:</p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
  &lt;web-app version="2.5" 
  xmlns="http://java.sun.com/xml/ns/javaee" 
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"&gt;             
      &lt;context-param&gt;
          &lt;param-name&gt;org.jboss.jbossfaces.WAR_BUNDLES_JSF_IMPL&lt;/param-name&gt;
          &lt;param-value&gt;true&lt;/param-value&gt;
      &lt;/context-param&gt;
      &lt;context-param&gt;
          &lt;param-name&gt;facelets.LIBRARIES&lt;/param-name&gt;
          &lt;param-value&gt;/WEB-INF/tomahawk.taglib.xml;/WEB-INF/sgdem.taglib.xml&lt;/param-value&gt;
      &lt;/context-param&gt;
  &lt;/web-app&gt;
  </code></pre>
  
  <p>My weblogic.xml file:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;weblogic-web-app version="1.0"
  xmlns="http://xmlns.oracle.com/weblogic/weblogic-web-app"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
  http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd
  http://xmlns.oracle.com/weblogic/weblogic-web-app
  http://xmlns.oracle.com/weblogic/weblogic-web-app/1.0/weblogic-web-app.xsd"&gt;
      &lt;fast-swap&gt;
          &lt;enabled&gt;true&lt;/enabled&gt;
      &lt;/fast-swap&gt;   
  &lt;/weblogic-web-app&gt;
  </code></pre>
  
  <p>The error:
  </p>
  
  <pre><code>weblogic.application.ModuleException: VALIDATION PROBLEMS WERE FOUND
    &lt;11:4&gt; problem: cvc-complex-type.2.3: Element 'web-app@http://java.sun.com/xml/ns/javaee' with element-only content type cannot have text content.
      at weblogic.servlet.internal.WebAppModule.createModuleException(WebAppModule.java:1824)
      at weblogic.servlet.internal.WebAppModule.loadDescriptor(WebAppModule.java:1482)
      at weblogic.servlet.internal.WebAppModule.init(WebAppModule.java:245)
      at weblogic.servlet.internal.WebAppModule.init(WebAppModule.java:682)
      at weblogic.application.internal.flow.ScopedModuleDriver.init(ScopedModuleDriver.java:162)
      Truncated. see log file for complete stacktrace
  Caused By: weblogic.descriptor.DescriptorException: VALIDATION PROBLEMS WERE FOUND
    &lt;11:4&gt; problem: cvc-complex-type.2.3: Element 'web-app@http://java.sun.com/xml/ns/javaee' with element-only content type cannot have text content.
      at weblogic.descriptor.internal.MarshallerFactory$1.evaluateResults(MarshallerFactory.java:245)
      at weblogic.descriptor.internal.MarshallerFactory$1.evaluateResults(MarshallerFactory.java:231)
      at weblogic.descriptor.internal.MarshallerFactory$1.createDescriptor(MarshallerFactory.java:155)
      at weblogic.descriptor.BasicDescriptorManager.createDescriptor(BasicDescriptorManager.java:327)
      at weblogic.application.descriptor.AbstractDescriptorLoader2.getDescriptorBeanFromReader(AbstractDescriptorLoader2.java:817)
      Truncated. see log file for complete stacktrace
  </code></pre>