Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-24073

[GSS](7.4.z) JBEE-258 - FactoryFinderCache does not properly handle comments in service

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 7.4.10.CR1, 7.4.10.GA
    • 7.4.8.GA
    • EE
    • None
    • False
    • None
    • False
    • Hide

      Deploy JBEE-258.war or any war containing a WEB-INF/classes/META-INF/services/javax.el.ExpressionFactory file that starts with a comment:

      # comment
      my.factor.ClassName
      
      Show
      Deploy JBEE-258 .war or any war containing a WEB-INF/classes/META-INF/services/javax.el.ExpressionFactory file that starts with a comment: # comment my.factor.ClassName

    Description

      FactoryFinderCache does not properly handle comments in a potential service file. This is similar to https://bz.apache.org/bugzilla/show_bug.cgi?id=64097. That can lead deployment errors like the following as it reads the comment and tries to load it as a class:

      Caused by: javax.el.ELException: Provider # Licensed to the Apache Software Foundation (ASF) under one or more not found
              at javax.el.api@2.0.0.Final-redhat-00001//javax.el.FactoryFinder.newInstance(FactoryFinder.java:64)
              at javax.el.api@2.0.0.Final-redhat-00001//javax.el.FactoryFinder.find(FactoryFinder.java:103)
              at javax.el.api@2.0.0.Final-redhat-00001//javax.el.ExpressionFactory.newInstance(ExpressionFactory.java:140)
              at javax.el.api@2.0.0.Final-redhat-00001//javax.el.ELUtil.getExpressionFactory(ELUtil.java:185)
              at javax.el.api@2.0.0.Final-redhat-00001//javax.el.ELManager.getExpressionFactory(ELManager.java:38)
              at io.undertow.jsp@2.0.9.Final-redhat-00001//org.apache.jasper.runtime.JspApplicationContextImpl.<init>(JspApplicationContextImpl.java:49)
              at io.undertow.jsp@2.0.9.Final-redhat-00001//org.apache.jasper.runtime.JspApplicationContextImpl.getInstance(JspApplicationContextImpl.java:78)
              at io.undertow.jsp@2.0.9.Final-redhat-00001//org.apache.jasper.runtime.JspFactoryImpl.getJspApplicationContext(JspFactoryImpl.java:218)
              at org.wildfly.extension.undertow@7.4.0.GA-redhat-00005//org.wildfly.extension.undertow.deployment.JspInitializationListener.contextInitialized(JspInitializationListener.java:51)
      

      Attachments

        Issue Links

          Activity

            People

              thofman Tomas Hofman
              rhn-support-aogburn Aaron Ogburn
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: