Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » Jboss inside RCP = java.net.MalformedURLException
Jboss inside RCP = java.net.MalformedURLException [message #128488] Fri, 03 April 2009 06:38 Go to next message
Rhodan76 Mising name is currently offline Rhodan76 Mising nameFriend
Messages: 71
Registered: July 2009
Member
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 ?
Re: Jboss inside RCP = java.net.MalformedURLException [message #128690 is a reply to message #128488] Mon, 06 April 2009 13:13 Go to previous message
Eclipse UserFriend
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
Previous Topic:Re: Leveraging OSGi and dynamic bundle loading
Next Topic:"No repository found..." errors for packages not being updated?
Goto Forum:
  


Current Time: Thu Apr 25 11:17:09 GMT 2024

Powered by FUDForum. Page generated in 0.02803 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top