Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 317231 - Ability to configure jetty with a fragment bundle that contains etc/jetty.xml
Summary: Ability to configure jetty with a fragment bundle that contains etc/jetty.xml
Status: RESOLVED FIXED
Alias: None
Product: Jetty
Classification: RT
Component: osgi (show other bugs)
Version: 7.1.4   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 7.1.x   Edit
Assignee: Hugues Malphettes CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-17 14:45 EDT by Hugues Malphettes CLA
Modified: 2010-06-23 19:36 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Hugues Malphettes CLA 2010-06-17 14:45:05 EDT
As suggested by Dmytro, such a fragment would be attached to org.eclipse.jetty.osgi.boot
It would contain the jetty configuration file etc/jetty.xml and is a nice way to let users define their custom configurations without having to define the system property "jetty.home" on the command line.

It is similar to what spring-dm does for its own integration of jetty:
http://static.springsource.org/osgi/docs/1.2.1/reference/html/web.html#web:osgi-artifacts:containers:jetty

Inside org.eclipse.jetty.osgi.boot jettyhome/etc/jetty.xml will be renamed jettyhome/etc/default-jetty.xml
The code that loads this file will first search for etc/jetty.xml then default to jettyhome/etc/jetty.xml
Comment 1 Hugues Malphettes CLA 2010-06-17 22:07:42 EDT
Committed the support for such a fragment.
At the moment it works if and only if the fragment is actually exploded.

Is this a reasonable assumption or do we need to put in some more work to make it work when it is a jar?
Comment 2 Dmytro Pishchukhin CLA 2010-06-18 09:48:05 EDT
(In reply to comment #1)
> Committed the support for such a fragment.
> At the moment it works if and only if the fragment is actually exploded.
> 
> Is this a reasonable assumption or do we need to put in some more work to make
> it work when it is a jar?

Hello,

It would be nice to have this way to extend osgi.boot bundle. Current implementation supports only Eclipse (support of unzipped bundles). 

Regards,
Dmytro
Comment 3 Hugues Malphettes CLA 2010-06-23 19:36:41 EDT
Resolved for 7.1.5 at the same time than bug 298703 and bug 309250.