[jboss-jira] [JBoss JIRA] (WFLY-9961) [JDK9+] Spring WebApplicationInitializer not working (JDK8 OK!)

cnsgithub cnsgithub (JIRA) issues at jboss.org
Tue Mar 6 05:18:00 EST 2018


cnsgithub cnsgithub created WFLY-9961:
-----------------------------------------

             Summary: [JDK9+] Spring WebApplicationInitializer not working (JDK8 OK!)
                 Key: WFLY-9961
                 URL: https://issues.jboss.org/browse/WFLY-9961
             Project: WildFly
          Issue Type: Bug
          Components: Web (Undertow)
    Affects Versions: 12.0.0.Final
            Reporter: cnsgithub cnsgithub
            Assignee: Stuart Douglas
            Priority: Blocker


After upgrading to WFLY 12 Final, the WebApplicationInitializer class residing in the *.war classes Folder is no longer being detected when built with JDK 9. However with JDK 1.8 it works as expected.

With WFLY 11, both variants JDK9, and JDK1.8 Build were working. 

{code:java}
package de.test;

import javax.servlet.ServletContext;
import javax.servlet.ServletException;

import org.springframework.web.WebApplicationInitializer;

public class MyWebApplicationInitializer implements WebApplicationInitializer {

	@Override
	public void onStartup(ServletContext container) throws ServletException {

		 System.out.println("!!!!!!!!!!!!!! ;-) !!!!!!!!!!!!");

	}

}

{code}

Maybe(!) related to this: https://issues.jboss.org/browse/WFLY-9081






--
This message was sent by Atlassian JIRA
(v7.5.0#75005)


More information about the jboss-jira mailing list