好怪的XPath问题,单独可运行,整合到系统中缺报错,求救!!!
下面这个问题真的是要弄炸我的头了:
Element root=doc.getRootElement();
Element el;
String path="//sequel[@name='sdCUST']";
el=(Element)XPath.selectSingleNode(root,path);
在把这个程序单元测试的时候没有问题,但是一到集成测试的时候却报出这样的错误,有请你帮我把把脉,非常感谢!!!!!(eclipse+jboss3.2)
19:35:45,500 ERROR [LogInterceptor] Unexpected Error:
java.lang.NoClassDefFoundError: org/saxpath/SAXPathException
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:140)
at org.jdom.xpath.XPath.newInstance(XPath.java:133)
at com.ttc.common.framework.ReadSequelInfo.GetSQL(ReadSequelInfo.java:32)