facebook

Can’t debug JSP on tomcat

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #238397 Reply

    MikeScag
    Member

    I’m a newb, please excuse if I’m asking a question that’s been answered a thousand times. I’m trying do debug a basic jsp ( the one that’s created by default when you create a new jsp file). The environment is :

    Windows XP SP2
    Eclipse 3.1.0 Build id: I20050627-1435
    MyEclipse installed from : EnterpriseWorkbenchInstaller_4.0GA_E3.1.exe
    Tomcat 5.5.9
    Java : build 1.5.0_02-b09

    I can create the MyExlipse web project, and I can start / stop tomcat properly. Running the jsp goes off without a hitch. If I debug with no breakpoints, everything is also fine. However, when I set a breakpoint in the jsp and debug, I get an error message :

    Unable to create this part due to an internal error. Reason for the failure: Platform issue: this file cannot be opened in its current context. The text editor will be used instead.

    Another window is opened at this point with a more or less non-interactive view of the jsp file. I’m unable to view any valiable values, but I can click the ‘continue’ button and allow the program to continue execution normally.

    Context settings in the server.xml file appear to be getting set by myexlipse properly.

    So, to put it bluntly, WTF? Or (a bit more respectfully) , what have I missed?

    I’ve read a couple of threads that indicate this is some kind of fringe issue, and won’t be fixed any time soon. Please please please don’t make me go back to jdeveloper where I can actually debug a jsp without issues.

    #238435 Reply

    Riyad Kalla
    Member

    Mike,
    This error is indicative usually of an install problem, but your list above looks kosher. When you right click on your JSP page and go to Open With, what is checked? Try and select MYEclipse JSP Designer and then open the page, did it open OK? The problem is not the debugging, the problem is when your breakpoint is hit, ME is trying to open your editor for you and is barfing for some reason, so we’ll figure out why.

    #238594 Reply

    liushanlin
    Member

    when I right click on JSP page, the MyEclipse JSP Designer is checked.

    in _jspService tab:

    Source not found for itemSelection.jsp line: 29

    thanks in advance

    #238595 Reply

    Riyad Kalla
    Member

    liushanlin,
    If you are having trouble with something please provide as much information as Mike did, simply highjacking his thread won’t get your question answered any faster.

    #239657 Reply

    I am getting the same exception when trying to debug JSPs.
    Any resolution for this issue?
    The break point is hit but the text editor opens up.
    But I could open the JSP files using JSP designer.
    I am using Eclipse
    Version: 3.1.1
    Build id: M20050929-0840
    MyEclipse
    Version: 4.0.1
    Build id: 20050930-4.0.1-GA

    MyEclipse config details:
    ** Date: Tue Oct 18 15:05:24 EDT 2005

    *** System properties:
    OS=Windows2000
    OS version=5.0
    Java version=1.4.2_07

    *** MyEclipse details:
    MyEclipse Enterprise Workbench

    Version: 4.0.2 GA
    Build id: 20051010-4.0.2-GA

    *** Eclipse details:
    Eclipse SDK

    Version: 3.1.1
    Build id: M20050929-0840

    Eclipse Platform

    Version: 3.1.1
    Build id: M20050929-0840

    Eclipse RCP

    Version: 3.1.1
    Build id: M20050929-0840

    Eclipse Java Development Tools

    Version: 3.1.1
    Build id: M20050929-0840

    Eclipse Plug-in Development Environment

    Version: 3.1.1
    Build id: M20050929-0840

    Eclipse Project SDK

    Version: 3.1.1
    Build id: M20050929-0840

    Eclipse startup command=-os
    win32
    -ws
    win32
    -arch
    x86
    -launcher
    C:\Eclipse3.1.1\eclipse\eclipse.exe
    -name
    Eclipse
    -showsplash
    600
    -exitdata
    538_4c
    -vm
    C:\j2sdk1.4.2_07\jre\bin\javaw.exe

    Thanks in advance for any help.
    Swami.

    org.eclipse.ui.PartInitException: Platform issue: this file cannot be opened in its current context. The text editor will be used instead.
    at com.genuitec.eclipse.webdesigner2.HTMLMultiPageEditorPart.isAcceptableInput(HTMLMultiPageEditorPart.java:967)
    at com.genuitec.eclipse.webdesigner2.HTMLMultiPageEditorPart.init(HTMLMultiPageEditorPart.java:879)
    at org.eclipse.ui.internal.EditorManager.createSite(EditorManager.java:778)
    at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:596)
    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.busyOpenEditorBatched(WorkbenchPage.java:2362)
    at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2295)
    at org.eclipse.ui.internal.WorkbenchPage.access$9(WorkbenchPage.java:228

    #239660 Reply

    Riyad Kalla
    Member

    Swami,
    What kind of project are you working with? A Java Project, Simple Project, Web Project? If it’s a web project, please tell me what settings you have fro the Project Properties > MyEclipse-Web settings, also tell me where the JSP is that you are trying to debug (give the project path)

    #239735 Reply

    Hi,
    Project is a Java project.
    I have deployed my application in the exploded ear format in weblogic and
    remotely attach to it. I do not use MyEclipse’s web project.
    Swami.

    #239782 Reply

    Riyad Kalla
    Member

    Swami,
    That is likely the problem, what directory are your treating as your webroot? Where is your WEB-INF directory in respect to your project root? Where are your JSP pages? We don’t garuntee full functionality of our tools in non-MyEclipse Project projects, however we have spent quite a bit of time trying to make them work for the most part for folks maintaining legacy apps that cannot change the structure.

    #239886 Reply

    Hi,
    I would appreciate if you can provide any guidelines how to go about doing that?
    Thanks,
    Swami.

    #239889 Reply

    Riyad Kalla
    Member

    Swami,
    Doing what? You didn’t answer any of my questions.

Viewing 10 posts - 1 through 10 (of 10 total)
Reply To: Can’t debug JSP on tomcat

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