Skip to content

Commit f183ee6

Browse files
author
Andrey Hihlovskiy
committed
applied PR #362 to gretty-runner-jetty94
1 parent edb493b commit f183ee6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

libs/gretty-runner-jetty94/src/main/groovy/org/akhikhl/gretty/JettyConfigurerImpl.groovy

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,8 @@ class JettyConfigurerImpl implements JettyConfigurer {
207207
context.setWebInfLib(webappClassPath.findAll { it.endsWith('.jar') && !isServletApi(it) }.collect { new File(it) })
208208
context.setExtraClasspath(webappClassPath.collect { it.endsWith('.jar') ? it : (it.endsWith('/') ? it : it + '/') }.findAll { !isServletApi(it) }.join(';'))
209209
context.setInitParameter('org.eclipse.jetty.servlet.Default.useFileMappedBuffer', serverParams.productMode ? 'true' : 'false')
210+
context.setAttribute('org.eclipse.jetty.server.webapp.ContainerIncludeJarPattern',
211+
'.*/[^/]*servlet-api-[^/]*\\.jar$|.*/javax.servlet.jsp.jstl-.*\\.jar$|.*/[^/]*taglibs.*\\.jar$');
210212
FilteringClassLoader classLoader = new FilteringClassLoader(context)
211213
classLoader.addServerClass('ch.qos.logback.')
212214
classLoader.addServerClass('org.slf4j.')

0 commit comments

Comments
 (0)