New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not able to startup webapp inside of Tomcat #221
Comments
I think you must be doing something wrong. How is it going to know what sources to use? Aren't you supposed to provide your own subclass of |
I do provide my own subclass of |
I never saw that before. Can you share your code? Also, what version of Boot and Tomcat are you using/ |
I can't share my code, but I can try to reproduce with a sample project. I'll try to get to it this week. Where is the best place to upload? |
Github is great. But anywhere we can grab it and build it. If you can make it a Maven build that's best, but if it's a simple project, don't mind much. |
Your |
I'm not following you. StringWebXml does override |
Ah, didn't see that. I was looking at |
@dsyer it is working now that I consolidated It's really not that important, but do you think there is still a defect here about having multiple |
@nedjs I don't think that's even vaguely relevant to this (closed) issue. If you have a usage question please go to stackoverflow. If you have an issue you want to raise with the Spring Boot team, please open a new one (with a bit more context to explain what you need than you provided so far please). |
@dsyer Oh my, I posted this on the wrong gosh darn issue last night in my tired haze. Sorry about that |
I can start my app (as a jar) from the command line, but as soon as I try to start from Tomcat (as a war) I get a a startup error.
SpringServletContainerInitializer will loop through all the WebApplicationInitializer that it finds:
SpringBootServletInitializer is found and and its onStartup is called.
SpringBootServletInitializer will create a new SpringApplicationBuilder on line 81:
this is not passing any sources into the constructor.
Then on line 328 of SpringApplication there is an Assert that fails.
Am I configuring this wrong? I have tried several versions and even dropping back to 0.5.0.M7 and M6.
The text was updated successfully, but these errors were encountered: