• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

WEB-INF\lib problem with xml jars

 
Ronald Whalen
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
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:
xmlParserAPIs.jar
xalan.jar
xercesImpl.jar
xml-apis.jar
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?
Thanks,
Ronald Whalen
 
Mike Curwen
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic