File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes XML and Related Technologies and the fly likes Tomcat server? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Practical Unit Testing with TestNG and Mockito this week in the Testing forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Reply Bookmark "Tomcat server?" Watch "Tomcat server?" New topic
Author

Tomcat server?

Darryl Andrew
Greenhorn

Joined: Jun 21, 2001
Posts: 12
Hi does anyone know how to specify the classpath to xalan.jar and xerces.jar in the tomcat server so that my servlet would be able to run from any browser?
I'm able to compile my java file after export the classpath to include xalan.jar and xerces.jar but this is only for my local shell. If i'm not wrong, we have to specify it in tomcat so tat i would be able to see the servlet from the browser. Am i right?
Pls help. Thank you.
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 11862
This sounds a little mixed up. If you want a browser to run an applet that uses xalan.jar etc. thats one thing - entirely separate from having a servlet that uses xalan.jar etc.
If you look at the startup batch file for Tomcat you can see that it sets up classpath environment variables. You can modify that batch file.
Bill

Java Resources at www.wbrogden.com
Madhav Lakkapragada
Ranch Hand

Joined: Jun 03, 2000
Posts: 5040
Edited: OOPS, Looks like I am competing with you Bill. Sorry!

While there are more than one ways to do it, I would just
copy the two jar files into the lib folder of tomcat.
That way when you start tomcat, it will automatically put
them into the class path. Also, the reason
I suggest this is that this is the suggested method when you are installing Cocoon.
The alternate way would be to edit the scripts, which I
dare not.
regds.
- satya

[This message has been edited by Madhav Lakkapragada (edited June 22, 2001).]


Take a Minute, Donate an Hour, Change a Life
http://www.ashanet.org/workanhour/2006/?r=Javaranch_ML&a=81
 
 
subject: Tomcat server?
 
Threads others viewed
Working with new tomcat server
XML & XSL in Servlet
Exception in thread "main" java.lang.No Class Def Found Error : org/w3c/dom/Node
Default CLASSPATH for multi-user systems
Xalan & Xerces....
developer file tools

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture