• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts 2 Portlet deployment error in JBOSS Portal

 
sridhar gandikota
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I tried to deploy the Struts 2 Portlet in the JBoss. I am getting deployment error as follows :-

17:12:48,913 ERROR [STDERR] org.jboss.portal.portlet.container.PortletInitializationException: The portlet DynamicContentPortlet threw an error during init
17:12:48,914 ERROR [STDERR] at org.jboss.portal.portlet.impl.jsr168.PortletContainerImpl.start(PortletContainerImpl.java:268)
17:12:48,914 ERROR [STDERR] at org.jboss.portal.portlet.impl.container.PortletApplicationContextImpl.startPortletApplication(PortletApplicationContextImpl.java:135)
17:12:48,915 ERROR [STDERR] at org.jboss.portal.portlet.deployment.jboss.PortletAppDeployment.start(PortletAppDeployment.java:151)
17:12:48,915 ERROR [STDERR] at org.jboss.portal.core.deployment.jboss.PortletAppDeployment.start(PortletAppDeployment.java:96)
17:12:48,915 ERROR [STDERR] at org.jboss.portal.server.deployment.jboss.DeploymentContext.start(DeploymentContext.java:99)
17:12:48,915 ERROR [STDERR] at org.jboss.portal.server.deployment.jboss.PortalDeploymentInfoContext.start(PortalDeploymentInfoContext.java:211)
17:12:48,915 ERROR [STDERR] at org.jboss.portal.server.deployment.jboss.ServerDeployer.start(ServerDeployer.java:217)
17:12:48,915 ERROR [STDERR] at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
17:12:48,915 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
17:12:48,915 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor234.invoke(Unknown Source)
17:12:48,916 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
17:12:48,916 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
17:12:48,916 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
17:12:48,916 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
17:12:48,916 ERROR [STDERR] at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
17:12:48,916 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
17:12:48,916 ERROR [STDERR] at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
17:12:48,916 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
17:12:48,916 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
17:12:48,916 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
17:12:48,916 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
17:12:48,916 ERROR [STDERR] at $Proxy214.deploy(Unknown Source)
17:12:48,916 ERROR [STDERR] at org.jboss.portal.server.deployment.jboss.ServerDeployer.deploy(ServerDeployer.java:259)
17:12:48,916 ERROR [STDERR] at org.jboss.portal.server.deployment.WebAppAdapter.deploy(WebAppAdapter.java:53)
17:12:48,916 ERROR [STDERR] at org.jboss.portal.server.deployment.WebAppIntercepter.handleNotification(WebAppIntercepter.java:159)
17:12:48,917 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
17:12:48,917 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
17:12:48,917 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
17:12:48,917 ERROR [STDERR] at org.jboss.mx.notification.NotificationListenerProxy.invoke(NotificationListenerProxy.java:153)
17:12:48,917 ERROR [STDERR] at $Proxy216.handleNotification(Unknown Source)
17:12:48,917 ERROR [STDERR] at org.jboss.mx.util.JBossNotificationBroadcasterSupport.handleNotification(JBossNotificationBroadcasterSupport.java:127)
17:12:48,917 ERROR [STDERR] at org.jboss.mx.util.JBossNotificationBroadcasterSupport.sendNotification(JBossNotificationBroadcasterSupport.java:108)
17:12:48,917 ERROR [STDERR] at org.jboss.deployment.SubDeployerSupport.emitNotification(SubDeployerSupport.java:340)
17:12:48,917 ERROR [STDERR] at org.jboss.deployment.SubDeployerSupport.start(SubDeployerSupport.java:308)
17:12:48,917 ERROR [STDERR] at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:482)
17:12:48,917 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor147.invoke(Unknown Source)
17:12:48,917 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
17:12:48,917 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
17:12:48,917 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
17:12:48,917 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
17:12:48,917 ERROR [STDERR] at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
17:12:48,917 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
17:12:48,917 ERROR [STDERR] at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
17:12:48,918 ERROR [STDERR] at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
17:12:48,918 ERROR [STDERR] at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
17:12:48,918 ERROR [STDERR] at org.jboss.wsf.container.jboss42.DeployerInterceptor.start(DeployerInterceptor.java:87)
17:12:48,918 ERROR [STDERR] at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)
17:12:48,918 ERROR [STDERR] at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)
17:12:48,918 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
17:12:48,918 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
17:12:48,918 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
17:12:48,918 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
17:12:48,918 ERROR [STDERR] at $Proxy195.start(Unknown Source)
17:12:48,918 ERROR [STDERR] at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
17:12:48,918 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
17:12:48,918 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
17:12:48,918 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor27.invoke(Unknown Source)
17:12:48,918 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
17:12:48,918 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
17:12:48,918 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
17:12:48,918 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
17:12:48,918 ERROR [STDERR] at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
17:12:48,918 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
17:12:48,918 ERROR [STDERR] at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
17:12:48,919 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
17:12:48,919 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
17:12:48,919 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
17:12:48,919 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
17:12:48,919 ERROR [STDERR] at $Proxy9.deploy(Unknown Source)
17:12:48,919 ERROR [STDERR] at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
17:12:48,919 ERROR [STDERR] at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
17:12:48,919 ERROR [STDERR] at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
17:12:48,919 ERROR [STDERR] at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336)
17:12:48,919 ERROR [STDERR] at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
17:12:48,919 ERROR [STDERR] at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
17:12:48,919 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
17:12:48,919 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
17:12:48,919 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
17:12:48,919 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
17:12:48,919 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
17:12:48,919 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
17:12:48,919 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
17:12:48,919 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
17:12:48,919 ERROR [STDERR] at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
17:12:48,919 ERROR [STDERR] at $Proxy0.start(Unknown Source)
17:12:48,919 ERROR [STDERR] at org.jboss.system.ServiceController.start(ServiceController.java:417)
17:12:48,919 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
17:12:48,919 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
17:12:48,920 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
17:12:48,920 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
17:12:48,920 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
17:12:48,920 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
17:12:48,920 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
17:12:48,920 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
17:12:48,920 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
17:12:48,920 ERROR [STDERR] at $Proxy4.start(Unknown Source)
17:12:48,920 ERROR [STDERR] at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
17:12:48,920 ERROR [STDERR] at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
17:12:48,920 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
17:12:48,920 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
17:12:48,920 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
17:12:48,920 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
17:12:48,921 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
17:12:48,921 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
17:12:48,921 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
17:12:48,921 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
17:12:48,921 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
17:12:48,921 ERROR [STDERR] at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
17:12:48,921 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
17:12:48,921 ERROR [STDERR] at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
17:12:48,921 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
17:12:48,921 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
17:12:48,921 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
17:12:48,921 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
17:12:48,921 ERROR [STDERR] at $Proxy5.deploy(Unknown Source)
17:12:48,922 ERROR [STDERR] at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
17:12:48,922 ERROR [STDERR] at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
17:12:48,922 ERROR [STDERR] at org.jboss.Main.boot(Main.java:200)
17:12:48,922 ERROR [STDERR] at org.jboss.Main$1.run(Main.java:508)
17:12:48,922 ERROR [STDERR] at java.lang.Thread.run(Thread.java:613)
17:12:48,922 ERROR [STDERR] Caused by: java.lang.ExceptionInInitializerError
17:12:48,922 ERROR [STDERR] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
17:12:48,922 ERROR [STDERR] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
17:12:48,922 ERROR [STDERR] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
17:12:48,922 ERROR [STDERR] at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
17:12:48,922 ERROR [STDERR] at java.lang.Class.newInstance0(Class.java:350)
17:12:48,922 ERROR [STDERR] at java.lang.Class.newInstance(Class.java:303)
17:12:48,922 ERROR [STDERR] at org.jboss.portal.portlet.impl.jsr168.PortletContainerImpl.start(PortletContainerImpl.java:231)
17:12:48,922 ERROR [STDERR] ... 119 more
17:12:48,923 ERROR [STDERR] Caused by: org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: Class org.apache.commons.logging.impl.Log4JLogger does not implement Log
17:12:48,923 ERROR [STDERR] at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:532)
17:12:48,923 ERROR [STDERR] at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:272)
17:12:48,923 ERROR [STDERR] at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:246)
17:12:48,923 ERROR [STDERR] at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:395)
17:12:48,923 ERROR [STDERR] at org.apache.struts2.portlet.dispatcher.Jsr168Dispatcher.<clinit>(Jsr168Dispatcher.java:155)
17:12:48,923 ERROR [STDERR] ... 126 more
17:12:48,923 ERROR [STDERR] Caused by: org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: Class org.apache.commons.logging.impl.Log4JLogger does not implement Log
17:12:48,923 ERROR [STDERR] at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:416)
17:12:48,923 ERROR [STDERR] at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:525)
17:12:48,923 ERROR [STDERR] ... 130 more
17:12:48,924 ERROR [STDERR] Caused by: org.apache.commons.logging.LogConfigurationException: Class org.apache.commons.logging.impl.Log4JLogger does not implement Log
17:12:48,924 ERROR [STDERR] at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:412)
17:12:48,924 ERROR [STDERR] ... 131 more

portlet.xml is as follows :-

<portlet>
<description xml:lang="EN">DC Portlet Application</description>
<portlet-name>DCPortlet</portlet-name>
<display-name xml:lang="EN"> DC Portlet Application </display-name>

<portlet-class>
org.apache.struts2.portlet.dispatcher.Jsr168Dispatcher
</portlet-class>
<!--
<!-- The namespace for the actions configured for view mode -->
<init-param>
<name>viewNamespace</name>
<value>/view</value>
</init-param>

<!-- The default action to invoke in view mode. -->
<init-param>
<name>defaultViewAction</name>
<value>ruleAction</value>
</init-param>

<expiration-cache>0</expiration-cache> -->

<supports>
<mime-type>text/html</mime-type>
<portlet-mode>view</portlet-mode>
</supports>

<supported-locale>en</supported-locale>

<portlet-info>
<title> DC Portlet</title>
<short-title>Portlet</short-title>
<keywords>dc,portlet</keywords>
</portlet-info>
</portlet>

</portlet-app>

Please help in order to get out of this problem.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic