ClassCastException for FacesPortlet

I hope someone can provide me some feedback into this error. I've done some research on this error, but the recommendations do not work.

What I have done is created a portlet in JSC and have it working on the Sun Server. Now I am moving the portlet over to Liferay. I've added the two Liferay deployment descriptors within the war file. Now I am trying to deploy the portlet in Liferay and it fails! :-(

What I have found within this forum is the appearance that the application server/portal has duplicate jar files (jsf-portlet.jar). When I search and remove the dublicate portlet jar files from the project the application still fails. Now the error is no class definition found. When I remove the duplicate jar files so only my portlet project possesses the jar file, I still get the same error!

Here is the error:

19:42:58,428 INFO [HotDeployPortletListener:126] Registering portletsfor sci.mak.portlet.spicegirl

19:42:58,443 ERROR [HotDeployUtil:52] com.liferay.portal.kernel.deploy.HotDeployException: Error registering portletsfor sci.mak.portlet.spicegirl

at com.liferay.portal.deploy.HotDeployPortletListener.invokeDeploy(HotDeployPortletListener.java:343)

at com.liferay.portal.kernel.deploy.HotDeployUtil._fireDeployEvent(HotDeployUtil.java:86)

at com.liferay.portal.kernel.deploy.HotDeployUtil.fireDeployEvent(HotDeployUtil.java:43)

at com.liferay.portal.kernel.servlet.PortletContextListener.contextInitialized(PortletContextListener.java:41)

at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3729)

at org.apache.catalina.core.StandardContext.start(StandardContext.java:4187)

at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)

at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)

at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)

at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:904)

at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:867)

at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:474)

at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1122)

at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)

at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)

at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021)

at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)

at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)

at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)

at org.apache.catalina.core.StandardService.start(StandardService.java:450)

at org.apache.catalina.core.StandardServer.start(StandardServer.java:709)

at org.apache.catalina.startup.Catalina.start(Catalina.java:551)

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 org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)

at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)

Caused by: java.lang.ClassCastException: com.sun.faces.portlet.FacesPortlet

at com.liferay.portal.deploy.HotDeployPortletListener.invokeDeploy(HotDeployPortletListener.java:152)

... 27 more

Any guesses or suggestions would be greatly appreciated! Thank you for taking the time to read my post.

Russ

P.S. I'm not living upto my screen name....Grrrrrr

[3867 byte] By [supercoder97a] at [2007-11-27 8:35:15]
# 1
For the good of the group: The issue was a classloader issue. When the project was created, it used a jsf-portlet.jar file. This jar file was moved to the common/lib under the liferay directory and the error vanished involving the FacesPortlet.
supercoder97a at 2007-7-12 20:31:45 > top of Java-index,Development Tools,Java Tools...