Skip to content
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

Virtual /WEB-INF/lib entries do not work corretly with Tomcat 7 #162

Open
acehead opened this issue Apr 11, 2015 · 2 comments
Open

Virtual /WEB-INF/lib entries do not work corretly with Tomcat 7 #162

acehead opened this issue Apr 11, 2015 · 2 comments
Assignees

Comments

@acehead
Copy link

acehead commented Apr 11, 2015

Hi,

It turns out that when using latest version of Gretty with Tomcat 7 ServletContext.getResourcePaths("/WEB-INF/lib") returns collection containing always one entry only, no matter how many jars are in WEB-INF/lib when the actual war is built. Tomcat 8 and Jetty 9 work as expected.

And minor thing - in the docs http://akhikhl.github.io/gretty-doc/Web-app-virtual-webinflibs.html, the example is ServletContext.getResourcePaths("WEB-INF/lib"), while it will work only with leading slash, like this: ServletContext.getResourcePaths("/WEB-INF/lib")

Thanks,
Vadim

@akhikhl
Copy link
Owner

akhikhl commented Apr 12, 2015

Hi Vadim,
I fixed the doc.
I confirm: the bug is reproducible on tomcat7 and tomcat8, but not on Jetty. Will have a look.

@akhikhl akhikhl self-assigned this Apr 12, 2015
@saladinkzn
Copy link
Contributor

This will be fixed by saladinkzn#20

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants