Can you post your jvm version, and your build.xml and the document you're reading from, pls ? I have *no* idea what a DTMLiaison is, I have to say! But I use Linux with no problems so don't anticipate any major problems.

Sandeep Watts wrote:
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/
  [xmltask]    at org.apache.xpath.compiler.XPathParser.RelativeLocationPath() (/usr/lib/
  [xmltask]    at org.apache.xpath.compiler.XPathParse
  [xmltask] r.LocationPath() (/usr/lib/
  [xmltask]    at org.apache.xpath.compiler.XPathParser.PathExpr() (/usr/lib/
  [xmltask]    at org.apache.xpath.compiler.XPathParser.Un
  [xmltask] ionExpr() (/usr/lib/
  [xmltask]    at org.apache.xpath.compiler.XPathParser.UnaryExpr() (/usr/lib/
  [xmltask]    at org.apache.xpath.compiler.XPathParser.Multipli
  [xmltask] cativeExpr(int) (/usr/lib/
  [xmltask]    at org.apache.xpath.compiler.XPathParser.AdditiveExpr(int) (/usr/lib/
  [xmltask]    at org.apache.xpath.compiler.XPathPar
  [xmltask] ser.RelationalExpr(int) (/usr/lib/
  [xmltask]    at org.apache.xpath.compiler.XPathParser.EqualityExpr(int) (/usr/lib/
  [xmltask]    at org.apache.xpath.compiler.
  [xmltask] XPathParser.AndExpr() (/usr/lib/
  [xmltask]    at org.apache.xpath.compiler.XPathParser.OrExpr() (/usr/lib/
  [xmltask]    at org.apache.xpath.compiler.XPathParser
  [xmltask] .Expr() (/usr/lib/
  [xmltask]    at org.apache.xpath.compiler.XPathParser.initXPath(org.apache.xpath.compiler.Compiler, java.lang.String, org.apache.xml.utils.PrefixResolver) (/usr/
  [xmltask] lib/
  [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/
  [xmltask]    at org.apache.xpath.XPathAPI.eval(org.w3c.dom.Node, java.lang.String, org.w3c.dom.Node) (/usr/lib/
  [xmltask]    at org.apache.xpath.XPat
  [xmltask] hAPI.eval(org.w3c.dom.Node, java.lang.String) (/usr/lib/
  [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 (/u
  [xmltask] sr/lib/
  [xmltask]    at (/usr/lib/
  [xmltask]    at (/usr/lib/lib-org-ap
  [xmltask]    at (/usr/lib/
  [xmltask]    at
  [xmltask] tor) (/usr/lib/
  [xmltask]    at (/usr/lib/
  [xmltask]    at
  [xmltask] a.lang.String[], java.util.Properties, java.lang.ClassLoader) (/usr/lib/
  [xmltask]    at[]) (/usr/lib/
Can u suggest the remedy for this problem.
Thanks in advance,

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

Brian Agnew        
OOPS Consultancy Ltd         brian @
Tel: +44 (0)7720 397526
Fax: +44 (0)20 8682 0012