facebook

JSP compiling seems disabled

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 15 posts - 1 through 15 (of 16 total)
  • Author
    Posts
  • #213789 Reply

    When working on my jsp’s the “auto compile” seems to not be working. when I write code that has errors, they are not appearing in the “Problems” pain, nor is there a red x next to the line — like there is with my jave class coding.

    I don’t learn of the errors until I run my web pages.

    I have fix3 of 3.8.1 but noticed this problem after fix2. Is there a configuration parameter somewhere that sets this behavior on/off?

    When I type in a class name with a “.” the methods to pop up.

    Lee

    #213805 Reply

    Riyad Kalla
    Member

    Hey Lee,

    Step 1: Install Quick fix 3 just for good measure: http://www.myeclipseide.com/PNphpBB2+file-viewtopic-t-3514.html

    Also in another thread yesterday didn’t I help you turn off Validation? That is the problem, make sure JSP validation is turned on: Window > Prefenreces > MyEclipse > Validation, you can also do this at the project level as well.

    You can also right click and “Validate JSP” on any files in question.

    #213838 Reply

    Installed the quick fix. The validation wasn’t me — but for good measure I checked and jsp validation is checked.

    Lee

    #213840 Reply

    Riyad Kalla
    Member

    do you have, Window > Prefs > Workbench > “Build automatically” , checked?

    #213854 Reply

    @support-rkalla wrote:

    do you have, Window > Prefs > Workbench > “Build automatically” , checked?

    yes

    Lee

    #213861 Reply

    Riyad Kalla
    Member

    And if you right click on project properties > MyEclipse-validation, is “override validation preferences” unchecked and everything gray? AND if you go to Window > Prefs > MyEclipse > Validation, is JSP Validation checked? AND have you applied quick fix 3? http://www.myeclipseide.com/PNphpBB2+file-viewtopic-t-3514.html and made sure to follow the directions with the -clean parameter?

    #213964 Reply

    @support-rkalla wrote:

    And if you right click on project properties > MyEclipse-validation, is “override validation preferences” unchecked and everything gray? AND if you go to Window > Prefs > MyEclipse > Validation, is JSP Validation checked? AND have you applied quick fix 3? http://www.myeclipseide.com/PNphpBB2+file-viewtopic-t-3514.html and made sure to follow the directions with the -clean parameter?

    All done — still no active error checking on my jsp pages…while I do have it for my .java code.

    Lee

    #213969 Reply

    Riyad Kalla
    Member

    Lee,
    If you right click on the JSP file and select “Validate JSP Page” does it validate or does it show the errors? Yuo *might* be confusing reconciler errosr with compile-time errors…

    #213994 Reply

    @support-rkalla wrote:

    If you right click on the JSP file and select “Validate JSP Page” does it validate or does it show the errors? Yuo *might* be confusing reconciler errosr with compile-time errors…

    I get a “valid” message — and there are compile time errors in the code.

    If I have the code

    <%
    safsafdaf
    %>

    I expect that when i save the file, that line will be highlighted as an error.

    It would be in a .java file

    Lee

    #214003 Reply

    Riyad Kalla
    Member

    Lee I just created the following page:

    
    
    <%@ page language="java" import="java.util.*" %>
    <%
    String path = request.getContextPath();
    String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
    %>
    
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
      <head>
        <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>
        <%
        asdkjhsd;
        %>
      </body>
    </html>
    

    And correctly got a error marker at the gibberish line… Validation for me is turned on, Build auotmatically is turned on and I’m running the 3.0 GA build of Eclipse with the 3.8.1 release of ME with the 3rd quickfix applied..

    Also every time I apply a quickfix, I erase my <ecliopse dir>\configuration directory and re-add the MYEclipse extension after a restart… I don’t know if this matters in your case.

    #214056 Reply

    And correctly got a error marker at the gibberish line…

    Wish I could.

    Lee

    #214077 Reply

    Riyad Kalla
    Member

    Lee,
    Can you try and shut down Eclipse, move the <eclipse dir>\configuration directory to your desktop or someplace else, and then restart Eclipse, go to Help > Soft Updates > Manage Configs > (right click) > “Add…” and re-add the MyEclipse xtension and restart? Now try the gibberish page… does it work?

    I’m really running out of ideas here and without being able to reproduce it locally I feel bad that I can’t help more…

    #214101 Reply

    @support-rkalla wrote:

    Lee,
    Can you try and shut down Eclipse, move the <eclipse dir>\configuration directory to your desktop or someplace else, and then restart Eclipse, go to Help > Soft Updates > Manage Configs > (right click) > “Add…” and re-add the MyEclipse xtension and restart? Now try the gibberish page… does it work?

    I’m really running out of ideas here and without being able to reproduce it locally I feel bad that I can’t help more…

    ….sigh….

    I did all that — still no validation. I think a more accurate way of saying things is that I’m getting a “correct validation” result on a file that has errors. When I specifically run the “validate jsp” it tells me the jsp is valid.

    Lee

    #214115 Reply

    Scott Anderson
    Participant

    Lee,

    Here’s an idea. The JSP editor needs access to a Java compiler in order to correctly compile. I’ll bet that you’re starting Eclipse with a JRE, not a full JDK and as such we can’t find the Java compiler. To verify, there should be quite a few log file entries to that effect in <workspace>/.metadata/.log. We have an open problem report that we should report this case much more clearly.

    In any case, you can correct the problem by changing the alias you use to start Eclipse to tell it to use a version of javaw that is contained in a full JDK like this:
    <path-to-eclipse.exe> -vm <path-to-jdk>\bin\javaw.exe

    Hope that clears it up. If not, 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?

    #214514 Reply

    Interestingly — I started a new web project — and on THAT project, my jsp editor show errors.

    Hmmmmm…

    Lee

Viewing 15 posts - 1 through 15 (of 16 total)
Reply To: JSP compiling seems disabled

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