title: Embedded jetty, access denied
body: <p>This is continuation of my previous question <a href="https://stackoverflow.com/questions/17828954/integration-testing-with-junit-and-jetty-cant-configure-url/17829003">Integration testing with JUnit and Jetty, can't configure url</a> . The code remains pretty much the same, with exception that i added one line to be able to test the whole thing in browser and another one for priority (otherwise the thing doesn't work), so it looks like this:</p>
  
  <pre><code>server = new Server(8080);
  WebAppContext webapp = new WebAppContext();
  webapp.setContextPath("/projectName");
  webapp.setWar("build/libs/myWarFile.war");
  webapp.setParentLoaderPriority(true);
  server.setHandler(webapp);
  server.start();
  server.join();
  </code></pre>
  
  <p>Now when i try to visit one of the pages, i see in console that compilation starts, but at some point it stops with warning:</p>
  
  <pre><code>25937 [qtp92265517-17] WARN org.eclipse.jetty.servlet.ServletHandler - 
  org.apache.jasper.JasperException: Unable to compile class for JSP
  ...
  Caused by: java.security.AccessControlException: access denied 
  ("java.lang.RuntimePermission" "getClassLoader")
  </code></pre>
  
  <p>Any ideas what i might be doing wrong? (I haven't set up or messed with any policy files, or changed permissions to anything, project works fine when i run it on tomcat)</p>