-
Notifications
You must be signed in to change notification settings - Fork 41.2k
Configure embedded containers to load static resources from fat jar's BOOT-INF/classes/META-INF/resources #8324
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
Comments
The change that has stopped this from working is intentional as it aligns Spring Boot more closely with the Servlet spec. The spec states that resources in The one significant difference between a jar and a war file is that a war project can use In the meantime, you have two options here:
I'm going to close this in favour of #8299 which will make resource handling consistent across all three containers. We'll consider supporting |
On second thoughts, this would be better handled as a separate issue rather than rolling it into #8299 |
This is also the case for JSP pages. My Kerberos bases SSO solution stops working, when the Spring Boot Maven Plugin is later than 1.4.2.RELEASE |
@GyllingSW JSPs are only supported when you package your application as a war file |
@wilkinsona - I know JSP has limitations, but non the less it works with the maven plugin <= the 1.4.2.RELEASE version. |
@GyllingSW That sample is fine. It is building a war file. If you're doing that then there's no problem |
I'm going to close this. There's been relatively little demand for it yet implementing it would add complexity to achieve something that can already been done using one of the two options that I described in my comment above. |
Might be related to: #7595 (or at least to a comment in this issue)
Starting with 1.4.3, our JSF application isn't processing JSF pages anymore.
/index.xhtml Not Found in ExternalContext as a Resource
I've appended a small example application. After started, call http://localhost:8085/index.xhtml.
BugTest.zip
BTW: If you start the application in Eclipse with the Spring Plugin, the result depends on your eclipse environment (for some developers it works, for some not - guess it depends, which loader is used by eclipse),
The text was updated successfully, but these errors were encountered: