Fórum
the base properties file was not found
Vishnudas D. Lokhande, modificado 10 Anos atrás.
the base properties file was not found
Regular Member Postagens: 152 Data de Entrada: 27/05/13 Postagens Recentes
hi...
i am trying to deploy portlet...it's throwing hot deploy exception.....i am not reading any values from portlet.properties...using 6.2 EE
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:80)
at com.liferay.portal.configuration.ConfigurationImpl.getComponentProperties(ConfigurationImpl.java:414)
at com.liferay.portal.configuration.ConfigurationImpl.printSources(ConfigurationImpl.java:429)
at com.liferay.portal.configuration.ConfigurationImpl.<init>(ConfigurationImpl.java:78)
at com.liferay.portal.configuration.ConfigurationImpl.<init>(ConfigurationImpl.java:55)
at com.liferay.portal.configuration.ConfigurationFactoryImpl.getConfiguration(ConfigurationFactoryImpl.java:32)
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)
... 31 more
i am trying to deploy portlet...it's throwing hot deploy exception.....i am not reading any values from portlet.properties...using 6.2 EE
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:80)
at com.liferay.portal.configuration.ConfigurationImpl.getComponentProperties(ConfigurationImpl.java:414)
at com.liferay.portal.configuration.ConfigurationImpl.printSources(ConfigurationImpl.java:429)
at com.liferay.portal.configuration.ConfigurationImpl.<init>(ConfigurationImpl.java:78)
at com.liferay.portal.configuration.ConfigurationImpl.<init>(ConfigurationImpl.java:55)
at com.liferay.portal.configuration.ConfigurationFactoryImpl.getConfiguration(ConfigurationFactoryImpl.java:32)
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)
... 31 more
David H Nebinger, modificado 10 Anos atrás.
RE: the base properties file was not found
Liferay Legend Postagens: 14916 Data de Entrada: 02/09/06 Postagens Recentes
you need to have an empty portlet.properties file in your classes folder.
Piyush Singh, modificado 9 Anos atrás.
RE: the base properties file was not found
New Member Postagens: 16 Data de Entrada: 10/02/14 Postagens Recentes
Hi David,
Even after placing empty portlet.properties file in the WEB-INF/classes directory, I am getting the same error. Below is the stacktrace
com.liferay.portal.kernel.deploy.hot.HotDeployException: Error registering plugins for bps-portal-portletbps-portal-portlet
at com.liferay.portal.kernel.deploy.hot.BaseHotDeployListener.throwHotDeployException(BaseHotDeployListener.java:46)
at com.liferay.portal.deploy.hot.PluginPackageHotDeployListener.invokeDeploy(PluginPackageHotDeployListener.java:64)
at com.liferay.portal.deploy.hot.HotDeployImpl.doFireDeployEvent(HotDeployImpl.java:227)
at com.liferay.portal.deploy.hot.HotDeployImpl.doFireDeployEvent(HotDeployImpl.java:254)
at com.liferay.portal.deploy.hot.HotDeployImpl.doFireDeployEvent(HotDeployImpl.java:254)
at com.liferay.portal.deploy.hot.HotDeployImpl.fireDeployEvent(HotDeployImpl.java:96)
at com.liferay.portal.kernel.deploy.hot.HotDeployUtil.fireDeployEvent(HotDeployUtil.java:28)
at com.liferay.portal.kernel.servlet.PluginContextListener.fireDeployEvent(PluginContextListener.java:164)
at com.liferay.portal.kernel.servlet.PluginContextListener.doPortalInit(PluginContextListener.java:154)
at com.liferay.portal.kernel.util.BasePortalLifecycle.portalInit(BasePortalLifecycle.java:44)
at com.liferay.portal.kernel.util.PortalLifecycleUtil.register(PortalLifecycleUtil.java:74)
at com.liferay.portal.kernel.util.PortalLifecycleUtil.register(PortalLifecycleUtil.java:58)
at com.liferay.portal.kernel.util.BasePortalLifecycle.registerPortalLifecycle(BasePortalLifecycle.java:54)
at com.liferay.portal.kernel.servlet.PluginContextListener.contextInitialized(PluginContextListener.java:116)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4939)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5434)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1113)
at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1671)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ExceptionInInitializerError
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.liferay.portal.deploy.hot.PluginPackageHotDeployListener.initPortletProps(PluginPackageHotDeployListener.java:195)
at com.liferay.portal.deploy.hot.PluginPackageHotDeployListener.doInvokeDeploy(PluginPackageHotDeployListener.java:131)
at com.liferay.portal.deploy.hot.PluginPackageHotDeployListener.invokeDeploy(PluginPackageHotDeployListener.java:61)
... 26 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:80)
at com.liferay.portal.configuration.ConfigurationImpl.getComponentProperties(ConfigurationImpl.java:414)
at com.liferay.portal.configuration.ConfigurationImpl.printSources(ConfigurationImpl.java:429)
at com.liferay.portal.configuration.ConfigurationImpl.<init>(ConfigurationImpl.java:78)
at com.liferay.portal.configuration.ConfigurationImpl.<init>(ConfigurationImpl.java:55)
at com.liferay.portal.configuration.ConfigurationFactoryImpl.getConfiguration(ConfigurationFactoryImpl.java:32)
at com.liferay.portal.kernel.configuration.ConfigurationFactoryUtil.getConfiguration(ConfigurationFactoryUtil.java:27)
at com.liferay.util.portlet.PortletProps.<init>(PortletProps.java:66)
I am also getting the below error
com.liferay.portal.kernel.deploy.hot.HotDeployException: Error registering portlets for bps-portal-portletbps-portal-portlet
at com.liferay.portal.kernel.deploy.hot.BaseHotDeployListener.throwHotDeployException(BaseHotDeployListener.java:46)
at com.liferay.portal.deploy.hot.PortletHotDeployListener.invokeDeploy(PortletHotDeployListener.java:127)
at com.liferay.portal.deploy.hot.HotDeployImpl.doFireDeployEvent(HotDeployImpl.java:227)
at com.liferay.portal.deploy.hot.HotDeployImpl.doFireDeployEvent(HotDeployImpl.java:254)
at com.liferay.portal.deploy.hot.HotDeployImpl.doFireDeployEvent(HotDeployImpl.java:254)
at com.liferay.portal.deploy.hot.HotDeployImpl.fireDeployEvent(HotDeployImpl.java:96)
at com.liferay.portal.kernel.deploy.hot.HotDeployUtil.fireDeployEvent(HotDeployUtil.java:28)
at com.liferay.portal.kernel.servlet.PluginContextListener.fireDeployEvent(PluginContextListener.java:164)
at com.liferay.portal.kernel.servlet.PluginContextListener.doPortalInit(PluginContextListener.java:154)
at com.liferay.portal.kernel.util.BasePortalLifecycle.portalInit(BasePortalLifecycle.java:44)
at com.liferay.portal.kernel.util.PortalLifecycleUtil.register(PortalLifecycleUtil.java:74)
at com.liferay.portal.kernel.util.PortalLifecycleUtil.register(PortalLifecycleUtil.java:58)
at com.liferay.portal.kernel.util.BasePortalLifecycle.registerPortalLifecycle(BasePortalLifecycle.java:54)
at com.liferay.portal.kernel.servlet.PluginContextListener.contextInitialized(PluginContextListener.java:116)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4939)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5434)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1113)
at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1671)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NoClassDefFoundError: Could not initialize class com.liferay.util.portlet.PortletProps
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.liferay.portlet.PortletBagFactory.getPluginPropertyValue(PortletBagFactory.java:399)
at com.liferay.portlet.PortletBagFactory.newAssetRendererFactoryInstances(PortletBagFactory.java:655)
at com.liferay.portlet.PortletBagFactory.create(PortletBagFactory.java:206)
at com.liferay.portal.deploy.hot.PortletHotDeployListener.doInvokeDeploy(PortletHotDeployListener.java:369)
at com.liferay.portal.deploy.hot.PortletHotDeployListener.invokeDeploy(PortletHotDeployListener.java:124)
Even after placing empty portlet.properties file in the WEB-INF/classes directory, I am getting the same error. Below is the stacktrace
com.liferay.portal.kernel.deploy.hot.HotDeployException: Error registering plugins for bps-portal-portletbps-portal-portlet
at com.liferay.portal.kernel.deploy.hot.BaseHotDeployListener.throwHotDeployException(BaseHotDeployListener.java:46)
at com.liferay.portal.deploy.hot.PluginPackageHotDeployListener.invokeDeploy(PluginPackageHotDeployListener.java:64)
at com.liferay.portal.deploy.hot.HotDeployImpl.doFireDeployEvent(HotDeployImpl.java:227)
at com.liferay.portal.deploy.hot.HotDeployImpl.doFireDeployEvent(HotDeployImpl.java:254)
at com.liferay.portal.deploy.hot.HotDeployImpl.doFireDeployEvent(HotDeployImpl.java:254)
at com.liferay.portal.deploy.hot.HotDeployImpl.fireDeployEvent(HotDeployImpl.java:96)
at com.liferay.portal.kernel.deploy.hot.HotDeployUtil.fireDeployEvent(HotDeployUtil.java:28)
at com.liferay.portal.kernel.servlet.PluginContextListener.fireDeployEvent(PluginContextListener.java:164)
at com.liferay.portal.kernel.servlet.PluginContextListener.doPortalInit(PluginContextListener.java:154)
at com.liferay.portal.kernel.util.BasePortalLifecycle.portalInit(BasePortalLifecycle.java:44)
at com.liferay.portal.kernel.util.PortalLifecycleUtil.register(PortalLifecycleUtil.java:74)
at com.liferay.portal.kernel.util.PortalLifecycleUtil.register(PortalLifecycleUtil.java:58)
at com.liferay.portal.kernel.util.BasePortalLifecycle.registerPortalLifecycle(BasePortalLifecycle.java:54)
at com.liferay.portal.kernel.servlet.PluginContextListener.contextInitialized(PluginContextListener.java:116)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4939)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5434)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1113)
at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1671)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ExceptionInInitializerError
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.liferay.portal.deploy.hot.PluginPackageHotDeployListener.initPortletProps(PluginPackageHotDeployListener.java:195)
at com.liferay.portal.deploy.hot.PluginPackageHotDeployListener.doInvokeDeploy(PluginPackageHotDeployListener.java:131)
at com.liferay.portal.deploy.hot.PluginPackageHotDeployListener.invokeDeploy(PluginPackageHotDeployListener.java:61)
... 26 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:80)
at com.liferay.portal.configuration.ConfigurationImpl.getComponentProperties(ConfigurationImpl.java:414)
at com.liferay.portal.configuration.ConfigurationImpl.printSources(ConfigurationImpl.java:429)
at com.liferay.portal.configuration.ConfigurationImpl.<init>(ConfigurationImpl.java:78)
at com.liferay.portal.configuration.ConfigurationImpl.<init>(ConfigurationImpl.java:55)
at com.liferay.portal.configuration.ConfigurationFactoryImpl.getConfiguration(ConfigurationFactoryImpl.java:32)
at com.liferay.portal.kernel.configuration.ConfigurationFactoryUtil.getConfiguration(ConfigurationFactoryUtil.java:27)
at com.liferay.util.portlet.PortletProps.<init>(PortletProps.java:66)
I am also getting the below error
com.liferay.portal.kernel.deploy.hot.HotDeployException: Error registering portlets for bps-portal-portletbps-portal-portlet
at com.liferay.portal.kernel.deploy.hot.BaseHotDeployListener.throwHotDeployException(BaseHotDeployListener.java:46)
at com.liferay.portal.deploy.hot.PortletHotDeployListener.invokeDeploy(PortletHotDeployListener.java:127)
at com.liferay.portal.deploy.hot.HotDeployImpl.doFireDeployEvent(HotDeployImpl.java:227)
at com.liferay.portal.deploy.hot.HotDeployImpl.doFireDeployEvent(HotDeployImpl.java:254)
at com.liferay.portal.deploy.hot.HotDeployImpl.doFireDeployEvent(HotDeployImpl.java:254)
at com.liferay.portal.deploy.hot.HotDeployImpl.fireDeployEvent(HotDeployImpl.java:96)
at com.liferay.portal.kernel.deploy.hot.HotDeployUtil.fireDeployEvent(HotDeployUtil.java:28)
at com.liferay.portal.kernel.servlet.PluginContextListener.fireDeployEvent(PluginContextListener.java:164)
at com.liferay.portal.kernel.servlet.PluginContextListener.doPortalInit(PluginContextListener.java:154)
at com.liferay.portal.kernel.util.BasePortalLifecycle.portalInit(BasePortalLifecycle.java:44)
at com.liferay.portal.kernel.util.PortalLifecycleUtil.register(PortalLifecycleUtil.java:74)
at com.liferay.portal.kernel.util.PortalLifecycleUtil.register(PortalLifecycleUtil.java:58)
at com.liferay.portal.kernel.util.BasePortalLifecycle.registerPortalLifecycle(BasePortalLifecycle.java:54)
at com.liferay.portal.kernel.servlet.PluginContextListener.contextInitialized(PluginContextListener.java:116)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4939)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5434)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1113)
at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1671)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NoClassDefFoundError: Could not initialize class com.liferay.util.portlet.PortletProps
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.liferay.portlet.PortletBagFactory.getPluginPropertyValue(PortletBagFactory.java:399)
at com.liferay.portlet.PortletBagFactory.newAssetRendererFactoryInstances(PortletBagFactory.java:655)
at com.liferay.portlet.PortletBagFactory.create(PortletBagFactory.java:206)
at com.liferay.portal.deploy.hot.PortletHotDeployListener.doInvokeDeploy(PortletHotDeployListener.java:369)
at com.liferay.portal.deploy.hot.PortletHotDeployListener.invokeDeploy(PortletHotDeployListener.java:124)
Piyush Singh, modificado 9 Anos atrás.
RE: the base properties file was not found
New Member Postagens: 16 Data de Entrada: 10/02/14 Postagens Recentes
Just to mention, I am using Liferay 6.2 EE GA1 SP9
Tanweer Ahmed ., modificado 1 Ano atrás.
RE: the base properties file was not found
Expert Postagens: 322 Data de Entrada: 11/03/10 Postagens Recentes
Hi Piyush,
Can you please try creating portlet.properties inside of
May be you also try clearing your work, temp.
-Tanweer
Can you please try creating portlet.properties inside of
/docroot/WEB-INF/src/portlet.properties
May be you also try clearing your work, temp.
-Tanweer
Account Removed, modificado 8 Anos atrás.
RE: the base properties file was not found
New Member Postagens: 9 Data de Entrada: 19/02/15 Postagens RecentesDavid H Nebinger:
you need to have an empty portlet.properties file in your classes folder.
if get no result, try filling portlet.properties with some random content like: "lalala=" or ...
leonardo palazzo, modificado 8 Anos atrás.
RE: the base properties file was not found
New Member Postagens: 14 Data de Entrada: 12/04/15 Postagens Recentes
I have the same problem.
Any solution?
Any solution?
Piyush Singh, modificado 8 Anos atrás.
RE: the base properties file was not found
New Member Postagens: 16 Data de Entrada: 10/02/14 Postagens Recentes
Hi Leonardo,
Please place a portlet.properties file with some content in it like
plugin.package.name=XYZ
Keeping an empty file is not treated as a valid file and it still gives an exception.
Please place a portlet.properties file with some content in it like
plugin.package.name=XYZ
Keeping an empty file is not treated as a valid file and it still gives an exception.
leonardo palazzo, modificado 8 Anos atrás.
RE: the base properties file was not found
New Member Postagens: 14 Data de Entrada: 12/04/15 Postagens Recentes
hi,
actually my problem is
https://www.liferay.com/es/community/forums/-/message_boards/message/66639252
I have the file portlet.properties. Which contains resource.actions.configs=resource-actions/default.xml
thanks
actually my problem is
https://www.liferay.com/es/community/forums/-/message_boards/message/66639252
I have the file portlet.properties. Which contains resource.actions.configs=resource-actions/default.xml
thanks
Md Safdar khan, modificado 7 Anos atrás.
RE: the base properties file was not found
New Member Mensagem: 1 Data de Entrada: 11/08/16 Postagens Recentes
Hi, try to put your properties file into /src/main/resources. In my case it was hook which i solved.
Brijesh Desai, modificado 6 Anos atrás.
RE: the base properties file was not found
Junior Member Postagens: 55 Data de Entrada: 22/10/14 Postagens Recentes
For module MVCPortlet it works with following folder structure and code snippet.
Put portlet.properties file in "test-mvc-portlet / src / main / resources / portlet.properties"
Configuration portletPropertiesConfiguration = ConfigurationFactoryUtil.getConfiguration( PortalClassLoaderUtil.getClassLoader(), "portlet");
System.out.println("......888888............" +portletPropertiesConfiguration.get("properties.name"));
Put portlet.properties file in "test-mvc-portlet / src / main / resources / portlet.properties"