angle-left Back

RE: Error registering portlets

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 [] Error registering portlets for new_portlet Error registering portlets for new_portlet
        at com.liferay.portal.servlet.MainServlet.init(
        at javax.servlet.GenericServlet.init(
        at org.apache.catalina.core.StandardWrapper.loadServlet(
        at org.apache.catalina.core.StandardWrapper.load(
        at org.apache.catalina.core.StandardContext.loadOnStartup(
        at org.apache.catalina.core.StandardContext.start(
        at org.apache.catalina.core.ContainerBase.addChildInternal(
        at org.apache.catalina.core.ContainerBase.addChild(
        at org.apache.catalina.core.StandardHost.addChild(
        at org.apache.catalina.startup.HostConfig.deployDescriptor(
        at org.apache.catalina.startup.HostConfig.deployDescriptors(
        at org.apache.catalina.startup.HostConfig.deployApps(
        at org.apache.catalina.startup.HostConfig.start(
        at org.apache.catalina.startup.HostConfig.lifecycleEvent(
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(
        at org.apache.catalina.core.ContainerBase.start(
        at org.apache.catalina.core.StandardHost.start(
        at org.apache.catalina.core.ContainerBase.start(
        at org.apache.catalina.core.StandardEngine.start(
        at org.apache.catalina.core.StandardService.start(
        at org.apache.catalina.core.StandardServer.start(
        at org.apache.catalina.startup.Catalina.start(
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(
        at java.lang.reflect.Method.invoke(
        at org.apache.catalina.startup.Bootstrap.start(
        at org.apache.catalina.startup.Bootstrap.main(
Caused by: java.lang.ClassCastException: org.apache.myfaces.portlet.MyFacesGenericPortlet
        ... 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?
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 ?
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?