Accessing non-class files from JAR when using a Security Manager

Discussion in 'Java' started by Rob, Apr 20, 2004.

  1. Rob

    Rob Guest

    I have a web application in Tomcat 5, using j2sdk 1.4.2-03 that uses
    the itext library from sourceforge for writing PDF files. The font
    files for use in the PDF documents come from the itext JAR. When
    running Tomcat 5 without a security manager it works ok, but when
    using a security manager I get an error that says the font file cannot
    be found.

    If I use the AllPermissions permission in my catalina.policy (the
    policy file for Tomcat) the font file is found - so what are the
    actual Permissions I need to set to get it to work without having to
    resort to AllPermissions?

    Rob
     
    Rob, Apr 20, 2004
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Eric McIntyre

    Jar files in Jar files

    Eric McIntyre, May 24, 2004, in forum: Java
    Replies:
    1
    Views:
    643
    Roedy Green
    May 24, 2004
  2. cyril
    Replies:
    2
    Views:
    4,454
    cyril
    Aug 25, 2004
  3. harry
    Replies:
    1
    Views:
    714
    Sudsy
    Nov 22, 2004
  4. Arnold Peters
    Replies:
    0
    Views:
    889
    Arnold Peters
    Jan 5, 2005
  5. Replies:
    3
    Views:
    1,608
    Malte
    Mar 9, 2005
  6. muttley
    Replies:
    0
    Views:
    3,198
    muttley
    Oct 20, 2005
  7. cyberco
    Replies:
    4
    Views:
    4,234
    Roedy Green
    Feb 14, 2006
  8. Arnold Peters
    Replies:
    0
    Views:
    917
    Arnold Peters
    Jan 5, 2005
Loading...