facebook

problems with debug mode server launch [Closed]

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

    nsong
    Member

    Hi.

    I’m using Eclipse RC1 with MyEclipse 3.8 beta and Tomcat 5.025 on Windows 2000 Pro. I’ve set the application server in Prefs->MyEclilpse->App Servers to launch in debug mode. However, when I deploy the web module, and then start the server in the IDE, it doesn’t switch to the debug view, and seems to launch the server in run mode. So I’m unable to debug my JSP files.

    My other question is whether the plugin propagates variable for includes. For example, in start.jsp, I have:


    <% List myList = new ArrayList() %>
    <%@ include file=”nav.jsp” %>

    and in nav.jsp:

    <%= myList.get(0) %>

    It reports that it cannot resolve the variable myList. Not really a big deal, but it’s a little annoying mixing these as errors with real errors in the Problems window.

    Other than that, the plugins has worked great for me. Thanks.

    #208252 Reply

    Riyad Kalla
    Member

    As far as the running of the App Server is concerned, if you set breakpoints in any servlets or JSPs, do ANY of the breakpoints get hit?

    Can you downgrade to the latest stable Tomcat (5.0.24 I believe).

    As far as the include is concerned, let me ask.

    #208256 Reply

    Scott Anderson
    Participant

    It reports that it cannot resolve the variable myList. Not really a big deal, but it’s a little annoying mixing these as errors with real errors in the Problems window.

    For JSP’s that are fragments and not fully compliant top-level JSP’s in their own right, naming them as the spec suggests, with a .jspf extension, will keep the errors from being reported.

    #208260 Reply

    nsong
    Member

    As far as the running of the App Server is concerned, if you set breakpoints in any servlets or JSPs, do ANY of the breakpoints get hit?

    Can you downgrade to the latest stable Tomcat (5.0.24 I believe).

    I downgraded to Tomcat 5.0.24, same problem. I’m wondering if this is actually an Eclipse problem rather than Tomcat. Also, the breakpoints don’t do anything since there is no preview window in debug mode, so it won’t load the application into the debugger. There doesn’t seem to be a way to manually add the view to the debugger either (aside from the Browser view).

    #208268 Reply

    Riyad Kalla
    Member

    Also, the breakpoints don’t do anything since there is no preview window in debug mode, so it won’t load the application into the debugger.

    I’m not sure what you are getting at here… once you start your app server just load up any browser you have on your system and access your application to try and excercise it so the breakpoints are hit.

    #208271 Reply

    nsong
    Member

    Sorry, that was poorly worded on my part. I tried the application in the browser preview view provided with the plugin. It did not stop at the breakpoints I set however. I also tried in Mozilla on my desktop and same result.

    #208272 Reply

    nsong
    Member

    Okay, the problem went away after I reinstalled Eclipse and the plugin. Not sure what was happening, but debuggin works now. Thanks for the help.

    #208274 Reply

    Riyad Kalla
    Member

    I tried the application in the browser preview view provided with the plugin.

    Ahh, gotcha.

    Okay, the problem went away after I reinstalled Eclipse and the plugin.

    Odd… well we are glad its working!

Viewing 8 posts - 1 through 8 (of 8 total)
Reply To: problems with debug mode server launch [Closed]

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