Hi,
I am using the xmltask in my xml file which works fine on WIN 2K after setting the PATH and CLASSPATH Variables. Same way when i try on Linux this does not work and gives the following exception:
 
  [xmltask] javax.xml.transform.TransformerException: Cannot use a DTMLiaison for a input DOM node... pass a org.apache.xpath.DOM2Helper instead!
  [xmltask]    at org.apache.xpath.compiler.XPathParser.error(int, java.lang.O
  [xmltask] bject[]) (/usr/lib/lib-org-apache-xalan-2.4.1.so)
  [xmltask]    at org.apache.xpath.compiler.XPathParser.RelativeLocationPath() (/usr/lib/lib-org-apache-xalan-2.4.1.so)
  [xmltask]    at org.apache.xpath.compiler.XPathParse
  [xmltask] r.LocationPath() (/usr/lib/lib-org-apache-xalan-2.4.1.so)
  [xmltask]    at org.apache.xpath.compiler.XPathParser.PathExpr() (/usr/lib/lib-org-apache-xalan-2.4.1.so)
  [xmltask]    at org.apache.xpath.compiler.XPathParser.Un
  [xmltask] ionExpr() (/usr/lib/lib-org-apache-xalan-2.4.1.so)
  [xmltask]    at org.apache.xpath.compiler.XPathParser.UnaryExpr() (/usr/lib/lib-org-apache-xalan-2.4.1.so)
  [xmltask]    at org.apache.xpath.compiler.XPathParser.Multipli
  [xmltask] cativeExpr(int) (/usr/lib/lib-org-apache-xalan-2.4.1.so)
  [xmltask]    at org.apache.xpath.compiler.XPathParser.AdditiveExpr(int) (/usr/lib/lib-org-apache-xalan-2.4.1.so)
  [xmltask]    at org.apache.xpath.compiler.XPathPar
  [xmltask] ser.RelationalExpr(int) (/usr/lib/lib-org-apache-xalan-2.4.1.so)
  [xmltask]    at org.apache.xpath.compiler.XPathParser.EqualityExpr(int) (/usr/lib/lib-org-apache-xalan-2.4.1.so)
  [xmltask]    at org.apache.xpath.compiler.
  [xmltask] XPathParser.AndExpr() (/usr/lib/lib-org-apache-xalan-2.4.1.so)
  [xmltask]    at org.apache.xpath.compiler.XPathParser.OrExpr() (/usr/lib/lib-org-apache-xalan-2.4.1.so)
  [xmltask]    at org.apache.xpath.compiler.XPathParser
  [xmltask] .Expr() (/usr/lib/lib-org-apache-xalan-2.4.1.so)
  [xmltask]    at org.apache.xpath.compiler.XPathParser.initXPath(org.apache.xpath.compiler.Compiler, java.lang.String, org.apache.xml.utils.PrefixResolver) (/usr/
  [xmltask] lib/lib-org-apache-xalan-2.4.1.so)
  [xmltask]    at org.apache.xpath.XPath.XPath(java.lang.String, javax.xml.transform.SourceLocator, org.apache.xml.utils.PrefixResolver, int, javax.xml.transform.ErrorListener)
  [xmltask] (/usr/lib/lib-org-apache-xalan-2.4.1.so)
  [xmltask]    at org.apache.xpath.XPathAPI.eval(org.w3c.dom.Node, java.lang.String, org.w3c.dom.Node) (/usr/lib/lib-org-apache-xalan-2.4.1.so)
  [xmltask]    at org.apache.xpath.XPat
  [xmltask] hAPI.eval(org.w3c.dom.Node, java.lang.String) (/usr/lib/lib-org-apache-xalan-2.4.1.so)
  [xmltask]    at com.oopsconsultancy.xmltask.jdk14.XPathAnalyser14.analyse(org.w3c.dom.Node, java.lang.String) (Unknown Sour
  [xmltask] ce)
  [xmltask]    at com.oopsconsultancy.xmltask.XmlReplace.apply(org.w3c.dom.Document) (Unknown Source)
  [xmltask]    at com.oopsconsultancy.xmltask.XmlReplacement.apply() (Unknown Source)
  [xmltask]    at com.oopsconsultancy.xmltas
  [xmltask] k.ant.XmlTask.processDoc(org.w3c.dom.Document, java.lang.String) (Unknown Source)
  [xmltask]    at com.oopsconsultancy.xmltask.ant.XmlTask.execute() (Unknown Source)
  [xmltask]    at org.apache.tools.ant.Task.perform() (/u
  [xmltask] sr/lib/lib-org-apache-tools-ant-1.5.2.so)
  [xmltask]    at org.apache.tools.ant.Target.execute() (/usr/lib/lib-org-apache-tools-ant-1.5.2.so)
  [xmltask]    at org.apache.tools.ant.Target.performTasks() (/usr/lib/lib-org-ap
  [xmltask] ache-tools-ant-1.5.2.so)
  [xmltask]    at org.apache.tools.ant.Project.executeTarget(java.lang.String) (/usr/lib/lib-org-apache-tools-ant-1.5.2.so)
  [xmltask]    at org.apache.tools.ant.Project.executeTargets(java.util.Vec
  [xmltask] tor) (/usr/lib/lib-org-apache-tools-ant-1.5.2.so)
  [xmltask]    at org.apache.tools.ant.Main.runBuild(java.lang.ClassLoader) (/usr/lib/lib-org-apache-tools-ant-1.5.2.so)
  [xmltask]    at org.apache.tools.ant.Main.start(jav
  [xmltask] a.lang.String[], java.util.Properties, java.lang.ClassLoader) (/usr/lib/lib-org-apache-tools-ant-1.5.2.so)
  [xmltask]    at org.apache.tools.ant.Main.main(java.lang.String[]) (/usr/lib/lib-org-apache-tools-ant-1.5.2.so)
 
Can u suggest the remedy for this problem.
 
 
Thanks in advance,
Sandeep
 


Yahoo! Messenger - want a free & easy way to contact your friends online?