Hello,

 

 I have a problem parsing an ejb-jar.xml with xmltask. It has a long schema definition. If I remove that definition everything is working fine. Can you tell me what is the problem?

 

 This is some part of ejb-jar.xml :

 

 <?xml version="1.0" encoding="UTF-8"?>

 

<ejb-jar 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/ejb-jar_2_1.xsd" version="2.1">

 

   <description><![CDATA[No Description.]]></description>

   <display-name>Generated by XDoclet</display-name>

 

   <enterprise-beans>

 

      <!-- Session Beans -->

      <session>

         <description><![CDATA[Description for AccountingImporter]]></description>

         <display-name>AccountingImporter</display-name>

………………………..

 

 And the script:

 

        <xmltask source="${basedir}/${temp.module.dir}/ejb-jar.xml" dest="${basedir}/${temp.module.dir}/ejb-jar.xml">

            <replace path="//env-entry-name[text()='ConfigurationFolder']/parent::*[1]/env-entry-value/text()" withText="CONFIGDIR"/>

            <replace path="/ejb-jar/enterprise-beans/session/env-entry/env-entry-name[text()='ScanInterval']/parent::*[1]/env-entry-value/text()" withText="SCAN INTERVAL"/>

        </xmltask>