|
Page Created :
FELIX :
Apache Felix Framework FAQ
Apache Felix Framework FAQ has been created by Richard S. Hall (Apr 01, 2008). Content:Apache Felix Framework Frequently Asked QuestionsWhy do I get an "Unknown protocol: http" exception when I run Felix on a non-Sun JRE?Felix installs the URL Handlers service by default. If you do not want this service you can disable it, by setting the felix.service.urlhandlers property to false in the config.properties file. It is not recommended to disable this, but the main reason for doing so it because the URL Handlers implementation invokes methods to set the singleton factories for URL stream and content handler factories. Assuming that you want to use URL Handlers service, you must configure it if you aren't running on the standard Sun JRE. The URL Handlers service extends the standard Java URL stream and content handler mechanism to work in an OSGi environment. The way that built-in URL protocol and content handlers are discovered is by probing packages for the appropriate classes to handle the protocol/content. For example, the default package for Sun protocol handlers is: sun.net.www.protocol If someone tries to create a URL for the "http" protocol, then the class to handle the protocol will be:
|
Unsubscribe or edit your notifications preferences
