Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-58355

Error while deploying modules due to ClassNotFoundException: DefaultPortletDataHandler

    Details

      Description

      Steps to Reproduce:

      1. Start latest Liferay Portal 7.0
      2. Deploy the attached blade.jsf.portlet.ds-1.0.0-SNAPSHOT.jar OSGi module by copying it to the $LIFERAY_HOME/osgi/modules folder.
      3. Wait for the portlet to deploy (some logs like these should show up):
        vvv----------------------------------------------------------------vvv
        [INFO] JSFPortletDS.activate(): classLoader=org.eclipse.osgi.internal.framework.ContextFinder
        [INFO] BridgeFactoryFinder.getInstance(): classLoader=org.eclipse.osgi.internal.framework.ContextFinder
        [INFO] BridgeFactoryFinder.getInstance(): Found resource=bundleresource://358.fwk326575356:4/META-INF/services/com.liferay.faces.bridge.BridgeFactoryFinder
        [INFO] BridgeFactoryFinder.getInstance(): Successfully cast liferay-faces-bridge-impl.jar!com.liferay.faces.bridge.internal.BridgeFactoryFinder to liferay-faces-bridge-api.jar!com.liferay.faces.bridge.BridgeFactoryFinder
        ^^^----------------------------------------------------------------^^^
        
      4. Remove the previous deployed jar from the $LIFERAY_HOME/osgi/modules/
      5. Wait for the "JSFPortletDS.deactivate(): ..." message
      6. Hit the page where the portlet was deployed
      7. Copy/paste the jar bundle again into $LIFERAY_HOME/osgi/modules directory

      If the problem still exists, then the following output will appear in the Tomcat log:

      13:53:54,042 ERROR [fileinstall-/Users/apple/Portals/liferay.com/liferay-portal-7.0.0-a2-jsf-2.2/osgi/modules][PortletTracker:345] Portlet blade_portlet_JSFPortletDS from blade.jsf.portlet.ds_1.0.0.SNAPSHOT [343] failed to initialize
      java.lang.ClassNotFoundException: com.liferay.staging.portlet.data.handler.DefaultPortletDataHandler cannot be found by blade.jsf.portlet.ds_1.0.0.SNAPSHOT
      	at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:444)
      	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:357)
      	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:349)
      	at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:160)
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
      	at com.liferay.portal.kernel.util.InstanceFactory.newInstance(InstanceFactory.java:52)
      	at com.liferay.portal.kernel.util.InstanceFactory.newInstance(InstanceFactory.java:27)
      	at com.liferay.portal.kernel.util.ProxyFactory.newInstance(ProxyFactory.java:51)
      	at com.liferay.portlet.PortletBagFactory.newInstance(PortletBagFactory.java:470)
      	at com.liferay.portlet.PortletBagFactory.newInstance(PortletBagFactory.java:462)
      	at com.liferay.portlet.PortletBagFactory.newPortletDataHandlers(PortletBagFactory.java:557)
      	at com.liferay.portlet.PortletBagFactory.create(PortletBagFactory.java:108)
      

        Attachments

        1. blade.jsf.portlet.ds-1.0.0-SNAPSHOT.jar
          3.54 MB
        2. fix58355.png
          fix58355.png
          39 kB
        3. Myjspportlet-1.0.0.jar
          3 kB
        4. projects.zip
          14 kB
        5. reproduce.gif
          reproduce.gif
          5.32 MB
        6. stacktrace.log
          13 kB
        7. stacktrace2.log
          19 kB
        8. Stacktrace3.log
          19 kB
        9. Stacktrace4.log
          25 kB
        10. Stacktrace5.log
          13 kB

          Issue Links

            Activity

              People

              • Votes:
                1 Vote for this issue
                Watchers:
                11 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  3 years, 41 weeks, 2 days ago

                  Packages

                  Version Package
                  7.0.0 Beta 5