java.io.IOException: org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid content was found starting with element 'context-param'. One of '{"http://java.sun.com/xml/ns/javaee":description, "http://java.sun.com/xml/ns/javaee":display-name, "http://java.sun.com/xml/ns/javaee":icon, "http://java.sun.com/xml/ns/javaee":servlet-name}' is expected.

Oracle Community | johnwp | 7 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Error: The module has not been deployed.

    Oracle Community | 7 years ago | johnwp
    java.io.IOException: org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid content was found starting with element 'context-param'. One of '{"http://java.sun.com/xml/ns/javaee":description, "http://java.sun.com/xml/ns/javaee":display-name, "http://java.sun.com/xml/ns/javaee":icon, "http://java.sun.com/xml/ns/javaee":servlet-name}' is expected.
  2. 0

    Invalid Deployment Descriptors in Deployment descriptor file WEB-INF/web.xml in archive

    Stack Overflow | 4 years ago | V.Rohan
    org.xml.sax.SAXParseException: cvc-complex-type.2.4.d: Invalid content was found starting with element 'description'. No child element is expected at this point.

    Root Cause Analysis

    1. org.xml.sax.SAXParseException

      cvc-complex-type.2.4.a: Invalid content was found starting with element 'context-param'. One of '{"http://java.sun.com/xml/ns/javaee":description, "http://java.sun.com/xml/ns/javaee":display-name, "http://java.sun.com/xml/ns/javaee":icon, "http://java.sun.com/xml/ns/javaee":servlet-name}' is expected.

      at com.sun.enterprise.deployment.io.DeploymentDescriptorFile.read()
    2. Deployment Object Library
      ApplicationFactory.openArchive
      1. com.sun.enterprise.deployment.io.DeploymentDescriptorFile.read(DeploymentDescriptorFile.java:304)
      2. com.sun.enterprise.deployment.io.DeploymentDescriptorFile.read(DeploymentDescriptorFile.java:225)
      3. com.sun.enterprise.deployment.archivist.Archivist.readStandardDeploymentDescriptor(Archivist.java:614)
      4. com.sun.enterprise.deployment.archivist.Archivist.readDeploymentDescriptors(Archivist.java:366)
      5. com.sun.enterprise.deployment.archivist.Archivist.open(Archivist.java:238)
      6. com.sun.enterprise.deployment.archivist.Archivist.open(Archivist.java:247)
      7. com.sun.enterprise.deployment.archivist.Archivist.open(Archivist.java:208)
      8. com.sun.enterprise.deployment.archivist.ApplicationFactory.openArchive(ApplicationFactory.java:148)
      8 frames
    3. Deployment Related JavaEE Core Classes
      DolProvider.load
      1. org.glassfish.javaee.core.deployment.DolProvider.load(DolProvider.java:162)
      1 frame