Attachmate Worldwide  |   Contact Us  |   NetIQ.com
Home » Support » Solution Library

Technical Notes

Reflection for the Web File Permissions with Sun ONE Application Server
Technical Note 1821
Last Reviewed 10-May-2007
Applies To
Reflection for the Web version 7.0 or higher
Sun ONE Application Server
Summary

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.

Cannot Rename or Delete a Session

Renaming or deleting a session causes an access permission error:

"Error
An 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:

  1. In a text editor, open
<VM used by SunONE>/jre/lib/security/java.policy
  1. Insert the actual paths and add these lines to the file:
grant codeBase "file:<path to rweb webapp directory>/-"
{
permission java.io.FilePermission "<path to ReflectionData directory>/-", "delete";
};
  1. Save the file and restart the application server.
  2. Verify that you can rename or delete a session.

Metering Report Does Not Display

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:

  1. In a text editor, open
<VM used by SunONE>/jre/lib/security/java.policy
  1. Insert the actual paths and add these lines to the file:
grant codeBase "file:<path to rwebmeter webapp directory>/-"
{
permission java.io.FilePermission "<path to ReflectionData directory>/meter/logs/temp/-", "delete";
};
  1. Save the file and restart the application server.
  2. Verify that you can open the metering report.
Related Technical Notes
9988 Reflection for the Web Technical Notes

Did this technical note answer your question?

Yes    No    Somewhat     Not sure yet

Additional comments about this tech note:

Need further help? For technical support, please contact Support.