Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Juhi Kumari
com.liferay.portal.kernel.deploy.hot.HotDeployException:
April 10, 2013 3:49 AM
Answer

Juhi Kumari

Rank: Expert

Posts: 347

Join Date: December 12, 2011

Recent Posts

Hi,

I am getting HotDeployException when deploying my war file to jboss server. Stacktrace is

  115:59:11,087 ERROR [HotDeployUtil] com.liferay.portal.kernel.deploy.hot.HotDeployException: Error registering portlets for RBM
  2com.liferay.portal.kernel.deploy.hot.HotDeployException: Error registering portlets for RBM
  3    at com.liferay.portal.deploy.hot.PortletHotDeployListener.invokeDeploy(PortletHotDeployListener.java:431)
  4    at com.liferay.portal.kernel.deploy.hot.HotDeployUtil._fireDeployEvent(HotDeployUtil.java:85)
  5    at com.liferay.portal.kernel.deploy.hot.HotDeployUtil.fireDeployEvent(HotDeployUtil.java:42)
  6    at com.liferay.portal.kernel.servlet.PortletContextListener.portalInit(PortletContextListener.java:45)
  7    at com.liferay.portal.kernel.util.PortalInitableUtil.init(PortalInitableUtil.java:39)
  8    at com.liferay.portal.kernel.servlet.PortletContextListener.contextInitialized(PortletContextListener.java:52)
  9    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3856)
 10    at org.apache.catalina.core.StandardContext.start(StandardContext.java:4361)
 11    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:790)
 12    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:770)
 13    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:553)
 14    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 15    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
 16    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
 17    at java.lang.reflect.Method.invoke(Unknown Source)
 18    at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:296)
 19    at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
 20    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
 21    at org.apache.catalina.core.StandardContext.init(StandardContext.java:5312)
 22    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 23    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
 24    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
 25    at java.lang.reflect.Method.invoke(Unknown Source)
 26    at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:296)
 27    at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
 28    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
 29    at org.jboss.web.tomcat.service.TomcatDeployer.performDeployInternal(TomcatDeployer.java:301)
 30    at org.jboss.web.tomcat.service.TomcatDeployer.performDeploy(TomcatDeployer.java:104)
 31    at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:375)
 32    at org.jboss.web.WebModule.startModule(WebModule.java:83)
 33    at org.jboss.web.WebModule.startService(WebModule.java:61)
 34    at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
 35    at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
 36    at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
 37    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
 38    at java.lang.reflect.Method.invoke(Unknown Source)
 39    at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
 40    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
 41    at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
 42    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
 43    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
 44    at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
 45    at $Proxy0.start(Unknown Source)
 46    at org.jboss.system.ServiceController.start(ServiceController.java:417)
 47    at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
 48    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
 49    at java.lang.reflect.Method.invoke(Unknown Source)
 50    at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
 51    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
 52    at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
 53    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
 54    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
 55    at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
 56    at $Proxy42.start(Unknown Source)
 57    at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:466)
 58    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 59    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
 60    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
 61    at java.lang.reflect.Method.invoke(Unknown Source)
 62    at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
 63    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
 64    at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
 65    at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
 66    at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
 67    at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
 68    at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
 69    at org.jboss.wsf.container.jboss42.DeployerInterceptor.start(DeployerInterceptor.java:87)
 70    at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)
 71    at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)
 72    at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
 73    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
 74    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
 75    at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
 76    at $Proxy43.start(Unknown Source)
 77    at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
 78    at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
 79    at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
 80    at sun.reflect.GeneratedMethodAccessor53.invoke(Unknown Source)
 81    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
 82    at java.lang.reflect.Method.invoke(Unknown Source)
 83    at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
 84    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
 85    at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
 86    at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
 87    at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
 88    at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
 89    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
 90    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
 91    at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
 92    at $Proxy9.deploy(Unknown Source)
 93    at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
 94    at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
 95    at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
 96    at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:274)
 97    at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:225)
 98Caused by: java.lang.ClassCastException: com.tecnotree.ratingbilling.portlet.ServiceClassMasterPortlet cannot be cast to javax.portlet.Portlet
 99    at com.liferay.portal.deploy.hot.PortletHotDeployListener.invokeDeploy(PortletHotDeployListener.java:159)
100    ... 94 more


If any idea plz share.

Regards
Juhi
Apoorva Prakash
RE: com.liferay.portal.kernel.deploy.hot.HotDeployException:
April 10, 2013 4:04 AM
Answer

Apoorva Prakash

Rank: Liferay Master

Posts: 659

Join Date: June 15, 2010

Recent Posts

Juhi Kumari:
Hi,

I am getting HotDeployException when deploying my war file to jboss server. Stacktrace is

  115:59:11,087 ERROR [HotDeployUtil] com.liferay.portal.kernel.deploy.hot.HotDeployException: Error registering portlets for RBM
  2com.liferay.portal.kernel.deploy.hot.HotDeployException: Error registering portlets for RBM
  3    at com.liferay.portal.deploy.hot.PortletHotDeployListener.invokeDeploy(PortletHotDeployListener.java:431)
  4    at com.liferay.portal.kernel.deploy.hot.HotDeployUtil._fireDeployEvent(HotDeployUtil.java:85)
  5    at com.liferay.portal.kernel.deploy.hot.HotDeployUtil.fireDeployEvent(HotDeployUtil.java:42)
  6    at com.liferay.portal.kernel.servlet.PortletContextListener.portalInit(PortletContextListener.java:45)
  7    at com.liferay.portal.kernel.util.PortalInitableUtil.init(PortalInitableUtil.java:39)
  8    at com.liferay.portal.kernel.servlet.PortletContextListener.contextInitialized(PortletContextListener.java:52)
  9    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3856)
 10    at org.apache.catalina.core.StandardContext.start(StandardContext.java:4361)
 11    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:790)
 12    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:770)
 13    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:553)
 14    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 15    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
 16    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
 17    at java.lang.reflect.Method.invoke(Unknown Source)
 18    at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:296)
 19    at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
 20    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
 21    at org.apache.catalina.core.StandardContext.init(StandardContext.java:5312)
 22    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 23    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
 24    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
 25    at java.lang.reflect.Method.invoke(Unknown Source)
 26    at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:296)
 27    at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
 28    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
 29    at org.jboss.web.tomcat.service.TomcatDeployer.performDeployInternal(TomcatDeployer.java:301)
 30    at org.jboss.web.tomcat.service.TomcatDeployer.performDeploy(TomcatDeployer.java:104)
 31    at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:375)
 32    at org.jboss.web.WebModule.startModule(WebModule.java:83)
 33    at org.jboss.web.WebModule.startService(WebModule.java:61)
 34    at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
 35    at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
 36    at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
 37    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
 38    at java.lang.reflect.Method.invoke(Unknown Source)
 39    at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
 40    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
 41    at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
 42    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
 43    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
 44    at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
 45    at $Proxy0.start(Unknown Source)
 46    at org.jboss.system.ServiceController.start(ServiceController.java:417)
 47    at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
 48    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
 49    at java.lang.reflect.Method.invoke(Unknown Source)
 50    at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
 51    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
 52    at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
 53    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
 54    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
 55    at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
 56    at $Proxy42.start(Unknown Source)
 57    at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:466)
 58    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 59    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
 60    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
 61    at java.lang.reflect.Method.invoke(Unknown Source)
 62    at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
 63    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
 64    at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
 65    at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
 66    at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
 67    at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
 68    at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
 69    at org.jboss.wsf.container.jboss42.DeployerInterceptor.start(DeployerInterceptor.java:87)
 70    at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)
 71    at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)
 72    at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
 73    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
 74    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
 75    at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
 76    at $Proxy43.start(Unknown Source)
 77    at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
 78    at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
 79    at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
 80    at sun.reflect.GeneratedMethodAccessor53.invoke(Unknown Source)
 81    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
 82    at java.lang.reflect.Method.invoke(Unknown Source)
 83    at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
 84    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
 85    at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
 86    at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
 87    at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
 88    at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
 89    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
 90    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
 91    at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
 92    at $Proxy9.deploy(Unknown Source)
 93    at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
 94    at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
 95    at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
 96    at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:274)
 97    at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:225)
 98Caused by: java.lang.ClassCastException: com.tecnotree.ratingbilling.portlet.ServiceClassMasterPortlet cannot be cast to javax.portlet.Portlet
 99    at com.liferay.portal.deploy.hot.PortletHotDeployListener.invokeDeploy(PortletHotDeployListener.java:159)
100    ... 94 more


If any idea plz share.

Regards
Juhi


Hello Juhi,

Try the following:
Clean work and temp folders, remove portlet from web-apps, remove entry form database (servicecomponent and resourcecreation tables), restart server and redeploy.

HTH

Thanks and Regards,
Apoorva Prakash
Manish Yadav
RE: com.liferay.portal.kernel.deploy.hot.HotDeployException:
April 10, 2013 4:21 AM
Answer

Manish Yadav

Rank: Expert

Posts: 449

Join Date: May 26, 2012

Recent Posts

please check if Any external jar file you are using in portlet which is already available in tomcat/lib/ or tomcat/lib/ext

might be its due to jar confilct