Foren
Liferay 6.2 - Site template propagation error
Ilenia Zedda, geändert vor 8 Jahren.
Liferay 6.2 - Site template propagation error
New Member Beiträge: 3 Beitrittsdatum: 23.01.13 Neueste Beiträge
Hi,
I'm using Liferay 6.2 EE sp10 on tomcat with liferay security enabled.
When creating a new site using a site template, the DLPortletDataHandler throws a ClassCastException and the site template is not applied to the site.
java.lang.ClassCastException: com.sun.proxy.$Proxy770 cannot be cast to com.liferay.portal.dao.orm.hibernate.DynamicQueryImpl
at com.liferay.portal.dao.orm.hibernate.PropertyImpl.in(PropertyImpl.java:211)
at com.liferay.portlet.documentlibrary.lar.DLPortletDataHandler$3.addCriteria(DLPortletDataHandler.java:456)
This happens on a clean liferay instance when the security-manager is enabled.
Any suggestions on how to fix this?
I'm using Liferay 6.2 EE sp10 on tomcat with liferay security enabled.
When creating a new site using a site template, the DLPortletDataHandler throws a ClassCastException and the site template is not applied to the site.
java.lang.ClassCastException: com.sun.proxy.$Proxy770 cannot be cast to com.liferay.portal.dao.orm.hibernate.DynamicQueryImpl
at com.liferay.portal.dao.orm.hibernate.PropertyImpl.in(PropertyImpl.java:211)
at com.liferay.portlet.documentlibrary.lar.DLPortletDataHandler$3.addCriteria(DLPortletDataHandler.java:456)
This happens on a clean liferay instance when the security-manager is enabled.
Any suggestions on how to fix this?
Jan Geißler, geändert vor 8 Jahren.
RE: Liferay 6.2 - Site template propagation error
Liferay Master Beiträge: 735 Beitrittsdatum: 05.07.11 Neueste Beiträge
Does the problem also occur when security has been disabled?
I do not advise to disable security, but maybe this helps to pinpoint the problem.
I do not advise to disable security, but maybe this helps to pinpoint the problem.
Ilenia Zedda, geändert vor 8 Jahren.
RE: Liferay 6.2 - Site template propagation error
New Member Beiträge: 3 Beitrittsdatum: 23.01.13 Neueste Beiträge
Hi Jan,
the problem doesn't seem to occur when security is disabled.
I need the liferay security manager enabled as I'm deploying an app for the marketplace.
The error occurs on a OOTB Liferay Instance.
the problem doesn't seem to occur when security is disabled.
I need the liferay security manager enabled as I'm deploying an app for the marketplace.
The error occurs on a OOTB Liferay Instance.
Jan Geißler, geändert vor 8 Jahren.
RE: Liferay 6.2 - Site template propagation error (Antwort)
Liferay Master Beiträge: 735 Beitrittsdatum: 05.07.11 Neueste Beiträge
Possibly related to this bug?
https://issues.liferay.com/browse/LPS-41233
https://issues.liferay.com/browse/LPS-41233
Ilenia Zedda, geändert vor 8 Jahren.
RE: Liferay 6.2 - Site template propagation error
New Member Beiträge: 3 Beitrittsdatum: 23.01.13 Neueste Beiträge
Yeah, by looking at the code in DLPortletDataHandler it's using a DynamicQuery as subselect, so I guess that's the issue!
Hopefully will be fixed soon, as it prevents from using the default liferay site templates!
Thanks Jan!
Hopefully will be fixed soon, as it prevents from using the default liferay site templates!
Thanks Jan!
Jorge Díaz, geändert vor 8 Jahren.
RE: Liferay 6.2 - Site template propagation error
Liferay Master Beiträge: 753 Beitrittsdatum: 09.01.14 Neueste Beiträge
The issue LPS-41233 (DynamicQuery subselects do not work when PACL is enabled) is fixed at last Liferay 7.0 Beta 4, I was not able to reproduce it.
At 6.2 version is not solved but if you are using a Enterprise version (6.2 SP10) you can create a ticket at LESA in order to obtain a hotfix.
Regards,
Jorge
At 6.2 version is not solved but if you are using a Enterprise version (6.2 SP10) you can create a ticket at LESA in order to obtain a hotfix.
Regards,
Jorge
Alexandru Georgescu, geändert vor 8 Jahren.
RE: Liferay 6.2 - Site template propagation error
New Member Beiträge: 5 Beitrittsdatum: 05.09.12 Neueste Beiträge
Does anybody have any idea if this happens to other Liferay features? Because the PropertyImpl class seems to be used in many places. I am trying to figure out how many of our product features will fail (or might fail) in case we enable the security manager.
Erick Brenes, geändert vor 5 Jahren.
RE: Liferay 6.2 - Site template propagation error
New Member Beiträge: 3 Beitrittsdatum: 13.01.15 Neueste Beiträge
I found that this happens only if the liferay portal has not been set. I mean the database is empty and it is the first time the server runs. So I recommend to have security disabled, run the server the first time so the database is populated with the portal tables. after that shutdown the server and do the next configurations:
1. Add the next property in the portal-ext.properties file:
2. Add the next parameters in the /tomcat-7.0.62/bin/setenv.sh file
3. Open the next file: liferay-portal-6.2-ce-ga6/tomcat-7.0.62/conf/server.xml
Find the <Host> tag and add the next attribute: deployXML="true". So it looks like this:
1. Add the next property in the portal-ext.properties file:
portal.security.manager.strategy=liferay
2. Add the next parameters in the /tomcat-7.0.62/bin/setenv.sh file
-Djava.security.manager -Djava.security.policy==$CATALINA_BASE/conf/catalina.policy
3. Open the next file: liferay-portal-6.2-ce-ga6/tomcat-7.0.62/conf/server.xml
Find the <Host> tag and add the next attribute: deployXML="true". So it looks like this:
<host name="localhost" appbase="webapps" unpackwars="true" autodeploy="true" deployxml="true"></host>