Skip to content

A web app that runs with spring.main.web-application-type=none should start up and doesn't #9161

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

Closed
pmihalcin opened this issue May 11, 2017 · 0 comments
Assignees
Labels
type: bug A general bug
Milestone

Comments

@pmihalcin
Copy link

A web app that runs with spring.main.web-application-type=none should start up and doesn't

Sample application can be found here:
https://github.com/spring-projects/spring-boot/tree/master/spring-boot-samples/spring-boot-sample-flyway

Steps to reproduce:

It fails to start because of:

Caused by: java.lang.IllegalStateException:
WebApplicationObjectSupport instance [ResourceHttpRequestHandler [locations=[class path resource [META-INF/resources/webjars/]], resolvers=[org.springframework.web.servlet.resource.PathResourceResolver@12d40609]]]
does not run in a WebApplicationContext but in: org.springframework.context.annotation.AnnotationConfigApplicationContext@27ae2fd0:
startup date [Thu May 11 11:54:14 CEST 2017]; root of context hierarchy

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label May 11, 2017
@wilkinsona wilkinsona added priority: high type: bug A general bug and removed status: waiting-for-triage An issue we've not yet triaged labels May 11, 2017
@wilkinsona wilkinsona added this to the 2.0.0.M1 milestone May 11, 2017
@wilkinsona wilkinsona self-assigned this May 11, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug A general bug
Projects
None yet
Development

No branches or pull requests

3 participants