Technical Notes |
|
If you installed Reflection for the Web by using a SunONE application server on Solaris, errors may occur when you rename or delete a session or when you view a metering report. To avoid the errors, copy the code from this technical note into the java.policy file.
Renaming or deleting a session causes an access permission error:
"ErrorAn error has occurred and was logged to the trace logfile. Please terminate your Administrative WebStation session and log back in. If the problem persists, contact technical support and supply the trace.log file located in the ReflectionData/log directory." The exception is logged as follows:
"java.security.AccessControlException: access denied (java.io.FilePermission /<path to ReflectionData directory>/AccessControl/dynamic/<session name>.asp delete)"To avoid the error, add the following lines to the java.policy file:
<VM used by SunONE>/jre/lib/security/java.policygrant codeBase "file:<path to rweb webapp directory>/-"{permission java.io.FilePermission "<path to ReflectionData directory>/-", "delete";};Viewing a metering report may cause the following exception:
" Exception java.security.AccessControlException: access denied (java.io.FilePermission /<path to ReflectionData directory>/meter/logs/temp/<file name>.temp delete)" To avoid this error, add the following lines to the java.policy file:
<VM used by SunONE>/jre/lib/security/java.policygrant codeBase "file:<path to rwebmeter webapp directory>/-"{permission java.io.FilePermission "<path to ReflectionData directory>/meter/logs/temp/-", "delete";};