-
1. Re: Arquillian Wildfly Embedded Container - Unexpected Fatal Error
eliasbalasis1 Dec 1, 2016 3:20 PM (in response to eliasbalasis1)Some more information,
This is reproducible on Wildfly 10.1.0 as well, which implies it is not Wildfly implementation issue, rather an Embedded container implementation issue.
Furthermore,
the problem occurs at java.util.ServiceLoader.LazyIterator.nextService() under Class.forName(cn, false, loader)
"loader" here is the JBoss module class loader instance
putting a break-point and
evaluating Class.forName("javax.servlet.ServletContainerInitializer", false, loader) generates "java.util.ServiceConfigurationError: javax.servlet.ServletContainerInitializer: Provider org.springframework.web.SpringServletContainerInitializer not found"
evaluating Class.forName("javax.servlet.ServletContainerInitializer", false, loader.getParent()) does not reproduce the error
This is clearly a problem with the Embedded container module class loader
Any thoughts anyone?