thanks , Lin: I added ejb jar to classpath, in MAINIFEST.MF
Manifest-Version: 1.0 Bundle-ManifestVersion: 2 Bundle-Name: Test Plug-in Bundle-SymbolicName: test; singleton:=true Bundle-Version: 1.0.0 Bundle-Activator: test.Activator Require-Bundle: org.eclipse.ui, org.eclipse.core.runtime Bundle-ActivationPolicy: lazy Bundle-RequiredExecutionEnvironment: J2SE-1.5 Bundle-ClassPath: META-INF/openejb-client-3.0.jar, META-INF/com.golferpass.pandora.tasks.statelessejb.jar, rcp project compile is passed, but run is failed. On Thu, 2008-08-21 at 22:32 -0400, Lin Sun wrote: > Hi, > > I think this is a classpath issue. Did you have the ejb jar on the > classpath of the rcp project? > > You may want to check out this EJB sample that uses a standalone java > client towards the end - > http://cwiki.apache.org/GMOxDOC21/bank-ejb-sample-application.html. > Please note the last screen shot, it has lots of jars on the classpath > to run the java client. > > HTH, Lin > > On Thu, Aug 21, 2008 at 10:22 PM, tommy <[EMAIL PROTECTED]> wrote: > > hi all: > > geronimo 2.1.2 , eclipse 3.4 , debian linux > > I followed Developer's guide , created a applicatoin client to > > access ejb, it worked perfect. but when i use rcp project to access > > ejb , get this error message: > > > > ava.lang.NoClassDefFoundError: javax/ejb/EJBHome > > at java.lang.Class.forName0(Native Method) > > at java.lang.Class.forName(Class.java:242) > > at > > com.sun.naming.internal.VersionHelper12.loadClass(VersionHelper12.java:42) > > at > > javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:654) > > at > > javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247) > > at javax.naming.InitialContext.init(InitialContext.java:223) > > at javax.naming.InitialContext.<init>(InitialContext.java:197) > > at test.Perspective.createInitialLayout(Perspective.java:21) > > at > > org.eclipse.ui.internal.Perspective.loadPredefinedPersp(Perspective.java:801) > > at > > org.eclipse.ui.internal.Perspective.createPresentation(Perspective.java:259) > > at org.eclipse.ui.internal.Perspective.<init>(Perspective.java:147) > > at > > org.eclipse.ui.internal.tweaklets.Workbench3xImplementation.createPerspective(Workbench3xImplementation.java:55) > > at > > org.eclipse.ui.internal.WorkbenchPage.createPerspective(WorkbenchPage.java:1633) > > at org.eclipse.ui.internal.WorkbenchPage.init(WorkbenchPage.java:2414) > > at org.eclipse.ui.internal.WorkbenchPage.<init>(WorkbenchPage.java:560) > > at > > org.eclipse.ui.internal.tweaklets.Workbench3xImplementation.createWorkbenchPage(Workbench3xImplementation.java:39) > > at > > org.eclipse.ui.internal.WorkbenchWindow.busyOpenPage(WorkbenchWindow.java:756) > > at org.eclipse.ui.internal.Workbench > > $21.runWithException(Workbench.java:1027) > > at org.eclipse.ui.internal.StartupThreading > > $StartupRunnable.run(StartupThreading.java:31) > > at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35) > > at > > org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:133) > > at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3378) > > at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3036) > > at > > org.eclipse.ui.application.WorkbenchAdvisor.openWindows(WorkbenchAdvisor.java:803) > > at org.eclipse.ui.internal.Workbench > > $27.runWithException(Workbench.java:1361) > > at org.eclipse.ui.internal.StartupThreading > > $StartupRunnable.run(StartupThreading.java:31) > > at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:178) > > at > > org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:150) > > at org.eclipse.swt.widgets.Display.syncExec(Display.java:4021) > > at > > org.eclipse.ui.internal.StartupThreading.runWithoutExceptions(StartupThreading.java:94) > > at org.eclipse.ui.internal.Workbench.init(Workbench.java:1356) > > at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2312) > > 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 test.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:585) > > 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) > > > > > > > > I thank anyone in advance. If more information is needed, just ask! > > > > > > > >
