tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yudi Xue <binarycra...@gmail.com>
Subject Re: RCP Client for EJB
Date Thu, 18 Feb 2010 20:03:36 GMT
Hi,

I did not interpret your error message, but I started a RCP project with
embedded OpenEJB.

I found this post: http://openejb.apache.org/osgi-openejb.html most helpful
when I researched the problem.

As well, I have saved a copy of project template of a hello-world RCP
project configured with OpenEJB, and you can download the project at:
http://uofs-silver.googlecode.com/files/workspace4-rcp-working.tgz

Go fetch it if you are interested.

cheers,


On Thu, Feb 18, 2010 at 8:23 AM, mlounnaci <mlounnaci@hb-technologies.dz>wrote:

>
> Hello again
>
> I did some progress, now the exeption is:
>
> javax.naming.NamingException: Cannot lookup '/TestBeanRemote'. [Root
> exception is java.rmi.RemoteException: Cannot read the response from the
> server.  The class for an object being returned is not located in this
> system:; nested exception is:
>        java.lang.ClassNotFoundException: com.hbtech.TestBeanRemote]
>        at
> org.apache.openejb.client.JNDIContext.lookup(JNDIContext.java:240)
>         at javax.naming.InitialContext.lookup(InitialContext.java:392)
>         at com.hbtech.EjbCaller.init(EjbCaller.java:24)
>        at com.hbtech.EjbCaller.hello(EjbCaller.java:28)
>        at callejb.views.MyEjbView$2.run(MyEjbView.java:159)
>         at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
>        at
>
> org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:583)
>        at
>
> org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:500)
>        at
>
> org.eclipse.jface.action.ActionContributionItem$6.handleEvent(ActionContributionItem.java:452)
>        at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
>        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
>        at
> org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3823)
>        at
> org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3422)
>        at
> org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2382)
>        at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2346)
>        at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2198)
>        at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:493)
>        at
>
> org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288)
>        at
> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:488)
>        at
> org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
>        at persologicrcp.Application.start(Application.java:20)
>        at
>
> org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:193)
>        at
>
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
>        at
>
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
>        at
>
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:382)
>        at
>
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at
>
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>        at
>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>        at java.lang.reflect.Method.invoke(Method.java:597)
>        at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549)
>        at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
>        at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
>        at org.eclipse.equinox.launcher.Main.main(Main.java:1212)
> Caused by: java.rmi.RemoteException: Cannot read the response from the
> server.  The class for an object being returned is not located in this
> system:; nested exception is:
>        java.lang.ClassNotFoundException: com.hbtech.TestBeanRemote
>        at org.apache.openejb.client.Client.processRequest(Client.java:169)
>        at org.apache.openejb.client.Client.request(Client.java:42)
>        at
> org.apache.openejb.client.JNDIContext.request(JNDIContext.java:87)
>        at
> org.apache.openejb.client.JNDIContext.lookup(JNDIContext.java:234)
>        ... 33 more
> Caused by: java.lang.ClassNotFoundException: com.hbtech.TestBeanRemote
>        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 sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
>        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
>        at
>
> org.eclipse.core.runtime.internal.adaptor.ContextFinder.loadClass(ContextFinder.java:129)
>        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
>        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
>        at java.lang.Class.forName0(Native Method)
>        at java.lang.Class.forName(Class.java:247)
>        at
>
> org.apache.openejb.client.EjbObjectInputStream.resolveClass(EjbObjectInputStream.java:35)
>        at
> java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1575)
>        at
> java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1496)
>        at java.io.ObjectInputStream.readClass(ObjectInputStream.java:1462)
>        at
> java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1312)
>        at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
>        at
>
> org.apache.openejb.client.EJBMetaDataImpl.readExternal(EJBMetaDataImpl.java:177)
>        at
> java.io.ObjectInputStream.readExternalData(ObjectInputStream.java:1792)
>        at
> java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1751)
>        at
> java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
>        at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
>        at
> org.apache.openejb.client.JNDIResponse.readExternal(JNDIResponse.java:79)
>        at org.apache.openejb.client.Client.processRequest(Client.java:167)
>        ... 36 more
>
> Thanks
> --
> View this message in context:
> http://n4.nabble.com/RCP-Client-for-EJB-tp1559802p1560193.html
> Sent from the OpenEJB User mailing list archive at Nabble.com.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message