facebook

JSP errorr indicator and breakpoint on wrong line [Closed]

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

    hawiss
    Member

    Validating any JSP shows the error indicator (on the left) on the wrong line.
    I’ve tried the HelloWorld Example from the tutorial here but this occurs in all my JSP’s.

    The same behaviour I experience when debugging on Tomcat 5 – the debugger stops at the wrong line (not the line the Breakpoint is set).

    Got the following messages in the .log file after validating the JSP. What do they mean e.g. are they normal or errors?

    Thx,
    Harry

    java.vendor=Sun Microsystems Inc.
    BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US

    !ENTRY com.genuitec.eclipse.wdt.jsp.debug 1 1 Oct 24, 2004 08:49:45.232
    !MESSAGE Oct 24, 2004 8:49:45 AM com.genuitec.eclipse.wdt.jsp.jasper.compiler.Compiler ?

    !ENTRY com.genuitec.eclipse.wdt.jsp.debug 1 1 Oct 24, 2004 08:49:45.232
    !MESSAGE SEVERE: Env: Compile: javaFileName=/C:/DOCUME~1/ahzwkh/LOCALS~1/Temp/myeclipse-jspcc//org/apache/jsp\MyJsp_jsp.java

    !ENTRY com.genuitec.eclipse.wdt.jsp.debug 1 1 Oct 24, 2004 08:49:45.242
    !MESSAGE classpath=C:\JDK_142_06\jre\lib\rt.jar;C:\JDK_142_06\jre\lib\sunrsasign.jar;C:\JDK_142_06\jre\lib\jsse.jar;C:\JDK_142_06\jre\lib\jce.jar;C:\JDK_142_06\jre\lib\charsets.jar;C:\JDK_142_06\jre\lib\ext\dnsns.jar;C:\JDK_142_06\jre\lib\ext\ldapsec.jar;C:\JDK_142_06\jre\lib\ext\localedata.jar;C:\JDK_142_06\jre\lib\ext\sunjce_provider.jar;C:\Program Files\MyEclipse\eclipse\plugins\com.genuitec.eclipse.j2eedt.core_3.8.1\data\libraryset\1.4\activation.jar;C:\Program Files\MyEclipse\eclipse\plugins\com.genuitec.eclipse.j2eedt.core_3.8.1\data\libraryset\1.4\javax.servlet.jar;C:\Program Files\MyEclipse\eclipse\plugins\com.genuitec.eclipse.j2eedt.core_3.8.1\data\libraryset\1.4\javax.servlet.jsp.jar;C:\Program Files\MyEclipse\eclipse\plugins\com.genuitec.eclipse.j2eedt.core_3.8.1\data\libraryset\1.4\jboss-j2ee.jar;C:\Program Files\MyEclipse\eclipse\plugins\com.genuitec.eclipse.j2eedt.core_3.8.1\data\libraryset\1.4\jboss-jaxrpc.jar;C:\Program Files\MyEclipse\eclipse\plugins\com.genuitec.eclipse.j2eedt.core_3.8.1\data\libraryset\1.4\jboss-jsr77.jar;C:\Program Files\MyEclipse\eclipse\plugins\com.genuitec.eclipse.j2eedt.core_3.8.1\data\libraryset\1.4\jboss-saaj.jar;C:\Program Files\MyEclipse\eclipse\plugins\com.genuitec.eclipse.j2eedt.core_3.8.1\data\libraryset\1.4\mail.jar;C:\Program Files\MyEclipse\eclipse\plugins\com.genuitec.eclipse.j2eedt.core_3.8.1\data\libraryset\1.4\namespace.jar;C:\Program Files\MyEclipse\eclipse\plugins\com.genuitec.eclipse.j2eedt.core_3.8.1\data\libraryset\1.4\xml-apis.jar;C:\_Development\_Source\Java.src\HelloWorld\public_html\WEB-INF\classes;C:\Program Files\MyEclipse\eclipse\plugins\com.genuitec.eclipse.wdt.jsp.debug_3.8.1\lib\jasper-runtime.jar;C:\Program Files\MyEclipse\eclipse\plugins\com.genuitec.eclipse.wdt.jsp.debug_3.8.1\lib\jsp-api.jar
    cp=C:\eclipse_v3\startup.jar
    cp=C:\JDK_142_06\jre\lib\rt.jar
    cp=C:\JDK_142_06\jre\lib\sunrsasign.jar
    cp=C:\JDK_142_06\jre\lib\jsse.jar
    cp=C:\JDK_142_06\jre\lib\jce.jar
    cp=C:\JDK_142_06\jre\lib\charsets.jar
    cp=C:\JDK_142_06\jre\lib\ext\dnsns.jar
    cp=C:\JDK_142_06\jre\lib\ext\ldapsec.jar
    cp=C:\JDK_142_06\jre\lib\ext\localedata.jar
    cp=C:\JDK_142_06\jre\lib\ext\sunjce_provider.jar
    cp=C:\Program Files\MyEclipse\eclipse\plugins\com.genuitec.eclipse.j2eedt.core_3.8.1\data\libraryset\1.4\activation.jar
    cp=C:\Program Files\MyEclipse\eclipse\plugins\com.genuitec.eclipse.j2eedt.core_3.8.1\data\libraryset\1.4\javax.servlet.jar
    cp=C:\Program Files\MyEclipse\eclipse\plugins\com.genuitec.eclipse.j2eedt.core_3.8.1\data\libraryset\1.4\javax.servlet.jsp.jar
    cp=C:\Program Files\MyEclipse\eclipse\plugins\com.genuitec.eclipse.j2eedt.core_3.8.1\data\libraryset\1.4\jboss-j2ee.jar
    cp=C:\Program Files\MyEclipse\eclipse\plugins\com.genuitec.eclipse.j2eedt.core_3.8.1\data\libraryset\1.4\jboss-jaxrpc.jar
    cp=C:\Program Files\MyEclipse\eclipse\plugins\com.genuitec.eclipse.j2eedt.core_3.8.1\data\libraryset\1.4\jboss-jsr77.jar
    cp=C:\Program Files\MyEclipse\eclipse\plugins\com.genuitec.eclipse.j2eedt.core_3.8.1\data\libraryset\1.4\jboss-saaj.jar
    cp=C:\Program Files\MyEclipse\eclipse\plugins\com.genuitec.eclipse.j2eedt.core_3.8.1\data\libraryset\1.4\mail.jar
    cp=C:\Program Files\MyEclipse\eclipse\plugins\com.genuitec.eclipse.j2eedt.core_3.8.1\data\libraryset\1.4\namespace.jar
    cp=C:\Program Files\MyEclipse\eclipse\plugins\com.genuitec.eclipse.j2eedt.core_3.8.1\data\libraryset\1.4\xml-apis.jar
    cp=C:\_Development\_Source\Java.src\HelloWorld\public_html\WEB-INF\classes
    cp=C:\Program Files\MyEclipse\eclipse\plugins\com.genuitec.eclipse.wdt.jsp.debug_3.8.1\lib\jasper-runtime.jar
    cp=C:\Program Files\MyEclipse\eclipse\plugins\com.genuitec.eclipse.wdt.jsp.debug_3.8.1\lib\jsp-api.jar
    work dir=C:\DOCUME~1\ahzwkh\LOCALS~1\Temp\myeclipse-jspcc
    extension dir=C:\JDK_142_06\jre\lib\ext
    srcDir=C:\DOCUME~1\ahzwkh\LOCALS~1\Temp\myeclipse-jspcc
    compiler=extJavac
    include=org/apache/jsp/MyJsp_jsp.java

    !ENTRY org.eclipse.webbrowser 1 0 Oct 24, 2004 09:22:54.242
    !MESSAGE true/true

    #218238 Reply

    Riyad Kalla
    Member

    Can you please post all the information we request in the [URL=http://www.myeclipseide.com/PNphpBB2+file-viewtopic-t-393.html]Posting Guidelines[/URL] thread at the top of this forum? That will give us some context so that we can determine if this is an installation issue, a configuration problem, or a bug. Thanks.

    #218250 Reply

    hawiss
    Member

    What operating system and version are you running?
    Windows 2000
    What Eclipse version and build id are you using? (Help > About Eclipse Platform)
    Version: 3.0.1
    Build id: 200409161125

    – Was Eclipse freshly installed for MyEclipse?
    yes
    – How many plugins in the <eclipse>/plugins directory are like org.eclipse.pde.*
    14 (version 3.0.0 and 3.0.1)
    What MyEclipse version are you using? (Help > About Eclipse Platform > Features)
    3.8.1
    What JDK version are you using to run Eclipse? (java -version)
    java version “1.4.2_06”
    What JDK version are you using to launch your application server?
    java version “1.4.2_06”
    What application server are you using?
    Tomcat 5
    Are there any exceptions in the Eclipse log file? (<workspace>/.metadata/.log)
    as described in previous post

    Note: I’m going to upgrade to v3.8.2 and will do the test again.

    Thx,
    Harry

    #218251 Reply

    hawiss
    Member

    Done upgrade to MyEcplipse 3.8.2.

    The error indicator on the left appears now on the correct line 🙂

    Unfotunately the debugger still does not stop at the line where the breakpoint is set. In the example below I set the breakpoint where
    “out.println(“Hello World”) is, but the debugger stops on “base href=”<%=basePath%>”. Any idea why this happens?

    I’m using Tomcat 5.0.16.

    Example:

    <%@ page language=”java” %>
    <%
    String path = request.getContextPath();
    String basePath = request.getScheme()+”://”+request.getServerName()+”:”+request.getServerPort()+path+”/”;
    String anys = “hallo”;
    %>

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
      <head>
    [b]*debugger stops here*[/b]    <base href="<%=basePath%>">
        
        <title>My JSP 'MyJsp.jsp' starting page</title>
        
        <meta http-equiv="pragma" content="no-cache">
        <meta http-equiv="cache-control" content="no-cache">
        <meta http-equiv="expires" content="0">
        <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
        <meta http-equiv="description" content="This is my page">
    
        <!--
        <link rel="stylesheet" type="text/css" href="styles.css">
        -->
      </head>
      
      <body>
        This is my JSP page. <br>
        <% String test = null;
            test = "test";
    [b]*breakpoint*[/b]    out.println("Hello World");%>    
      </body>
    </html>
    #218257 Reply

    Riyad Kalla
    Member

    Can you try upgrading to Tomcat 5.0.28? When the wrong-line stuff happens its usually due to an error in the source mapper not getting correct information from the application server, I know in earlier versions of Tomcat this was a bit of a problem and in Tomcat 5.0.19 the compiler was flat out broken in some cases… so I’m wonder if you can try a later release to minimize any weird bugs?

    #218267 Reply

    hawiss
    Member

    I tried it with 5.0.28 and IT WORKS! 🙂

    Thanks,
    Harry

    #218269 Reply

    Riyad Kalla
    Member

    Awesome, glad its working now.

Viewing 7 posts - 1 through 7 (of 7 total)
Reply To: JSP errorr indicator and breakpoint on wrong line [Closed]

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