Uploaded image for project: 'MyFaces Core'
  1. MyFaces Core
  2. MYFACES-3989

MalformedURLException when javax.faces.FACELETS_LIBRARIES contains line feed

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.2.8
    • 2.2.9
    • None
    • None

    Description

      If javax.faces.FACELETS_LIBRARIES is specified in several lines

          <context-param>
              <param-name>javax.faces.FACELETS_LIBRARIES</param-name>
              <param-value>/WEB-INF/tags/popup/popup.taglib.xml;
               /WEB-INF/tags/component/component.taglib.xml</param-value>
          </context-param>
      

      FacesConfigurator will fail with a MalformedURLException:

      ERROR o.a.m.c.FacesConfigurator - Could not read resource 
                  /WEB-INF/tags/component/component.taglib.xml
      java.net.MalformedURLException: 
                  /WEB-INF/tags/component/component.taglib.xml
              at org.eclipse.jetty.webapp.WebAppContext.getResource(WebAppContext.java:351)
              at org.mortbay.jetty.plugin.JettyWebAppContext.getResource(JettyWebAppContext.java:338)
              at org.eclipse.jetty.webapp.WebAppContext$Context.getResource(WebAppContext.java:1325)
              at org.apache.myfaces.context.servlet.ServletExternalContextImplBase.getResource(ServletExternalContextImplBase.java:127)
              at org.apache.myfaces.config.FacesConfigurator.getResourceLastModified(FacesConfigurator.java:293)
              at org.apache.myfaces.config.FacesConfigurator.getLastModifiedTime(FacesConfigurator.java:398)
              at org.apache.myfaces.config.FacesConfigurator.update(FacesConfigurator.java:469)
              at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:137)
              at javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
              at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:684)
              at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1496)
              at org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:231)
              at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
              at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1484)
              at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
              at com.deutscheboerse.comxerv.common.util.LoggedInUserFilter.doFilterInternal(LoggedInUserFilter.java:33)
              at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
      

      Attachments

        1. MYFACES-3989.patch
          1 kB
          Dennis Kieselhorst

        Activity

          People

            deki Dennis Kieselhorst
            deki Dennis Kieselhorst
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: