フォーラム

ホーム » 1. Marketplace App Development

構造的に表示 平面上に表示 ツリー上に表示
toggle
Samir Bhatt
PACL Errors when security manger is enabled "Attempted to get class loader"
2013/04/10 23:29
答え

Samir Bhatt

ランク: Youngling

投稿: 0

参加年月日: 2009/08/26

最近の投稿

Hi,

We are planning to publish our component on Liferay Marketplace. We enabled security manager and added respective properties. We are stuck with following security related errors. We are not sure what security properties, we will need to add in liferay-plugin-package.properties. Here is the error we are getting on console.

Caused by: java.lang.SecurityException: Attempted to get class loader
at com.liferay.portal.security.pacl.checker.BaseChecker.throwSecurityException(BaseChecker.java:259)
at com.liferay.portal.security.pacl.checker.RuntimeChecker.checkPermission(RuntimeChecker.java:89)
at com.liferay.portal.security.pacl.ActivePACLPolicy.checkPermission(ActivePACLPolicy.java:55)
at com.liferay.portal.security.lang.PortalSecurityManager.checkPermission(PortalSecurityManager.java:103)
at com.liferay.portal.security.lang.PortalSecurityManager.checkPermission(PortalSecurityManager.java:74)
at java.lang.Thread.getContextClassLoader(Thread.java:1364)
at org.zkoss.zk.ui.impl.AbstractWebApp.loadBuild(AbstractWebApp.java:367)
at org.zkoss.zk.ui.http.WebManager.<init>(WebManager.java:115)
at org.zkoss.zk.ui.http.DHtmlLayoutServlet.init(DHtmlLayoutServlet.java:101)
at javax.servlet.GenericServlet.init(GenericServlet.java:160)
at com.liferay.portal.kernel.servlet.SecureServlet.doPortalInit(SecureServlet.java:95)
at com.liferay.portal.kernel.util.BasePortalLifecycle.portalInit(BasePortalLifecycle.java:42)

We are also getting one warning as shown bellow.

08:27:23,623 WARN [pool-2-thread-3][RuntimeChecker:256] Attempted to access declared members

Can anyone throw some idea on how we can solve these issues?

Regards,

Samir Bhatt
Tejas Kanani
RE: PACL Errors when security manger is enabled "Attempted to get class loa
2013/04/11 4:23
答え

Tejas Kanani

ランク: Youngling

投稿: 0

参加年月日: 2009/01/06

最近の投稿

Hi Samir,

Check below link regarding Class Loader Security in Liferay PACL, it might help you.
http://www.liferay.com/documentation/liferay-portal/6.1/development/-/ai/lp-6-1-dgen11-class-loader-security-0

Thanks,
Tejas
Tejas Kanani
RE: PACL Errors when security manger is enabled "Attempted to get class loa
2013/04/11 4:28
答え

Tejas Kanani

ランク: Youngling

投稿: 0

参加年月日: 2009/01/06

最近の投稿

As per the details in thread below by Ray, similar error is going to be fix in later release.
http://www.liferay.com/community/forums/-/message_boards/message/21718891
Raymond Augé
RE: PACL Errors when security manger is enabled "Attempted to get class loa
2013/04/11 7:25
答え

Raymond Augé

ランク: Youngling

投稿: 0

参加年月日: 2005/02/07

最近の投稿

Tejas is correct. This error has been solved.

A release containing fixes for all the known PACL issues, as well as a semi-automated tool for generating the PACL policy, should be out soon.
Samir Bhatt
RE: PACL Errors when security manger is enabled "Attempted to get class loa
2013/04/11 7:27
答え

Samir Bhatt

ランク: Youngling

投稿: 0

参加年月日: 2009/08/26

最近の投稿

Thanks Ray & Tejas for clarifying the same. Ray do you know tentative timeline of the release?

Regards,

Samir Bhatt
Raymond Augé
RE: PACL Errors when security manger is enabled "Attempted to get class loa
2013/04/11 11:17
答え

Raymond Augé

ランク: Youngling

投稿: 0

参加年月日: 2005/02/07

最近の投稿

usha Gundala
RE: PACL Errors when security manger is enabled "Attempted to get class loa
2013/04/18 22:43
答え

usha Gundala

ランク: Youngling

投稿: 0

参加年月日: 2013/04/18

最近の投稿

RE: PACL Errors when security manger is enabled "Attempted to get class loa

Forums

To access the Developer Forum, please login to your Liferay.com account if you are already a registered developer or register to become a developer.