Change

context.setClassLoader(new WebAppClassLoader(getClass().getClassLoader(),
context));

to

ClassLoader jspClassLoader = new URLClassLoader(new URL[0],
context.getClass().getClassLoader());
context.setClassLoader(jspClassLoader);

you accidentally created a complicated circular mess of classloaders.

Joakim Erdfelt / [email protected]

On Mon, Jul 13, 2015 at 6:54 AM, Idar Borlaug <[email protected]>
wrote:

> OR github repo: https://github.com/idar/embeddedJetty
>
> On Mon, Jul 13, 2015 at 3:53 PM Idar Borlaug <[email protected]>
> wrote:
>
>> Attaching an example: Can anyone tell me what i am missing here?
>> --
>> Idar Borlaug
>>
>> --
> Idar Borlaug
>
>
> _______________________________________________
> jetty-users mailing list
> [email protected]
> To change your delivery options, retrieve your password, or unsubscribe
> from this list, visit
> https://dev.eclipse.org/mailman/listinfo/jetty-users
>
_______________________________________________
jetty-users mailing list
[email protected]
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://dev.eclipse.org/mailman/listinfo/jetty-users

Reply via email to