users@glassfish.java.net

Re: NamingException ejb ref resolution error for remote business interface

From: <glassfish_at_javadesktop.org>
Date: Wed, 28 Nov 2007 09:09:29 PST

Has anyone been able to solve this issue? I am having the exact same issue with my ejb. The only difference is that this is an Eclipse RCP application. Here is a complete stacktrace. My Bean and Interface are almost exactly the same as the others mentioned in this thread. Any ideas?

javax.naming.NamingException: ejb ref resolution error for remote business interfacecom.cerner.ipsvc.artifact.ArtifactService [Root exception is java.lang.ClassNotFoundException: com.cerner.ipsvc.artifact.ArtifactService]
        at com.sun.ejb.EJBUtils.lookupRemote30BusinessObject(EJBUtils.java:367)
        at com.sun.ejb.containers.RemoteBusinessObjectFactory.getObjectInstance(RemoteBusinessObjectFactory.java:74)
        at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)
        at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:344)
        at javax.naming.InitialContext.lookup(InitialContext.java:351)
        at com.cerner.engineering.release.management.client.ServiceClient.getRepositoriesByFactoryInd(ServiceClient.java:50)
        at com.cerner.engineering.release.management.views.artifact.ArtifactView$1.getChildren(ArtifactView.java:78)
        at com.cerner.engineering.release.management.views.artifact.ArtifactViewContentProvider.addListenerTo(ArtifactViewContentProvider.java:47)
        at com.cerner.engineering.release.management.views.artifact.ArtifactViewContentProvider.inputChanged(ArtifactViewContentProvider.java:24)
        at org.eclipse.jface.viewers.ContentViewer.setInput(ContentViewer.java:247)
        at org.eclipse.jface.viewers.StructuredViewer.setInput(StructuredViewer.java:1606)
        at com.cerner.engineering.release.management.views.artifact.ArtifactView.createPartControl(ArtifactView.java:66)
        at org.eclipse.ui.internal.ViewReference.createPartHelper(ViewReference.java:370)
        at org.eclipse.ui.internal.ViewReference.createPart(ViewReference.java:227)
        at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:592)
        at org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:299)
        at org.eclipse.ui.internal.ViewPane.setVisible(ViewPane.java:531)
        at org.eclipse.ui.internal.presentations.PresentablePart.setVisible(PresentablePart.java:179)
        at org.eclipse.ui.internal.presentations.util.PresentablePartFolder.select(PresentablePartFolder.java:268)
        at org.eclipse.ui.internal.presentations.util.LeftToRightTabOrder.select(LeftToRightTabOrder.java:65)
        at org.eclipse.ui.internal.presentations.util.TabbedStackPresentation.selectPart(TabbedStackPresentation.java:400)
        at org.eclipse.ui.internal.PartStack.refreshPresentationSelection(PartStack.java:1256)
        at org.eclipse.ui.internal.PartStack.setSelection(PartStack.java:1209)
        at org.eclipse.ui.internal.PartStack.showPart(PartStack.java:1604)
        at org.eclipse.ui.internal.PartStack.createControl(PartStack.java:649)
        at org.eclipse.ui.internal.PartStack.createControl(PartStack.java:576)
        at org.eclipse.ui.internal.PartSashContainer.createControl(PartSashContainer.java:563)
        at org.eclipse.ui.internal.PerspectiveHelper.activate(PerspectiveHelper.java:270)
        at org.eclipse.ui.internal.Perspective.onActivate(Perspective.java:931)
        at org.eclipse.ui.internal.WorkbenchPage.onActivate(WorkbenchPage.java:2497)
        at org.eclipse.ui.internal.WorkbenchWindow$23.run(WorkbenchWindow.java:2837)
        at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
        at org.eclipse.ui.internal.WorkbenchWindow.setActivePage(WorkbenchWindow.java:2818)
        at org.eclipse.ui.internal.WorkbenchWindow.busyOpenPage(WorkbenchWindow.java:735)
        at org.eclipse.ui.internal.Workbench$20.runWithException(Workbench.java:1023)
        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:123)
        at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3659)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3296)
        at org.eclipse.ui.application.WorkbenchAdvisor.openWindows(WorkbenchAdvisor.java:797)
        at org.eclipse.ui.internal.Workbench$25.runWithException(Workbench.java:1342)
        at org.eclipse.ui.internal.StartupThreading$StartupRunnable.run(StartupThreading.java:31)
        at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:152)
        at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:118)
        at org.eclipse.swt.widgets.Display.syncExec(Display.java:4097)
        at org.eclipse.ui.internal.StartupThreading.runWithoutExceptions(StartupThreading.java:94)
        at org.eclipse.ui.internal.Workbench.init(Workbench.java:1337)
        at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2319)
        at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2219)
        at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
        at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:289)
        at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:461)
        at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
        at com.cerner.engineering.release.management.Application.start(Application.java:24)
        at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:153)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
        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:508)
        at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
        at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
        at org.eclipse.equinox.launcher.Main.main(Main.java:1148)
Caused by: java.lang.ClassNotFoundException: com.cerner.ipsvc.artifact.ArtifactService
        at java.lang.ClassLoader.findClass(ClassLoader.java:358)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at org.eclipse.core.runtime.internal.adaptor.ContextFinder.loadClass(ContextFinder.java:124)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
        at com.sun.ejb.EJBUtils.getBusinessIntfClassLoader(EJBUtils.java:621)
        at com.sun.ejb.EJBUtils.lookupRemote30BusinessObject(EJBUtils.java:337)
        ... 67 more
[Message sent by forum member 'psg9999' (psg9999)]

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