facebook

Unable to create a part

  1. MyEclipse Archived
  2.  > 
  3. Bugs
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #214034 Reply

    Amir Mistric
    Member

    I get the follwing error when I try to open and edit JSP file

    Message:
    Problems occurred when invoking code from plug-in: “org.eclipse.core.runtime”.
    Exception Stack Trace
    An error has occurred when initializing the input for the the editor’s source page.
    at com.genuitec.eclipse.webdesigner.htmleditor.HTMLMultiPageEditorPart.createPages(Unknown Source)
    at org.eclipse.ui.part.MultiPageEditorPart.createPartControl(MultiPageEditorPart.java:187)
    at org.eclipse.ui.internal.PartPane$2.run(PartPane.java:137)
    at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:615)
    at org.eclipse.core.runtime.Platform.run(Platform.java:747)
    at org.eclipse.ui.internal.PartPane.createChildControl(PartPane.java:133)
    at org.eclipse.ui.internal.PartPane.createControl(PartPane.java:205)
    at org.eclipse.ui.internal.PartStack.refreshPresentationSelection(PartStack.java:939)
    at org.eclipse.ui.internal.PartStack.setSelection(PartStack.java:921)
    at org.eclipse.ui.internal.PartStack.showPart(PartStack.java:1020)
    at org.eclipse.ui.internal.PartStack.add(PartStack.java:290)
    at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:110)
    at org.eclipse.ui.internal.EditorSashContainer.addEditor(EditorSashContainer.java:59)
    at org.eclipse.ui.internal.EditorAreaHelper.openEditor(EditorAreaHelper.java:266)
    at org.eclipse.ui.internal.EditorManager$4.run(EditorManager.java:697)
    at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
    at org.eclipse.ui.internal.EditorManager.createEditorTab(EditorManager.java:686)
    at org.eclipse.ui.internal.EditorManager.openInternalEditor(EditorManager.java:782)
    at org.eclipse.ui.internal.EditorManager.openEditorFromDescriptor(EditorManager.java:585)
    at org.eclipse.ui.internal.EditorManager.openEditor(EditorManager.java:573)
    at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2201)
    at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2134)
    at org.eclipse.ui.internal.WorkbenchPage.access$6(WorkbenchPage.java:2126)
    at org.eclipse.ui.internal.WorkbenchPage$9.run(WorkbenchPage.java:2113)
    at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
    at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2108)
    at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2091)
    at org.eclipse.ui.actions.OpenWithMenu.openEditor(OpenWithMenu.java:258)
    at org.eclipse.ui.actions.OpenWithMenu.access$0(OpenWithMenu.java:251)
    at org.eclipse.ui.actions.OpenWithMenu$2.handleEvent(OpenWithMenu.java:166)
    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:183)
    at org.eclipse.core.launcher.Main.run(Main.java:644)
    at org.eclipse.core.launcher.Main.main(Main.java:628)
    Session Data
    eclipse.buildId=I200406251208
    java.version=1.4.2_04
    java.vendor=Sun Microsystems Inc.
    BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US

    #214049 Reply

    Greg
    Member

    Is the JSP just a normal resource file from the Package Explorer? Or is it some other type of input (CVS,external file)? Is it all JSPs or only particular ones? If we can replicate the error that will help us resolve the issue.

    #214053 Reply

    Amir Mistric
    Member

    Greg

    I use VSS plugin, so yes that JSP page is source controlled. However I am getting the same error if I deconfigure the Team Sharing on that project.
    Also, I am getting the error on about 75% of JSP pages I try to open…But no, it does not happen always…

    This error was obstucting my work soo much I had to deinstall myeclipse 🙁

    Amir

    #214681 Reply

    Patryn
    Member

    I have that problem too.
    I use cvs from eclipse and get exatly the same message with a lot of jsp-pages.


    André

    #214683 Reply

    Scott Anderson
    Participant

    Guys,

    I believe the problem you’re encountering is related to a problem opening JSP files that have includes if they reside in non-web projects. The JSP editor currently expects your JSP’s to reside in MyEclipse web projects (see the MyEclipse menu > Add Web capabilities…) so that it knows the web root and can look up taglibs and includes based on the web root location. The best way to fix this is to “Add web capabilities…” to your Java projects that contain web content.

    If you’re seeing this behavior in a MyEclipse web project, it’s likely you’re using absolute URL’s to reference your includes and either have not updated to 3.8.1 or have not installed the quickfixes to 3.8.1 available here, since it addresses this issue. The quickfix link and instructions are available here:
    http://www.myeclipseide.com/PNphpBB2+file-viewtopic-t-3517.html

    #214936 Reply

    Patryn
    Member

    I have also cvs-versioned code, i tried several ways (with latest QF, full install).

    – Checkout with external WinCVS, create new project with external folder, add webapp caps. I get cannot create part sometimes.
    – Checkout with internal CVS in different ways, into existing project (myeclipse webapp), create part problems
    – Checkout with internal CVS creating a new project, cannot add webapp caps, cannot test properly, create parts problem
    – Checkout with internal CVS and project wizard (webapp) -> create party problem.

    Believe us, there are problems.


    André

    #214953 Reply

    Riyad Kalla
    Member

    Andre,
    There are no doubt problems, please detail these “sometimes” situations for us. For example, sometimes the pages that can’t be opened are under WEB-INF, sometimes they are under directories with underscores in the name, etc… every little detail helps.

    Also please let us know the overall structure of your project:
    project root
    source dir
    output dir
    webroot dir

    and the type of project it is, this really helps us create test cases and file them with high priority bugs so this stuff can get fixed.

    #214965 Reply

    Patryn
    Member

    Hmpf, i have no time 🙂
    OK, have found the line that seems to be the problem, if i take that one out, all is ok:
    String contextPath = request.getContextPath();

    The project:
    prj_vdi (WebProject, Icon to see)
    – lib
    – classes_ecl
    – vdi_conf
    – vdi_source (as source, but compile to classes_ecl, not WEB-INF, ant-jar)
    – vdi_webapp (this is configured as webroot in myeclipse webapp folder)
    – WEB-INF
    – templates
    – PureHTML
    – renderFull.jsp

    in webapp are a lot more, but you see, the renderFull.jsp is not in WEB-INF and i used this file as example.


    André

    #214966 Reply

    Patryn
    Member

    uh…spaces flying away…
    Posted: Sep 10, 2004 – 09:59 AM

    ——————————————————————————–

    Hmpf, i have no time 🙂
    OK, have found the line that seems to be the problem, if i take that one out, all is ok:
    String contextPath = request.getContextPath();

    The project:
    prj_vdi (WebProject, Icon to see)
    – lib
    – classes_ecl
    – vdi_conf
    – vdi_source (as source, but compile to classes_ecl, not WEB-INF, ant-jar)
    – vdi_webapp (this is configured as webroot in myeclipse webapp folder)
    |- WEB-INF
    ||- templates
    | |- PureHTML
    | |-renderFull.jsp

Viewing 9 posts - 1 through 9 (of 9 total)
Reply To: Unable to create a part

You must be logged in to post in the forum log in