Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [geclipse-dev] Httpg URL + equinox

Hi Romain,

The problem you describe normally arises if the class being loaded and the loading class are contained in different bundles, is this the case here? So I furthermore asume that you make use of the CoG-Kit in the form of a pre-compiled jar, also right? In that case I see two solutions for your problem:

1) Put the CoG-Jar in the same bundle where you want to use it. This may mean putting one jar in each bundle you are using, not very nice.
2) Try to experiment with Equinoxe's buddy class loading mechanism. This allows you to also look up classes across the borders of bundles. See http://wiki.eclipse.org/index.php/Context_Class_Loader_Enhancements#Buddy_Class_Loading for a description or our org.gria and eu.geclipse.gria plug-ins (both in CVS) for a working example. You should be aware of the fact that buddy classloading is an equinox extension of OSGi and does not comply with the standard.

Hope that helps,

Mathias


-----Original Message-----
From: geclipse-dev-bounces@xxxxxxxxxxx on behalf of Romain
Sent: Tue 4/28/2009 9:01 PM
To: Developer mailing list
Subject: [geclipse-dev] Httpg URL + equinox
 
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi guys,

I am having lots of problems right now trying to create httpg URLs within
an equinox osgi application. Have you solved this tricky problem allready ?

If yes how did you do ?


I am having that kind of exceptions 

Caused by: java.net.MalformedURLException: unknown protocol: httpg
	at java.net.URL.<init>(URL.java:395)
	at java.net.URL.<init>(URL.java:283)
	at fr.in2p3.jsaga.adaptor.data.SRM22DataAdaptor.connect(SRM22DataAdaptor.java:49)

It is caused by a class loading problem: in the URL class java does a classForName
to get an instance of org.globus.axis.transport.GSIHTTPTransport.

Of course it doesn't work within a OSGi application.


Cheers,
Romain
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkn3UnsACgkQbUN+hKKXqgshYACfdRqH/Fl2RQ1LGFVAN1+KfWN2
QXYAoMVoQRs9VlxsAhhyk8X7/VSiBldW
=Ur3L
-----END PGP SIGNATURE-----
_______________________________________________
geclipse-dev mailing list
geclipse-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/geclipse-dev



Back to the top