2 Replies Latest reply on Feb 25, 2008 5:40 PM by Raman Gudimella

    [PortletAppDeployment] Failed to create instance - Please ad

    Raman Gudimella Newbie

      Hi all,
      I am getting the following error when I created a sample portlet application. I followed the spring mvc portlet framework on JBoss Portlet Server 2.6.3GA ,JDK1.5.
      Please let me know whats wrong with my code.

      14:52:38,098 ERROR [STDERR] org.jboss.portal.portlet.container.PortletInitializationException: The portlet InsideGisMigration threw an error during init
      14:52:38,098 ERROR [STDERR] at org.jboss.portal.portlet.impl.jsr168.PortletContainerImpl.start(PortletContainerImpl.java:268)
      14:52:38,098 ERROR [STDERR] at org.jboss.portal.portlet.impl.container.PortletApplicationContextImpl.startPortletApplication(PortletApplicationContextImpl.java:135)
      14:52:38,098 ERROR [STDERR] at org.jboss.portal.portlet.deployment.jboss.PortletAppDeployment.start(PortletAppDeployment.java:151)
      14:52:38,098 ERROR [STDERR] at org.jboss.portal.core.deployment.jboss.PortletAppDeployment.start(PortletAppDeployment.java:96)
      14:52:38,108 ERROR [STDERR] at org.jboss.portal.server.deployment.jboss.DeploymentContext.start(DeploymentContext.java:99)
      14:52:38,108 ERROR [STDERR] at org.jboss.portal.server.deployment.jboss.PortalDeploymentInfoContext.start(PortalDeploymentInfoContext.java:211)
      14:52:38,108 ERROR [STDERR] at org.jboss.portal.server.deployment.jboss.ServerDeployer.start(ServerDeployer.java:217)
      14:52:38,108 ERROR [STDERR] at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
      14:52:38,108 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
      14:52:38,108 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor245.invoke(Unknown Source)
      14:52:38,108 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      14:52:38,108 ERROR [STDERR] at java.lang.reflect.Method.invoke(Unknown Source)
      14:52:38,108 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      14:52:38,108 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      14:52:38,108 ERROR [STDERR] at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
      14:52:38,108 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      14:52:38,108 ERROR [STDERR] at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
      14:52:38,108 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      14:52:38,108 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      14:52:38,108 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      14:52:38,108 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
      14:52:38,108 ERROR [STDERR] at $Proxy214.deploy(Unknown Source)
      14:52:38,108 ERROR [STDERR] at org.jboss.portal.server.deployment.jboss.ServerDeployer.deploy(ServerDeployer.java:259)
      14:52:38,108 ERROR [STDERR] at org.jboss.portal.server.deployment.WebAppAdapter.deploy(WebAppAdapter.java:53)
      14:52:38,108 ERROR [STDERR] at org.jboss.portal.server.deployment.WebAppIntercepter.handleNotification(WebAppIntercepter.java:159)
      14:52:38,108 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
      14:52:38,108 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      14:52:38,108 ERROR [STDERR] at java.lang.reflect.Method.invoke(Unknown Source)
      14:52:38,108 ERROR [STDERR] at org.jboss.mx.notification.NotificationListenerProxy.invoke(NotificationListenerProxy.java:153)
      14:52:38,108 ERROR [STDERR] at $Proxy217.handleNotification(Unknown Source)
      14:52:38,108 ERROR [STDERR] at org.jboss.mx.util.JBossNotificationBroadcasterSupport.handleNotification(JBossNotificationBroadcasterSupport.java:127)
      14:52:38,108 ERROR [STDERR] at org.jboss.mx.util.JBossNotificationBroadcasterSupport.sendNotification(JBossNotificationBroadcasterSupport.java:108)
      14:52:38,108 ERROR [STDERR] at org.jboss.deployment.SubDeployerSupport.emitNotification(SubDeployerSupport.java:340)
      14:52:38,108 ERROR [STDERR] at org.jboss.deployment.SubDeployerSupport.start(SubDeployerSupport.java:308)
      14:52:38,108 ERROR [STDERR] at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:482)
      14:52:38,108 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor147.invoke(Unknown Source)
      14:52:38,108 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      14:52:38,108 ERROR [STDERR] at java.lang.reflect.Method.invoke(Unknown Source)
      14:52:38,108 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      14:52:38,108 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      14:52:38,108 ERROR [STDERR] at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
      14:52:38,108 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      14:52:38,108 ERROR [STDERR] at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
      14:52:38,108 ERROR [STDERR] at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
      14:52:38,108 ERROR [STDERR] at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
      14:52:38,108 ERROR [STDERR] at org.jboss.wsf.container.jboss42.DeployerInterceptor.start(DeployerInterceptor.java:87)
      14:52:38,108 ERROR [STDERR] at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)
      14:52:38,108 ERROR [STDERR] at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)
      14:52:38,108 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      14:52:38,108 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      14:52:38,108 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      14:52:38,108 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
      14:52:38,108 ERROR [STDERR] at $Proxy195.start(Unknown Source)
      14:52:38,108 ERROR [STDERR] at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
      14:52:38,108 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
      14:52:38,108 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
      14:52:38,108 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor27.invoke(Unknown Source)
      14:52:38,108 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      14:52:38,108 ERROR [STDERR] at java.lang.reflect.Method.invoke(Unknown Source)
      14:52:38,108 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      14:52:38,108 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      14:52:38,108 ERROR [STDERR] at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
      14:52:38,108 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      14:52:38,108 ERROR [STDERR] at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
      14:52:38,108 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      14:52:38,108 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      14:52:38,108 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      14:52:38,108 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
      14:52:38,108 ERROR [STDERR] at $Proxy9.deploy(Unknown Source)
      14:52:38,108 ERROR [STDERR] at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
      14:52:38,108 ERROR [STDERR] at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
      14:52:38,108 ERROR [STDERR] at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
      14:52:38,108 ERROR [STDERR] at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:274)
      14:52:38,108 ERROR [STDERR] at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:225)
      14:52:38,108 ERROR [STDERR] Caused by: java.lang.ExceptionInInitializerError
      14:52:38,108 ERROR [STDERR] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      14:52:38,108 ERROR [STDERR] at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
      14:52:38,108 ERROR [STDERR] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
      14:52:38,108 ERROR [STDERR] at java.lang.reflect.Constructor.newInstance(Unknown Source)
      14:52:38,108 ERROR [STDERR] at java.lang.Class.newInstance0(Unknown Source)
      14:52:38,108 ERROR [STDERR] at java.lang.Class.newInstance(Unknown Source)
      14:52:38,108 ERROR [STDERR] at org.jboss.portal.portlet.impl.jsr168.PortletContainerImpl.start(PortletContainerImpl.java:231)
      14:52:38,108 ERROR [STDERR] ... 73 more
      14:52:38,108 ERROR [STDERR] Caused by: org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: Invalid class loader hierarchy. You have more than one version of 'org.apache.commons.logging.Log' visible, which is not allowed. (Caused by org.apache.commons.logging.LogConfigurationException: Invalid class loader hierarchy. You have more than one version of 'org.apache.commons.logging.Log' visible, which is not allowed.) (Caused by org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: Invalid class loader hierarchy. You have more than one version of 'org.apache.commons.logging.Log' visible, which is not allowed. (Caused by org.apache.commons.logging.LogConfigurationException: Invalid class loader hierarchy. You have more than one version of 'org.apache.commons.logging.Log' visible, which is not allowed.))
      14:52:38,108 ERROR [STDERR] at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:543)
      14:52:38,108 ERROR [STDERR] at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:235)
      14:52:38,118 ERROR [STDERR] at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:370)
      14:52:38,118 ERROR [STDERR] at org.springframework.web.portlet.DispatcherPortlet.<clinit>(DispatcherPortlet.java:204)
      14:52:38,118 ERROR [STDERR] ... 80 more
      14:52:38,118 ERROR [STDERR] Caused by: org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: Invalid class loader hierarchy. You have more than one version of 'org.apache.commons.logging.Log' visible, which is not allowed. (Caused by org.apache.commons.logging.LogConfigurationException: Invalid class loader hierarchy. You have more than one version of 'org.apache.commons.logging.Log' visible, which is not allowed.)
      14:52:38,118 ERROR [STDERR] at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:397)
      14:52:38,118 ERROR [STDERR] at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:529)
      14:52:38,118 ERROR [STDERR] ... 83 more
      14:52:38,118 ERROR [STDERR] Caused by: org.apache.commons.logging.LogConfigurationException: Invalid class loader hierarchy. You have more than one version of 'org.apache.commons.logging.Log' visible, which is not allowed.
      14:52:38,118 ERROR [STDERR] at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:385)
      14:52:38,118 ERROR [STDERR] ... 84 more
      14:52:38,128 WARN [PortletAppDeployment] Failed to create instance InsideGisMigrationInstance of portlet /InsideGisMigration.InsideGisMigration because portlet /InsideGisMigration.InsideGisMigration is not available