facebook

Update to ME8.5: error jsp syntax validation on custom tag

  1. MyEclipse IDE
  2.  > 
  3. Installation, Configuration & Updates
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #310219 Reply

    Roel
    Member

    I’ve updated from ME 7.5 to ME8.5.
    On my web project , I get some validation errors in my jsp files on the declartion of a custom tag at the beginning of my jsp file.

    <%@ taglib prefix=”tagFiles” tagdir=”/WEB-INF/tags” %>
    2 errors on jsp where I import the custom tag:
    Description Resource Path Location Type
    Can not find the tag library descriptor for “/WEB-INF/tags”. Try using a newer grammar or declared version in the Web Deployment Descriptor. detailSchuldAangroei.jsp /poseidonWeb/WebRoot/page/budgethulp line 10 JSP Problem

    Description Resource Path Location Type
    Missing required attribute “uri” detailSchuldAangroei.jsp /poseidonWeb/WebRoot/page/budgethulp line 9 JSP Problem

    In the ME7.5 I don’t receive these validation errors.

    If I disable the “jsp syntax validator” under window>preferences>myeclipse enterprise workbench>validation, I don’t receive these validation errors (offcourse I want the rest of jsp to be validater, so no solution). I’ve verified this validator in my ME7.5, here its also activated.

    Anybody an idea how I can fix this?

    installation summary:

    *** Date:
    *** Date:
    vrijdag 30 juli 2010 10.01 u. CEST

    ** System properties:
    OS=WindowsVista
    OS version=6.0.0
    Java version=1.6.0_13

    *** MyEclipse details:
    MyEclipse Enterprise Workbench
    Version: 8.5
    Build id: 8.5-20100319

    *** Eclipse details:
    MyEclipse Enterprise Workbench

    Version: 8.5
    Build id: 8.5-20100319

    Eclipse startup command=-os
    win32
    -ws
    win32
    -arch
    x86
    -showsplash
    -launcher
    D:\java\ide\Genuitec\MyEclipse 8.5\myeclipse.exe
    -name
    Myeclipse
    –launcher.library
    D:\java\ide\Genuitec\MyEclipse 8.5\../Common/plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.0.200.v20090519\eclipse_1206.dll
    -startup
    D:\java\ide\Genuitec\MyEclipse 8.5\../Common/plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar
    -install
    D:/java/ide/Genuitec/MyEclipse 8.5
    -configuration
    configuration
    -vm
    D:/java/ide/Genuitec/Common/binary/com.sun.java.jdk.win32.x86_1.6.0.013/jre/bin/client/jvm.dll

    #310220 Reply

    support-joy
    Member

    bouly,

    Please do the following –

    1. Ensure that the taglibs are located in the said location
    2. Perform clean. From myeclipse IDE menu options click on Project > Clean
    3. Perform refresh. Right click on your project and click on [Refresh]

    Let me know if this works for you.

    #310223 Reply

    Roel
    Member

    1. the .tag files are located in the WEB-INF/tags directory
    2+3: done, put don’t resolve the problem

    I did found something on the web about the doctype definition at the top of the web.xml.
    We’re using “java.sun.com/dtd/web-app_2_3.dtd”, when I change this to 2.5 I don’t have the validations errors. Strange thing is that in ME7.5 this is also set to 2.3.

    I also verified the jsp validation under window>preferences >myeclipse>validation>jsp
    Here I can set the errors to warnings. I verified my ME7.5, the preferences are correctly set to errors.

    #310253 Reply

    support-joy
    Member

    bouly,

    Good to hear you are all set. Can you please send me a sample application to replicate this? This will help me investigate this issue. Please send a mail to support@genuitec.com with reference to the above weblink and add ATTN:Joy in the subject.

    #310254 Reply

    Roel
    Member

    I have found the solution to my problem.
    Custom tags (.tag file) are supported since jsp2.0.

    In my web deployment descriptor (web.xml) I had specified the scheme with DTD “web-app_2_3.dtd”. This is for jsp1.2 (Tomcat5.0).

    I have to use the XSD definition (web-app_2_4.xsd) for jsp2.0 and Tomcat5.5 which I’m using.

    Now I don’t have the jsp validation errors anymore in ME8.5. In ME7.5 I had the same configuration (web-app_2_3.dtd) , I still don’t why in ME7.5 this was not shown as a validation error?

    Thanks for the help

    #310276 Reply

    support-joy
    Member

    bouly,

    Good to hear you are all set.

Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: Update to ME8.5: error jsp syntax validation on custom tag

This topic is marked as closed to new replies, however your posting capabilities still allow you to do so.

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