java.lang.RuntimePermission getClassLoader issue while deploying portlet:-
When you deploy portlet in a in new environment you might get portlet error with below stack trace:--
Error occurred during portlet request dispatcher inclusion
java.security.AccessControlException: Access denied (java.lang.RuntimePermission getClassLoader)
at java.security.AccessController.checkPermission(AccessController.java:103)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:558)
at com.ibm.ws.security.core.SecurityManager.checkPermission(SecurityManager.java:214)
at java.lang.Thread.getContextClassLoader(Thread.java:497)
at org.apache.taglibs.standard.tag.common.fmt.BundleSupport.findMatch(Unknown Source)
at org.apache.taglibs.standard.tag.common.fmt.BundleSupport.findMatch(Unknown Source)
at org.apache.taglibs.standard.tag.common.fmt.BundleSupport.getLocalizationContext(Unknown Source)
Solution:-- For the non root user check for access rights by using chown -R newadmuser:newadmuser
if you are using cluster then also check for dmgr for all folders.