users@glassfish.java.net

Re: Problem running standalone Glassfish client as Eclipse plugin

From: <glassfish_at_javadesktop.org>
Date: Wed, 10 Feb 2010 06:23:58 PST

Hi Dominik,

I figured out how to get glassfish v3 working with Eclipse 3.5.

First of all this was my initial setup:
I had essentially 2 plugins the first one contained the application code that invoked the EJB's, the second plugin contained both the EJB client jars and the server jars. With the first depending on the second.

I then split the second plugin into a client jar plugin and a server jar plugin, exported all packages and very importantly set the buddy class loading policy in the manifest file to dependent for both.

In my case that was all it took. You will still get a NoSuchMethodException but that doesn't seem to interfere with the Bean invocation. If you don't want that Exception to be thrown you'll also have to modify the org.eclipse.osgi plugin.

Anyhow, let me know if that worked for you, too.
Stephan
[Message sent by forum member 'yetanotherone' (st.lerche_at_nexgo.de)]

http://forums.java.net/jive/thread.jspa?messageID=385880