Liferay is a Gartner Magic Quadrant Leader for the Sixth Year! Find out why

Vista Combinata Vista Piatta Vista ad Albero
toggle
Salman Jamali
PACL Failing - Attempted to create a class loader
22 febbraio 2013 7.17
Risposta

Salman Jamali

Punteggio: New Member

Messaggi: 5

Data di Iscrizione: 20 maggio 2010

Messaggi recenti

Hi All,

I am in the middle of the PACL test->edit->repeat cycle but kind of stuck on the following (it's a hook attempting to import layouts):

Caused by: java.lang.SecurityException: Attempted to create a 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:80)
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.SecurityManager.checkCreateClassLoader(SecurityManager.java:594)
at java.lang.ClassLoader.checkCreateClassLoader(ClassLoader.java:177)
at java.lang.ClassLoader.<init>(ClassLoader.java:225)
at com.thoughtworks.xstream.core.util.CompositeClassLoader.<init>(CompositeClassLoader.java:56)
at com.thoughtworks.xstream.XStream.<init>(XStream.java:381)
at com.thoughtworks.xstream.XStream.<init>(XStream.java:336)
at com.liferay.portal.lar.PortletDataContextImpl.initXStream(PortletDataContextImpl.java:1491)
at com.liferay.portal.lar.PortletDataContextImpl.<init>(PortletDataContextImpl.java:176)
at com.liferay.portal.lar.LayoutImporter.doImportLayouts(LayoutImporter.java:303)
at com.liferay.portal.lar.LayoutImporter.importLayouts(LayoutImporter.java:147)
at com.liferay.portal.service.impl.LayoutLocalServiceImpl.importLayouts(LayoutLocalServiceImpl.java:1382)


Any help will be appreciated, thanks!
Ray Augé
RE: PACL Failing - Attempted to create a class loader
22 febbraio 2013 7.30
Risposta

Ray Augé

LIFERAY STAFF

Punteggio: Liferay Legend

Messaggi: 1172

Data di Iscrizione: 7 febbraio 2005

Messaggi recenti

This I think will be addressed by fixes we are working on now.

These fixes are not yet committed. However, they are nearing that stage.
Salman Jamali
RE: PACL Failing - Attempted to create a class loader
23 febbraio 2013 7.43
Risposta

Salman Jamali

Punteggio: New Member

Messaggi: 5

Data di Iscrizione: 20 maggio 2010

Messaggi recenti

Thanks for the feedback Ray, I will see if we can tweak our code to bypass this.