This question should be asked on the
Short answer: You should use the
URL Handlers Service Specification from Chapter 11 of the OSGi R4 specification.
The org.eclipse.equinox.common bundle uses this approach to supply
the "platform" protocol handlers as OSGi services. You
can look there for an example. You should not use the java.protocol.handler.pks
property. Any packages specified there must exist on the application
classpath. Bundles are not available from the app classloader.
"AC" <newslists@xxxxxxxxxxxxxxxxxxxx> Sent by: equinox-dev-bounces@xxxxxxxxxxx
12/12/2006 07:09 AM
Please respond to
Equinox development mailing list <equinox-dev@xxxxxxxxxxx>
"EQUINOX MAILINGLIST" <equinox-dev@xxxxxxxxxxx>
[equinox-dev] Possible problem with
I have some problems using equinox bundles and I am hoping somebody here
point me to how to do it. I'm trying to implement a custom protocol handler
in an equinox bundle. I'm
iving -Djava.protocol.handler.pkgs=org.ac.net.protocols containing
protocol package as a VM-Argument. Somehow java still doesn't find this
package and gives me an java.net.MalformedURLException: unknown protocol:
... . I guess I have some problems with the classloaders again but cannot
find how to do it correctly. Thanks in advance for any advice.
equinox-dev mailing list