1 2 Previous Next 16 Replies Latest reply on Oct 31, 2005 2:01 PM by frankwschroeder

    JBoss IDE and JSP: an error has occurred. See error log for

    normanfung

      Hi, after I installed JBoss IDE I couldn't open JSP files.... Here's some info:

      1. Eclipse 3.1.1
      2. JBoss-IDE / Eclipse 3.1 / JRE 1.5.1.4.1.e31-jre15 (NOTE: This is the only option I can choose because JRE 1.5 installed on this machine)
      3. JRE 1.5.0_05

      Error observed:
      1. When trying to open existing JSP in project:
      "an error has occurred. See error log for more detail"

      Upon inspection of error log:

      java.lang.NoClassDefFoundError: org/eclipse/jdt/internal/ui/text/java/ResultCollector
      at org.jboss.ide.eclipse.jdt.j2ee.jsp.ui.editors.JSPConfiguration.getContentAssistant(JSPConfiguration.java:192)
      at org.eclipse.jface.text.source.SourceViewer.configure(SourceViewer.java:331)
      at org.eclipse.ui.texteditor.AbstractTextEditor.createPartControl(AbstractTextEditor.java:2517)
      at org.eclipse.ui.texteditor.StatusTextEditor.createPartControl(StatusTextEditor.java:53)
      at org.eclipse.ui.texteditor.AbstractDecoratedTextEditor.createPartControl(AbstractDecoratedTextEditor.java:314)
      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.EditorReference.getEditor(EditorReference.java:223)
      at org.eclipse.ui.internal.WorkbenchPage.makeActiveEditor(WorkbenchPage.java:1115)
      at org.eclipse.ui.internal.WorkbenchPage.updateActivePart(WorkbenchPage.java:1073)
      at org.eclipse.ui.internal.WorkbenchPage.partAdded(WorkbenchPage.java:1422)
      at org.eclipse.ui.internal.EditorAreaHelper.addEditor(EditorAreaHelper.java:205)
      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:3080)
      at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2713)
      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)

      What I tried is I disabled the feature (JBoss IDE) then I was able to open JSP without error....

      Reference JIRA entries and Google results...:
      1. http://jira.jboss.com/jira/browse/JBIDE-188
      2. http://jira.jboss.com/jira/browse/JBIDE-190
      3. http://jboss.com/index.html?module=bb&op=viewtopic&p=3885479
      4. http://jira.jboss.com/jira/browse/JBIDE-209

      Anyway, after reading all this ... I'm rather clueless at this point as to how to move forward. Thanks in advance.

        • 1. Re: JBoss IDE and JSP: an error has occurred. See error log
          normanfung

          Guys, I want to use Eclipse, and I want to use JBoss IDE, what should I do??

          Thanks in advance!

          • 2. Re: JBoss IDE and JSP: an error has occurred. See error log
            maxandersen

            Does this error occur with the latest RC1 release ?

            • 3. Re: JBoss IDE and JSP: an error has occurred. See error log
              normanfung

              I'm surprised you ask because all 3.x release seems to have this same problem. I downloaded many versions and tested:

              eclipse-SDK-3.2M2-win32.zip
              eclipse-SDK-3.1RC4-win32.zip
              eclipse-SDK-3.1M7-win32.zip
              eclipse-SDK-3.1.1-win32.zip
              eclipse-SDK-3.0-win32.zip

              none worked.

              • 4. Re: JBoss IDE and JSP: an error has occurred. See error log
                maxandersen

                eh ? I'm asking about the JBossIDE version, not the eclipse version.

                • 5. Re: JBoss IDE and JSP: an error has occurred. See error log
                  normanfung

                  Sorry, my misunderstanding.

                  What worked:
                  Eclipse 2.1 + JBoss-IDE 1.3.0

                  What did NOT work:
                  Eclipse 3.x + (JBoss-IDE 1.4.1.x or JBoss-IDE-1.5.1.x)

                  Anyone shared this experience before? Thanks.

                  • 6. Re: JBoss IDE and JSP: an error has occurred. See error log
                    normanfung

                    Not to mention... when I open Eclipse 3.1.x:

                    Error 2005-10-22 19:12:39.375 Problems occurred when invoking code from plug-in: "org.eclipse.jface".
                    java.lang.NoClassDefFoundError: org/eclipse/jdt/internal/ui/text/java/ResultCollector
                    at org.jboss.ide.eclipse.jdt.j2ee.jsp.ui.editors.JSPConfiguration.getContentAssistant(JSPConfiguration.java:192)
                    at org.eclipse.jface.text.source.SourceViewer.configure(SourceViewer.java:331)
                    at org.eclipse.ui.texteditor.AbstractTextEditor.createPartControl(AbstractTextEditor.java:2517)
                    at org.eclipse.ui.texteditor.StatusTextEditor.createPartControl(StatusTextEditor.java:53)
                    at org.eclipse.ui.texteditor.AbstractDecoratedTextEditor.createPartControl(AbstractDecoratedTextEditor.java:314)
                    at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:585)
                    at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:365)
                    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:268)
                    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:753)
                    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:2323)
                    at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2258)
                    at org.eclipse.ui.internal.WorkbenchPage.access$9(WorkbenchPage.java:2250)
                    at org.eclipse.ui.internal.WorkbenchPage$9.run(WorkbenchPage.java:2236)
                    at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
                    at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2231)
                    at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2212)
                    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:3080)
                    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2713)
                    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)


                    Very weird... doesn't seems to affect ...

                    • 7. Re: JBoss IDE and JSP: an error has occurred. See error log
                      maxandersen

                      well that class *IS* in eclipse 3.1 so maybe you are not using the eclipse version you think you are using ?

                      • 8. Re: JBoss IDE and JSP: an error has occurred. See error log
                        maxandersen

                        scratch that last comment ;)

                        that class is *not* in 3.1 and it is is not used in the latest release of jbosside 1.5.

                        Are you sure you have deleted all traces of an old jbosside ?

                        • 9. Re: JBoss IDE and JSP: an error has occurred. See error log
                          dwebster

                           

                          "normanfung" wrote:
                          Sorry, my misunderstanding.

                          What worked:
                          Eclipse 2.1 + JBoss-IDE 1.3.0

                          What did NOT work:
                          Eclipse 3.x + (JBoss-IDE 1.4.1.x or JBoss-IDE-1.5.1.x)

                          Anyone shared this experience before? Thanks.


                          Unfortunately, yes, this is my EXACT experience and continues to be with JBossIDE 1.5RC1 under Eclipse 3.1.x. It appears they still don't have the JSP thing firgured out at all yet.

                          What we need is a JSP Compile option in the project properties so we can configure whatever JSP Compliation options we need, including were the final resulting Servlet class files end up and whether or not we want to retain the intermediate .java files for debugging purposes and any packaging options that may be appropriate in including JSP's in our .war files. It would add a warm-fuzzy to have a JSP creation wizard as an option in the Web Components.

                          • 10. Re: JBoss IDE and JSP: an error has occurred. See error log
                            maxandersen

                            Do you also get the class not found exception ?

                            If you could please provide the steps you do to reproduce this error AND attach the contents of the textbox found at Help/About Eclipse SDK/Configuration Details/

                            That will help us track it down.

                            The ideas/bug-reports you have should be posted to the JIRA.

                            • 11. Re: JBoss IDE and JSP: an error has occurred. See error log
                              dwebster

                              Ooops! My bad, Max, sorry. I have JBossIDE installed on the three different machines. Upgraded two of them to 1.5RC1 but this one was still 1.5M2... Updated it, deleted all references to the old plugins, and I can edit JSP files now just fine.

                              Still can't compile them via a project packaging setup, but I can edit.

                              • 12. Re: JBoss IDE and JSP: an error has occurred. See error log
                                normanfung

                                I will open a JIRA entry then. But first, did any of you guys come across this problem? I want to know it's not just me making a stupid mistake.

                                • 13. Re: JBoss IDE and JSP: an error has occurred. See error log
                                  mikek753

                                  JIRA was oppened long time ago ( 26/Jul/05) for M1 and was closed soon - by replacing JBoss JSP editor to WTP,
                                  BUT JSP support has not been implemented for a while

                                  http://jira.jboss.com/jira/browse/JBIDE-209

                                  • 14. Re: JBoss IDE and JSP: an error has occurred. See error log
                                    normanfung

                                    What's WTP?

                                    1 2 Previous Next