Doesn't run with tomcat8 #161

- antiJarLocking is no longer supported in Tomcat 8. Because we have will move towards Spring Boot we will have a much better way to reload plugins so investigating the difference between Tomcat 7 and 8 is not the way to go.
This commit is contained in:
Nanne Baars 2016-07-09 19:38:08 +02:00
parent fc30ed9920
commit 2d39ab90d2
3 changed files with 2 additions and 3 deletions

View File

@ -55,7 +55,6 @@ public class PluginsLoader {
try { try {
if (!alreadyLoaded) { if (!alreadyLoaded) {
WebappClassLoader cl = (WebappClassLoader) Thread.currentThread().getContextClassLoader(); WebappClassLoader cl = (WebappClassLoader) Thread.currentThread().getContextClassLoader();
cl.setAntiJARLocking(true);
List<URL> jars = listJars(); List<URL> jars = listJars();
for (URL jar : jars) { for (URL jar : jars) {
cl.addRepository(jar.toString()); cl.addRepository(jar.toString());

View File

@ -1,4 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<Context antiJARLocking="true" path="/WebGoat"> <Context path="/WebGoat">
</Context> </Context>

View File

@ -1,2 +1,2 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<Context antiJARLocking="true" path="/WebGoat"/> <Context path="/WebGoat"/>