Rest api's are failing after migrating my project to wildfly version 27.0.1.Final with JDK17and jakarta EE10

409 views
Skip to first unread message

Nikhil R

unread,
Jun 27, 2023, 2:19:48 PM6/27/23
to WildFly
Hello Team,

I recently migrated my maven project to wildfly version 27.0.1.Final with JDK17and jakarta EE10
after the migration the Rest api's are failing with following error:
<html>
    <head>
        <title>Error</title>
    </head>
    <body>Not Found</body>
</html>

can someone please help what could be the issue???

Replaced the following dependencies:
        <resteasy-client.version>3.0.19.Final</resteasy-client.version>
        <resteasy-jaxb-provider.version>6.0.0.Final</resteasy-jaxb-provider.version>
        <resteasy-servlet-initializer.version>3.0.19.Final</resteasy-servlet-initializer.version>

with the following  resteasy-bom:

<dependency>
<groupId>org.jboss.resteasy</groupId>
<artifactId>resteasy-bom</artifactId>
<version>6.2.3.Final</version>
<type>pom</type>
<scope>import</scope>
</dependency>

James Perkins

unread,
Jun 27, 2023, 2:21:39 PM6/27/23
to WildFly
What kind of errors are you seeing? That mixed usage of the different RESTEasy versions will definitely not work, but like you suggested using the BOM should be fine. 

Nikhil R

unread,
Jun 28, 2023, 2:49:34 AM6/28/23
to WildFly
Hi 

I can see my war file is deployed in wildfly 27 but when try to hit a rest api i am not getting any logs in console and getting 404 not found error.

Regards,
NIKHIL R

Nikhil R

unread,
Jun 28, 2023, 3:01:48 AM6/28/23
to WildFly
By the way the following resteasy versions are supported in wildfly 27.0.1.Final:

        <resteasy-client.version>3.0.19.Final</resteasy-client.version>
        <resteasy-jaxb-provider.version>6.0.0.Final</resteasy-jaxb-provider.version>
        <resteasy-servlet-initializer.version>3.0.19.Final</resteasy-servlet-initializer.version>

James Perkins

unread,
Jun 28, 2023, 12:18:55 PM6/28/23
to WildFly
On Wednesday, June 28, 2023 at 12:01:48 AM UTC-7 nikhilradh...@gmail.com wrote:
By the way the following resteasy versions are supported in wildfly 27.0.1.Final:
        <resteasy-client.version>3.0.19.Final</resteasy-client.version>
        <resteasy-jaxb-provider.version>6.0.0.Final</resteasy-jaxb-provider.version>
        <resteasy-servlet-initializer.version>3.0.19.Final</resteasy-servlet-initializer.version>

These are not supported in WildFly 27. The 6.0.0.Final version of the JAXB provider *might* work as it has the correct namespace, the correct versions of all these components to use inside of WildFly would be 6.2.4.Final. That said, none of them should be included in your deployment as the container already provides them.

As to why you're seeing a 404, that could depend. Have you changed the namespace in all your endpoints from javax.ws.rs.* to jakarta.ws.rs.*?
Reply all
Reply to author
Forward
0 new messages