Yes, I wrote a servlet that uses Xalan-Java. You're in for a ride,
depending on the version of Tomcat you're using.

(1) if you're willing to use the same parser that Tomcat uses (ProjectX
or Crimson for Tomcat 3.x and 4.x respectively), you can just put
xalan.jar in the CLASSPATH.
(2) if you need to use Xerces, or if you need to use Xalan 2 (which
comes with a modified copy of JAXP):
      (a) if you're under Tomcat 4.0 AND if you're not using JSP,
          delete crimson.jar from the lib directory. Otherwise the
          version of JAXP 1.1 included will conflict and cause a 
          "Sealing violation" SecurityException. This is due to the
          way Sun packaged it--it chokes if a ClassLoader attempts
          to load one of those "sealed" packages from another JAR
      (b) if you're under Tomcat 3.x, I think you actually have
          to replace the parser Tomcat uses with Xerces, because 
          otherwise you'll get a MissingMethodError (the XML parser
          shipping with Tomcat 3.x has an older version of the DOM 
          without namespace support).

I don't know what you can do if you're on Catalina AND you need to keep
using Jasper--I'd be interested in the answer myself....

regards,
kd

[EMAIL PROTECTED] wrote:
> 
> Hi -
> I was wondering if anyone has implemented Xalan-Java and Tomcat?  It looks
> like all I need to do is include xalan.jar and xerces.jar in the
> tomcat/webapps/root/WEB-INF/lib folder.  Is this correct?  Are there any
> potential issues I should be aware of?
> 
> Thanks in advance,
> Tracy Getz
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to