AW: Using a Java Space from an OSGi bundle
"Wellmann, Harald" <[email protected]> Thu, 13 Sep 2007 16:52:32 +0200
| Newsgroups | gmane.comp.java.sun.javaspaces |
|---|---|
| Message-ID | <FCCE9B33F9DEDF41B2C7797D6D0D12F3017BB20A@oehhw2ex03.hbi.ad.harman.com> |
While googling for an answer to my question, I've already come across = Newton and downloaded it. There is little or no documentation with it. Unless you give a more = specific example, I can only believe that there is a solution, but I = cannot get at it. I don't really want a new framework, I just want to = know how to get my classloader and/or codebase right. Nor do I want to export any Jini services from OSGi, I just want to use = a JavaSpace. The fact that the space is a Jini service is an = implementation detail. Regards, Harald >-----Urspr=FCngliche Nachricht----- >Von: Mike Francis [mailto:[email protected]]=20 >Gesendet: Donnerstag, 13. September 2007 16:17 >An: [email protected] >Betreff: Re: Using a Java Space from an OSGi bundle > >Harald > >Check out the Newton open source project=20 >(www.codecauldron.org) there is an example of Blitz running in=20 >an OSGi framework in a scenario similar to you have described. > >Newton is the foundation elements of the commercial Paremus=20 >Infiniflow product, of which there is a free commercial=20 >evaluation available. You can find out further details at=20 >http://www.paremus.com/downloads/downloads.html. >[Blatent plug over] > >If you have any questions please do not hesitate to contact me. > >Regards >Mike > >-----Original Message----- >From: Wellmann, Harald [mailto:[email protected]] >Sent: 13 September 2007 14:58 >To: [email protected] >Subject: Using a Java Space from an OSGi bundle > >I'm having a classloader issue when using a JavaSpace from=20 >within an OSGi bundle. > >(My JavaSpace is Blitz from the IncaX 4.1 community edition my=20 >OSGi environment is Eclipse 3.2, running under JDK 6.0). > >The JavaSpace and the OSGi bundle are running in separate VMs.=20 >I can write an entry to the space from my OSGi bundle, but=20 >when trying to take the entry I've just written: > >13.09.2007 14:54:36 org.dancres.blitz.mangler.EntryMangler unMangle >SCHWERWIEGEND: Error during unpack: >java.lang.ClassNotFoundException: >com.harmanbecker.anaconda.job.space.MaxJobIdEntry > at java.net.URLClassLoader$1.run(URLClassLoader.java:200) > at java.security.AccessController.doPrivileged(Native Method) > at java.net.URLClassLoader.findClass(URLClassLoader.java:188) > at java.lang.ClassLoader.loadClass(ClassLoader.java:306) > at java.lang.ClassLoader.loadClass(ClassLoader.java:251) > at=20 >java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) > at java.lang.Class.forName0(Native Method) > at java.lang.Class.forName(Class.java:247) > at >sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:434) > at >sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:165) > at >java.rmi.server.RMIClassLoader$2.loadClass(RMIClassLoader.java:620) > at >java.rmi.server.RMIClassLoader.loadClass(RMIClassLoader.java:247) > at=20 >net.jini.loader.ClassLoading.loadClass(ClassLoading.java:138) > at >org.dancres.blitz.mangler.EntryMangler.unMangle(EntryMangler.java:86) > at=20 >org.dancres.blitz.remote.BlitzProxy.take(BlitzProxy.java:117) > at >com.harmanbecker.anaconda.job.test.ReadAndTake.run(ReadAndTake.java:30) > at >com.harmanbecker.anaconda.main.Activator.run(Activator.java:106) > at java.lang.Thread.run(Thread.java:619) > >How do I ensure that the JavaSpace proxy (loaded via RMI) can=20 >load the classes exported by my bundle? > >By the way, I'm surprised that I could load the RMI proxy at=20 >all, as my bundle has no declared dependency on Blitz. > >Regards, > >Harald Wellmann > >******************************************* >innovative systems GmbH Navigation-Multimedia >Geschaeftsfuehrung: Dr. Peter Geiselhart - Kevin Brown - Edwin=20 >Summers - Regis Baudot Sitz der Gesellschaft: Hamburg -=20 >Registergericht: Hamburg HRB 59980 > >******************************************* >Diese E-Mail enthaelt vertrauliche und/oder rechtlich=20 >geschuetzte Informationen. Wenn Sie nicht der richtige=20 >Adressat sind oder diese E-Mail irrtuemlich erhalten haben,=20 >informieren Sie bitte sofort den Absender und loeschen Sie=20 >diese Mail. Das unerlaubte Kopieren sowie die unbefugte=20 >Weitergabe dieser Mail ist nicht gestattet. >This e-mail may contain confidential and/or privileged=20 >information. If you are not the intended recipient (or have=20 >received this e-mail in error) please notify the sender=20 >immediately and delete this e-mail. Any unauthorized copying,=20 >disclosure or distribution of the contents in this e-mail is=20 >strictly forbidden. >******************************************* > >=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >To unsubscribe, send email to [email protected] and=20 >include in the body of the message "signoff JAVASPACES-USERS".=20 > For general help, send email to [email protected] and=20 >include in the body of the message "help". > >To view past JAVASPACES-USERS postings, please see: >http://archives.java.sun.com/archives/javaspaces-users.html > >_______________________________________________________________________ >This email has been scanned by both Message Labs and Paremus=20 >internal systems for viruses and inappropriate attachments. =20 >Email suspected of carrying a virus payload or inappropriate=20 >attachment will not be delivered to you, and the sender will=20 >receive an appropriate warning notice. >_______________________________________________________________________ > > >_______________________________________________________________________ >Paremus Limited. Registered in England > No. 4181472 > Registered Office: St Alphage House, 2 Fore Street, London,=20 >EC2Y 5DH Postal Address: 107-111 Fleet Street, London, EC4A=20 >2AB The information transmitted is intended only for the=20 >person(s) or entity to which it is addressed and may contain=20 >confidential and/or privileged material. Any review,=20 >retransmission, dissemination or other use of, or taking of=20 >any action in reliance upon, this information by persons or=20 >entities other than the intended recipient is prohibited. >If you received this in error, please contact the sender and=20 >delete the material from any computer. >_______________________________________________________________________ > >=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >To unsubscribe, send email to [email protected] and=20 >include in the body of the message "signoff JAVASPACES-USERS".=20 > For general help, send email to [email protected] and=20 >include in the body of the message "help". > >To view past JAVASPACES-USERS postings, please see: >http://archives.java.sun.com/archives/javaspaces-users.html > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D To unsubscribe, send email to [email protected] and include in the body of the message "signoff JAVASPACES-USERS". For general help, send email to [email protected] and include in the body of the message "help". To view past JAVASPACES-USERS postings, please see: http://archives.java.sun.com/archives/javaspaces-users.html