This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Tomcat and the fly likes WEB-INF\lib problem with xml jars Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "WEB-INF\lib problem with xml jars" Watch "WEB-INF\lib problem with xml jars" New topic

WEB-INF\lib problem with xml jars

Ronald Whalen
Ranch Hand

Joined: Mar 27, 2001
Posts: 38
I am using tomcat 3.2.1. Docs say that jars placed in WEB-INF\lib directory will be added to the classpath. I am attempting to use xalan & xerces jars:
I placed them in the WEB-INF\lib directory but am receiving the following error:
javax.xml.transform.TransformerFactoryConfigurationError: Provider for javax.xml.transform.TransformerFactory cannot be found
at javax.xml.transform.TransformerFactory.newInstance(Unknown Source)
Placiing the jars in the jre/lib/ext folder works fine. I think this may be a class loader issue. any ideas?
Ronald Whalen
Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

Try putting them into the <TOMCAT_HOME>/lib directory. That way, they are available to any application that needs it.

You are perhaps running into a problem with your application trying to use Tomcat's xerces , or vice versa.
subject: WEB-INF\lib problem with xml jars
Similar Threads
servlets in jar
Application Level Classpath Setting
Custom Tag
Connection pooling with DBCP
Tomcat Mapping to Libraries