Forums

angle-left Back

RE: Error registering portlets

H.
Hesh am, modified 10 Years ago.

Error registering portlets

New Member Posts: 10 Join Date: 10/4/07 Recent Posts
Hi...I'm trying to import a portlet inside liferay, and the following exception occurred while deploying :

04:07:12,140 ERROR [com.liferay.portal.kernel.deploy.hot.HotDeployUtil] com.liferay.portal.kernel.deploy.hot.HotDeployException: Error registering portlets for new_portlet

com.liferay.portal.kernel.deploy.hot.HotDeployException: Error registering portlets for new_portlet
        at com.liferay.portal.deploy.hot.PortletHotDeployListener.invokeDeploy(PortletHotDeployListener.java:371)
        at com.liferay.portal.kernel.deploy.hot.HotDeployUtil._flushEvents(HotDeployUtil.java:122)
        at com.liferay.portal.kernel.deploy.hot.HotDeployUtil.flushEvents(HotDeployUtil.java:54)
        at com.liferay.portal.servlet.MainServlet.init(MainServlet.java:280)
        at javax.servlet.GenericServlet.init(GenericServlet.java:212)
        at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1139)
        at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:966)
        at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3956)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4230)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)
        at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:626)
        at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:553)
        at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488)
        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)
        at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)
        at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
        at org.apache.catalina.core.StandardService.start(StandardService.java:448)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
        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:585)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
Caused by: java.lang.ClassCastException: org.apache.myfaces.portlet.MyFacesGenericPortlet
        at com.liferay.portal.deploy.hot.PortletHotDeployListener.invokeDeploy(PortletHotDeployListener.java:152)
        ... 30 more


Any idea what may cause this exception ?
Rob Sonke, modified 10 Years ago.

RE: Error registering portlets

Expert Posts: 275 Join Date: 8/26/07 Recent Posts
It says:
java.lang.ClassCastException: org.apache.myfaces.portlet.MyFacesGenericPortlet

Is this one maybe in your portlet classpath and also in your global classpath from the application server?
H.
Hesham ., modified 10 Years ago.

RE: Error registering portlets

New Member Posts: 10 Join Date: 10/4/07 Recent Posts
This class ( org.apache.myfaces.portlet.MyFacesGenericPortlet ) is in a jar file called (myfaces-all-1.1.1.jar) found in the portlet classpath (portlet_folder\WEB-INF\lib), and no where else .... not in the server libraries.

So what do you think ?
SD
Baris Sener, modified 9 Years ago.

RE: Error registering portlets

Expert Posts: 278 Join Date: 6/23/09 Recent Posts
I got the same error when I tried to edit the create account page with a hook.

Any ideas?


Thanks,
Baris