[jboss-jira] [JBoss JIRA] (WFLY-10010) @WebServlet is not working

Stuart Douglas (JIRA) issues at jboss.org
Tue Mar 13 05:16:00 EDT 2018


     [ https://issues.jboss.org/browse/WFLY-10010?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Stuart Douglas resolved WFLY-10010.
-----------------------------------
    Resolution: Duplicate Issue


This is a known issue with Wildfly 12 where classes compiled with JDK9 will not have their annotations read correctly. The only solution at this stage is to upgrade Jandex to 2.0.5.Final

> @WebServlet is not working
> --------------------------
>
>                 Key: WFLY-10010
>                 URL: https://issues.jboss.org/browse/WFLY-10010
>             Project: WildFly
>          Issue Type: Bug
>          Components: Web (Undertow)
>    Affects Versions: 12.0.0.Final
>         Environment: WildFly 12.0.0.Final
> JDK 9
>            Reporter: Rakesh K. Cherukuri
>            Assignee: Stuart Douglas
>            Priority: Critical
>              Labels: @WebServlet
>         Attachments: web-servlet-not-working.zip
>
>
> Trying to deploy a simple web module in wildfly 12 that has one servlet with @WebServlet.
> Expectation: The servlet is available at the configured URL
> Actual : Servlet is not put into service and consequently URL gets 404
> Attached is the full module.
> NOTE : The same war file works in WildFly 11 but NOT in WildFly 12



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


More information about the jboss-jira mailing list