Announcement Announcement Module
Collapse
No announcement yet.
DispatcherPortlet cannot be cast to javax.portlet.Portlet Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • DispatcherPortlet cannot be cast to javax.portlet.Portlet

    i get the following exception:
    Code:
    17:26:21,974 INFO  [ContextLoader:207] Root WebApplicationContext: initialization completed in 3256 ms
    17:26:22,658 INFO  [PortletHotDeployListener:227] Registering portlets for MontyBrogan
    17:26:22,708 ERROR [HotDeployUtil:111] com.liferay.portal.kernel.deploy.hot.HotDeployException: Error registering portlets for MontyBrogan
    com.liferay.portal.kernel.deploy.hot.HotDeployException: Error registering portlets for MontyBrogan
            at com.liferay.portal.deploy.hot.BaseHotDeployListener.throwHotDeployException(BaseHotDeployListener.java:58)
            at com.liferay.portal.deploy.hot.PortletHotDeployListener.invokeDeploy(PortletHotDeployListener.java:130)
            at com.liferay.portal.kernel.deploy.hot.HotDeployUtil._doFireDeployEvent(HotDeployUtil.java:108)
            at com.liferay.portal.kernel.deploy.hot.HotDeployUtil._fireDeployEvent(HotDeployUtil.java:153)
            at com.liferay.portal.kernel.deploy.hot.HotDeployUtil.fireDeployEvent(HotDeployUtil.java:43)
            at com.liferay.portal.kernel.servlet.PortletContextListener.portalInit(PortletContextListener.java:113)
            at com.liferay.portal.kernel.util.PortalInitableUtil.init(PortalInitableUtil.java:48)
            at com.liferay.portal.kernel.servlet.PortletContextListener.contextInitialized(PortletContextListener.java:109)
            at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3934)
            at org.apache.catalina.core.StandardContext.start(StandardContext.java:4429)
            at org.apache.catalina.startup.HostConfig.checkResources(HostConfig.java:1173)
            at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1271)
            at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:296)
            at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
            at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1337)
            at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1601)
            at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1610)
            at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1590)
            at java.lang.Thread.run(Thread.java:636)
    Caused by: java.lang.ClassCastException: org.springframework.web.portlet.DispatcherPortlet cannot be cast to javax.portlet.Portlet
            at com.liferay.portal.deploy.hot.PortletHotDeployListener.initPortlet(PortletHotDeployListener.java:445)
            at com.liferay.portal.deploy.hot.PortletHotDeployListener.doInvokeDeploy(PortletHotDeployListener.java:250)
            at com.liferay.portal.deploy.hot.PortletHotDeployListener.invokeDeploy(PortletHotDeployListener.java:127)
            ... 17 more
    can please someone help me how i can fix this?
    i googled and found out that it could be a problem with some libs that are in my .war
    these are the libs in my war file:
    antlr-2.7.6.jar
    commons-beanutils-1.8.0.jar
    commons-collections-3.1.jar
    commons-dbcp-1.2.2.jar
    commons-digester-1.8.1.jar
    commons-logging-1.1.jar
    commons-pool-1.3.jar
    dom4j-1.6.1.jar
    ejb3-persistence.jar
    hibernate3.jar
    hibernate-annotations-3.3.1.GA.jar
    hibernate-commons-annotations-3.0.0.ga.jar
    hibernate-entitymanager-3.3.2.GA.jar
    javassist-3.9.0.GA.jar
    jta-1.1.jar
    mysql-connector-java-5.1.9-bin.jar
    org.springframework.beans-3.0.0.RC1.jar
    org.springframework.context-3.0.0.RC1.jar
    org.springframework.core-3.0.0.RC1.jar
    org.springframework.expression-3.0.0.RC1.jar
    org.springframework.transaction-3.0.0.RC1.jar
    org.springframework.web-3.0.0.RC1.jar
    org.springframework.web.portlet-3.0.0.RC1.jar
    org.springframework.web.servlet-3.0.0.RC1.jar
    portlet-api-1.0.jar
    portlettaglib.jar
    slf4j-api-1.5.8.jar
    slf4j-log4j12-1.5.0.jar

    any help would be nice because i have no idea whats the problem

  • #2
    i removed the portlet and portlettaglib jars but i still get this error

    Comment


    • #3
      some days past... no answer.. no luck to fix this...
      can't someone please help me??

      Comment


      • #4
        sorry this is a bit late but may help someone else. you may have to remove the files from tomcat\webapps\<your app>\lib and then redeploy your war file without those files then restart the server. hope that helps.

        Comment


        • #5
          Thanks jssemwog, I had the same problem and if you remove the portlet-api.jar (/WEB-INF/lib) from your WAR, it'll work fine.

          Comment

          Working...
          X