Forums

Home » Liferay Portal » English » Liferay Legacy

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Hesham .
Error registering portlets
October 5, 2007 9:21 PM
Answer

Hesham .

Rank: New Member

Posts: 10

Join Date: October 4, 2007

Recent Posts

Hi...I'm trying to import a portlet inside liferay, and the following exception occurred while deploying :
 1
 204:07:12,140 ERROR [com.liferay.portal.kernel.deploy.hot.HotDeployUtil] com.liferay.portal.kernel.deploy.hot.HotDeployException: Error registering portlets for new_portlet
 3
 4com.liferay.portal.kernel.deploy.hot.HotDeployException: Error registering portlets for new_portlet
 5        at com.liferay.portal.deploy.hot.PortletHotDeployListener.invokeDeploy(PortletHotDeployListener.java:371)
 6        at com.liferay.portal.kernel.deploy.hot.HotDeployUtil._flushEvents(HotDeployUtil.java:122)
 7        at com.liferay.portal.kernel.deploy.hot.HotDeployUtil.flushEvents(HotDeployUtil.java:54)
 8        at com.liferay.portal.servlet.MainServlet.init(MainServlet.java:280)
 9        at javax.servlet.GenericServlet.init(GenericServlet.java:212)
10        at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1139)
11        at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:966)
12        at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3956)
13        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4230)
14        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760)
15        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740)
16        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)
17        at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:626)
18        at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:553)
19        at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488)
20        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)
21        at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
22        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
23        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)
24        at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
25        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
26        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
27        at org.apache.catalina.core.StandardService.start(StandardService.java:448)
28        at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
29        at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
30        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
31        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
32        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
33        at java.lang.reflect.Method.invoke(Method.java:585)
34        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
35        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
36Caused by: java.lang.ClassCastException: org.apache.myfaces.portlet.MyFacesGenericPortlet
37        at com.liferay.portal.deploy.hot.PortletHotDeployListener.invokeDeploy(PortletHotDeployListener.java:152)
38        ... 30 more


Any idea what may cause this exception ?
Rob Sonke
RE: Error registering portlets
October 6, 2007 2:43 AM
Answer

Rob Sonke

Rank: Expert

Posts: 275

Join Date: August 26, 2007

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?
Hesham .
RE: Error registering portlets
October 6, 2007 6:46 AM
Answer

Hesham .

Rank: New Member

Posts: 10

Join Date: October 4, 2007

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 ?
Secret Developer
RE: Error registering portlets
July 8, 2009 11:43 AM
Answer

Secret Developer

Rank: Expert

Posts: 278

Join Date: June 23, 2009

Recent Posts

I got the same error when I tried to edit the create account page with a hook.

Any ideas?


Thanks,
Baris

Participate in the State of Liferay Community 2017. Help the community and even win some prizes!