-
Notifications
You must be signed in to change notification settings - Fork 38.5k
Classpath Resource URL handling still wrong with Tomcat 8.5.12 [SPR-15681] #20240
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
Stéphane Nicoll commented Can you please share a sample that reproduces the problem you're experiencing? |
Andy Wilkinson commented The |
Moritz Kleine commented Example webapp attached. I get an exception when using the path separator
when not using the separator, only one of the resources matching the pattern classpath*:PATH/*.xml is loaded. The original exception that I posted arises in a closed source project that uses XML files to configure the application context. The point is, that all the files matching the pattern must be loaded. This used to work fine with tomcat 7.0 and 8.0 but fails with tomcat 8.5. |
Moritz Kleine commented previous upload was incomplete |
Moritz Kleine commented Also I wonder why tomcat 8.5.12 takes so much longer to deploy this rather simple example webapp than tomcat 7.0.72. Any ideas? |
Stéphane Nicoll commented Moritz Kleine have you read Andy's comment above? This looks like more a Tomcat issue than a Spring issue, isn't it? If that property is going to be removed in tomcat 9, I guess you should stop first using it and then report whatever Spring-related issue left, if any. |
Moritz Kleine commented Hi Stephane, yes, I read the comment and also knew about that tomcat property. To me it's still a spring issue as I tried to show with the uploaded example webapp. The webapp fails to load the application context correctly when being deployed to tomcat 8.5.12 running in unpackWARs=false mode. |
Hi. A little question. Is this issue still relevant? |
Closing this issue as outdated. |
Moritz Kleine opened SPR-15681 and commented
When building WAR files with resources residing in
/WEB-INF/classes
the following exception is raised when starting the webapp in tomcat 8.5.12:The very same setup used to work fine before https://bz.apache.org/bugzilla/show_bug.cgi?id=60728 and spring-projects/spring-boot#7949. At least we're using this packaging successfully with tomcat 7.0.x, <= 8.0.36 and websphere.
Known workarounds: Unpack webapp. Move resources to separate jar so that they are read from
/WEB-INF/lib/test.jar
instead of/WEB-INF/classes
.Affects: 4.3.9
Attachments:
Issue Links:
The text was updated successfully, but these errors were encountered: