[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [jetty-users] unhide some jetty classes
|
Am 20.11.2013 21:34, schrieb Peter Ondruška:
> I am trying to unhide (http://www.eclipse.org/jetty/documentation/current/jetty-classloading.html#configuring-webapp-classloading) some Jetty classes (org.eclipse.jetty.util.ssl.) but I do something wrong?
>
> My xml is:
>
> <Configure class="org.eclipse.jetty.webapp.WebAppContext">
> <Call name="addServerClass">
> <Arg>-org.eclipse.jetty.util.ssl.</Arg>
> </Call>
> </Configure>
I'm not sure but the name of the method suggests, that this
adds a single class and not a package.
Here is my configuration where I've done it as well:
<Ref id="Contexts">
<Call name="addHandler"><Arg>
<New class="org.eclipse.jetty.webapp.WebAppContext">
<Set name="contextPath">/</Set>
<Set name="war">./etc/admin/AdminTools.war</Set>
<Set name="extractWAR">False</Set>
<Call name="setServerClasses">
<Arg><Array type="java.lang.String">
<Item>dummy.*</Item>
</Array></Arg>
</Call>
<Set name="copyWebInf">True</Set>
</New>
</Arg></Call>
</Ref>
As you can see, I used a wildcard, but you need to try if this
can be used with addServerClass() as well or if you need to
change it the way above.
Regards, Lothar