facebook

JSP Editor questions: compilation "errors" and cod

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

    debedb
    Member

    I’ll attempt to ask 2 questions here

    1. I have set up a number of MyEclipse projects for the team to use.
    They work fine, except for one thing. When they are first imported
    by a new developer, some JSP files (there’s no pattern to this)
    show compilation “errors” (in quotes, because they are not truly errors).
    They claim some things cannot be resolved. But if I highlight the
    entire contents of the JSP file, cut them, save, then paste them back
    in, and save, all the errors disappear.

    This also sometimes happens when I start MyEclipse. Any ideas?

    2. Somehow (it doesn’t matter which JSP editor I use) I can no longer
    use F3 to go to a method definition, and links don’t appear when hovering
    over an item while pressing Ctrl (I checked the appropriate settings,
    they haven’t changed; and it works in Java source).

    #256093 Reply

    Riyad Kalla
    Member

    Before we address either can you post the result of MyEclipse > About MyEclipse > Installation Summary for me?

    #256102 Reply

    sofistek
    Participant

    I’ve had similar symptoms.

    I think errors may be genuine, to begin with, but the error indications (or some of them) remain, even after the errors have been corrected. For example, the editor may not be able to resolve a bean. Corrections to the other JSPs, that import this JSP, and that define the bean, seems to correct the error in the imported JSP. The error indication in the project browser is removed but the error still shows up in the editor. Usually, shutting down the editor and relaunching it, on the imported JSP, clears the problem.

    *** Date: Fri Aug 04 09:32:15 NZST 2006

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

    *** MyEclipse details:
    MyEclipse Enterprise Workbench

    Version: 5.0 Milestone 2
    Build id: 20060703-5.0-M2

    *** Eclipse details:
    Eclipse SDK

    Version: 3.2.1
    Build id: M20060726-0800

    Eclipse Platform

    Version: 3.2.1.r321_v20060705-WMxOFUabkkSGI6x
    Build id: M20060726-0800

    Eclipse RCP

    Version: 3.2.0.v20060609m-QtHY09DAsaYSLVj
    Build id: M20060726-0800

    Eclipse Java Development Tools

    Version: 3.2.1.r321_v20060705-V29IdJvl4ZbmoD-
    Build id: M20060726-0800

    Eclipse Plug-in Development Environment

    Version: 3.2.0.v20060609m——6zXJJzK1Oq
    Build id: M20060726-0800

    Eclipse Project SDK

    Version: 3.2.0.v20060609m-fxeEnjYguZnLgQD
    Build id: M20060726-0800

    Eclipse Graphical Editing Framework

    Version: 3.2.0.v20060626
    Build id: 20060627-0816

    Eclipse startup command=-os
    win32
    -ws
    win32
    -arch
    x86
    -launcher
    C:\tools\eclipse321\eclipse.exe
    -name
    Eclipse
    -showsplash
    600
    -exitdata
    db8_4c
    -vm
    C:\WINDOWS\system32\javaw.exe

    #256109 Reply

    Riyad Kalla
    Member

    sofistek,
    I’m assuming that’s an integration or nightly build of Eclipse, we haven’t tested with it so I can’t help too much there.

    I would point out that we are aware of an issue with new projects where the build cycle will start off before the libraries for the projects are done mounting, and this causes problems with the initial build. The issues are all corrected if a subsequent Project > Clean cycle is fired off.

    Does this occur for you guys?

    #256125 Reply

    sofistek
    Participant

    Yes, it is an eclipse integration build – I had issues with the eclipse debugger, which this seems to have fixed. However, the problems with JSF occurred before and after installing this build.

    The problems I’ve seen are not always corrected by a clean build of the project. And sometimes the error indication in the editor will be for an earlier error.

    Tony

    #256127 Reply

    Riyad Kalla
    Member

    Are you able to find a reproducable test case that you can submit to us for investigation?

    #256128 Reply

    debedb
    Member

    *** Date: Thu Aug 03 23:01:02 EDT 2006

    *** System properties:
    OS=Windows2000
    OS version=5.0
    Java version=1.4.2_04

    *** MyEclipse details:
    MyEclipse Enterprise Workbench

    Version: 4.1.1 GA
    Build id: 20060228-4.1.1-GA

    *** Eclipse details:
    Eclipse Platform

    Version: 3.1.0
    Build id: I20050401-1645

    Eclipse Platform

    Version: 3.1.0
    Build id: I20050401-1645

    Eclipse Java Development Tools

    Version: 3.1.0
    Build id: I20050401-1645

    Eclipse Plug-in Development Environment

    Version: 3.1.0
    Build id: I20050401-1645

    Eclipse Project SDK

    Version: 3.1.0
    Build id: I20050401-1645

    Eclipse startup command=-os
    win32
    -ws
    win32
    -arch
    x86
    -launcher
    C:\eclipse31\eclipse.exe
    -name
    Eclipse
    -showsplash
    600
    -exitdata
    13a4_74
    -data
    d:\dev
    -vm
    c:\j2sdk1.4.2_04\bin\javaw.exe

    #256129 Reply

    debedb
    Member

    I think sofistek’s problem is different. As I pointed out, these are not errors, as clearing
    the file’s contents and then pasting the exact same contents back clears the errors.

    #256132 Reply

    sofistek
    Participant

    I’ll see if I can make up a reproducible test case.

    #256135 Reply

    Riyad Kalla
    Member

    debedb,
    I don’t think that is the final release of 3.1.0, but regardless, my first suggestion would be to upgrade to Eclipse 3.2 SDK GA releasae and MyEclipse 5.0 GA release on August 6th when we release to see if the problem has been resolved.

    #256268 Reply

    Tony
    Member

    @support-rkalla wrote:

    debedb,
    I don’t think that is the final release of 3.1.0, but regardless, my first suggestion would be to upgrade to Eclipse 3.2 SDK GA releasae and MyEclipse 5.0 GA release on August 6th when we release to see if the problem has been resolved.

    I recently downloaded and installed the 5.0My Eclipse GA release, and I noticed that hyperlinks still do not appear when you hover over embedded Java code and hold down the control key.

    #256330 Reply

    Riyad Kalla
    Member

    Did you reinstall a clean version of Eclipse 3.2 SDK from the eclipse.org site as well and install *both* of the applications into new directories and not ontop of the existing ones? Also did you restart using the -clean command line argument when opening your existing workspace?

    #256468 Reply

    Tony
    Member

    @support-rkalla wrote:

    Did you reinstall a clean version of Eclipse 3.2 SDK from the eclipse.org site as well and install *both* of the applications into new directories and not ontop of the existing ones? Also did you restart using the -clean command line argument when opening your existing workspace?

    I had done all of those things, but to no avail. I’ve only ever seen ctrl-hover-links work properly while conducting the recent JSP breakpoint test I did in my test workspace at C:\tempworkspace. I’m starting to wonder if the implementation of my employer’s JSPs is such that the pages do not get parsed properly by the editor/designer in order to properly recognize the embedded Java code scriptlets in the JSP page.

    #256540 Reply

    Riyad Kalla
    Member

    That is most likely what is happening, unfortunately the only indiciation that path parsing and location parsing is not working, is that hovers don’t work. There is no other indication to speak of that would suggest why it’s not working.

    You might make sure that it’s a web project, MyEclipse relies heavily on the WebRoot dir to resolve paths and has a problem with paths starting with a slash / (absolute)

Viewing 14 posts - 1 through 14 (of 14 total)
Reply To: JSP Editor questions: compilation "errors" and cod

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