Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] unhide some jetty classes

Dear Lothar,

my problem was solved by adding module "webapp" and this configuration:

<Configure id="Server" class="org.eclipse.jetty.server.Server">
  <Set name="handler">
    <New id="Handlers" class="org.eclipse.jetty.server.handler.HandlerCollection">
      <Set name="handlers">
        <Array type="org.eclipse.jetty.server.Handler">
            <New id="webapp" class="org.eclipse.jetty.webapp.WebAppContext">
              <Set name="contextPath">/</Set>
              <Set name="war"><SystemProperty name="jetty.base" default="." />/webapps/root.war</Set>
              <Set name="serverClasses">
                <Array type="String">

This is fresh 9.1 stable. Probably the docs are not finished yet and therefore the problems.

On 21 November 2013 10:25, Lothar Kimmeringer <job@xxxxxxxxxxxxxx> wrote:
Am 20.11.2013 21:34, schrieb Peter Ondruška:
> I am trying to unhide ( 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">
        <Set name="copyWebInf">True</Set>

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
jetty-users mailing list

Back to the top