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 03:36 Go to next message
catmarch2004  is currently offline catmarch2004
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 11:40 Go to previous message
Mark Hoffmann is currently offline Mark Hoffmann
Messages: 102
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: Sat Jul 26 13:28:44 EDT 2014

Powered by FUDForum. Page generated in 0.03796 seconds