フォーラム

ホーム » 1. Marketplace App Development

構造的に表示 平面上に表示 ツリー上に表示
toggle
Laxman Rana
Portlet config page doesnt work with PACL but no errors are printed ?
2012/12/27 20:37
答え

Laxman Rana

ランク: Junior Member

投稿: 42

参加年月日: 2012/02/29

最近の投稿

I have created a simple portlet using the Liferay MVC framework and have added a ConfigurationActionImpl class and configuration.jsp for portlet settings.
I have used <liferay-ui:message > tag to show labels.

- Without PACL it works fine.
- With PACL it is not showing the values mapped to the keys in properties file. It is showing the keys intact. No errors are reported in the console like with other PACL errors.
These two lines are getting printed when i am deploying the portlet

Attempted to read file global-configuration.properties
Attempted to read file C:\liferay-portal-6.1.1-ce-ga2\tomcat-7.0.27\bin\service.properties


I have done following entries in liferay-plugin-package.properties

security-manager-get-bean-property=\
com.liferay.portal.util.PortalUtil,\
com.liferay.portlet.documentlibrary.model.DLFileEntry,\
com.liferay.portlet.documentlibrary.service.DLFileEntryServiceUtil,\
com.liferay.portlet.documentlibrary.model.DLFileRank,\
com.liferay.portlet.PortletPreferencesFactoryUtil,\
com.liferay.portal.kernel.cache.CacheRegistryUtil,\
com.liferay.portal.kernel.cache.key.CacheKeyGeneratorUtil,\
com.liferay.portal.kernel.language.LanguageUtil,\
com.liferay.portal.kernel.bean.PortalBeanLocatorUtil,\
com.liferay.portal.kernel.deploy.hot.HotDeployUtil,\
com.liferay.portal.kernel.servlet.DirectRequestDispatcherFactoryUtil,\
com.liferay.portal.kernel.servlet.DirectServletRegistryUtil,\
com.liferay.portal.kernel.configuration.ConfigurationFactoryUtil,\
com.liferay.portal.kernel.staging.LayoutStagingUtil,\
com.liferay.portal.kernel.dao.shard.ShardUtil,\
com.liferay.portal.kernel.dao.db.DBFactoryUtil,\
com.liferay.portal.kernel.dao.orm.FinderCacheUtil,\
com.liferay.portal.kernel.dao.orm.EntityCacheUtil,\
com.liferay.portal.security.auth.AuthTokenUtil,\
com.liferay.portal.service.permission.PortletPermissionUtil,\
com.liferay.portal.kernel.util.PropsUtil,\
com.liferay.portal.kernel.util.HttpUtil,\
com.liferay.portal.kernel.util.HtmlUtil,\
com.liferay.portal.kernel.util.LocaleUtil

security-manager-services=\
com.liferay.portlet.documentlibrary.service.DLFileEntryService#getFileEntryByUuidAndGroupId,\
com.liferay.portlet.documentlibrary.service.DLFileEntryService#getFileAsStream,\
com.liferay.portlet.documentlibrary.service.DLFileEntryLocalService#getFileAsStream,\
com.liferay.portlet.documentlibrary.service.DLFileRankLocalService#updateFileRank,\
com.liferay.portlet.documentlibrary.service.DLAppHelperLocalService#getFileAsStream,\
com.liferay.portlet.asset.service.AssetEntryLocalService#incrementViewCounter,\
com.liferay.portal.service.GroupLocalService,\
com.liferay.portal.service.PortletPreferencesLocalService,\
com.liferay.portal.service.LayoutLocalService,\
com.liferay.portal.service.LayoutSetLocalService

security-manager-files-read=\
${java.io.tmpdir}${file.separator}-,\
${liferay.web.portal.dir}${file.separator}html${file.separator}taglib${file.separator}-,\
${liferay.web.portal.dir}${file.separator}html${file.separator}themes${file.separator}-


security-manager-files-write=${java.io.tmpdir}${file.separator}-


Thanks in advance ....
Ray Augé
RE: Portlet config page doesnt work with PACL but no errors are printed ?
2013/01/07 4:52
答え

Ray Augé

LIFERAY STAFF

ランク: Liferay Legend

投稿: 1195

参加年月日: 2005/02/07

最近の投稿

This is due to an error being swallowed by the portal when passing through delegation of requests which occurs in the config code.

I'm formualting the appropriate details to resolve this in a post shortly.

Appologies for the delay.
Ray Augé
RE: Portlet config page doesnt work with PACL but no errors are printed ?
2013/01/07 8:50
答え

Ray Augé

LIFERAY STAFF

ランク: Liferay Legend

投稿: 1195

参加年月日: 2005/02/07

最近の投稿

Laxman, could you show me how you have configured your localization files?

There are several ways that could be done and I want to make sure I check your case.
Ray Augé
RE: Portlet config page doesnt work with PACL but no errors are printed ?
2013/01/07 16:37
答え

Ray Augé

LIFERAY STAFF

ランク: Liferay Legend

投稿: 1195

参加年月日: 2005/02/07

最近の投稿

Ok, from my tests the only thing you are missing is a declaration for:

1security-manager-get-bean-property=\
2     ...,\
3     com.liferay.portlet.PortletConfigFactoryUtil,\
4     ...


Can you test this and let me know?
Laxman Rana
RE: Portlet config page doesnt work with PACL but no errors are printed ?
2013/01/07 22:24
答え

Laxman Rana

ランク: Junior Member

投稿: 42

参加年月日: 2012/02/29

最近の投稿

Thank you very much Raymond ... It worked ...!! emoticon