title: Build error: NoClassDefFoundError: org/apache/xpath/XPathAPI
body: <p>I have upgraded my J2EE web application from jdk6,tomcat6 to jdk7 and tomcat7
  but while deploying teamcity is giving following error.</p>
  
  <p>[xmltask] java.lang.NoClassDefFoundError: org/apache/xpath/XPathAPI</p>
  
  <pre><code>java.lang.NoClassDefFoundError: org/apache/xpath/XPathAPI
                  at com.oopsconsultancy.xmltask.jdk14.XPathAnalyser14.analyse(XPathAnalyser14.java:29)
                  at com.oopsconsultancy.xmltask.XmlReplace.apply(XmlReplace.java:72)
                  at com.oopsconsultancy.xmltask.XmlReplacement.apply(XmlReplacement.java:61)
                  at com.oopsconsultancy.xmltask.ant.XmlTask.processDoc(XmlTask.java:707)
                  at com.oopsconsultancy.xmltask.ant.XmlTask.execute(XmlTask.java:676)
                  at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
                  at org.apache.tools.ant.Task.perform(Task.java:364)
                  at org.apache.tools.ant.Target.execute(Target.java:341)
                  at org.apache.tools.ant.Target.performTasks(Target.java:369)
                  at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
                  at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:37)
                  at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
                  at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382)
                  at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
                  at org.apache.tools.ant.Task.perform(Task.java:364)
                  at org.apache.tools.ant.Target.execute(Target.java:341)
                  at org.apache.tools.ant.Target.performTasks(Target.java:369)
                  at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
                  at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
                  at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
                  at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
                  at org.apache.tools.ant.Main.runBuild(Main.java:668)
                  at org.apache.tools.ant.Main.startAnt(Main.java:187)
                  at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
                  at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
  Caused by: java.lang.ClassNotFoundException: org.apache.xpath.XPathAPI
                  at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
                  at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
                  at java.security.AccessController.doPrivileged(Native Method)
                  at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
                  at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
                  at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
                  ... 25 more
  </code></pre>