Comments (9)
@liweinan
https://github.com/dsharinov/resteasy-example
That's a simple example that fails with the error when deployed on Tomcat but runs successfully as a Spring Boot application.
Caused by: java.lang.IllegalStateException: Failed to register 'servlet com.example.resteasy.ResteasyServlet' on the servlet context. Possibly already registered?
at org.springframework.boot.web.servlet.DynamicRegistrationBean.register(DynamicRegistrationBean.java:122)
at org.springframework.boot.web.servlet.RegistrationBean.onStartup(RegistrationBean.java:52)
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.selfInitialize(ServletWebServerApplicationContext.java:241)
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.createWebServer(ServletWebServerApplicationContext.java:197)
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.onRefresh(ServletWebServerApplicationContext.java:162)
Just in case, here are my settings for Tomcat run configuration in IntelliJ:
from resteasy-spring-boot.
@dsharinov Could you please provide a sample project to reproduce this on Github?
from resteasy-spring-boot.
@dsharinov Thanks for the example and detail explanations :D I'll check it.
from resteasy-spring-boot.
Sorry I was working on some other tasks, I'll try to find time to check this during this week.
from resteasy-spring-boot.
@dsharinov I deployed the project to Tomcat 11 and it seems it doesn't have problem:
The Tomcat version I used is:
from resteasy-spring-boot.
@liweinan Thanks! That's good to know, unfortunately it's still an alpha version. I cannot tell customers to install it. Would it still be possible to ignore registration failures and see if it works on Tomcat 10?
from resteasy-spring-boot.
@liweinan Thanks! That's good to know, unfortunately it's still an alpha version. I cannot tell customers to install it. Would it still be possible to ignore registration failures and see if it works on Tomcat 10?
I haven't tested it on Tomcat 10. I'll verify this.
from resteasy-spring-boot.
@dsharinov I tested it on Tomcat 10 and the example also works:
The tomcat I used is:
from resteasy-spring-boot.
I assume this issue is answered. Please reopen it if the problem exists.
from resteasy-spring-boot.
Related Issues (20)
- Spring-boot-starter releases not pushed to maven central repository HOT 5
- ResteasyEmbeddedServletInitializer is not triggered and the app does not get deployed HOT 2
- upgrade wildfly version to `28.0.1.Final`
- update `wildfly.maven.plugin` to `4.1.0.Final`
- Update `springboot` to `3.1.0`
- Update `springframework` to `6.0.10`
- Update `resteasy-spring` to `3.0.3.Final`
- Spring native compilation works but execution fails HOT 4
- update `spring-boot` to `3.1.3`
- Update Spring to `6.0.11`
- fix the random `InvalidClassTest` failure
- Upgrade `spring-boot` to `3.2.0-M3`
- Upgrade `spring` to `6.1.0-M5`
- Upgrade `resteasy-spring` to `3.1.0.Final`
- Upgrade `spring-boot` to `3.2.1`
- Error booting up with spring boot 3.2.2 RESTEASY013015: could not find the type for bean named HOT 11
- How to auto configure MultipartConfigElement? HOT 5
- Update `spring-boot` to `3.3.0`
- Failed to register "<class annotated with @Application>" using Spring Boot 3 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from resteasy-spring-boot.