facebook

JSP validation not working

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

    For some reason JSP validation has stopped working. It use to work and I never turned it off. Any ideas on why it would stop?

    I have checked in the preferences to make sure JSP validation is on. I tried “clearing validation markers” and then re-validating the file. I have entered invalid code in a scriptlet in a JSP file and then ran validation on it. The message back is validation complete and no compilation errors identified.

    I checked the log to see if there were any Java errors. Nothing.

    I am running eclipse 3.0.1 with myeclipse 3.8.2 with both hot fixes installed.
    I am running eclipse on RHE 3 WS.

    Please help.

    #222801 Reply

    Riyad Kalla
    Member

    This sounds like the JSP validator can’t find “javac” in your path, you can fix this by launching Eclipse with the -vm argument and pointing directly at a JDK install to us:
    eclipse -vm /opt/j2sdk1.4.2_05/bin/java

    That way MyEclipse can find the javac executable and use it for validation.

    #222802 Reply

    I tried your suggestion and it didn’t work. I ran the following command:

    ./eclipse -vm /usr/java/j2sdk1.4.2_06/bin/java

    – I then removed all MyEclipse validation markers from the project.
    – Next, I editted a JSP file, creating an invalid Java statement in a scriptlet.
    – I then saved the file.
    – Next, I right clicked on the mouse to get the context menu and ran MyEclipse/Run Validation on the file.

    MyEclipse use to flag that file with a compilation error when I saved it. Now, it didn’t mark the file with the red x symbol. When I ran the validation, it said validation complete and no errors.

    #222817 Reply

    Riyad Kalla
    Member

    Something odd is afoot here… double check your log file (workspace dir\.metadata\.log) and make sure there are no errors having to do with the text “javac” in it, if there are then we need to try other things.

    Also close your JSP file, right click > Open With and make sure “MyEclipse JSP Editor” is the default. Lastly, what version of MyEclipse and Eclipse are you using? (Help > About should be fine).

    #222825 Reply

    Thanks for working on Saturday.

    I tried all of the things in your last post. The default editor for JSP files is “MyEclipse JSP Editor”. The version info is:

    Eclipse:
    Version: 3.0.1
    Build id: 200409161125

    MyEclipse from the MyEclpse preferences:
    Version: 3.8.2+QF20041020
    Build id: 200410041200-3.8.2+QF20041020

    I checked the .log for javac errors. The last error msg that contained javac error was back on 12/31/04. These errors were related to one of my JSP files being compiled by MyEclipse, and it had detected a compilation error.

    No errors after that. I even searched the log for other entries that contained “com.genuitec.”, and the only thing I have since 12/31/04 are some sqlexplorer errors.

    #222841 Reply

    Riyad Kalla
    Member

    Keith,
    Asked a dev about this and here is something else we wanted you to try:

    1) Close all your projects (and editors)
    2) Shut down MyEclipse
    3) Edit your shortcut and add the -clean command line argument
    4) Start MyEclipse again
    ** Note: Make sure autobuild is on, Project > Autobuild (make sure its checked), this could be why no validation errors are showing
    5) Open the project in question, Project > Clean
    ** Note: Autobuild should now kick in and rebuild the entire project

    Did you get any markers? If not, try and change a file and save it.

    Make sure you have Automatic build on resource modifcation turned on under the workbench preferences, this is what hooks the validation process into the “save” feature, it might have gotten turned off.

    #222965 Reply

    No luck. Tried all of your steps and it still does not identify a problem in a JSP file.

    #222970 Reply

    Scott Anderson
    Participant

    Do you have other validation errors in the same project? There is a maximum (default of 25) for the number of errors that will be marked in a given project and if you go over that additional errors will not be flagged. Also, are you positive you’re using our JSP editor? Are there any log entries?

    #222977 Reply

    There are no other validation or compilation errors.

    Under Window > Preferences > Workbench > File Associations, it shows JSP files default editor as MyEclipse JSP Editor.

    No log entries. My last log entry was MyEclipse sqlexplorer complaining about a mistake I made in some SQL and that was back on 1/15/05.

    #222978 Reply

    Riyad Kalla
    Member

    A bit extreme, but can you try a brand new install of Eclipse/MyEclipse parallel to your current install and see if that atleast works?

    #223106 Reply

    I installed a new eclipse 3.0.1 and then did a new manual install of MyEclipse 3.8.2. I then deployed both quickfixes 3.8.2_QuickFix-20041004 and 3.8.2_QuickFix-20041020.

    I kept my original workspace and project.

    No change. Problem is still not fixed.

    I did see the following messages in the workspace/.metadata/.log file:

    
    !SESSION Jan 19, 2005 09:11:01.683 ---------------------------------------------eclipse.buildId=M200409161125
    java.version=1.4.2_06
    java.vendor=Sun Microsystems Inc.
    BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US
     
    !ENTRY org.eclipse.ui 4 4 Jan 19, 2005 09:11:01.684
    !MESSAGE Unable to find Action Set: com.genuitec.myeclipse.actions.deploytools
     
    !ENTRY org.eclipse.ui 4 4 Jan 19, 2005 09:11:01.706
    !MESSAGE Unable to find Action Set: com.genuitec.myeclipse.actions
     
    !ENTRY org.eclipse.ui 4 4 Jan 19, 2005 09:11:01.707
    !MESSAGE Unable to find Action Set: com.genuitec.myeclipse.actions.hibernatetools
     
    !ENTRY org.eclipse.ui 4 4 Jan 19, 2005 09:11:01.707
    !MESSAGE Unable to find Action Set: com.genuitec.myeclipse.actions.webtools
     
    !ENTRY org.eclipse.ui 4 4 Jan 19, 2005 09:11:01.709
    !MESSAGE Unable to find Action Set: com.genuitec.myeclipse.actions.jsftools
     
    !ENTRY org.eclipse.ui 4 4 Jan 19, 2005 09:11:01.709
    !MESSAGE Unable to find Action Set: com.genuitec.myeclipse.actions.strutstools
     
    !ENTRY org.eclipse.ui 4 4 Jan 19, 2005 09:11:15.251
    !MESSAGE Unable to find Action Set: com.genuitec.myeclipse.actions.deploytools
     
    !ENTRY org.eclipse.ui 4 4 Jan 19, 2005 09:11:15.252
    !MESSAGE Unable to find Action Set: com.genuitec.myeclipse.actions
     
    !ENTRY org.eclipse.ui 4 4 Jan 19, 2005 09:11:15.252
    !MESSAGE Unable to find Action Set: com.genuitec.myeclipse.actions.hibernatetools
     
    !ENTRY org.eclipse.ui 4 4 Jan 19, 2005 09:11:15.253
    !MESSAGE Unable to find Action Set: com.genuitec.myeclipse.actions.webtools
     
    !ENTRY org.eclipse.ui 4 4 Jan 19, 2005 09:11:15.253
    !MESSAGE Unable to find Action Set: com.genuitec.myeclipse.actions.jsftools
     
    !ENTRY org.eclipse.ui 4 4 Jan 19, 2005 09:11:15.254
    !MESSAGE Unable to find Action Set: com.genuitec.myeclipse.actions.strutstools
    

    But, these might be from my starting up the new instance of eclipse without closing all of the perspectives first, which several were MyEclipse.

    The only thing else I can think to try is to create a new workspace and check the project out of CVS again.

    #223110 Reply

    Riyad Kalla
    Member

    1) You are using the Eclipse SDK (~85mb) right? (not the RCP, PLatform or JDT?)
    2) Can you try using MyEclipse 3.8.3 instead of 3.8.2+QFs?

    #223119 Reply

    1) You are using the Eclipse SDK (~85mb) right? (not the RCP, PLatform or JDT?)

    Yes. Eclipse/MyEclipse was working before. Here is the name of the installer that I used to install eclipse: eclipse-SDK-3.0.1-linux-gtk.zip

    2) Can you try using MyEclipse 3.8.3 instead of 3.8.2+QFs?

    I can. I was planning on going to 3.8.3 after I finish my project. When I installed 3.8.2, I had so many problems with MyEclipse. With the addition of QF2, it was finally stable, and I didn’t want to disturb it until I had time to troubleshoot. 🙂

    I will try installing 3.8.3. can I upgrade from 3.8.3 + QF2? Are there any QF’s for 3.8.3?

    #223120 Reply

    Riyad Kalla
    Member

    3.8.3 was a good stable release and 3.8.4 is turning to be even more so (we are testing 3.8.4 right now, should be out by the end of this week or beginning of next). You may just consider upgrading to 3.8.4 when its out if you can wait until then?

    #223124 Reply

    Scott Anderson
    Participant
    
    !SESSION Jan 19, 2005 09:11:01.683 ---------------------------------------------eclipse.buildId=M200409161125
    java.version=1.4.2_06
    java.vendor=Sun Microsystems Inc.
    BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US
     
    !ENTRY org.eclipse.ui 4 4 Jan 19, 2005 09:11:01.684
    !MESSAGE Unable to find Action Set: com.genuitec.myeclipse.actions.deploytools
     
    !ENTRY org.eclipse.ui 4 4 Jan 19, 2005 09:11:01.706
    !MESSAGE Unable to find Action Set: com.genuitec.myeclipse.actions
     
    !ENTRY org.eclipse.ui 4 4 Jan 19, 2005 09:11:01.707
    !MESSAGE Unable to find Action Set: com.genuitec.myeclipse.actions.hibernatetools
     
    !ENTRY org.eclipse.ui 4 4 Jan 19, 2005 09:11:01.707
    !MESSAGE Unable to find Action Set: com.genuitec.myeclipse.actions.webtools
     
    !ENTRY org.eclipse.ui 4 4 Jan 19, 2005 09:11:01.709
    !MESSAGE Unable to find Action Set: com.genuitec.myeclipse.actions.jsftools
     
    !ENTRY org.eclipse.ui 4 4 Jan 19, 2005 09:11:01.709
    !MESSAGE Unable to find Action Set: com.genuitec.myeclipse.actions.strutstools
     
    !ENTRY org.eclipse.ui 4 4 Jan 19, 2005 09:11:15.251
    !MESSAGE Unable to find Action Set: com.genuitec.myeclipse.actions.deploytools
     
    !ENTRY org.eclipse.ui 4 4 Jan 19, 2005 09:11:15.252
    !MESSAGE Unable to find Action Set: com.genuitec.myeclipse.actions
     
    !ENTRY org.eclipse.ui 4 4 Jan 19, 2005 09:11:15.252
    !MESSAGE Unable to find Action Set: com.genuitec.myeclipse.actions.hibernatetools
     
    !ENTRY org.eclipse.ui 4 4 Jan 19, 2005 09:11:15.253
    !MESSAGE Unable to find Action Set: com.genuitec.myeclipse.actions.webtools
     
    !ENTRY org.eclipse.ui 4 4 Jan 19, 2005 09:11:15.253
    !MESSAGE Unable to find Action Set: com.genuitec.myeclipse.actions.jsftools
     
    !ENTRY org.eclipse.ui 4 4 Jan 19, 2005 09:11:15.254
    !MESSAGE Unable to find Action Set: com.genuitec.myeclipse.actions.strutstools 
    

    These messages show that MyEclipse cannot be found in the installation at all. Restarting with the -clean commandline option might clear the issue. However, in the current configuration with these messages, MyEclipse won’t be usable.

Viewing 15 posts - 1 through 15 (of 26 total)
Reply To: JSP validation not working

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