facebook

3.8.1 tld problem

  1. MyEclipse Archived
  2.  > 
  3. Bugs
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #212991 Reply

    Wim Goossens
    Member

    This tld reports an error :

    cvc-elt.1: Cannot find the declaration of element ‘taglib’.

    This error was not there before 3.8.1

    xsd seems to be there in XML catalog entries.

    Regards
    Wim

    tld in WEB-INF dir :

    <?xml version=”1.0″ encoding=”UTF-8″ ?>

    <taglib xmlns=”http://java.sun.com/xml/ns/j2ee&#8221;
    xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance&#8221;
    xsi:schemaLocation=”http://java.sun.com/xml/ns/j2ee web-jsptaglibrary_2_0.xsd”
    version=”2.0″>

    <tlib-version>1.0</tlib-version>
    <short-name>ddlb</short-name>
    <uri>http://wg.be/jx/taglibs/ddlb</uri&gt;

    <tag>
    <name>populate</name>
    <tag-class>be.wg.jx.taglibs.ddlb.JxPopulate</tag-class>
    <body-content>empty</body-content>
    <attribute>
    <name>id</name>
    <required>true</required>
    <rtexprvalue>true</rtexprvalue>
    </attribute>
    <attribute>
    <name>ddlb</name>
    <required>true</required>
    <rtexprvalue>true</rtexprvalue>
    </attribute>
    <attribute>
    <name>value</name>
    <required>false</required>
    <rtexprvalue>true</rtexprvalue>
    </attribute>
    </tag>

    <tag>
    <name>translate</name>
    <tag-class>be.wg.jx.taglibs.ddlb.JxTranslate</tag-class>
    <body-content>empty</body-content>
    <attribute>
    <name>id</name>
    <required>true</required>
    <rtexprvalue>true</rtexprvalue>
    </attribute>
    <attribute>
    <name>ddlb</name>
    <required>true</required>
    <rtexprvalue>true</rtexprvalue>
    </attribute>
    <attribute>
    <name>value</name>
    <required>true</required>
    <rtexprvalue>true</rtexprvalue>
    </attribute>
    </tag>

    </taglib>

    #213009 Reply

    Scott Anderson
    Participant

    Wim,

    First, please be sure you’ve restarted your installation with the -clean option.
    Second, in the XML catalog, the XSD you’re referring to is keyed by its full URI which is:
    http://java.sun.com/xml/ns/j2ee/web-jsptaglibrary_2_0.xsd

    So, youre namespace declaration needs to look like:

    
    <taglib xmlns="http://java.sun.com/xml/ns/j2ee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-jsptaglibrary_2_0.xsd"
    version="2.0"> 
    

    Or, you can add a new entry to the XML catalog for your old URI, if you prefer.

    #213087 Reply

    Wim Goossens
    Member

    Scott,

    I changed it to the full URI.
    This solved the problem.
    (don’t know why it did not give a problem in 3.8.0)

    Thank you
    Wim

    #213138 Reply

    Scott Anderson
    Participant

    (don’t know why it did not give a problem in 3.8.0)

    Probably because validation was broken. 🙂

    #214570 Reply

    dmitry-a
    Member

    I’m gettinng the same problem with maven.xml — cvc-elt.1: Cannot find the declaration of element ‘project’..

    <?xml version="1.0" encoding="UTF-8" ?> 
    <project xmlns:j="jelly:core" xmlns:m="maven">
        <goal name="war:install-local">
            <copy file="target/forum.war" toDir="/home/dev/opt/jboss/server/default/deploy/"/>
        </goal>
    </project>
    

    I was under the impression that if dtd or schema is not present, myeclipse 3.8.1 will not do the validation and will only check if xml tags are properly balanced.

    Dmitry A>

    #214573 Reply

    Scott Anderson
    Participant

    Dmitry,

    Actually, validation always validates if it’s turned on. The easiest solution is to add the schema you’re using as an entry in the user schema catalog at Window > Preferences > MyEclipse > Editors > XML Editor > XML Schema Catalog.

    #214594 Reply

    anderssv
    Member

    Excluding certain files/files without schemas should be possible. First off I can’t seem to find a schema for maven.xml and secondly I imagine the following line would require four schemas (but I know ver little about XML namespaces):

    <project default=”snapshot” xmlns:m=”jelly:maven” xmlns:ant=”jelly:ant” xmlns:j=”jelly:core”/>

    I get compile errors in all my Maven projects (and I don’t want to turn off XML validation), which is bugging me a bit.

Viewing 7 posts - 1 through 7 (of 7 total)
Reply To: 3.8.1 tld problem

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