facebook

Debuging JSP – Tomcat 5

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

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

    inastasi
    Member

    Hi,
    When I try to debug a JSP project with myeclipse 5.5.1GA I cannot inspect/watch/display variables on JSP pages. In same project I can inspect/watch/display some java code.
    I see variables tab , and I see all of the variables there, but all of the functions inspect/watch/display are grayed. Can anyone help? Tnx.

    #274105

    Loyal Water
    Member

    I was unable to reproduce this issue at my end. Can you switch to a brand new workspace, create a new web project, add a simple JSP page to it and try adding break points to it and see if that works.

    Let me know if the problem persists.

    #274529

    inastasi
    Member

    Sorry for the late reply.
    No it didn’t help. I try it many times with different parameters. I’m running windows VISTA, forgoth to mention this before.
    Anyway,
    Tomcat configuration
    base/home directory C:\Tomcat 5.5
    otional program arguments: -clean -debug
    tomcat JDK name: location of jdk folder C:\Program Files\java\jdk….
    launch: Debug mode

    Java version is 1.5.0_07 (it is instaled in “program files” which is kind of protected in vista)

    So. The same thing is happaning with my project, also if I create a fresh new Web project.

    So let me describe again, i can go to debug mode and I can step trough my *.jsp file, I can set a breakpoint, and it hit breakpoint and stop, I can see tab “variables” where I see the actual value of the primitives (and others but it’s hard to look complex structure this way)
    but i cannot watch/inspect not a single expression. In the same project when a servlet is called and I go into servlet java file I can do everything (I can watch/inspect/…etc).

    Hope this helps a little.
    Regards.

    #274635

    Riyad Kalla
    Member

    inastasi,
    Would it be possible for you to download our new MyEclipse 6.0 GA release (all in one installer) and install it to a brand new directory and then reopen your existing workspace and retry running your application in our embedded Tomcat server and seeing if everything worked? (Just right-click on project and go to Debug As > MyEclipse Server Application)

    #274787

    inastasi
    Member

    Well, still no results!
    Here is what I did:
    I installed MyEclipse 6.0GA which I downloaded from site, and I installed in new directory, no other instance ever before uses this folder.
    I START myeclipse (Run as Administrator), and confirm new WORKSPACE in C:\Users\…\Workspace, then I confirm passing through FIREWAL.
    I cancel QuickInstall.

    Then I select File->New->WebProject, and enter project name “_test” and select “Java EE5.0”.
    I open a index.jsp in the editor and put a breakpoint at the beging like “String path = request.getContextPath()”
    Then right-click on project->DebugAs->MyEclipseServerApplication.
    It stops at breakpoint , and everything is same , I can step through file, but no inspect/watch/display ..
    Personaly I think that it is part of Problem “Source Not Find” since I seen that message few times…
    I also noticed that my settings are left from previous installatons , like windows positioning, and stuff like that …so I think maybe some settings may left that cause this.
    Rigards.

    #274791

    Riyad Kalla
    Member

    You will want to make sure you are using a new workspace, like C:\Users\…\NewWorkspace, and try and name the project something like “TestWebProject”, maybe the underscore is the problem? Not sure…

Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: Debuging JSP – Tomcat 5

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