Skip to main content



      Home
Home » Language IDEs » ServerTools (WTP) » ClassCastException trying to create EJB Project
ClassCastException trying to create EJB Project [message #77704] Sun, 27 February 2005 09:29 Go to next message
Eclipse UserFriend
Did a clean install of Eclipse M5 and WTP M3. Trying to create a new EJB
Project gives me following stack trace. This stack trace occurs when you
choose 2.0 as the specification version but not when you choose 2.1.
Also after the stack trace has occured whenever i try to type something
to the name field of the ejb project wizard my characters are doubled
(eg. "TestProject" becomes TTeessttPPrroojjeecctt").


java.lang.reflect.InvocationTargetException
at
org.eclipse.jface.operation.ModalContext.runInCurrentThread( ModalContext.java:355)
at org.eclipse.jface.operation.ModalContext.run(ModalContext.ja va:289)
at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java: 824)
at
org.eclipse.wst.common.frameworks.ui.WTPWizard.performFinish (WTPWizard.java:90)
at
org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDi alog.java:670)
at
org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDi alog.java:342)
at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.jav a:543)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListe ner.java:89)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :82)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1009)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:2728)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2427)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:718 )
at org.eclipse.jface.window.Window.open(Window.java:696)
at org.eclipse.ui.actions.NewWizardAction.run(NewWizardAction.j ava:173)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:100 3)
at
org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:557)
at
org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionItem.java:507)
at
org.eclipse.jface.action.ActionContributionItem$6.handleEven t(ActionContributionItem.java:421)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :82)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1009)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:2728)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2427)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1612)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1578)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:293)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:144)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:102)
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:228)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:333)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:150)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.eclipse.core.launcher.Main.invokeFramework(Main.java:268 )
at org.eclipse.core.launcher.Main.basicRun(Main.java:260)
at org.eclipse.core.launcher.Main.run(Main.java:887)
at org.eclipse.core.launcher.Main.main(Main.java:871)
Caused by: java.lang.ClassCastException
at
org.eclipse.wst.common.frameworks.operations.WTPOperationDat aModel.getIntProperty(WTPOperationDataModel.java:487)
at
org.eclipse.jst.j2ee.application.operations.J2EEModuleCreati onOperation.setVersion(J2EEModuleCreationOperation.java:144)
at
org.eclipse.jst.j2ee.application.operations.J2EEModuleCreati onOperation.createProject(J2EEModuleCreationOperation.java:9 6)
at
org.eclipse.jst.j2ee.application.operations.J2EEModuleCreati onOperation.execute(J2EEModuleCreationOperation.java:65)
at
org.eclipse.jst.j2ee.internal.ejb.project.operations.EJBModu leCreationOperation.execute(EJBModuleCreationOperation.java: 45)
at
org.eclipse.wst.common.frameworks.operations.WTPOperation.do Run(WTPOperation.java:309)
at
org.eclipse.wst.common.frameworks.operations.WTPOperation$1. run(WTPOperation.java:233)
at org.eclipse.core.internal.resources.Workspace.run(Workspace. java:1702)
at org.eclipse.core.internal.resources.Workspace.run(Workspace. java:1722)
at
org.eclipse.wst.common.frameworks.operations.WTPOperation.ru n(WTPOperation.java:251)
at
org.eclipse.wst.common.frameworks.internal.ui.RunnableWithPr ogressWrapper.run(RunnableWithProgressWrapper.java:67)
at
org.eclipse.jface.operation.ModalContext.runInCurrentThread( ModalContext.java:344)
... 38 more
Re: ClassCastException trying to create EJB Project [message #77823 is a reply to message #77704] Sun, 27 February 2005 19:03 Go to previous message
Eclipse UserFriend
Janne Kario wrote:
> Did a clean install of Eclipse M5 and WTP M3. Trying to create a new EJB
> Project gives me following stack trace. This stack trace occurs when you
> choose 2.0 as the specification version but not when you choose 2.1.
> Also after the stack trace has occured whenever i try to type something
> to the name field of the ejb project wizard my characters are doubled
> (eg. "TestProject" becomes TTeessttPPrroojjeecctt").
>
>
> java.lang.reflect.InvocationTargetException
> at
> org.eclipse.jface.operation.ModalContext.runInCurrentThread( ModalContext.java:355)
>
> at org.eclipse.jface.operation.ModalContext.run(ModalContext.ja va:289)
> at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java: 824)
> at
> org.eclipse.wst.common.frameworks.ui.WTPWizard.performFinish (WTPWizard.java:90)
>
> at
> org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDi alog.java:670)
> at
> org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDi alog.java:342)
> at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.jav a:543)
> at
> org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListe ner.java:89)
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :82)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1009)
> at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:2728)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2427)
> at org.eclipse.jface.window.Window.runEventLoop(Window.java:718 )
> at org.eclipse.jface.window.Window.open(Window.java:696)
> at org.eclipse.ui.actions.NewWizardAction.run(NewWizardAction.j ava:173)
> at org.eclipse.jface.action.Action.runWithEvent(Action.java:100 3)
> at
> org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:557)
>
> at
> org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionItem.java:507)
>
> at
> org.eclipse.jface.action.ActionContributionItem$6.handleEven t(ActionContributionItem.java:421)
>
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :82)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1009)
> at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:2728)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2427)
> at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1612)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1578)
> at
> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:293)
> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:144)
> at
> org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:102)
> at
> org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:228)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:333)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:150)
>
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
>
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
>
> at java.lang.reflect.Method.invoke(Method.java:324)
> at org.eclipse.core.launcher.Main.invokeFramework(Main.java:268 )
> at org.eclipse.core.launcher.Main.basicRun(Main.java:260)
> at org.eclipse.core.launcher.Main.run(Main.java:887)
> at org.eclipse.core.launcher.Main.main(Main.java:871)
> Caused by: java.lang.ClassCastException
> at
> org.eclipse.wst.common.frameworks.operations.WTPOperationDat aModel.getIntProperty(WTPOperationDataModel.java:487)
>
> at
> org.eclipse.jst.j2ee.application.operations.J2EEModuleCreati onOperation.setVersion(J2EEModuleCreationOperation.java:144)
>
> at
> org.eclipse.jst.j2ee.application.operations.J2EEModuleCreati onOperation.createProject(J2EEModuleCreationOperation.java:9 6)
>
> at
> org.eclipse.jst.j2ee.application.operations.J2EEModuleCreati onOperation.execute(J2EEModuleCreationOperation.java:65)
>
> at
> org.eclipse.jst.j2ee.internal.ejb.project.operations.EJBModu leCreationOperation.execute(EJBModuleCreationOperation.java: 45)
>
> at
> org.eclipse.wst.common.frameworks.operations.WTPOperation.do Run(WTPOperation.java:309)
>
> at
> org.eclipse.wst.common.frameworks.operations.WTPOperation$1. run(WTPOperation.java:233)
>
> at
> org.eclipse.core.internal.resources.Workspace.run(Workspace. java:1702)
> at
> org.eclipse.core.internal.resources.Workspace.run(Workspace. java:1722)
> at
> org.eclipse.wst.common.frameworks.operations.WTPOperation.ru n(WTPOperation.java:251)
>
> at
> org.eclipse.wst.common.frameworks.internal.ui.RunnableWithPr ogressWrapper.run(RunnableWithProgressWrapper.java:67)
>
> at
> org.eclipse.jface.operation.ModalContext.runInCurrentThread( ModalContext.java:344)
>
> ... 38 more

Janne,

For EJB 2.0 project creation you need
http://www.eclipse.org/webtools/wst/components/ws/download_i nstructions_for_jars.html.
Although the build page says these jars are optional to enable web
services, it required for ejb 2.0 project creation. I have tried it both
without and with these jars and I see the same problem that you are
seing without these jars but once have the web services jars things are
working fine. We will look more into this issue in M4 to remove this
dependency.

- Vijay
Previous Topic:Deploy Eclipse Project - Java Web Start
Next Topic:Changing Context Root
Goto Forum:
  


Current Time: Mon May 12 05:23:40 EDT 2025

Powered by FUDForum. Page generated in 0.02690 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top