Forums de discussion

Liferay 6.1.1 GA2 causes Error reading configuration for portlet

Vitaly Lyapin, modifié il y a 11 années.

Liferay 6.1.1 GA2 causes Error reading configuration for portlet

New Member Publications: 4 Date d'inscription: 24/02/12 Publications récentes
Hello everyone! I'm currently working on portlet package for latest Liferay 6.1.1 GA2 and faced with strange problem.

07:43:49,054 INFO  [pool-2-thread-14][HookHotDeployListener:690] Hook for my-web is available for use
07:43:49,809 ERROR [pool-2-thread-14][HotDeployImpl:191] com.liferay.portal.kernel.deploy.hot.HotDeployException: Error registering portlets for my-web
com.liferay.portal.kernel.deploy.hot.HotDeployException: Error registering portlets for my-web
	at com.liferay.portal.kernel.deploy.hot.BaseHotDeployListener.throwHotDeployException(BaseHotDeployListener.java:46)
	at com.liferay.portal.deploy.hot.PortletHotDeployListener.invokeDeploy(PortletHotDeployListener.java:123)
	at com.liferay.portal.deploy.hot.HotDeployImpl.doFireDeployEvent(HotDeployImpl.java:188)
	at com.liferay.portal.deploy.hot.HotDeployImpl.fireDeployEvent(HotDeployImpl.java:96)
	at com.liferay.portal.kernel.deploy.hot.HotDeployUtil.fireDeployEvent(HotDeployUtil.java:27)
	at com.liferay.portal.kernel.servlet.PluginContextListener.fireDeployEvent(PluginContextListener.java:151)
	at com.liferay.portal.kernel.servlet.PluginContextListener.doPortalInit(PluginContextListener.java:141)
	at com.liferay.portal.kernel.util.BasePortalLifecycle.portalInit(BasePortalLifecycle.java:42)
	at com.liferay.portal.kernel.util.PortalLifecycleUtil.register(PortalLifecycleUtil.java:64)
	at com.liferay.portal.kernel.util.PortalLifecycleUtil.register(PortalLifecycleUtil.java:56)
	at com.liferay.portal.kernel.util.BasePortalLifecycle.registerPortalLifecycle(BasePortalLifecycle.java:52)
	at com.liferay.portal.kernel.servlet.PluginContextListener.contextInitialized(PluginContextListener.java:103)
	at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4779)
	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5273)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:895)
	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:871)
	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:615)
	at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1099)
	at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1621)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
	at java.util.concurrent.FutureTask.run(FutureTask.java:138)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.ExceptionInInitializerError
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at com.liferay.portlet.PortletBagFactory.getPluginPropertyValue(PortletBagFactory.java:372)
	at com.liferay.portlet.PortletBagFactory.newAssetRendererFactoryInstances(PortletBagFactory.java:574)
	at com.liferay.portlet.PortletBagFactory.create(PortletBagFactory.java:202)
	at com.liferay.portal.deploy.hot.PortletHotDeployListener.initPortlet(PortletHotDeployListener.java:546)
	at com.liferay.portal.deploy.hot.PortletHotDeployListener.doInvokeDeploy(PortletHotDeployListener.java:321)
	at com.liferay.portal.deploy.hot.PortletHotDeployListener.invokeDeploy(PortletHotDeployListener.java:120)
	... 24 more
Caused by: com.germinus.easyconf.ConfigurationNotFoundException: Error reading configuration for portlet: The base properties file was not found
	at com.liferay.portal.configuration.easyconf.ClassLoaderComponentConfiguration.getProperties(ClassLoaderComponentConfiguration.java:81)
	at com.liferay.portal.configuration.ConfigurationImpl.getComponentProperties(ConfigurationImpl.java:402)
	at com.liferay.portal.configuration.ConfigurationImpl.printSources(ConfigurationImpl.java:417)
	at com.liferay.portal.configuration.ConfigurationImpl.<init>(ConfigurationImpl.java:77)
	at com.liferay.portal.configuration.ConfigurationImpl.<init>(ConfigurationImpl.java:54)
	at com.liferay.portal.configuration.ConfigurationFactoryImpl.getConfiguration(ConfigurationFactoryImpl.java:28)
	at com.liferay.portal.kernel.configuration.ConfigurationFactoryUtil.getConfiguration(ConfigurationFactoryUtil.java:27)
	at com.liferay.util.portlet.PortletProps.<init>(PortletProps.java:66)
	at com.liferay.util.portlet.PortletProps.<clinit>(PortletProps.java:70)
	... 34 more</clinit></init></init></init>

But at the same time it works on Liferay 6.1.0

I checked this thread with same problem but I don't have portlet/portal.properties in my project
thumbnail
Hitoshi Ozawa, modifié il y a 11 années.

RE: Liferay 6.1.1 GA2 causes Error reading configuration for portlet

Liferay Legend Publications: 7942 Date d'inscription: 24/03/10 Publications récentes
Are you trying to read values from a property file? It's seems to be it's not able to find the file.
Vitaly L., modifié il y a 11 années.

RE: Liferay 6.1.1 GA2 causes Error reading configuration for portlet

New Member Publications: 4 Date d'inscription: 24/02/12 Publications récentes
Yep, I read values to init database, but this works fine. At least I can see this values in debug. Maybe Liferay tries to read configuration files, but I can't find the problematic place using debug.
Vitaly L., modifié il y a 11 années.

RE: Liferay 6.1.1 GA2 causes Error reading configuration for portlet

New Member Publications: 4 Date d'inscription: 24/02/12 Publications récentes
Okay, if I add portlet.properties with any valid data (e.g. foo=bar), then that error disappears, but deployment process stops on reading that file.
And I got this if I try to add portlet to page
java.io.FileNotFoundException: The requested resource (/my-web/MyApplication/invoke) is not available
Babu Jayaraman, modifié il y a 9 années.

RE: Liferay 6.1.1 GA2 causes Error reading configuration for portlet

New Member Publications: 8 Date d'inscription: 12/02/13 Publications récentes
I am also facing the same issue in liferay 6.1.1 ga2, please let me know if you find solution.
Babu Jayaraman, modifié il y a 9 années.

RE: Liferay 6.1.1 GA2 causes Error reading configuration for portlet

New Member Publications: 8 Date d'inscription: 12/02/13 Publications récentes
I have fixed this issue by changing below two property in portal-setup-wizard.properties file

liferay.home=C:/Eclipse/sdp_work/liferay-portal-6.1.1-ce-ga2
setup.wizard.enabled=true