<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>Error on trying to deploy a service builder portlet upgraded frm 6.x to 7.x</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=118140112" />
  <subtitle>Error on trying to deploy a service builder portlet upgraded frm 6.x to 7.x</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=118140112</id>
  <updated>2026-04-05T15:40:23Z</updated>
  <dc:date>2026-04-05T15:40:23Z</dc:date>
  <entry>
    <title>RE: Error on trying to deploy a service builder portlet upgraded frm 6.x to</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118144030" />
    <author>
      <name>Rajesh Chaurasia</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118144030</id>
    <updated>2019-12-23T03:04:06Z</updated>
    <published>2019-12-23T03:04:06Z</published>
    <summary type="html">Did some heap related settings , now i am getting below errors:&lt;br /&gt;2019-12-23 03:02:24.126 ERROR [fileinstall-D:/LiferayHome/7.2/Upgrade6xto7x/liferay-ce-portal-7.2.0-ga1/osgi/war][WebXMLDefinitionLoader:1092] Bundle sample-service-builder-portlet_7.2.0.1 [1075] is unable to load filter com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter&lt;br /&gt;2019-12-23 03:02:24.127 ERROR [fileinstall-D:/LiferayHome/7.2/Upgrade6xto7x/liferay-ce-portal-7.2.0-ga1/osgi/war][WebXMLDefinitionLoader:1092] Bundle sample-service-builder-portlet_7.2.0.1 [1075] is unable to load filter com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter&lt;br /&gt;2019-12-23 03:02:24.127 ERROR [fileinstall-D:/LiferayHome/7.2/Upgrade6xto7x/liferay-ce-portal-7.2.0-ga1/osgi/war][WebXMLDefinitionLoader:1092] Bundle sample-service-builder-portlet_7.2.0.1 [1075] is unable to load filter com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter&lt;br /&gt;2019-12-23 03:02:24.127 ERROR [fileinstall-D:/LiferayHome/7.2/Upgrade6xto7x/liferay-ce-portal-7.2.0-ga1/osgi/war][WebXMLDefinitionLoader:1092] Bundle sample-service-builder-portlet_7.2.0.1 [1075] is unable to load filter com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter&lt;br /&gt;2019-12-23 03:02:24.127 ERROR [fileinstall-D:/LiferayHome/7.2/Upgrade6xto7x/liferay-ce-portal-7.2.0-ga1/osgi/war][WebXMLDefinitionLoader:1092] Bundle sample-service-builder-portlet_7.2.0.1 [1075] is unable to load filter com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter&lt;br /&gt;2019-12-23 03:02:24.139 ERROR [fileinstall-D:/LiferayHome/7.2/Upgrade6xto7x/liferay-ce-portal-7.2.0-ga1/osgi/war][WebXMLDefinitionLoader:1130] sample-service-builder-portlet_7.2.0.1 [1075] unable to load servlet com.liferay.portal.kernel.servlet.PortletServlet&lt;br /&gt;java.lang.ClassCastException: class com.liferay.portal.kernel.servlet.PortletServlet&lt;br /&gt;    at java.lang.Class.asSubclass(Class.java:3404)&lt;br /&gt;    at com.liferay.portal.osgi.web.servlet.context.helper.internal.definition.WebXMLDefinitionLoader._getServletInstance(WebXMLDefinitionLoader.java:1124)&lt;br /&gt;    at com.liferay.portal.osgi.web.servlet.context.helper.internal.definition.WebXMLDefinitionLoader._setServlet(WebXMLDefinitionLoader.java:1164)&lt;br /&gt;    at com.liferay.portal.osgi.web.servlet.context.helper.internal.definition.WebXMLDefinitionLoader.endElement(WebXMLDefinitionLoader.java:353)&lt;br /&gt;    at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:609)&lt;br /&gt;    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:1782)&lt;br /&gt;    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2967)&lt;br /&gt;    at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:602)&lt;br /&gt;    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:505)&lt;br /&gt;    at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:842)&lt;br /&gt;    at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:771)&lt;br /&gt;    at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141)&lt;br /&gt;    at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1213)&lt;br /&gt;    at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:643)&lt;br /&gt;    at com.liferay.portal.osgi.web.servlet.context.helper.internal.definition.WebXMLDefinitionLoader.loadWebXMLDefinition(WebXMLDefinitionLoader.java:520)&lt;br /&gt;    at com.liferay.portal.osgi.web.servlet.context.helper.internal.definition.WebXMLDefinitionLoader.loadWebXML(WebXMLDefinitionLoader.java:456)&lt;br /&gt;    at com.liferay.portal.osgi.web.servlet.context.helper.internal.ServletContextHelperRegistrationImpl.&amp;lt;init&amp;gt;(ServletContextHelperRegistrationImpl.java:76)&lt;br /&gt;    at com.liferay.portal.osgi.web.servlet.context.helper.internal.ServletContextHelperRegistrationServiceFactory.getService(ServletContextHelperRegistrationServiceFactory.java:48)&lt;br /&gt;    at com.liferay.portal.osgi.web.servlet.context.helper.internal.ServletContextHelperRegistrationServiceFactory.getService(ServletContextHelperRegistrationServiceFactory.java:31)&lt;br /&gt;    at org.eclipse.osgi.internal.serviceregistry.ServiceFactoryUse$1.run(ServiceFactoryUse.java:212)&lt;br /&gt;    at java.security.AccessController.doPrivileged(Native Method)&lt;br /&gt;    at org.eclipse.osgi.internal.serviceregistry.ServiceFactoryUse.factoryGetService(ServiceFactoryUse.java:210)&lt;br /&gt;    at org.eclipse.osgi.internal.serviceregistry.ServiceFactoryUse.getService(ServiceFactoryUse.java:111)&lt;br /&gt;    at org.eclipse.osgi.internal.serviceregistry.ServiceConsumer$2.getService(ServiceConsumer.java:45)&lt;br /&gt;    at org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.getService(ServiceRegistrationImpl.java:524)&lt;br /&gt;    at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.getService(ServiceRegistry.java:464)&lt;br /&gt;    at org.eclipse.osgi.internal.framework.BundleContextImpl.getService(BundleContextImpl.java:624)&lt;br /&gt;    at com.liferay.portal.osgi.web.wab.extender.internal.WabBundleProcessor.initContext(WabBundleProcessor.java:456)&lt;br /&gt;    at com.liferay.portal.osgi.web.wab.extender.internal.WabBundleProcessor.init(WabBundleProcessor.java:136)&lt;br /&gt;    at com.liferay.portal.osgi.web.wab.extender.internal.WebBundleDeployer._initWabBundle(WebBundleDeployer.java:179)&lt;br /&gt;    at com.liferay.portal.osgi.web.wab.extender.internal.WebBundleDeployer.doStart(WebBundleDeployer.java:101)&lt;br /&gt;    at com.liferay.portal.osgi.web.wab.extender.internal.WabFactory$WABExtension.start(WabFactory.java:114)&lt;br /&gt;    at com.liferay.portal.osgi.web.wab.extender.internal.WabFactory.addingBundle(WabFactory.java:67)&lt;br /&gt;    at com.liferay.portal.osgi.web.wab.extender.internal.WabFactory.addingBundle(WabFactory.java:49)&lt;br /&gt;    at org.osgi.util.tracker.BundleTracker$Tracked.customizerAdding(BundleTracker.java:475)&lt;br /&gt;    at org.osgi.util.tracker.BundleTracker$Tracked.customizerAdding(BundleTracker.java:1)&lt;br /&gt;    at org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:256)&lt;br /&gt;    at org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:229)&lt;br /&gt;    at org.osgi.util.tracker.BundleTracker$Tracked.bundleChanged(BundleTracker.java:450)&lt;br /&gt;    at org.eclipse.osgi.internal.framework.BundleContextImpl.dispatchEvent(BundleContextImpl.java:908)&lt;br /&gt;    at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)&lt;br /&gt;    at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)&lt;br /&gt;    at org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEventPrivileged(EquinoxEventPublisher.java:230)&lt;br /&gt;    at org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEvent(EquinoxEventPublisher.java:137)&lt;br /&gt;    at org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEvent(EquinoxEventPublisher.java:129)&lt;br /&gt;    at org.eclipse.osgi.internal.framework.EquinoxContainerAdaptor.publishModuleEvent(EquinoxContainerAdaptor.java:191)&lt;br /&gt;    at org.eclipse.osgi.container.Module.publishEvent(Module.java:476)&lt;br /&gt;    at org.eclipse.osgi.container.Module.doStart(Module.java:578)&lt;br /&gt;    at org.eclipse.osgi.container.Module.start(Module.java:449)&lt;br /&gt;    at org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:428)&lt;br /&gt;    at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundle(DirectoryWatcher.java:1264)&lt;br /&gt;    at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundles(DirectoryWatcher.java:1237)&lt;br /&gt;    at org.apache.felix.fileinstall.internal.DirectoryWatcher.doProcess(DirectoryWatcher.java:520)&lt;br /&gt;    at org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:365)&lt;br /&gt;    at org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:316)&lt;br /&gt;2019-12-23 03:02:25.136 ERROR [fileinstall-D:/LiferayHome/7.2/Upgrade6xto7x/liferay-ce-portal-7.2.0-ga1/osgi/war][WabBundleProcessor:229] Catastrophic initialization failure! Shutting down sample-service-builder-portlet WAB due to: null&lt;br /&gt;java.lang.reflect.UndeclaredThrowableException&lt;br /&gt;    at com.sun.proxy.$Proxy938.registerServlets(Unknown Source)&lt;br /&gt;    at com.liferay.portal.osgi.web.wab.extender.internal.WabBundleProcessor.init(WabBundleProcessor.java:222)&lt;br /&gt;    at com.liferay.portal.osgi.web.wab.extender.internal.WebBundleDeployer._initWabBundle(WebBundleDeployer.java:179)&lt;br /&gt;    at com.liferay.portal.osgi.web.wab.extender.internal.WebBundleDeployer.doStart(WebBundleDeployer.java:101)&lt;br /&gt;    at com.liferay.portal.osgi.web.wab.extender.internal.WabFactory$WABExtension.start(WabFactory.java:114)&lt;br /&gt;    at com.liferay.portal.osgi.web.wab.extender.internal.WabFactory.addingBundle(WabFactory.java:67)&lt;br /&gt;    at com.liferay.portal.osgi.web.wab.extender.internal.WabFactory.addingBundle(WabFactory.java:49)&lt;br /&gt;    at org.osgi.util.tracker.BundleTracker$Tracked.customizerAdding(BundleTracker.java:475)&lt;br /&gt;    at org.osgi.util.tracker.BundleTracker$Tracked.customizerAdding(BundleTracker.java:1)&lt;br /&gt;    at org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:256)&lt;br /&gt;    at org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:229)&lt;br /&gt;    at org.osgi.util.tracker.BundleTracker$Tracked.bundleChanged(BundleTracker.java:450)&lt;br /&gt;    at org.eclipse.osgi.internal.framework.BundleContextImpl.dispatchEvent(BundleContextImpl.java:908)&lt;br /&gt;    at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)&lt;br /&gt;    at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)&lt;br /&gt;    at org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEventPrivileged(EquinoxEventPublisher.java:230)&lt;br /&gt;    at org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEvent(EquinoxEventPublisher.java:137)&lt;br /&gt;    at org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEvent(EquinoxEventPublisher.java:129)&lt;br /&gt;    at org.eclipse.osgi.internal.framework.EquinoxContainerAdaptor.publishModuleEvent(EquinoxContainerAdaptor.java:191)&lt;br /&gt;    at org.eclipse.osgi.container.Module.publishEvent(Module.java:476)&lt;br /&gt;    at org.eclipse.osgi.container.Module.doStart(Module.java:578)&lt;br /&gt;    at org.eclipse.osgi.container.Module.start(Module.java:449)&lt;br /&gt;    at org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:428)&lt;br /&gt;    at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundle(DirectoryWatcher.java:1264)&lt;br /&gt;    at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundles(DirectoryWatcher.java:1237)&lt;br /&gt;    at org.apache.felix.fileinstall.internal.DirectoryWatcher.doProcess(DirectoryWatcher.java:520)&lt;br /&gt;    at org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:365)&lt;br /&gt;    at org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:316)&lt;br /&gt;Caused by: java.lang.reflect.InvocationTargetException&lt;br /&gt;    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)&lt;br /&gt;    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)&lt;br /&gt;    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)&lt;br /&gt;    at java.lang.reflect.Method.invoke(Method.java:498)&lt;br /&gt;    at com.liferay.portal.osgi.web.wab.extender.internal.adapter.ModifiableServletContextAdapter.invoke(ModifiableServletContextAdapter.java:447)&lt;br /&gt;    ... 28 more&lt;br /&gt;Caused by: java.lang.NullPointerException&lt;br /&gt;    at com.liferay.portal.osgi.web.wab.extender.internal.adapter.ModifiableServletContextAdapter.addServlet(ModifiableServletContextAdapter.java:233)&lt;br /&gt;    at com.liferay.portal.osgi.web.wab.extender.internal.adapter.ModifiableServletContextAdapter.registerServlets(ModifiableServletContextAdapter.java:582)</summary>
    <dc:creator>Rajesh Chaurasia</dc:creator>
    <dc:date>2019-12-23T03:04:06Z</dc:date>
  </entry>
  <entry>
    <title>RE: Error on trying to deploy a service builder portlet upgraded frm 6.x to</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118132921" />
    <author>
      <name>Christoph Rabel</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118132921</id>
    <updated>2019-12-22T14:48:06Z</updated>
    <published>2019-12-22T14:48:06Z</published>
    <summary type="html">How large is your war file? My best guess is that you have a ton of dependencies and simply run OOM. But that&amp;#39;s just a wild guess.&lt;br /&gt;Maybe you could also enable gc logs and check the heap space before deploying. Maybe you are already at the limit for other reasons and that last bundle is just the last drop ...</summary>
    <dc:creator>Christoph Rabel</dc:creator>
    <dc:date>2019-12-22T14:48:06Z</dc:date>
  </entry>
  <entry>
    <title>Error on trying to deploy a service builder portlet upgraded frm 6.x to 7.x</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118140111" />
    <author>
      <name>Rajesh Chaurasia</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118140111</id>
    <updated>2019-12-22T13:39:10Z</updated>
    <published>2019-12-22T13:39:10Z</published>
    <summary type="html">Hi All,I upgraded the Service builder portlet from 6.2 to 7.2 and was able to generate jars and wars after fixing breaking issues.But when i tried to deploy the portlet ,  i am getting below errros:&lt;br /&gt;2019-12-22 13:30:50.709 ERROR [fileinstall-D:/LiferayHome/7.2/Upgrade6xto7x/liferay-ce-portal-7.2.0-ga1/osgi/war][LogService:93] In main loop, we have serious trouble &lt;br /&gt;java.lang.OutOfMemoryError: Java heap space&lt;br /&gt;    at java.nio.HeapByteBuffer.&amp;lt;init&amp;gt;(HeapByteBuffer.java:57)&lt;br /&gt;    at java.nio.ByteBuffer.allocate(ByteBuffer.java:335)&lt;br /&gt;    at aQute.lib.io.ByteBufferOutputStream.&amp;lt;init&amp;gt;(ByteBufferOutputStream.java:16)&lt;br /&gt;    at aQute.bnd.osgi.Jar.buildFromInputStream(Jar.java:245)&lt;br /&gt;    at aQute.bnd.osgi.Jar.&amp;lt;init&amp;gt;(Jar.java:130)&lt;br /&gt;    at aQute.bnd.osgi.Jar.&amp;lt;init&amp;gt;(Jar.java:168)&lt;br /&gt;    at com.liferay.ant.bnd.jsp.JspAnalyzerPlugin.containsTLDInBundleClassPath(JspAnalyzerPlugin.java:443)&lt;br /&gt;    at com.liferay.ant.bnd.jsp.JspAnalyzerPlugin.addTaglibRequirements(JspAnalyzerPlugin.java:333)&lt;br /&gt;    at com.liferay.ant.bnd.jsp.JspAnalyzerPlugin.analyzeJar(JspAnalyzerPlugin.java:100)&lt;br /&gt;    at aQute.bnd.osgi.Analyzer.doPlugins(Analyzer.java:877)&lt;br /&gt;    at aQute.bnd.osgi.Analyzer.analyze(Analyzer.java:239)&lt;br /&gt;    at aQute.bnd.osgi.Builder.analyze(Builder.java:408)&lt;br /&gt;    at aQute.bnd.osgi.Analyzer.calcManifest(Analyzer.java:907)&lt;br /&gt;    at aQute.bnd.osgi.Builder.build(Builder.java:118)&lt;br /&gt;    at com.liferay.portal.osgi.web.wab.generator.internal.processor.WabProcessor.transformToOSGiBundle(WabProcessor.java:1198)&lt;br /&gt;    at com.liferay.portal.osgi.web.wab.generator.internal.processor.WabProcessor.getProcessedFile(WabProcessor.java:125)&lt;br /&gt;    at com.liferay.portal.osgi.web.wab.generator.internal.WabGenerator.generate(WabGenerator.java:90)&lt;br /&gt;    at com.liferay.portal.osgi.web.wab.generator.internal.connection.WabURLConnection.getInputStream(WabURLConnection.java:102)&lt;br /&gt;    at java.net.URL.openStream(URL.java:1045)&lt;br /&gt;    at org.apache.felix.fileinstall.internal.DirectoryWatcher.install(DirectoryWatcher.java:962)&lt;br /&gt;    at org.apache.felix.fileinstall.internal.DirectoryWatcher.install(DirectoryWatcher.java:884)&lt;br /&gt;    at org.apache.felix.fileinstall.internal.DirectoryWatcher.doProcess(DirectoryWatcher.java:489)&lt;br /&gt;    at org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:365)&lt;br /&gt;    at org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:316)</summary>
    <dc:creator>Rajesh Chaurasia</dc:creator>
    <dc:date>2019-12-22T13:39:10Z</dc:date>
  </entry>
</feed>
