ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 7101] New: - XmlValidate lenient trying to resolve external entity
Date Wed, 13 Mar 2002 23:06:52 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7101>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7101

XmlValidate lenient trying to resolve external entity

           Summary: XmlValidate lenient trying to resolve external entity
           Product: Ant
           Version: 1.5 alpha (nightly)
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Minor
          Priority: Other
         Component: Optional Tasks
        AssignedTo: ant-dev@jakarta.apache.org
        ReportedBy: joel.hughes@redknee.com
                CC: joel.hughes@redknee.com,victor.ng@redknee.com


Optional task xmlvalidate with attribute lenient="true" failonerror="true" 
warn="true" is attempting to resolve external entity, which is not what we are 
expecting.

[xmlvalidate] 
C:/redknee/customer/redknee/common/app/smshub/dev/deploy/etc/esmemapping.xml:2: 
External entity not found: "http://castor.exolab.org/mapping.dtd".

Of course we only notice when we are building offline.
I'm not expecting this behaviour when lenient="true". I'm expecting it to 
ignore all external entities and dtds.

xml file:
<?xml version="1.0"?>
<!DOCTYPE mapping PUBLIC "-//EXOLAB/Castor Object Mapping DTD Version 
1.0//EN" "http://castor.exolab.org/mapping.dtd">

<mapping>
    
    <class name="com.redknee.app.smshub.ui.SmshubAccount">
        <field name="userId" type="java.lang.String">
            <bind-xml name="userId" node="attribute"/>
        </field>
        <field name="password" type="java.lang.String">
            <bind-xml name="password" node="element"/>
        </field>
        <field name="accessLevel" type="java.lang.String">
            <bind-xml name="accesslevel" node="element"/>
        </field>
    </class>

    <class name="com.redknee.app.smshub.ui.SmshubAccountContainer">
        <map-to xml="SmshubAccountContainer"/>
    
        <field name="accountVector" 
type="com.redknee.app.smshub.ui.SmshubAccount" collection="vector">
            <bind-xml name="SmshubAccount"/>
        </field>
    </class>

</mapping>

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message