Uploaded image for project: 'JBoss Metadata'
  1. JBoss Metadata
  2. JBMETA-356

NPE in JBossWebMetaDataParser.parse()

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 7.0.2.Final
    • None
    • web
    • None
    • Hide

      Users can use older jboss-web.xml version, e.g:

      <jboss-web xmlns="http://www.jboss.com/xml/ns/javaee"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://www.jboss.com/xml/ns/javaee http://www.jboss.org/j2ee/schema/jboss-web_6_0.xsd"
        version="6.0">
        <!-- other stuff -->
      </jobss-web>
      
      Show
      Users can use older jboss-web.xml version, e.g: <jboss-web xmlns= "http: //www.jboss.com/xml/ns/javaee" xmlns:xsi= "http: //www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation= "http: //www.jboss.com/xml/ns/javaee http://www.jboss.org/j2ee/schema/jboss-web_6_0.xsd" version= "6.0" > <!-- other stuff --> </jobss-web>

      NPE is thrown if user provides jboss-web.xml with the following schema location: http://www.jboss.org/j2ee/schema/jboss-web_7_0.xsd

      Caused by: java.lang.NullPointerException
      at org.jboss.metadata.parser.jbossweb.JBossWebMetaDataParser.parse(JBossWebMetaDataParser.java:100)
      at org.jboss.as.web.deployment.JBossWebParsingDeploymentProcessor.deploy(JBossWebParsingDeploymentProcessor.java:69)
      at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:114) [jboss-as-server-7.1.2.Final-SNAPSHOT.jar:7.1.2.Final-SNAPSHOT]
      ... 5 more

              ropalka Richard Opalka
              ropalka Richard Opalka
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: