struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "chris brown" <...@reflexe.fr>
Subject Re: Testing Xalan prior to STRUTS build
Date Tue, 24 Apr 2001 16:39:17 GMT
You need to add the ".jar" files for Xalan to your classpath, not just the
folders (you only add folders to your classpath when they contain unarchived
".class" files).  This means including at least "xalan.jar" and "xerces.jar"
(the XML parser which Xerces requires) in your classpath (see the "bin"
folder where you installed Xalan).

-Chris

----- Original Message -----
From: "Galon, Mary-Jay" <Galon@daugherty.com>
To: "Struts-User@Jakarta. Apache. Org (E-mail)"
<struts-user@jakarta.apache.org>
Sent: Tuesday, April 24, 2001 6:21 PM
Subject: Testing Xalan prior to STRUTS build


> I am getting this problem when testing to make sure Xalan works by using
the
> SimpleTranform sample.  I've checked the classpath already.  Whatelse can
I
> check.
>
> CLASSPATH:  d:\Program Files\jdk1.3;d:\Program
> Files\jsdkee1.3;d:\ant\lib;D:\Program
> Files\junit3.6;d:\xalan;d:\xalan\samples
>
> COMMAND ERROR MSG:
> D:\XALAN\SAMPLES\SIMPLE~1>javac SimpleTransform.java
> SimpleTransform.java:58: cannot resolve symbol
> symbol  : class SAXException
> location: package sax
> import org.xml.sax.SAXException;
>                    ^
> SimpleTransform.java:59: cannot resolve symbol
> symbol  : class XSLTProcessorFactory
> location: package xslt
> import org.apache.xalan.xslt.XSLTProcessorFactory;
>                              ^
> SimpleTransform.java:60: cannot resolve symbol
> symbol  : class XSLTInputSource
> location: package xslt
> import org.apache.xalan.xslt.XSLTInputSource;
>                              ^
> SimpleTransform.java:61: cannot resolve symbol
> symbol  : class XSLTResultTarget
> location: package xslt
> import org.apache.xalan.xslt.XSLTResultTarget;
>                              ^
> SimpleTransform.java:62: cannot resolve symbol
> symbol  : class XSLTProcessor
> location: package xslt
> import org.apache.xalan.xslt.XSLTProcessor;
>                              ^
> SimpleTransform.java:68: SimpleTransform clashes with package of same name
> public class SimpleTransform
>        ^
> SimpleTransform.java:73: cannot resolve symbol
> symbol  : class SAXException
> location: package sax
>            org.xml.sax.SAXException
>                       ^
> SimpleTransform.java:77: cannot resolve symbol
> symbol  : class XSLTProcessor
> location: class SimpleTransform
>     XSLTProcessor processor = XSLTProcessorFactory.getProcessor();
>     ^
> SimpleTransform.java:77: cannot resolve symbol
> symbol  : variable XSLTProcessorFactory
> location: class SimpleTransform
>     XSLTProcessor processor = XSLTProcessorFactory.getProcessor();
>                               ^
> SimpleTransform.java:81: cannot resolve symbol
> symbol  : class XSLTInputSource
> location: class SimpleTransform
>     processor.process(new XSLTInputSource("birds.xml"),
>                           ^
> SimpleTransform.java:82: cannot resolve symbol
> symbol  : class XSLTInputSource
> location: class SimpleTransform
>                       new XSLTInputSource("birds.xsl"),
>                           ^
> SimpleTransform.java:83: cannot resolve symbol
> symbol  : class XSLTResultTarget
> location: class SimpleTransform
>                       new XSLTResultTarget("birds.out"));
>                           ^
> 12 errors
>
> D:\XALAN\SAMPLES\SIMPLE~1>


Mime
View raw message