Wildfly 10 --> Wildfly29 : 404 not found error

146 views
Skip to first unread message

venkateswara prasad

unread,
Jun 10, 2024, 6:36:20 PM6/10/24
to WildFly
Hi,

We are migrating our application from Wildfly10 to 29. I don't see any error while deploying the application. Request is reaching till request filter but getting resource not found error.

Here is my web.xml

<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" version="2.5">
  <display-name>amigo</display-name>    
      <filter>
        <filter-name>amigo-filter</filter-name>
        <filter-class>com.amigo.filter.AmigoRequestFilter</filter-class>
      </filter>
     
      <filter-mapping>
        <filter-name>amigo-filter</filter-name>
        <url-pattern>/1_0/*</url-pattern>
      </filter-mapping>
     
      <servlet>
    <servlet-name>Resteasy</servlet-name>
    <servlet-class>org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher</servlet-class>
    <load-on-startup>1</load-on-startup>
    <init-param>
        <param-name>javax.ws.rs.Application</param-name>
        <param-value>com.amigo.rs.AmigoScoringApplication</param-value>
    </init-param>
</servlet>
<servlet-mapping>
    <servlet-name>Resteasy</servlet-name>
    <url-pattern>/1_0/*</url-pattern>
</servlet-mapping>

    <listener>
    <listener-class>com.amigo.context.AmigoContextListener</listener-class>
  </listener>
 
<context-param>
        <param-name>resteasy.servlet.mapping.prefix</param-name>
        <param-value>/1_0</param-value>
    </context-param>
   
    <security-constraint>
        <web-resource-collection>
            <web-resource-name>Protected Area</web-resource-name>
            <url-pattern>/1_0/*</url-pattern>
        </web-resource-collection>
    </security-constraint>
   
   
  <welcome-file-list>
    <welcome-file>index.html</welcome-file>
  </welcome-file-list>
</web-app>

Please help me if anyone have solution.

Thanks,
Venkat

 

Emmanuel Hugonnet

unread,
Jun 11, 2024, 5:39:41 AM6/11/24
to wil...@googlegroups.com
Did you move your code to Jakarta EE 10 ? I'm asking since your descriptor is using an old Java EE schema.
Emmanuel
> --
> You received this message because you are subscribed to the Google Groups "WildFly" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to wildfly+u...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/wildfly/59d6c82f-7500-4569-87e2-00fa2fbb3d98n%40googlegroups.com
> <https://groups.google.com/d/msgid/wildfly/59d6c82f-7500-4569-87e2-00fa2fbb3d98n%40googlegroups.com?utm_medium=email&utm_source=footer>.

Reply all
Reply to author
Forward
0 new messages