[jboss-jira] [JBoss JIRA] (WFLY-4064) Web-fragments of Servlet 3 API doesn't work in WildFly

Stuart Douglas (JIRA) issues at jboss.org
Mon Nov 10 00:46:30 EST 2014


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

Stuart Douglas resolved WFLY-4064.
----------------------------------
    Resolution: Rejected


You are using web.xml of version 2.3:

{code}
<!DOCTYPE web-app PUBLIC
 "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
 "http://java.sun.com/dtd/web-app_2_3.dtd" >
{code}

You need to use version 2.5 or later for this to work, as web fragments where not part of the earlier version of the spec.

{code}
<?xml version="1.0"?>
<web-app version="3.1" xmlns="http://xmlns.jcp.org/xml/ns/javaee"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd">
{code}


> Web-fragments of Servlet 3 API doesn't work in WildFly
> ------------------------------------------------------
>
>                 Key: WFLY-4064
>                 URL: https://issues.jboss.org/browse/WFLY-4064
>             Project: WildFly
>          Issue Type: Bug
>          Components: Web (JBoss Web), Web (Undertow)
>    Affects Versions: 8.1.0.Final
>            Reporter: Georgy Go
>            Assignee: Stuart Douglas
>         Attachments: test.zip
>
>
> The same project with web-fragments works fine in Tomcat 8 and doesn't in WildFly 8.1.0.Final.
> The problem is registred servlet unaccessable from it's path, failes with "Not Found" error.
> Because it's works fine in Tomcat, I think it's bug.



--
This message was sent by Atlassian JIRA
(v6.3.8#6338)


More information about the jboss-jira mailing list