Gulli --
Thanks for your excellent explanation. However, it is our intention to
allow you to place a single copy of xalan.jar in ${tomcat_home}/lib
where it is available to all webapps but allow you to place
application-specific extensions in the ${webapp}/?.war file or in a
${webapp}/WEB-INF/lib/?.jar file or in a
${webapp}/WEB-INF/classes/?.class file. You should also be allowed to
place general (ie non-application specific) extensions in
${tomcat_hom}/lib or other directories in Tomcat's classpath.
The Xalan extension mechanism is designed to use the webapp's (to be
more precise the current thread's) context class loader to load the
extension regardless of where xalan.jar is placed.
This is what I'm investigating. Any additional comments are
appreciated.
Gary
Gunnlaugur Thor Briem wrote:
> ...
> Hope that leaves no trace of confusion! :)
>
> - Gulli
>
> -----Original Message-----
> From: Gary L Peskin [mailto:[EMAIL PROTECTED]]
> Sent: 13. agust 2001 18:14
> To: [EMAIL PROTECTED]
> Subject: Re: extension functions and Tomcat
>
> Well, that will work but it shouldn't be necessary to copy xalan.jar
> into the web-info/lib directory of every webapp. I'll look into this
> further but I'm glad that this is working for you now.
>
> Gary
>
> Dmitry Beransky wrote:
> > Gary,
> >
> > I'm including the environment info at the end of the message. However,
> > with Gulli's help I was able to fix the problem. It turned out, all I had
> > to do was to move xalan.jar out of ${tomcat_home}/lib and into
> > ${web_app}/web-info/lib. I hope, this is an appropriate fix.
> >
> > Thanks
> > Dmitry
> >
> > #---- BEGIN writeEnvironmentReport($Revision: 1.5 $): Useful properties
> > found: ----
> > java.version=1.3.0
> > #---- BEGIN Listing XML-related jars in: foundclasses.java.class.path ----
> > xerces.jar.apparent.version=xerces.jar potential-ERROR
> present-unknown-version
> > xerces.jar.path=C:\jakarta-tomcat-3.2.2\bin\..\lib\xerces.jar
> > #----- END Listing XML-related jars in: foundclasses.java.class.path -----
> > version.JAXP=1.1
> > java.ext.dirs=c:\javasoft\jre\1.3\lib\ext
> > version.crimson=not-present
> >
> java.class.path=..\classes;..\lib\ant.jar;..\lib\jasper.jar;..\lib\servlet.j
> ar;..\lib\webserver.jar;..\lib\xerces.jar
> > version.xerces=Xerces 1.4.2
> >
> sun.boot.class.path=c:\javasoft\jre\1.3\lib\rt.jar;c:\javasoft\jre\1.3\lib\i
> 18n.jar;c:\javasoft\jre\1.3\lib\sunrsasign.jar;c:\javasoft\jre\1.3\classes
> > version.DOM.draftlevel=2.0fd
> > version.xalan2=Xalan;Java;Xalan Java 2.2.D8;
> > version.DOM=2.0
> > version.xalan1=not-present
> > #----- END writeEnvironmentReport: Useful properties found: -----
> > # YAHOO! Your environment seems to be OK.
> >
> > At 10:08 PM 8/11/2001, you wrote:
> > >Dmitry --
> > >
> > >All current versions of XalanJ2 should be using the correct Tomcat class
> > >loader. Please provide details as to the directory where xalan.jar is
> > >located and and the directory where the extension is located. What
> > >version of XalanJ are you using? What version of the JDK are you
> > >using? What error message are you receiving (with stack trace if
> > >possible).
> > >
> > >
> > >Thanks,
> > >Gary