<< 03 January 2009 | Home | 05 January 2009 >>

LotusScript.doc v2 - java.policy changes required

Strong: Just to clarify - LotusScript.doc v2 isn't out yet. It is out in a very, very limited prebeta 1 (one person besides me) in preparation for a more general beta process hopefully in the very near future. See this post for a clarification on the progress.

LotusScript.doc v2 uses java.util.logging as its underlying logging framework. To spice things up a little it also uses some internal magic to ease troubleshooting and provide easy debugging. One of these tricks is to print out the XPath expression of the element being processed in the log. More on this another time.

In order to use java.util.logging and set custom Handlers and Formatters you need to tweek the java.policy a little bit. It's quite easy as the only thing you have to add to your <Notes binary directory</jvm/lib/security/java.policy file is the following in the first "grant" section:

permission java.util.logging.LoggingPermission "control";

Here is a link to a default java.policy file and a changed java.policy file.