]
Ivn Lahav commented on WFLY-5072:
---------------------------------
I get the same WFLYUT0037 even on servlet.
I thought maybe the problem is with lifecycle of the component (servlet should have only
one instance) but I get the same error even with singleton EJB:
@WebServlet("/S1")
@javax.ejb.Singleton
public class S1 extends HttpServlet {
...
}
Unable to create a @Stateless @WebListener ServletContextListener
-----------------------------------------------------------------
Key: WFLY-5072
URL:
https://issues.jboss.org/browse/WFLY-5072
Project: WildFly
Issue Type: Feature Request
Components: EE, EJB, Web (Undertow)
Affects Versions: 8.2.1.Final, 9.0.1.Final
Reporter: Archimedes Trajano
Fix For: Awaiting Volunteers
Getting WFLYUT0037: when I try to have a @WebListener that is @Stateless
Caused by: java.lang.RuntimeException: WFLYUT0037: net.trajano.test.StartupListener has
the wrong component type, it cannot be used as a web component
at
org.wildfly.extension.undertow.deployment.WebComponentProcessor.deploy(WebComponentProcessor.java:116)