HI Martin, You could use any of these:
1- if the system property "jetty.home" is defined then use this as the base folder in which o look for jetty.xml configuration files. By default, use the one located in jetty.home as etc/jetty.xml If the system property jetty.config.urls is defined as a comma-separated list of relative path to jetty xml files or urls to jetty.xml configs then use that to configure the jetty server. 2- if the system property "jetty.home.bundle" is defined and its value is the symbolic name of a bundle, then use that bundle as the palce where to look for the jetty.xml configurations. Using the same algo than in #1. 3- If neither of them are defined: don't start any jetty server. Wait for some other code to register a Jetty Server object as an OSGi service and use the feature developed in bug 309250 <https://bugs.eclipse.org/bugs/show_bug.cgi?id=309250> This is consistent with the design principle that jetty is a software component, not a pre-packaged application server. Also: "jetty.home.bundle" can point to the bundle org.eclipse.jetty.osgi.boot In that case it will use the configuration defined embedded there. Also read bug 317231 <https://bugs.eclipse.org/bugs/show_bug.cgi?id=317231> for the ability to use a fragment to customize the default jetty configuration file of the org.eclipse.jetty.osgi.boot bundle. I hope this helps. Hugues Reference: https://bugs.eclipse.org/bugs/show_bug.cgi?id=298703#c2 On Wed, Nov 17, 2010 at 9:52 PM, Martin Taal <[email protected]> wrote: > Hi, > A question (tried to find the answer on the net but couldn't really). I am > running jetty in osgi. I noticed that if I don't set a jetty.home vm > argument that jetty won't start. I am getting this in the console: > Returning defaultJettyServer = null > > I would like to achieve one of the following two things: > 1) if I don't set a jetty.home that jetty uses the jettyhome available in > the jetty osgi boot plugin. Is this possible somehow? Or if this is not > possible: > 2) set jetty.home to a folder in a plugin (so a classpath), is this > possible and what would be the format for the jetty.home vm argument to > achieve this (maybe more an osgi question...)? > > Thanks for any guidance on this. > > -- > > With Regards, Martin Taal > > Springsite/Elver.org > Office: Hardwareweg 4, 3821 BV Amersfoort > Postal: Nassaulaan 7, 3941 EC Doorn > The Netherlands > Cell: +31 (0)6 288 48 943 > Tel: +31 (0)84 420 2397 > Fax: +31 (0)84 225 9307 > Mail: [email protected] - [email protected] > Web: www.springsite.com - www.elver.org > > > _______________________________________________ > jetty-users mailing list > [email protected] > https://dev.eclipse.org/mailman/listinfo/jetty-users > >
_______________________________________________ jetty-users mailing list [email protected] https://dev.eclipse.org/mailman/listinfo/jetty-users
