facebook

[Closed] JSP Validation error not in Console View

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

    I have a JSP which deliberately contains a syntax error. For this error there is an error indicator (small rose rectangle) on the right side of the main window but no error indicator (Red Circle with white X in it) on the left side of the main window. Below, “a console is not available” is displayed. I had expected a detailed JSP error to be displayed in the console window as documented in the Web Application Quickstart documentation.
    myEclipse configuration follows:

    *** Date: Wed Jan 11 14:38:44 EST 2006

    *** System properties:
    OS=WindowsXP
    OS version=5.1
    Java version=1.5.0_06

    *** MyEclipse details:
    MyEclipse Enterprise Workbench

    Version: 4.0.3 GA
    Build id: 20051025-4.0.3-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
    D:\eclipse\eclipse\eclipse.exe
    -name
    Eclipse
    -showsplash
    600
    -exitdata
    c98_7bc
    -clean
    -vm
    C:\WINDOWS\system32\javaw.exe

    Incidentally, the Console window is available when I run a Java App which does a System.println(String)

    #244389 Reply

    Riyad Kalla
    Member

    You need to make sure that javac.exe is in your System PATH environment variable, that is what MyEclipse uses for validation. Once you have done that, restart MyEclipse and rebuild your project. It should correctly mark the error.

    #244425 Reply

    I edited the System Path environmental variable to include d:\jdk1.5.0_05\bin and then restarted my system. I opened up the project and it built automatically. The jsp scriptlet in error displays a small rose rectangle on the right side but no red circle error indicator on the left side. The console display below continues to display “a console is not available”. I appreciate your help on this problem and hope for a solution on this and subsequent problems that may be encountered as I become familiar with both Eclipse and MyEclipse. I most certainly will become a subscriber at the Enterprise Level as soon as I can get the basics working OK. Thanks in advance for your help.
    John Davis

    #244428 Reply

    Riyad Kalla
    Member

    John,
    If you click on Start > Run > “cmd” and hit OK, then type “javac” at the command line, do you get a usage message or “Command not found”?

    If you do File > Switch Workspace > C:\tempworkspace, and hit OK. Then do File > New > Project > Web Project, and create a JSP in the WebRoot directory and add this to it:

    
    <% blah %>
    

    and save it, is it marked with an error in the left panel and down in the problems view?

    #244435 Reply

    I get a usage message when I run javac in a cmd window.

    I put in the blah scriptlet you suggested but it behaves the same as my previous errored scriptlet – i.e. no red circle error indicator on the left, and no detail message in the console.

    #244439 Reply

    Riyad Kalla
    Member

    Just to clarify, that is *with* a new workspace and a new project right?

    If so, please send me a screenshot of what you are seeing to support@genuitec.com ATTN Riyad with a link to this thread so I know why I’m getting it.

    #244451 Reply

    Yes, I created a new project and a new JSP and have the same problem. By virtue of creating a new project and jsp, do I still need to do something about new workspace?

    #244453 Reply

    It doesn’t matter. I got a new workspace, created a new project and JSP page with an error in it, and I still don’t get the error indicator or console error message. I’ll send you the screenshot.

    #244475 Reply

    Riyad Kalla
    Member

    John,
    The “console is not available” is not a bug or an error, it’s a notice that there is no content to show in the console right at that moment, which is correct.

    Now onto the missing marker, if you right click on your JSP file and go to Open With, what editors are listed? Which one has a round black dot next to it? Also if you navigate to the setting: Window > Prefs > General > Workspace, do you have “Build automatically” checked? If not, check that.

    If none of that works, try and reboot just for sanity sake and reopen MyEclipse and then edit and save the file with an error in it.

    #244551 Reply

    Actually, this problem is not solved yet. The Problem Tab does not appear consistently. At one point, the tab existed, I clicked on it, and the error detail was displayed below. Then I corrected the error and the error indications disappeared. But when I reintroduced the error, the problem tab was not available.
    Also, all along, the red circle error indicator appearance has not been consistent.
    With respect to JSP errors, the sole consistency has been the small rose rectangle which appears at the right side of the editor window aligned with the beginning scriptlet tag.

    #244553 Reply

    I checked and the MyEclipse JSP Designer is the one I am using. I checked preferences and found that build automatically was checked. However, I decreased the save interval to 1 minute, and checked the box for automatic save before build etc. Now when I introduce the error and click the save icon, the Red Circle error icon appears. However, I do not see a problem tab/view option available, but as I said earlier, this is not a big deal. I think we should close this thread.

Viewing 11 posts - 1 through 11 (of 11 total)
Reply To: [Closed] JSP Validation error not in Console View

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