[jboss-jira] [JBoss JIRA] (WFLY-5072) Unable to create a @Stateless @WebListener ServletContextListener
Ivn Lahav (JIRA)
issues at jboss.org
Mon Jan 16 07:47:01 EST 2017
[ https://issues.jboss.org/browse/WFLY-5072?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13348605#comment-13348605 ]
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)
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
More information about the jboss-jira
mailing list