wood burning stoves 2.0*
The moose likes Tomcat and the fly likes Endorsed Directory 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 "Endorsed Directory" Watch "Endorsed Directory" New topic
Author

Endorsed Directory

Jayaseelan Shanmugam
Greenhorn

Joined: Mar 06, 2005
Posts: 7
Following are the libraries which are being used in my application for PDF report generation.
1. xalan-2.6.0.jar
2. xercesImpl-2.6.2.jar
3. xml-apis.jar

Problem is I have compulsorily to put these libraries in the tomcat common/endorsed folder or otherwise reports are not generated duing run time. I have tried to keep all the libraries in my application specific lib folder but it does not works. Please do the needful
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Jayaseelan
Welcome to JavaRanch!

We're pleased to have you here with us in the Tomcat forum, but there are a few rules that need to be followed, and one is that proper names are required. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.

In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.

You can change it here


Thank you
[ May 19, 2006: Message edited by: Ben Souther ]

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Sivaraman Lakshmanan
Ranch Hand

Joined: Aug 02, 2003
Posts: 231
Hi Jayaseelan,
I am not sure which API you use for PDF generation. But I have tried with itext-1.3.jar and jcpagelayout451K.jar. Both doesn't need those xml's to be placed in the common/endrosed folder


Regards,
Sivaraman.L
Jayaseelan Shanmugam
Greenhorn

Joined: Mar 06, 2005
Posts: 7
Hi Sivaraman,
As you mentioned using itext library is one way of genearting reports in java. The other way aroud is using fop to generate PDF or CSV reports. Here the process is transforming XSLT(format) and XML (data holder) by using FOP libraries.

Here the main issue is I can not use the XML processing libraries which are kept inside my application specific lib folder. System expects those libraries with in the tomcat endorsed directory instead application specific libraries.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60810
    
  65

"Jayaseelan S", Ben's request that you change your display name to adhere to JavaRanch standards was not a suggestion. Valid display names are mandatory for participation on the Ranch. Please change your display name as instructed prior to your next post or your account will be closed.

bear
JavaRanch Sheriff


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Jayaseelan S,

Thank you for changing it.
However, the policy states that there must be a full last name.
It is OK to use an initial for the first name.

Please make that update.
Thanks,
-Ben
Sivaraman Lakshmanan
Ranch Hand

Joined: Aug 02, 2003
Posts: 231
Hi,
What problem do you face by keeping those jars in common/endrosed dir
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Jayaseelan Shanmugam,
Thank you for fixing your name.

Good-Luck with your question.
Jayaseelan Shanmugam
Greenhorn

Joined: Mar 06, 2005
Posts: 7
Hi Sivaraman,
Since the Web server in our production environment is shared one, I can not deploy the third party libraries into the server endorsed directory.

Thx & Regards,
JaySee
Sivaraman Lakshmanan
Ranch Hand

Joined: Aug 02, 2003
Posts: 231
Hi,
Hope this URL may help you. Here in this article says that all the jars are kept only in web applications lib directory.
Could you post the stack trace...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Endorsed Directory
 
Similar Threads
Issue with jboss\lib\endorsed jar loading
What is the concept of endorsed directory??
Creating a endorsed folder on the client PC
Where to keep shared jar files of an ear file inside JBOSS
JAR files conflict issue