Hi,

It seems that what you are trying to do is set the path that Jetty
uses to scan for webapplications. I never tried that myself.
Typically, you know which project(s) you are working with, and you can
add them by calling addWebApplication. This is an example of a
configuration file that I use now and then:

<?xml version="1.0"?>
<!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//DTD Configure
1.2//EN" "http://jetty.mortbay.org/configure_1_2.dtd";>

<Configure class="org.mortbay.jetty.Server">

  <Call name="addListener">
    <Arg>
      <New class="org.mortbay.http.SocketListener">
        <Set name="Port"><SystemProperty name="jetty.port"
default="8080"/></Set>
        <Set name="MinThreads">50</Set>
        <Set name="MaxThreads">100</Set>
        <Set name="MaxIdleTimeMs">30000</Set>
        <Set name="LowResourcePersistTimeMs">5000</Set>
        <Set name="ConfidentialPort">8443</Set>
        <Set name="IntegralPort">8443</Set>
      </New>
    </Arg>
  </Call>

  <Call name="addWebApplication">
    <Arg>/wicket-examples</Arg>
    <Arg>src/webapp</Arg>
  </Call>

  <Set name="requestsPerGC">2000</Set>
  <Set name="statsOn">false</Set>

</Configure>

Hope that helps,

Eelco


On 4/13/06, O G <[EMAIL PROTECTED]> wrote:
> Hello,
>
> Anyone knows how to deal with this?  Should I file a
> bug report instead?
>
> Thanks,
> Otis
>
> --- O G <[EMAIL PROTECTED]> wrote:
>
> > Hello,
> >
> > I'm having some difficulties getting Jetty Launcher
> > working with a custom Jetty XML file.
> >
> > In short, if I use a custom jetty.xml, I can't get
> > Jetty/JL to use the webapp root directory from
> > within
> > my Eclipse project.
> >
> > This is to be expected, as JL is not aware of it.
> >
> > So I tried changing jetty.xml to be aware of the
> > "webapp root dir" in my Eclipse project.  I think
> > this
> > is the relevant section:
> >
> >   <Call name="addWebApplications">
> >     <Arg></Arg>
> >     <Arg><SystemProperty name="jetty.home"
> > default="."/>/webapps/</Arg>
> >     <Arg><SystemProperty name="jetty.home"
> > default="."/>/etc/webdefault.xml</Arg>
> >     <Arg type="boolean">true</Arg><!--extract
> > WARs-->
> >     <Arg type="boolean">false</Arg><!-- java 2
> > compliante class loader -->
> >   </Call>
> >
> >
> > I think the key line is:
> >     <Arg><SystemProperty name="jetty.home"
> > default="."/>/webapps/</Arg>
> >
> > So I tried changing that to:
> >
> > <Arg>/home/otis/dev/workspace/MyProj/webapp/</Arg>
> >
> >
> > However, that didn't work - Jetty/JL interpreted
> > everything under that directory as a separate webapp
> > context.
> >
> > I tried playing with the work directory setting in
> > JL,
> > but without any luck.  I tried:
> >   ${workspace_loc:MyProj}
> >   ${workspace_loc:MyProj/webapp}
> >   ${workspace_loc:MyProj/webapp/WEB-INF}
> >
> >
> > How should I tell JL to use a specific directory in
> > my
> > Eclipse project as the "work root dir"?
> >
> > Thanks,
> > Otis
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by xPML, a groundbreaking scripting language
> that extends applications into web and mobile media. Attend the live webcast
> and join the prime developer group breaking into this new coding territory!
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
> _______________________________________________
> Jettylauncher-plugin mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jettylauncher-plugin
>


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
_______________________________________________
Jettylauncher-plugin mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jettylauncher-plugin

Reply via email to