<< I'm trying to create script libraries using DXL - possible? | Home | LotusScript.doc v2 - required Java heap changes >>

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.



Re: LotusScript.doc v2 - java.policy changes required

Did I miss something? Is v2 out?
Avatar: Mikkel Heisterberg

Re: LotusScript.doc v2 - java.policy changes required

Sorry - no you didn't miss it. Version 2 is out as a prebeta with one person to see how it runs on other machines than my own. It is however going to be out in <u>beta</u> soon given that no "biggies" turn up. I guess that I should have made that clear.
Avatar: Mikkel Heisterberg

Re: LotusScript.doc v2 - java.policy changes required

Avatar: Sebastian Thoene

Re: LotusScript.doc v2 - java.policy changes required

Hej Mikkel,

What do you think? Isn't it better to use the users policy file for this change or java.pol?

With a new Domino/Notes Update this file might be overwritten ...

Regards,
Sebastian

{java.security}
....
# The default is to have a single system-wide policy file,
# and a policy file in the user's home directory.
policy.url.1=file:${java.home}/lib/security/java.policy
policy.url.2=file:${java.home}/lib/security/java.pol
policy.url.3=file:///${user.home}/.java.policy
....

Add a comment Send a TrackBack