Thursday, March 1, 2012

java.lang.RuntimePermission getClassLoader exception on portlet deployment


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.

Common WCM and Portal Interview questions.


what is credential vault
what is themes and skin
wht are the difference between portlet and servlet
what is the credential vault
what is wcm
what is was
what is LDAP
what is WMM
what is single sign on
what are the types of portlet
what is JSR286
have u work on it
how u do the syndication
how u create Pt
what is Authoring template
how u create Workflow
how u define personalisation rule in wcm
what is the difference between portletConfig.getInitParameter()
and PortletContext.getInitParameter()
what is portlet data
what is portlet preference
how to manage portlet page
how to enable single sign on on WAS
what are the different componet u are work on WCM
which data base u r using in portal
what is Cloudscape?
what is struts navigation
what is WSDL
what is copertaive portlet
what is interportlet communication
what is portlet preference
what is the life cycle of JSR168 portlet
what are the difference between JSR168 and IBM Api
what is content agregation
what is jsp component
where u save the jsp file for jsp component
what are the WCM api
how u create a contentr using WCM api
what are the main JSP page on Themes,skin and screen
what are the file u have made changes on Portal onfiguration
how to migrate Cloudscape to Db2 and LDAP
what are the schema on cloudscape
what is PUMA
How to create JNDI on WAS