[ https://issues.apache.org/jira/browse/MTOMCAT-302?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15068390#comment-15068390 ]
ASF GitHub Bot commented on MTOMCAT-302: ---------------------------------------- GitHub user rupert654 opened a pull request: https://github.com/apache/tomcat-maven-plugin/pull/21 Ensure that resource paths begin with "/" as required by Tomcat 8. This fixes https://issues.apache.org/jira/browse/MTOMCAT-302 You can merge this pull request into a Git repository by running: $ git pull https://github.com/rupert654/tomcat-maven-plugin MTOMCAT-302 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/tomcat-maven-plugin/pull/21.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #21 ---- commit 216c0f0826b6d4d5900fcd7baa62585d36030b8f Author: Rupert Madden-Abbott <rupert.madden-abb...@bristol.ac.uk> Date: 2015-12-22T16:47:59Z Ensure that resource paths begin with "/" as required by Tomcat 8. ---- > Tomcat 8: Invalid resource paths added when scanning for TLDs > ------------------------------------------------------------- > > Key: MTOMCAT-302 > URL: https://issues.apache.org/jira/browse/MTOMCAT-302 > Project: Apache Tomcat Maven Plugin > Issue Type: Dependency upgrade > Reporter: Rupert Madden-Abbott > Priority: Blocker > Fix For: 3.0 > > > Tomcat 8 now requires that all resource paths begin with "/". > However, in org.apache.tomcat.maven.plugin.tomcat8.run.RunMojo, there is an > anonymous class extending > org.apache.tomcat.maven.plugin.tomcat8.run.AbstractRunMojo.MyDirContext. > This overrides the method listWebAppPaths and the implementation will return > file names, which do not begin with "/". > This will result in an error if you place a tld file in your WEB-INF > directory. Doing this will cause listWebAppPaths to return your tld file, > which then causes an error as the path is not valid. > One solution would be to alter this method so it appended the path relative > to the classpath, to each file. This seems to be how the equivalent method in > org.apache.catalina.webresources.DirResourceSet works. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org