Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » EJB Remote Invocation Problem
EJB Remote Invocation Problem [message #496460] Tue, 10 November 2009 08:36 Go to next message
catmarch2004  is currently offline catmarch2004 Friend
Messages: 1
Registered: November 2009
Junior Member


Hi,



I have some issues with EJB remote procedure returning. The target application server is a JBoss App Server. In-explicably, the remote call is unable to locate the class being returned and subsequently throws a ClassNotFoundException. After tracing, it seems that the JBoss remoting mechanism is unable to locate the classes despite the dependencies between each plug-in.



Attempts to resolve this using Buddy Policy (either registered or global) did not work.



In my Eclipse RCP application, I currently have 4 plug-ins

n plug-in A (where the EJB interfaces are stored)

n plug-in B (where the classes being returned by interfaces in A are stored)

n plug-in C (my RCP main app is stored)

n plug-in D (the plugin containing the code that will call the interfaces in A.)



I have set up the plug-in dependencies so that it works this way:

n plug-in A depends on plug-in B

n plug-in B has no dependency

n plug-in C depends on plug-in D

n plug-in D depends on A



So the dependency chart looks something like C ¨¤ D ¨¤ A ¨¤ B. I have also added to the MANIFEST.MF the packages needed to be exported as well.



I am baffled to why the recommended solutions (dependencies and Buddy-Policy) did not work. I am able to get it to work by changing the ContextClassLoader, but frankly, using that will involve a lot of boiler plate code that makes my eyes bleed. I am posting my problem here to see if I can get this resolved without resorting to the ContextClassLoader hack.



Any advice or solutions will be most appreciated.
Re: EJB Remote Invocation Problem [message #526066 is a reply to message #496460] Thu, 08 April 2010 15:40 Go to previous message
Mark Hoffmann is currently offline Mark HoffmannFriend
Messages: 113
Registered: July 2009
Location: Jena
Senior Member
Hi,

you still need help?
I solved this problem with Geronimo and OpenEJB. I you need help,
contact me.

maho77 (at) gmail dot com

Regards,
Mark
Previous Topic:[Section] icon in title bar?
Next Topic:Security in eclipse RCP application
Goto Forum:
  


Current Time: Tue Mar 19 02:40:01 GMT 2024

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

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

Back to the top