-
1. Re: Problem with EJB wizard
macifl Jan 28, 2005 7:12 AM (in response to mbuchholz)I have a same error.
I have bean tried 2.1.3, 3.0.1 and 3.1M4 Eclipse. My jdk 1.4.2_07 and 1.5.0_01. All off them is wrong.
macifl
The log file:
!ENTRY org.jboss.ide.eclipse.xdoclet.run 4 0 jan. 28, 2005 13:04:28.189
!MESSAGE Unable to generate type
!STACK 1
Java Model Exception: Java Model Status [<project root> [in Test] does not exist]
at org.eclipse.jdt.internal.core.JavaElement.newNotPresentException(JavaElement.java:561)
at org.eclipse.jdt.internal.core.PackageFragmentRoot.buildStructure(PackageFragmentRoot.java:169)
at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:183)
at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:572)
at org.eclipse.jdt.internal.core.JavaElement.getElementInfo(JavaElement.java:309)
at org.eclipse.jdt.internal.core.JavaElement.getElementInfo(JavaElement.java:295)
at org.eclipse.jdt.internal.core.PackageFragmentRoot.getKind(PackageFragmentRoot.java:545)
at org.eclipse.jdt.internal.core.PackageFragment.getKind(PackageFragment.java:271)
at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:85)
at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:183)
at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:572)
at org.eclipse.jdt.internal.core.JavaElement.getElementInfo(JavaElement.java:309)
at org.eclipse.jdt.internal.core.JavaElement.getElementInfo(JavaElement.java:295)
at org.eclipse.jdt.internal.core.Openable.getBuffer(Openable.java:210)
at org.eclipse.jdt.internal.core.CompilationUnit.getSource(CompilationUnit.java:802)
at org.jboss.ide.eclipse.jdt.ui.wizards.DOMClassWizardPage.generate(DOMClassWizardPage.java:95)
at org.jboss.ide.eclipse.jdt.ui.wizards.DOMClassWizardPage.generate(DOMClassWizardPage.java:70)
at org.jboss.ide.eclipse.jdt.ui.wizards.ClassWizard.finishPage(ClassWizard.java:115)
at org.jboss.ide.eclipse.jdt.ui.wizards.BaseWizard$1.run(BaseWizard.java:101)
at org.eclipse.jdt.internal.core.BatchOperation.executeOperation(BatchOperation.java:34)
at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:700)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1673)
at org.eclipse.jdt.core.JavaCore.run(JavaCore.java:3246)
at org.eclipse.jdt.internal.ui.actions.WorkbenchRunnableAdapter.run(WorkbenchRunnableAdapter.java:65)
at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:303)
at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:253)
at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:752)
at org.jboss.ide.eclipse.jdt.ui.wizards.BaseWizard.performFinish(BaseWizard.java:111)
at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:609)
at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:305)
at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:506)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:89)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:796)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2772)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2431)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:668)
at org.eclipse.jface.window.Window.open(Window.java:648)
at org.eclipse.ui.actions.NewWizardAction.run(NewWizardAction.java:163)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:881)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:915)
at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:866)
at org.eclipse.jface.action.ActionContributionItem$7.handleEvent(ActionContributionItem.java:785)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:796)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2772)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2431)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1377)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1348)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:254)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:141)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:96)
at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:335)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:273)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:129)
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:324)
at org.eclipse.core.launcher.Main.basicRun(Main.java:185)
at org.eclipse.core.launcher.Main.run(Main.java:704)
at org.eclipse.core.launcher.Main.main(Main.java:688)
!SUBENTRY 1 org.eclipse.jdt.core 4 969 jan. 28, 2005 13:04:28.189
!MESSAGE <project root> [in Test] does not exist
!ENTRY org.eclipse.jdt.ui 4 10001 jan. 28, 2005 13:04:28.205
!MESSAGE Internal Error
!STACK 1
Java Model Exception: Java Model Status [<project root> [in Test] does not exist]
at org.eclipse.jdt.internal.core.JavaElement.newNotPresentException(JavaElement.java:561)
at org.eclipse.jdt.internal.core.PackageFragmentRoot.getUnderlyingResource(PackageFragmentRoot.java:766)
at org.eclipse.jdt.internal.core.PackageFragment.getUnderlyingResource(PackageFragment.java:315)
at org.eclipse.jdt.internal.core.Openable.getUnderlyingResource(Openable.java:257)
at org.eclipse.jdt.internal.core.CompilationUnit.getUnderlyingResource(CompilationUnit.java:832)
at org.eclipse.jdt.internal.core.CompilationUnit.getCorrespondingResource(CompilationUnit.java:612)
at org.jboss.ide.eclipse.jdt.ui.wizards.ClassWizard.finishPage(ClassWizard.java:123)
at org.jboss.ide.eclipse.jdt.ui.wizards.BaseWizard$1.run(BaseWizard.java:101)
at org.eclipse.jdt.internal.core.BatchOperation.executeOperation(BatchOperation.java:34)
at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:700)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1673)
at org.eclipse.jdt.core.JavaCore.run(JavaCore.java:3246)
at org.eclipse.jdt.internal.ui.actions.WorkbenchRunnableAdapter.run(WorkbenchRunnableAdapter.java:65)
at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:303)
at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:253)
at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:752)
at org.jboss.ide.eclipse.jdt.ui.wizards.BaseWizard.performFinish(BaseWizard.java:111)
at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:609)
at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:305)
at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:506)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:89)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:796)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2772)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2431)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:668)
at org.eclipse.jface.window.Window.open(Window.java:648)
at org.eclipse.ui.actions.NewWizardAction.run(NewWizardAction.java:163)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:881)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:915)
at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:866)
at org.eclipse.jface.action.ActionContributionItem$7.handleEvent(ActionContributionItem.java:785)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:796)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2772)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2431)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1377)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1348)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:254)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:141)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:96)
at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:335)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:273)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:129)
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:324)
at org.eclipse.core.launcher.Main.basicRun(Main.java:185)
at org.eclipse.core.launcher.Main.run(Main.java:704)
at org.eclipse.core.launcher.Main.main(Main.java:688)
!SUBENTRY 1 org.eclipse.jdt.core 4 969 jan. 28, 2005 13:04:28.205
!MESSAGE <project root> [in Test] does not exist -
2. Re: Problem with EJB wizard
tunahacker Feb 5, 2005 5:47 AM (in response to mbuchholz)I have the same problem...does anyone have any solution to this?
-
3. Re: Problem with EJB wizard
mbuchholz Feb 5, 2005 4:46 PM (in response to mbuchholz)I've found out what the problem is.
If you go through the tutorial (and I guess we did that all in this thread) you have to create a "source folder" where the EJBs are stored in and not a simple "folder". When I do this everything works fine for me...
I don't exactly understand what the difference is between these two. Might be that the "source folder" is in classpath and the other not... any other difference? -
4. Re: Problem with EJB wizard
snyderpa Feb 20, 2007 10:10 AM (in response to mbuchholz)Much later, I experienced same problem in my log file as macifl.
I solved it by running Eclipse with 512M virtual memory.
shell-prompt: eclipse -vmargs -Xmx512M