[ http://issues.apache.org/jira/browse/FELIX-172?page=all ]

Richard S. Hall resolved FELIX-172.
-----------------------------------

    Resolution: Fixed

It didn't dawn on me at the time, but there are already configuration 
properties for changing the packages to be searched for default handlers for 
both stream and content handlers. In fact, they are standard properties from 
Sun and Felix' current URL Handlers implementation already supports them.

The properties for stream and content handler packages are respectively:

    java.protocol.handler.pkgs
    java.content.handler.pkgs

These properties are a "|" separated list of packages. Currently, these must be 
set as system properties for the URL Handlers implementation to find them, not 
in the config.properties file since this is not really something that is 
configured on a framework by framework basis...

It set the property using -D when launching the framework or the launcher still 
supports a system.properties file for automatically setting system properties.

> Modify DEFAULT_STREAM_HANDLER_PACKAGE for built-in protocols using GNU 
> Classpath
> --------------------------------------------------------------------------------
>
>                 Key: FELIX-172
>                 URL: http://issues.apache.org/jira/browse/FELIX-172
>             Project: Felix
>          Issue Type: Improvement
>          Components: Framework
>         Environment: JamVM, GNU Classpath on IBM Powerpc 405GP
>            Reporter: Thanh NGUYEN
>         Assigned To: Richard S. Hall
>            Priority: Minor
>
> Felix searches for built-in protocol stream handlers according to the SUN 
> JRE's packaging naming strategy : sun.net.www.protocol.<protocol>.Handler. 
> The name of this package is changed in GNU Classpath and we may have related 
> issues, for example : error while starting OBR bundle. For correcting it, the 
> static variable DEFAULT_STREAM_HANDLER_PACKAGE in URLHandlers.java should be 
> changed from "sun.net.www.protocol" to "gnu.java.net.protocol". 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to