Skip to content

spring boot do not support META-INF/resources in jar jar #9913

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
hengyunabc opened this issue Jul 31, 2017 · 1 comment
Closed

spring boot do not support META-INF/resources in jar jar #9913

hengyunabc opened this issue Jul 31, 2017 · 1 comment
Labels
status: duplicate A duplicate of another issue

Comments

@hengyunabc
Copy link
Contributor

I write a demo to support META-INF/resources in jar jar and jsp.

https://github.com/hengyunabc/spring-boot-fat-jar-jsp-sample

When start the demo with -Dtomcat.staticResourceCustomizer.enabled=false

java -Dtomcat.staticResourceCustomizer.enabled=false -jar jsp-start/target/jsp-start-0.0.1-SNAPSHOT.jar

http://localhost:8080/ 404

http://localhost:8080/hello-from-common ok


The root reason is that LaunchedURLClassLoader urls do not contains the fat jar.

The parent of LaunchedURLClassLoader is AppClassLoader, which urls contains the fat jar

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Jul 31, 2017
@wilkinsona
Copy link
Member

Duplicate of #8324.

Also, please note that we don't support the use of JSPs in fat jars. You should use a war file instead.

@wilkinsona wilkinsona marked this as a duplicate of #8324 Jul 31, 2017
@wilkinsona wilkinsona added status: duplicate A duplicate of another issue and removed status: waiting-for-triage An issue we've not yet triaged labels Jul 31, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: duplicate A duplicate of another issue
Projects
None yet
Development

No branches or pull requests

3 participants