- This topic has 5 replies, 2 voices, and was last updated 18 years ago by
Riyad Kalla.
-
AuthorPosts
-
reeherjMemberI am starting to use struts and cannot open the struts-config.xml using the MyEclipse Struts Editor.
I have already re-installed eclipse 3.1.2 and MyEclipse 4.1.1GA. I had Eclipse 3.2.2 and MyEclipse 5.1.1 but had to revert because of a bug with the JBOSS IDE not working anymore in eclipse 3.2.x
When I try to edit Struts-config.xml using the MyEclipse Struts Editor I get:
Unable to create this part due to an internal error. Reason for the failure: org.eclipse.draw2d.geometry.Dimension following error:
The Details are:
java.lang.ClassCastException: org.eclipse.draw2d.geometry.Dimension
at org.eclipse.gef.editparts.FreeformGraphicalRootEditPart.refreshGridLayer(FreeformGraphicalRootEditPart.java:280)
at org.eclipse.gef.editparts.FreeformGraphicalRootEditPart$1.propertyChange(FreeformGraphicalRootEditPart.java:108)
at java.beans.PropertyChangeSupport.firePropertyChange(Unknown Source)
at java.beans.PropertyChangeSupport.firePropertyChange(Unknown Source)
at org.eclipse.gef.ui.parts.AbstractEditPartViewer.setProperty(AbstractEditPartViewer.java:687)
at com.genuitec.eclipse.struts.editor.modeler.core.StrutsEditor.loadProperties(StrutsEditor.java:375)
at com.genuitec.eclipse.struts.editor.modeler.core.StrutsEditor.configureGraphicalViewer(StrutsEditor.java:350)
at com.genuitec.eclipse.struts.editor.modeler.core.StrutsEditor.createGraphicalViewer(StrutsEditor.java:321)
at org.eclipse.gef.ui.parts.GraphicalEditor.createPartControl(GraphicalEditor.java:148)
at org.eclipse.gef.ui.parts.GraphicalEditorWithFlyoutPalette.createPartControl(GraphicalEditorWithFlyoutPalette.java:76)
at org.eclipse.ui.part.MultiPageEditorPart.addPage(MultiPageEditorPart.java:155)
at org.eclipse.ui.part.MultiPageEditorPart.addPage(MultiPageEditorPart.java:132)
at com.genuitec.eclipse.struts.editor.multipage.StrutsConfigEditor.createFlowModeler(StrutsConfigEditor.java:262)
at com.genuitec.eclipse.struts.editor.multipage.StrutsConfigEditor.createPages(StrutsConfigEditor.java:281)
at org.eclipse.ui.part.MultiPageEditorPart.createPartControl(MultiPageEditorPart.java:241)
at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:609)
at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:384)
at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:552)
at org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:283)
at org.eclipse.ui.internal.presentations.PresentablePart.setVisible(PresentablePart.java:126)
at org.eclipse.ui.internal.presentations.util.PresentablePartFolder.select(PresentablePartFolder.java:269)
at org.eclipse.ui.internal.presentations.util.LeftToRightTabOrder.select(LeftToRightTabOrder.java:65)
at org.eclipse.ui.internal.presentations.util.TabbedStackPresentation.selectPart(TabbedStackPresentation.java:391)
at org.eclipse.ui.internal.PartStack.refreshPresentationSelection(PartStack.java:1102)
at org.eclipse.ui.internal.PartStack.setSelection(PartStack.java:1051)
at org.eclipse.ui.internal.PartStack.showPart(PartStack.java:1256)
at org.eclipse.ui.internal.PartStack.add(PartStack.java:442)
at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:109)
at org.eclipse.ui.internal.EditorSashContainer.addEditor(EditorSashContainer.java:60)
at org.eclipse.ui.internal.EditorAreaHelper.addToLayout(EditorAreaHelper.java:212)
at org.eclipse.ui.internal.EditorAreaHelper.addEditor(EditorAreaHelper.java:202)
at org.eclipse.ui.internal.EditorManager.createEditorTab(EditorManager.java:758)
at org.eclipse.ui.internal.EditorManager.openEditorFromDescriptor(EditorManager.java:665)
at org.eclipse.ui.internal.EditorManager.openEditor(EditorManager.java:628)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2360)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2295)
at org.eclipse.ui.internal.WorkbenchPage.access$9(WorkbenchPage.java:2287)
at org.eclipse.ui.internal.WorkbenchPage$9.run(WorkbenchPage.java:2273)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2268)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2249)
at org.eclipse.ui.ide.IDE.openEditor(IDE.java:371)
at org.eclipse.ui.ide.IDE.openEditor(IDE.java:334)
at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:251)
at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:131)
at org.eclipse.jdt.internal.ui.actions.OpenActionUtil.open(OpenActionUtil.java:49)
at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:169)
at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:153)
at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchRun(SelectionDispatchAction.java:222)
at org.eclipse.jdt.ui.actions.SelectionDispatchAction.run(SelectionDispatchAction.java:198)
at org.eclipse.jdt.internal.ui.packageview.PackageExplorerActionGroup.handleOpen(PackageExplorerActionGroup.java:296)
at org.eclipse.jdt.internal.ui.packageview.PackageExplorerPart$4.open(PackageExplorerPart.java:869)
at org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredViewer.java:741)
at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1044)
at org.eclipse.core.runtime.Platform.run(Platform.java:783)
at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:44)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:148)
at org.eclipse.jface.viewers.StructuredViewer.fireOpen(StructuredViewer.java:739)
at org.eclipse.jface.viewers.StructuredViewer.handleOpen(StructuredViewer.java:968)
at org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(StructuredViewer.java:1067)
at org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrategy.java:243)
at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.java:238)
at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:277)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:843)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3125)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2758)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1699)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1663)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:367)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:143)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:103)
at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:226)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:376)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:163)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.core.launcher.Main.invokeFramework(Main.java:334)
at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
at org.eclipse.core.launcher.Main.run(Main.java:973)
at org.eclipse.core.launcher.Main.main(Main.java:948)Any suggestions?
Thanks in advance,
John B. Reeher
Riyad KallaMemberJohn, few things:
I had Eclipse 3.2.2 and MyEclipse 5.1.1 but had to revert because of a bug with the JBOSS IDE not working anymore in eclipse 3.2.x
What feature did you need in JBossIDE that isn’t already in MyEclipse?
Also your error is caused by an installation issue. I’d like to iron out the first part of my question, because if we find out that feature is in MyEclipse, I’d rather have you use the all-in-one installer to get reinstalled with a clean setup (really easy) otherwise I’ll walk you through the longer route.
reeherjMemberrkalla,
I appreciate any assistance you can offer. I am a recent transplant to java so I’m far from a power-user on the development tools. I pretty much have learned routines that I use to do my development.
I use the Jboss IDE to create a “debug” run-time configuration for Jboss. I then use packaging to create my war/ear files. I then use “deployment” to deploy the war/ear to the running Jboss debug environment.
When I installed 3.2.2/5.1 using the full installation, I installed the Jboss IDE 1.6 and ran into this bug here:
http://jira.jboss.com/jira/browse/JBIDE-316
As of yesterday there was no successful workaround for this bug.
So I tried to revert to my old configuration and installed 3.1.2/4.1.1
In retrospect, I don’t really “NEED” the jboss integration, I can build my package and then manually deploy the file to a jboss instance working outside of Eclipse, I had just gotten use to the ease of integration.
Regards,
John R.
Riyad KallaMemberI use the Jboss IDE to create a “debug” run-time configuration for Jboss. I then use packaging to create my war/ear files. I then use “deployment” to deploy the war/ear to the running Jboss debug environment.
John I’m happy to say that all this functionality is part of MyEclipse. MyEclipse really is the premier all-in-one development environment. Our goal is to be your “everything”. I would encourage you just to skim this tutorial quickly to get a feel for how these operations you want are handled in MyEclipse:
http://www.myeclipseide.com/images/tutorials/quickstarts/webprojects/
reeherjMemberrkalla,
I’m happy to say that I installed 3.2.2/5.1 and was able to use the myEclipse server/deployment to connect to jboss. Thanks for the assistance!
Regards,
John
Riyad KallaMemberJohn that’s excellent, thanks for giving it a try.
-
AuthorPosts