Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » protocol/jar/Handler?
protocol/jar/Handler? [message #99175] Tue, 02 October 2007 16:05 Go to next message
Eclipse UserFriend
Originally posted by: deadwinterday.yahoo.com

Hi:

I am a complete noob to OSGI, and I am having a problem attempting to load
a framework which uses OSGI via Spring. What I am basically seeing is a
stack trace that begins:

11:31:24,108 WARN [ServiceController] Problem starting service
jboss.web.deployment:war=o
ps-war-5.0.war,id=-1007247630
java.lang.LinkageError:
org/eclipse/osgi/framework/internal/protocol/jar/Handler
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:164)
at
org.eclipse.osgi.framework.util.SecureAction.forName(SecureA ction.java:335)
at
org.eclipse.osgi.framework.internal.protocol.StreamHandlerFa ctory.getBuiltIn(St
reamHandlerFactory.java:70)
at
org.eclipse.osgi.framework.internal.protocol.StreamHandlerFa ctory.createInterna
lURLStreamHandler(StreamHandlerFactory.java:113)
at
org.eclipse.osgi.framework.internal.protocol.StreamHandlerFa ctory.createURLStre
amHandler(StreamHandlerFactory.java:100)

before we even get into whu this fails, can someone explain what
org/eclipse/osgi/framework/internal/protocol/jar/Handler even means? When
I look at it in the debugger, the osgi launcher tells me that it's trying
to load org.eclipse.osgi.framework.internal.protocol.jar.Handler! I KNOW
there is no such class anywhere. Is this some wrapping mechanism, and if
so, how does it work?

-carlos rodriguez
Re: protocol/jar/Handler? [message #99205 is a reply to message #99175] Tue, 02 October 2007 20:43 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: alex_blewitt.yahoo.com

The normal URL handlers are not dynamic aware, so OSGi installs its own URL handler that can provide the dynamic support for the URL handlers. In this case it's looking for a Jar one, possibly using a default package naming convention to find it. I'm not sure that a jar: protocol exists.

Alex.
Re: protocol/jar/Handler? [message #99267 is a reply to message #99175] Wed, 03 October 2007 14:41 Go to previous message
Simon Kaegi is currently offline Simon KaegiFriend
Messages: 381
Registered: July 2009
Senior Member
A LinkageError is definitely unexpected but we need more info.
Can you tell a bit more about the environment that you're running.
e.g. which version of equinox, app server and vm as well as any application
info. e.g. what are you running Spring-OSGi and the servletbridge??

I'm not sure if it's related however there was a bug that dealt with JBoss
and URLStreamHandlers here --
https://bugs.eclipse.org/bugs/show_bug.cgi?id=156877
Perhaps there is some useful info there??

-Simon


"Carlos Rodriguez" <deadwinterday@yahoo.com> wrote in message
news:83cba68b46552a07ba08c2e7111e8b5f$1@www.eclipse.org...
> Hi:
>
> I am a complete noob to OSGI, and I am having a problem attempting to load
> a framework which uses OSGI via Spring. What I am basically seeing is a
> stack trace that begins:
>
> 11:31:24,108 WARN [ServiceController] Problem starting service
> jboss.web.deployment:war=o
> ps-war-5.0.war,id=-1007247630
> java.lang.LinkageError:
> org/eclipse/osgi/framework/internal/protocol/jar/Handler
> at java.lang.Class.forName0(Native Method)
> at java.lang.Class.forName(Class.java:164)
> at
> org.eclipse.osgi.framework.util.SecureAction.forName(SecureA ction.java:335)
> at
> org.eclipse.osgi.framework.internal.protocol.StreamHandlerFa ctory.getBuiltIn(St
> reamHandlerFactory.java:70)
> at
> org.eclipse.osgi.framework.internal.protocol.StreamHandlerFa ctory.createInterna
> lURLStreamHandler(StreamHandlerFactory.java:113)
> at
> org.eclipse.osgi.framework.internal.protocol.StreamHandlerFa ctory.createURLStre
> amHandler(StreamHandlerFactory.java:100)
>
> before we even get into whu this fails, can someone explain what
> org/eclipse/osgi/framework/internal/protocol/jar/Handler even means? When
> I look at it in the debugger, the osgi launcher tells me that it's trying
> to load org.eclipse.osgi.framework.internal.protocol.jar.Handler! I KNOW
> there is no such class anywhere. Is this some wrapping mechanism, and if
> so, how does it work?
>
> -carlos rodriguez
>
>
>
Previous Topic:Does config.ini have to be in the "configuration" directory?
Next Topic:Additional task in build of OSGi bundle
Goto Forum:
  


Current Time: Fri Mar 29 09:56:02 GMT 2024

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

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

Back to the top