Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem with Tomcat, Xerces and Xalan

 
Rami Sawas
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I downloaded the following:
jakarta-tomcat-5.0.18
j2sdk1.4.2_03
Tomcat is working fine with SDK. Then I decided to use the following:
XML Parser: Xerces
XSLT Processor: Xalan
Been told only to download Xalan because it also includes Xerces. So I downloaded this:
xalan-j_2_5_2-bin
Straight forward questions:
1) Where do I unzip the Xalan to? Where do I put its files...in the SDK directory?
2) How do I set the environment variables in this case?
I downloaded a ZIP file from the Internet cotaining the source code of a shopping cart. On a seperate PDF file it says the following setup steps:
A - copy framework.war to %TOMCAT_HOME%\webapps
B - modify %TOMCAT_HOME%\bin\tomcat.bat so CLASSPATH contains xerces.jar BEFORE %TOMCAT_HOME%\lib\xml.jar
A - Does this mean unzip the shopping cart file into the Tomcat specified folder?
B - Where do you do this?
This is what I did to make Tomcat and SDK work together...
name: JAVA_HOME
path: C:\j2sdk1.4.2_03 (must be the directory you installed the sdk)
then edit PATH and add this to the value
%JAVA_HOME%\bin

Thank you and look forward to hearing from you.
Rami

Edit: Lasse changed the subject of your post to something more appropriate
[ February 04, 2004: Message edited by: Lasse Koskela ]
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In fact, Xalan does not include Xerces. You need to download Xerces separately.
Regarding what to unzip and where, the golden rule is only .jar files matter in the classpath. In other words, unzip the xalan.zip (and xerces.zip) anywhere and only copy the .jar files (xalan.jar, xercesImpl.jar) into the "lib" directory according to whatever guide you're following.
 
Rami Sawas
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I found the .jar files, I would just have to make a copy of it and paste it in the 'lib'directory. What's 'lib' directory by the way?
Thank you.
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Rami Sawas:
What's 'lib' directory by the way?
It's either your web application's lib directory (WEB-INF/lib) or the shared lib directory of Tomcat (just find the other .jar files from the Tomcat directory.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic