|
John, in this setup where both Weld SE and Weld Servlet are used a basic additional configuration is needded. Otherwise two Weld container instances are started and that's why ws.ament.hammock.web.tomcat.TomcatWebServer comes into play (causing the infinite loop).
If you add something like ctx.getServletContext().setAttribute(Listener.CONTAINER_ATTRIBUTE_NAME, weldContainer) in the test case, the loop should be gone.
See also Weld SE and Weld Servlet cooperation.
By the way, the referenced Hammock branch does not even build - hammock pom.xml is missing tamaya version info and org.apache.tamaya:tamaya-core definition, and Undertow test is missing log4j dependency (UndertowBootTest is using org.apache.log4j.BasicConfigurator).
|