From: Eelco H. <eel...@gm...> - 2006-04-14 04:05:41
|
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=3D"1.0"?> <!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//DTD Configure 1.2//EN" "http://jetty.mortbay.org/configure_1_2.dtd"> <Configure class=3D"org.mortbay.jetty.Server"> <Call name=3D"addListener"> <Arg> <New class=3D"org.mortbay.http.SocketListener"> <Set name=3D"Port"><SystemProperty name=3D"jetty.port" default=3D"8080"/></Set> <Set name=3D"MinThreads">50</Set> <Set name=3D"MaxThreads">100</Set> <Set name=3D"MaxIdleTimeMs">30000</Set> <Set name=3D"LowResourcePersistTimeMs">5000</Set> <Set name=3D"ConfidentialPort">8443</Set> <Set name=3D"IntegralPort">8443</Set> </New> </Arg> </Call> <Call name=3D"addWebApplication"> <Arg>/wicket-examples</Arg> <Arg>src/webapp</Arg> </Call> <Set name=3D"requestsPerGC">2000</Set> <Set name=3D"statsOn">false</Set> </Configure> Hope that helps, Eelco On 4/13/06, O G <oti...@ya...> wrote: > Hello, > > Anyone knows how to deal with this? Should I file a > bug report instead? > > Thanks, > Otis > > --- O G <oti...@ya...> 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=3D"addWebApplications"> > > <Arg></Arg> > > <Arg><SystemProperty name=3D"jetty.home" > > default=3D"."/>/webapps/</Arg> > > <Arg><SystemProperty name=3D"jetty.home" > > default=3D"."/>/etc/webdefault.xml</Arg> > > <Arg type=3D"boolean">true</Arg><!--extract > > WARs--> > > <Arg type=3D"boolean">false</Arg><!-- java 2 > > compliante class loader --> > > </Call> > > > > > > I think the key line is: > > <Arg><SystemProperty name=3D"jetty.home" > > default=3D"."/>/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 langua= ge > that extends applications into web and mobile media. Attend the live webc= ast > and join the prime developer group breaking into this new coding territor= y! > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D110944&bid=3D241720&dat= =3D121642 > _______________________________________________ > Jettylauncher-plugin mailing list > Jet...@li... > https://lists.sourceforge.net/lists/listinfo/jettylauncher-plugin > |