I have an XPages app that uses the JTDS Jar for access to MS SQL. It works fine on my 8.5.1 server but on my 8.5.2 server I get the following:
Error while executing JavaScript computed expression
Script interpreter error, line=6, col=56: Error calling method ‘getContextClassLoader()’ on java class ‘java.lang.Thread’
Access denied (java.lang.RuntimePermission getClassLoader)
Do I need to edit the java.policy file or do I need to include this JAR file differently for 8.5.2?
Subject: RE: Xpages Jar file Access Denied
Apparently something did change. Support suggested adding to the java.policy file (in …\Lotus\Domino\jvm\lib\security folder).
Add this to the grant section:
permission java.lang.RuntimePermission “getClassLoader”;
Sounds like this may get documented on the XPages Wiki.
Subject: RE: Xpages Jar file Access Denied
Thank you so much Steve for posting the solution. It worked for us.
(Glad to see someone else out there connecting Notes up to SQL Server)
Regards. Jerry.
Subject: RE: Xpages Jar file Access Denied
Where do you put your jar files for XPages on the server?
I seem to be having to use different locations for 8.5.1 and 8.5.2.