It's not a secret anymore!
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
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.
I agree. Here's the link:
subject: WEB-INF\lib problem with xml jars
jQuery in Action, 3rd edition