facebook

JSP Validation not working in simple helloWorld.jsp

  1. MyEclipse Archived
  2.  > 
  3. Web Development (HTML, CSS, etc.)
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #230392 Reply

    veenmudi
    Member

    Hello,
    I am using MyEclipse for the first time and I feel like I am missing a step, but can’t figure out what it is. I have installed:
    – JDK 1.5.0_03, Eclipse 3.1M7, MyEclipse 3.8.4M7 Beta, JBoss 4.0.2

    I have followed the manual Install steps for MyEclipse and everything seems to have installed correctly, I could start and stop the JBoss server successfully. I followed the instructions to create a web project from:
    http://myeclipseide.com/enterpriseworkbench/help/index.jsp?topic=/com.genuitec.myeclipse.doc/html/quickstarts/webprojects/index.html

    I can deploy the web project and view it in IE. If I introduce an error in the jsp file like “<% out.println(“Hello World”) %>”, the right-hand side annotation column shows an error but the JSP Validation doesn’t show an error in the problems tab.

    The strange part is that even if I run manual JSP validation, I get “The JSP page is valid”. What am I missing?

    1. I made sure that eclipse is using JDK1.5.0 (and not JRE). JRE_LIB=C:\Java\jdk\jre\lib\rt.jar
    2. I set the JDK Compliance to 5.0 in eclipse.
    3. As an extreme measure, I changed all the Errors/Warnings options in eclipse to error, but I still didn’t get invalid JSP.

    Thank you
    Praveen

    #230408

    Riyad Kalla
    Member

    Praveen,
    You need to have the “javac” executable from your JDK available in your System PATH environment variable, so you would want it to look like:
    PATH=C:\Java\jdk\bin;<REST OF PATH>

    #230432

    veenmudi
    Member

    Riyad,
    Thank you for the reply. I have the following env variables already set:
    classpath=.;C:\Java\jdk\lib\tools.jar;C:\Java\jdk\lib\dt.jar;C:\hsqldb\lib\hsqldb.jar
    path=C:\Java\jdk\bin;C:\Downloads\Subversion\svn-win32-1.1.4\bin;….

    I restarted the machine just now to make sure that I didn’t forget it before. That didn’t help. Now it has actually gotten worse. Now when I make the JSP invalid, the right-hand side annotation error mark is also not showing up. I am just going crazy as I can’t tell what I am missing. Should I have the tools.jar and dt.jar in the classpath inside eclipse somehow?

    One important info: My machine is built on AMD Sempron processor. Is this the problem? Honestly, everything else is working so far except validation.

    Thanks
    Praveen

    #230434

    Riyad Kalla
    Member

    Damn, Praveen I missed that you were running Eclipse M7 and our beta, this is a *known* bug in that release, we will get it fixed in our next release. Sorry for missing that.

    #230440

    veenmudi
    Member

    Riyad, Thank you for giving this a direction. I was doing stupid search for validation, I was only searching under Web Development Forum, and didn’t find any related bugs. Now that I did search on validation on ‘all’ forums and sure enough I find a related topic as the first search item (a lesson learned for me).

    Any recommendations on what versions should I revert to. Is Eclipse 3.1M6 + ME 3.8.4 M6 Beta okay? Or do you suggest that I use Eclipse 3.0.2 + ME 3.8.4?

    Thanks again
    Praveen

    #230441

    veenmudi
    Member

    Riyad, Thank you for giving this a direction. I was doing stupid search for validation, I was only searching under Web Development Forum, and didn’t find any related bugs. Now that I did search on validation on ‘all’ forums and sure enough I find a related topic as the first search item (a lesson learned for me).

    Any recommendations on what versions should I revert to. Is Eclipse 3.1M6 + ME 3.8.4 M6 Beta okay? Or do you suggest that I use Eclipse 3.0.2 + ME 3.8.4?

    Thanks again
    Praveen

    #230443

    Riyad Kalla
    Member

    Any recommendations on what versions should I revert to. Is Eclipse 3.1M6 + ME 3.8.4 M6 Beta okay? Or do you suggest that I use Eclipse 3.0.2 + ME 3.8.4?

    We always suggest stable releases for most bug-free experience, we only provide the Betas because our users demanded it 🙂

    #230444

    veenmudi
    Member

    Understood. Thank you so much for your very quick help.
    _Praveen

Viewing 8 posts - 1 through 8 (of 8 total)
Reply To: JSP Validation not working in simple helloWorld.jsp

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