Reverting these two commits makes jetty run successfully and the UI launches and works fine but the user is already logged in as admin the first time instead of the user entering the credentials himself (may be due to single sign on ) -
1) Commit: 99ea4011b18356d09686889205ef5df1b170b0dc ( UCS class issue) 2) Commit : c5fb8349bf92b48bca6d06370112f5ec04a9d098 (GSLB feature - autowiring issues) @Chip - Should I go ahead and revert these two commits to get the master branch up and running ? Regards, Pranav -----Original Message----- From: Pranav Saxena [mailto:pranav.sax...@citrix.com] Sent: Thursday, March 28, 2013 12:56 AM To: cloudstack-...@incubator.apache.org Cc: Chip Childers <chip.child...@sungard.com> (chip.child...@sungard.com) Subject: Jetty Failing on latest master due to class UCS manager not Found Hi , While starting jetty on latest master , it throws this exception. Could someone resolve the issue , else as discussed with Chip on IRC we'll have to revert the commits which went in yesterday since until day before yesterday , master was stable . - ERROR [web.context.ContextLoader] (main:) Context initialization failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'regionServiceImpl': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.apache.cloudstack.region.RegionManager org.apache.cloudstack.region.RegionServiceImpl._regionMgr; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.cloud.ucs.manager.UcsManagerImpl] for bean with name 'UcsManager' defined in class path resource [componentContext.xml]; nested exception is java.lang.ClassNotFoundException: com.cloud.ucs.manager.UcsManagerImpl Related cause: org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.cloud.ucs.manager.UcsManagerImpl] for bean with name 'UcsManager' defined in class path resource [componentContext.xml]; nested exception is java.lang.ClassNotFoundException: com.cloud.ucs.manager.UcsManagerImpl Related cause: org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.cloud.ucs.database.UcsBladeDaoImpl] for bean with name 'UcsBladeDao' defined in class path resource [componentContext.xml]; nested exception is java.lang.ClassNotFoundException: com.cloud.ucs.database.UcsBladeDaoImpl Related cause: org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.cloud.ucs.database.UcsManagerDaoImpl] for bean with name 'UcsManagerDao' defined in class path resource [componentContext.xml]; nested exception is java.lang.ClassNotFoundException: com.cloud.ucs.database.UcsManagerDaoImpl at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:287) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1106) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:609) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:918) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:469) at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:383) at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:283) at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111) at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:549) at org.mortbay.jetty.servlet.Context.startContext(Context.java:136) at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1282) at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:518) at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:499) at org.mortbay.jetty.plugin.Jetty6PluginWebAppContext.doStart(Jetty6PluginWebAppContext.java:115) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152) at org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130) at org.mortbay.jetty.Server.doStart(Server.java:224) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) at org.mortbay.jetty.plugin.Jetty6PluginServer.start(Jetty6PluginServer.java:132) at org.mortbay.jetty.plugin.AbstractJettyMojo.startJetty(AbstractJettyMojo.java:454) at org.mortbay.jetty.plugin.AbstractJettyMojo.execute(AbstractJettyMojo.java:396) at org.mortbay.jetty.plugin.AbstractJettyRunMojo.execute(AbstractJettyRunMojo.java:210) at org.mortbay.jetty.plugin.Jetty6RunMojo.execute(Jetty6RunMojo.java:184) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196) at org.apache.maven.cli.MavenCli.main(MavenCli.java:141) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352) Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.apache.cloudstack.region.RegionManager org.apache.cloudstack.region.RegionServiceImpl._regionMgr; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.cloud.ucs.manager.UcsManagerImpl] for bean with name 'UcsManager' defined in class path resource [componentContext.xml]; nested exception is java.lang.ClassNotFoundException: com.cloud.ucs.manager.UcsManagerImpl at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:506) at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:87) at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:284) ... 54 more Caused by: org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.cloud.ucs.manager.UcsManagerImpl] for bean with name 'UcsManager' defined in class path resource [componentContext.xml]; nested exception is java.lang.ClassNotFoundException: com.cloud.ucs.manager.UcsManagerImpl at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1262) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.predictBeanType(AbstractAutowireCapableBeanFactory.java:576) at org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:1331) at org.springframework.beans.factory.support.DefaultListableBeanFactory.doGetBeanNamesForType(DefaultListableBeanFactory.java:341) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:320) at org.springframework.beans.factory.BeanFactoryUtils.beanNamesForTypeIncludingAncestors(BeanFactoryUtils.java:187) at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:861) at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:818) at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:735) at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:478) ... 56 more Caused by: java.lang.ClassNotFoundException: com.cloud.ucs.manager.UcsManagerImpl at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50) at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:244) at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:230) at org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:401) at org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:363) at org.springframework.util.ClassUtils.forName(ClassUtils.java:258) at org.springframework.beans.factory.support.AbstractBeanDefinition.resolveBeanClass(AbstractBeanDefinition.java:417) at org.springframework.beans.factory.support.AbstractBeanFactory.doResolveBeanClass(AbstractBeanFactory.java:1283) at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1254) ... 65 more 2013-03-28 00:48:16.844:WARN::Failed startup of context org.mortbay.jetty.plugin.Jetty6PluginWebAppContext@52f708{/client,/home/sanjay/Desktop/pranav/incubator-cloudstack/client/target/cloud-client-ui-4.2.0-SNAPSHOT} org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'regionServiceImpl': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.apache.cloudstack.region.RegionManager org.apache.cloudstack.region.RegionServiceImpl._regionMgr; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.cloud.ucs.manager.UcsManagerImpl] for bean with name 'UcsManager' defined in class path resource [componentContext.xml]; nested exception is java.lang.ClassNotFoundException: com.cloud.ucs.manager.UcsManagerImpl|Related cause: org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.cloud.ucs.manager.UcsManagerImpl] for bean with name 'UcsManager' defined in class path resource [componentContext.xml]; nested exception is java.lang.ClassNotFoundException: com.cloud.ucs.manager.UcsManagerImpl|Related cause: org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.cloud.ucs.database.UcsBladeDaoImpl] for bean with name 'UcsBladeDao' defined in class path resource [componentContext.xml]; nested exception is java.lang.ClassNotFoundException: com.cloud.ucs.database.UcsBladeDaoImpl|Related cause: org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.cloud.ucs.database.UcsManagerDaoImpl] for bean with name 'UcsManagerDao' defined in class path resource [componentContext.xml]; nested exception is java.lang.ClassNotFoundException: com.cloud.ucs.database.UcsManagerDaoImpl at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:287) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1106) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:609) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:918) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:469) at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:383) at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:283) at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111) at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:549) at org.mortbay.jetty.servlet.Context.startContext(Context.java:136) at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1282) at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:518) at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:499) at org.mortbay.jetty.plugin.Jetty6PluginWebAppContext.doStart(Jetty6PluginWebAppContext.java:115) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152) at org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130) at org.mortbay.jetty.Server.doStart(Server.java:224) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) at org.mortbay.jetty.plugin.Jetty6PluginServer.start(Jetty6PluginServer.java:132) at org.mortbay.jetty.plugin.AbstractJettyMojo.startJetty(AbstractJettyMojo.java:454) at org.mortbay.jetty.plugin.AbstractJettyMojo.execute(AbstractJettyMojo.java:396) at org.mortbay.jetty.plugin.AbstractJettyRunMojo.execute(AbstractJettyRunMojo.java:210) at org.mortbay.jetty.plugin.Jetty6RunMojo.execute(Jetty6RunMojo.java:184) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196) at org.apache.maven.cli.MavenCli.main(MavenCli.java:141) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352) 2013-03-28 00:48:16.854:WARN::Nested in org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'regionServiceImpl': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.apache.cloudstack.region.RegionManager org.apache.cloudstack.region.RegionServiceImpl._regionMgr; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.cloud.ucs.manager.UcsManagerImpl] for bean with name 'UcsManager' defined in class path resource [componentContext.xml]; nested exception is java.lang.ClassNotFoundException: com.cloud.ucs.manager.UcsManagerImpl|Related cause: org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.cloud.ucs.manager.UcsManagerImpl] for bean with name 'UcsManager' defined in class path resource [componentContext.xml]; nested exception is java.lang.ClassNotFoundException: com.cloud.ucs.manager.UcsManagerImpl|Related cause: org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.cloud.ucs.database.UcsBladeDaoImpl] for bean with name 'UcsBladeDao' defined in class path resource [componentContext.xml]; nested exception is java.lang.ClassNotFoundException: com.cloud.ucs.database.UcsBladeDaoImpl|Related cause: org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.cloud.ucs.database.UcsManagerDaoImpl] for bean with name 'UcsManagerDao' defined in class path resource [componentContext.xml]; nested exception is java.lang.ClassNotFoundException: com.cloud.ucs.database.UcsManagerDaoImpl: java.lang.ClassNotFoundException: com.cloud.ucs.manager.UcsManagerImpl