@@ -0,0 +1,2819 @@
+package com.github.persapiens.jsfboot.undertow;%0A%0Aimport io.undertow.server.handlers.resource.ClassPathResourceManager;%0Aimport io.undertow.servlet.api.DeploymentInfo;%0Aimport java.net.URL;%0Aimport java.net.URLClassLoader;%0Aimport java.security.AccessController;%0Aimport java.security.PrivilegedAction;%0Aimport org.slf4j.Logger;%0Aimport org.slf4j.LoggerFactory;%0Aimport org.springframework.beans.factory.annotation.Autowired;%0Aimport org.springframework.boot.autoconfigure.condition.ConditionalOnClass;%0Aimport org.springframework.boot.context.embedded.ConfigurableEmbeddedServletContainer;%0Aimport org.springframework.boot.context.embedded.EmbeddedServletContainerCustomizer;%0Aimport org.springframework.boot.context.embedded.undertow.UndertowEmbeddedServletContainerFactory;%0Aimport org.springframework.boot.context.embedded.undertow.UndertowDeploymentInfoCustomizer;%0Aimport org.springframework.boot.context.properties.EnableConfigurationProperties;%0Aimport org.springframework.boot.context.web.SpringBootServletInitializer;%0Aimport org.springframework.context.annotation.Configuration;%0A%0A/**%0A * Configure undertow to load jsf resources from classpath%0A */%0A@Configuration%0A@EnableConfigurationProperties(%7BUndertowProperties.class%7D)%0A@ConditionalOnClass(UndertowEmbeddedServletContainerFactory.class)%0Apublic class UndertowSpringBootAutoConfiguration extends SpringBootServletInitializer implements EmbeddedServletContainerCustomizer %7B%0A%0A    @Autowired%0A    private UndertowProperties undertowProperties;%0A%0A    private static final Logger LOGGER = LoggerFactory.getLogger(UndertowSpringBootAutoConfiguration.class);%0A%0A    private UndertowDeploymentInfoCustomizer jettyServerCustomizer() %7B%0A        return new UndertowDeploymentInfoCustomizerImpl();%0A    %7D%0A%0A    @Override%0A    public void customize(ConfigurableEmbeddedServletContainer container) %7B%0A        if (container instanceof UndertowEmbeddedServletContainerFactory) %7B%0A            ((UndertowEmbeddedServletContainerFactory) container).addDeploymentInfoCustomizers(jettyServerCustomizer());%0A        %7D%0A    %7D%0A%0A    private class UndertowDeploymentInfoCustomizerImpl implements UndertowDeploymentInfoCustomizer %7B%0A        @Override%0A        public void customize(DeploymentInfo di) %7B%0A            AccessController.doPrivileged(new PrivilegedAction%3CVoid%3E() %7B%0A                @Override%0A                public Void run() %7B%0A                    ClassLoader jsfClassLoader = new URLClassLoader(new URL%5B0%5D, this.getClass().getClassLoader());%0A                    di.setClassLoader(jsfClassLoader);%0A%0A                    di.setResourceManager(new ClassPathResourceManager(jsfClassLoader, undertowProperties.getClassPathResource()));%0A%0A                    return null;%0A                %7D%0A            %7D);%0A%0A            LOGGER.info(%22Setting Undertow classLoader to META-INF/resources directory%22);%0A        %7D%0A    %7D%0A%7D%0A

fix #35 UndertowSpringBootAutoconfiguration created