Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] java.lang.ClassNotFoundException: org.eclipse.jetty.servlets.ProxyServlet$Transparent

you should put it _in_ your war

webapps execute in an isolated classloader separate from the things in /lib

jesse

--
jesse mcconnell
jesse.mcconnell@xxxxxxxxx


On Sun, Jun 17, 2012 at 11:25 AM, ccleve <ccleve.tech@xxxxxxxxx> wrote:
> I've subclassed ProxyServlet.Transparent for our own proxy server. It runs
> fine in Eclipse. When I start the server at the command line using
> start.jar, I get the ClassNotFoundException in the title.
>
> My subclass is in a jar that I put in /lib/mysubdirectory, and I added that
> subdirectory in start.ini with OPTIONS=Server,....,mysubdirectory
>
> It looks like ProxyServer.Transparent is in jetty-servlets.x.x.x.jar, which
> is in the /lib directory. If I'm reading the code in start.config in
> start.jar correctly, it should get picked up and put on the classpath
> properly.
>
> I'm loading my proxy subclass in web.xml using a <servlet> tag.
>
> Is start.jar doing some funny classloader stuff that keeps that class
> invisible? How can I make it visible?
>
> _______________________________________________
> jetty-users mailing list
> jetty-users@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/jetty-users


Back to the top