Skip to content

Instantly share code, notes, and snippets.

@liweinan
Created May 27, 2022 05:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save liweinan/f4e82262b91a360b1ec9be6c0f9f81e2 to your computer and use it in GitHub Desktop.
Save liweinan/f4e82262b91a360b1ec9be6c0f9f81e2 to your computer and use it in GitHub Desktop.
deploying `resteasy-spring-boot` project into wildfly.

investigating on deploying resteasy-spring-boot to wildfly.

@liweinan
Copy link
Author

liweinan commented May 27, 2022

The Tomcat component in spring-webmvc conflicts with WildFly:

7D752551-6DAA-4BA9-BFED-F36A88896EE3

Here is the dependency tree with conflicting classes:

D10D233B-9B45-4A1B-A28B-9FD62B793570

The solution is to exclude the Tomcat component:

76129A1E-5E6A-4719-9C2D-9E7F1E3FA1A2

After above setup, rebuild the sample app and deploy to wildfly the deployment is ok. However accessing the service will throw error:

B9DB5C5E-C92B-4077-BD7E-6A4BAB8B1846

The problem is that the Spring autowired component is not registered correctly, so it's null during runtime.

The next step I plan to deploy a pure spring-boot project into WildFly, to confirm it's a resteasy-spring-boot problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment