|
Re: Jboss inside RCP = java.net.MalformedURLException [message #128690 is a reply to message #128488] |
Mon, 06 April 2009 13:13 |
Eclipse User |
|
|
|
Originally posted by: amottadelli_NO_SPAM.it.ibm.com
S.Schnabl ha scritto:
> Hello,
>
> we try to start an jboss 5.0.1 inside of a separate plugin of an rcp
> application via:
>
> Main main = new org.jboss.Main();
> main.boot(new String[] {});
>
> but run into an: "java.net.MalformedURLException: unknown protocol:
> vfsfile" error. Jobss doesn't know about his new vfsfile protocol.
>
> On startup there was already following warning:
>
> [ServerImpl] Caught Throwable Error, this probably means we've already
> set the URLStreamHAndlerFactory before
>
> so i think rcp (platform) has already done setting this Factory for his
> "bundle:/" url's.
> Sun's normal way now would be to set the vm property
> "-Djava.protocol.handler.pkgs=org.jboss.virtual.protocol". Have done
> this in the products launch configuration - but this seems not to be
> honored from the plugin which holds and start the jboss.
>
> Any tip how to handle custome url (-handlers) inside my rcp application ?
>
OSGi has an "url handlers service" "to standardizes the mechanism to
extend the Java run-time with new URL schemes and content handlers
through bundles".
Maybe it can do what you need.
Regards,
Sandri
|
|
|
Powered by
FUDForum. Page generated in 0.02803 seconds