When configuring CodeScene On-prem or doing the upgrade, you can encounter the following error:
No JNDI context specified.
application-start-failure:
java.io.IOException: Permission denied
This error typically occurs when the application is trying to access a resource, such as a database or configuration file, via JNDI but fails due to a missing or incorrect configuration. The 'Permission denied' error specifically suggests an issue with accessing a required folder or file due to insufficient permissions.
Solution:
To resolve this issue, follow these steps:
-
Check Folder Permissions: The error indicates that the application is unable to access a specific folder or file. Verify that the necessary folders have the correct read and write permissions. Ensure that CodeScene has the necessary write access to the folder where it's attempting to store or read the database.
-
Adjust Database Path Permissions: In some cases, the issue may be related to the database path permissions. You can resolve this by granting CodeScene write access to the database folder.
After adjusting the permissions, restart CodeScene, and the issue should be resolved.
Additional Information:
CodeScene generates a local database to store analysis configurations. By default, this database file is created in the resources folder, specifically as caacs_enterprise.db.mv.db
. This file is placed in the working directory—the location from which CodeScene is executed.
If you're facing issues with the database file or permissions, ensure that the working directory and database path are accessible and properly configured.