You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by sjh <sj...@csdn.net.cn> on 2000/11/02 03:54:27 UTC

xslt error

hello friends:
my os is linux, i install jdk1.2+apache+tomcat and  download xalan and xerces.i add following msg in/etc/profile:
classpath=.....:/usr/local/xalan/xalan.jar:/usr/local/xalan/xerces.jar:/usr/local/xalan/samples/xalansamples.jar
/usr/local/xalan/samples
but when I try the demo,following msg occur.

java SimpleTransform
org.apache.xalan.xslt.XSLProcessorException: XSLT Error
--at java.lang.Throwable.(Throwable.java:38)
--at java.lang.Exception.(Exception.java:24)
--at org.xml.sax.SAXException.(SAXException.java:45)
--at org.apache.xalan.xpath.XPathException.(XPathException.java:92)
--at org.apache.xalan.xslt.XSLProcessorException.(XSLProcessorExcept
ion.java:101)
--at org.apache.xalan.xslt.XSLTEngineImpl.createLiaison(XSLTEngineImpl.jav
a:461)
--at org.apache.xalan.xslt.XSLTEngineImpl.(XSLTEngineImpl.java:363)
--at org.apache.xalan.xslt.XSLTProcessorFactory.getProcessor(XSLTProcessor
Factory.java:79)
--at SimpleTransform.main(SimpleTransform.java:77)
---------
java.lang.NullPointerException
--at java.lang.Class.getConstructor(Class.java:77)
--at org.apache.xalan.xslt.XSLTEngineImpl.createLiaison(XSLTEngineImpl.jav
a:454)
--at org.apache.xalan.xslt.XSLTEngineImpl.(XSLTEngineImpl.java:363)
--at org.apache.xalan.xslt.XSLTProcessorFactory.getProcessor(XSLTProcessor
Factory.java:79)
--at SimpleTransform.main(SimpleTransform.java:77)


what is the problem? oh my god... btw: i am a newbie to java and xml.if you can help me ,you can email to jihui_sun@chinaren.com

thank you in advance.

Re: xslt error

Posted by Gary L Peskin <ga...@firstech.com>.
> sjh wrote:
> what is the problem?

The most likely cause of this is that xerces.jar is not in the location
where you think it is or it is corrupted or you have an older version of
xerces or another parser earlier in your classpath.  Double check the
xerces.jar for its correct location and make sure you don't have any
other parsers in your classpath.

HTH,
Gary