Foren

Deployment of wol-portlet.war overrides my public pages

Paul Ho, geändert vor 15 Jahren.

Deployment of wol-portlet.war overrides my public pages

New Member Beiträge: 2 Beitrittsdatum: 15.05.08 Neueste Beiträge
Before I deployed the wol-portlet, I had public and private pages. After copying the wol-portlet-5.1.0.1.war into Liferay's deploy directory, my private pages disappeared and my public pages were overridden. Why is this happening? All I want are the wol portlets added to my original public pages.
thumbnail
Peter Shin, geändert vor 15 Jahren.

RE: Deployment of wol-portlet.war overrides my public pages

Regular Member Beiträge: 121 Beitrittsdatum: 24.09.07 Neueste Beiträge
Hi Paul,

There's a portal.properties file in the wol-portlet that is overriding the portal-ext.properties file.

Its located here - wol-portlet\docroot\WEB-INF\src
thumbnail
Josh Asbury, geändert vor 15 Jahren.

RE: Deployment of wol-portlet.war overrides my public page

Expert Beiträge: 498 Beitrittsdatum: 08.09.06 Neueste Beiträge
Thanks for this, Peter. Should we create a portal-ext.properties file for the WOL?
thumbnail
Josh Asbury, geändert vor 15 Jahren.

RE: Deployment of wol-portlet.war overrides my public pages

Expert Beiträge: 498 Beitrittsdatum: 08.09.06 Neueste Beiträge
One other question about the public pages...

I am unable to add applications or do any sort of administration for public pages -- even as an administrator. What setting do I need to work with to re-enable this functionality?
thumbnail
Craig Kaneko, geändert vor 15 Jahren.

RE: Deployment of wol-portlet.war overrides my public pages

Junior Member Beiträge: 57 Beitrittsdatum: 07.09.06 Neueste Beiträge
Hi Josh,

Try changing this property in the portal.properties in the wol portlet:

Default is layout.user.public.layouts.modifiable=false

Change to: layout.user.public.layouts.modifiable=true

Keep in mind, that this will not only allow an admin to modify user public layouts but also the owner of the public page as well.
thumbnail
Milan Jaroš, geändert vor 14 Jahren.

Deployment of wol-portlet deletes my users and overrides my public pages

Expert Beiträge: 268 Beitrittsdatum: 18.08.08 Neueste Beiträge
Hello,
I have similar problem after portal upgrade I've lost users and public pages... I've found that problem is solved by removing of wol-portlet from webapps.

After its deployment it again "deletes users and overrides my public pages".

I tried -Dexternal-properties=portal-legacy-5.1.properties and some other parameters.
Interesting is that wol-portlet.war has different content (it's older) than wol-portlet in Liferay 5.2.2

Output without portal-legacy-5.1:

INFO: Reloading context [/wol-portlet]
5.5.2009 20:27:20 org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring root WebApplicationContext
Loading file:/C:/Develop/Liferay_5.2.2/webapps/wol-portlet/WEB-INF/classes/service.properties
20:27:20,531 INFO  [DialectDetector:64] Determining dialect for PostgreSQL 8
20:27:20,531 INFO  [DialectDetector:97] Using dialect org.hibernate.dialect.PostgreSQLDialect
20:27:21,593 INFO  [DialectDetector:64] Determining dialect for HSQL Database Engine 1
20:27:21,593 WARN  [DialectDetector:79] Liferay is configured to use Hypersonic as its database. Do NOT use Hypersonic in production. Hypersonic is an embedded database useful for development and demo'ing purposes. The database settings can be changed in portal.properties.
20:27:21,593 INFO  [DialectDetector:97] Using dialect org.hibernate.dialect.HSQLDialect
Loading file:/C:/Develop/Liferay_5.2.2/webapps/wol-portlet/WEB-INF/classes/service.properties
20:27:23,140 INFO  [ServiceComponentLocalServiceImpl:255] Running WOL SQL scripts for the first time
20:27:23,328 INFO  [HookHotDeployListener:182] Registering hook for wol-portlet
20:27:23,437 ERROR [HookHotDeployListener:212] Unable to read portal.properties
com.germinus.easyconf.ConfigurationNotFoundException: Error reading configuration for /C:/Develop/Liferay_5.2.2/webapps/wol-portlet/WEB-INF/classes/portal: The base properties file was not found
	at com.germinus.easyconf.ComponentConfiguration.getProperties(ComponentConfiguration.java:143)
	at com.liferay.portal.configuration.ConfigurationImpl.getComponentProperties(ConfigurationImpl.java:271)
	at com.liferay.portal.configuration.ConfigurationImpl.printSources(ConfigurationImpl.java:323)
	at com.liferay.portal.configuration.ConfigurationImpl.<init>(ConfigurationImpl.java:66)
	at com.liferay.portal.configuration.ConfigurationFactoryImpl.getConfiguration(ConfigurationFactoryImpl.java:39)
	at com.liferay.portal.kernel.configuration.ConfigurationFactoryUtil.getConfiguration(ConfigurationFactoryUtil.java:36)
	at com.liferay.portal.deploy.hot.HookHotDeployListener.doInvokeDeploy(HookHotDeployListener.java:207)
	at com.liferay.portal.deploy.hot.HookHotDeployListener.invokeDeploy(HookHotDeployListener.java:96)
	at com.liferay.portal.kernel.deploy.hot.HotDeployUtil._doFireDeployEvent(HotDeployUtil.java:108)
	at com.liferay.portal.kernel.deploy.hot.HotDeployUtil._fireDeployEvent(HotDeployUtil.java:153)
	at com.liferay.portal.kernel.deploy.hot.HotDeployUtil.fireDeployEvent(HotDeployUtil.java:43)
	at com.liferay.portal.kernel.servlet.PortletContextListener.portalInit(PortletContextListener.java:113)
	at com.liferay.portal.kernel.util.PortalInitableUtil.init(PortalInitableUtil.java:48)
	at com.liferay.portal.kernel.servlet.PortletContextListener.contextInitialized(PortletContextListener.java:109)
	at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843)
	at org.apache.catalina.core.StandardContext.start(StandardContext.java:4342)
	at org.apache.catalina.startup.HostConfig.checkResources(HostConfig.java:1116)
	at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1214)
	at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:293)
	at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
	at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1337)
	at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1601)
	at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1610)
	at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1590)
	at java.lang.Thread.run(Unknown Source)
20:27:23,468 INFO  [HookHotDeployListener:375] Hook for wol-portlet is available for use
20:27:23,468 INFO  [PortletHotDeployListener:219] Registering portlets for wol-portlet
Loading file:/C:/Develop/Liferay_5.2.2/webapps/wol-portlet/WEB-INF/classes/portlet.properties
Loading file:/C:/Develop/Liferay_5.2.2/webapps/wol-portlet/WEB-INF/classes/portlet.properties
20:27:26,000 INFO  [PortletHotDeployListener:303] 10 portlets for wol-portlet are available for use
20:27:26,000 INFO  [HotDeployUtil:100] Deploy sevencogs-hook from queue
20:27:26,015 INFO  [HookHotDeployListener:182] Registering hook for sevencogs-hook
Loading file:/C:/Develop/Liferay_5.2.2/webapps/sevencogs-hook/WEB-INF/classes/portal.properties
20:27:42,328 ERROR [AutoLoginFilter:239] com.liferay.portal.NoSuchUserException: No User exists with the primary key 21901
20:27:42,406 ERROR [AutoLoginFilter:239] com.liferay.portal.NoSuchUserException: No User exists with the primary key 21901
....
And many times repeating.
</init>




Output with portal-legacy-5.1:

INFO: Reloading context [/wol-portlet]
5.5.2009 20:46:04 org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring root WebApplicationContext
Loading file:/C:/Develop/Liferay_5.2.2/webapps/wol-portlet/WEB-INF/classes/service.properties
20:46:04,875 INFO  [DialectDetector:64] Determining dialect for PostgreSQL 8
20:46:04,875 INFO  [DialectDetector:97] Using dialect org.hibernate.dialect.PostgreSQLDialect
20:46:05,921 INFO  [DialectDetector:64] Determining dialect for HSQL Database Engine 1
20:46:05,921 WARN  [DialectDetector:79] Liferay is configured to use Hypersonic as its database. Do NOT use Hypersonic in production. Hypersonic is an embedded database useful for development and demo'ing purposes. The database settings can be changed in portal.properties.
20:46:05,921 INFO  [DialectDetector:97] Using dialect org.hibernate.dialect.HSQLDialect
Loading file:/C:/Develop/Liferay_5.2.2/webapps/wol-portlet/WEB-INF/classes/service.properties
20:46:07,390 INFO  [ServiceComponentLocalServiceImpl:255] Running WOL SQL scripts for the first time
20:46:07,609 INFO  [HookHotDeployListener:182] Registering hook for wol-portlet
Loading file:/C:/Develop/Liferay_5.2.2/webapps/wol-portlet/WEB-INF/classes/portal.properties
20:46:08,093 INFO  [HookHotDeployListener:375] Hook for wol-portlet is available for use
20:46:08,093 INFO  [PortletHotDeployListener:219] Registering portlets for wol-portlet
Loading file:/C:/Develop/Liferay_5.2.2/webapps/wol-portlet/WEB-INF/classes/portlet.properties
Loading file:/C:/Develop/Liferay_5.2.2/webapps/wol-portlet/WEB-INF/classes/portlet.properties
20:46:10,531 INFO  [PortletHotDeployListener:303] 10 portlets for wol-portlet are available for use
20:46:10,546 INFO  [HotDeployUtil:100] Deploy sevencogs-hook from queue
20:46:10,546 INFO  [HookHotDeployListener:182] Registering hook for sevencogs-hook
Loading file:/C:/Develop/Liferay_5.2.2/webapps/sevencogs-hook/WEB-INF/classes/portal.properties
Loading file:/C:/Develop/Liferay_5.2.2/webapps/wol-portlet/WEB-INF/classes/service.properties
20:46:27,906 ERROR [AutoLoginFilter:239] com.liferay.portal.NoSuchUserException: No User exists with the primary key 21901
20:46:27,953 ERROR [AutoLoginFilter:239] com.liferay.portal.NoSuchUserException: No User exists with the primary key 21901
....
And many times repeating.


With regards.
nidhi singh, geändert vor 14 Jahren.

RE: Deployment of wol-portlet deletes my users and overrides my public page

Junior Member Beiträge: 57 Beitrittsdatum: 29.10.08 Neueste Beiträge
hi,

if you are not having users in users portal, go to server administratior portal and execute Reindex for Search index.

you will get users list in User portal.

thanks
Nidhi Singh.