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

Unable to deploy WSRP portlet due to NoClassDefFoundError

    Details

    • Type: Regression Bug
    • Status: Closed
    • Resolution: Fixed
    • Affects Version/s: 7.0.0 Beta 8
    • Fix Version/s: 7.0.0 CE RC1
    • Component/s: WSRP
    • Labels:

      Description

      Steps to reproduce:

      1. Deploy WSRP portlet
      2. Start portal

      Expected Result:
      Portlet deploys without errors and WSRP is accessible from Control Panel > Apps.

      Actual Result:
      Console error and WSRP isn't available to use.

      19:49:24,522 WARN  [fileinstall-L:/public/master-bundles/osgi/configs][com_liferay_portal_osgi_web_wab_extender:102] [wsrp-portlet_7.0.0.1 [470]] Error while creating extension
      java.lang.NoClassDefFoundError: org/apache/axis/transport/http/AxisServlet
              at java.lang.ClassLoader.defineClass1(Native Method)
              at java.lang.ClassLoader.defineClass(ClassLoader.java:760)
              at org.eclipse.osgi.internal.loader.ModuleClassLoader.defineClass(ModuleClassLoader.java:272)
              at org.eclipse.osgi.internal.loader.classpath.ClasspathManager.defineClass(ClasspathManager.java:632)
              at org.eclipse.osgi.internal.loader.classpath.ClasspathManager.findClassImpl(ClasspathManager.java:588)
              at org.eclipse.osgi.internal.loader.classpath.ClasspathManager.findLocalClassImpl(ClasspathManager.java:540)
              at org.eclipse.osgi.internal.loader.classpath.ClasspathManager.findLocalClass(ClasspathManager.java:527)
              at org.eclipse.osgi.internal.loader.ModuleClassLoader.findLocalClass(ModuleClassLoader.java:324)
              at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:330)
              at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:407)
              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 org.eclipse.osgi.internal.framework.EquinoxBundle.loadClass(EquinoxBundle.java:583)
              at com.liferay.portal.osgi.web.wab.extender.internal.definition.WebXMLDefinitionLoader._getServletInstance(WebXMLDefinitionLoader.java:367)
              at com.liferay.portal.osgi.web.wab.extender.internal.definition.WebXMLDefinitionLoader.endElement(WebXMLDefinitionLoader.java:206)
              at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:609)
              at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:1783)
              at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2970)
              at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:606)
              at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:510)
              at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:848)
              at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:777)
              at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141)
              at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1213)
              at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:643)
              at com.liferay.portal.osgi.web.wab.extender.internal.definition.WebXMLDefinitionLoader.loadWebXML(WebXMLDefinitionLoader.java:282)
              at com.liferay.portal.osgi.web.wab.extender.internal.WabBundleProcessor.init(WabBundleProcessor.java:164)
              at com.liferay.portal.osgi.web.wab.extender.internal.WebBundleDeployer.doStart(WebBundleDeployer.java:85)
              at com.liferay.portal.osgi.web.wab.extender.internal.WabFactory$WABExtension.start(WabFactory.java:196)
              at org.apache.felix.utils.extender.AbstractExtender.createExtension(AbstractExtender.java:259)
              at org.apache.felix.utils.extender.AbstractExtender.modifiedBundle(AbstractExtender.java:232)
              at org.osgi.util.tracker.BundleTracker$Tracked.customizerModified(BundleTracker.java:482)
              at org.osgi.util.tracker.BundleTracker$Tracked.customizerModified(BundleTracker.java:1)
              at org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:232)
              at org.osgi.util.tracker.BundleTracker$Tracked.bundleChanged(BundleTracker.java:444)
              at org.eclipse.osgi.internal.framework.BundleContextImpl.dispatchEvent(BundleContextImpl.java:905)
              at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
              at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
              at org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEventPrivileged(EquinoxEventPublisher.java:165)
              at org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEvent(EquinoxEventPublisher.java:75)
              at org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEvent(EquinoxEventPublisher.java:67)
              at org.eclipse.osgi.internal.framework.EquinoxContainerAdaptor.publishModuleEvent(EquinoxContainerAdaptor.java:102)
              at org.eclipse.osgi.container.Module.publishEvent(Module.java:461)
              at org.eclipse.osgi.container.Module.start(Module.java:452)
              at org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:402)
              at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundle(DirectoryWatcher.java:1252)
              at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundles(DirectoryWatcher.java:1224)
              at org.apache.felix.fileinstall.internal.DirectoryWatcher.doProcess(DirectoryWatcher.java:512)
              at org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:361)
              at org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:313)
      Caused by: java.lang.ClassNotFoundException: org.apache.axis.transport.http.AxisServlet cannot be found by wsrp-portlet_7.0.0.1
              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)
              ... 52 more
      

      Reproduced on:
      Tomcat 8.0.30 + MariaDB 10.0.23
      Portal Master Git Hash: 09d6dbaadb74c2081b99779d273a26ba42103bc9q
      Plugins Master Git Hash: ce7e796b0de5463caa06fef9143dd766ef93ecf0

        Attachments

          Activity

            People

            • Assignee:
              brian.lee Brian Lee
              Reporter:
              brian.lee Brian Lee
              Participants of an Issue:
              Recent user:
              Michael Saechang
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                3 years, 35 weeks, 6 days ago

                Packages

                Version Package
                7.0.0 CE RC1