You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by Pranav Saxena <pr...@citrix.com> on 2013/03/27 20:26:14 UTC

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

RE: Jetty Failing on latest master due to class UCS manager not Found

Posted by Pranav Saxena <pr...@citrix.com>.
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.saxena@citrix.com] 
Sent: Thursday, March 28, 2013 12:56 AM
To: cloudstack-dev@incubator.apache.org
Cc: Chip Childers <ch...@sungard.com> (chip.childers@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

RE: Jetty Failing on latest master due to class UCS manager not Found

Posted by Pranav Saxena <pr...@citrix.com>.
Thanks Murali and Kelven for fixing this .

 I was almost about to revert the two commits I mentioned :)

Regards,
Pranav

-----Original Message-----
From: Rajesh Battala [mailto:rajesh.battala@citrix.com] 
Sent: Thursday, March 28, 2013 9:11 AM
To: dev@cloudstack.apache.org; Chip Childers; Kelven Yang
Cc: cloudstack-dev@incubator.apache.org
Subject: RE: Jetty Failing on latest master due to class UCS manager not Found

Thanks a lot Murali 

> -----Original Message-----
> From: Murali Reddy [mailto:Murali.Reddy@citrix.com]
> Sent: Thursday, March 28, 2013 9:07 AM
> To: dev@cloudstack.apache.org; Chip Childers; Kelven Yang
> Cc: cloudstack-dev@incubator.apache.org
> Subject: Re: Jetty Failing on latest master due to class UCS manager 
> not Found
> 
> On 28/03/13 9:00 AM, "Rajesh Battala" <ra...@citrix.com> wrote:
> 
> >Jetty is failing to start on latest master building oss.
> >Am on the latest master, building oss and starting jetty is failing 
> >with below error.
> >
> >Error creating bean with name 'globalLoadBalancingRulesServiceImpl':
> >Injection of autowired dependencies failed; nested exception is 
> >org.springframewor
> >  k.beans.factory.BeanCreationException: Could not autowire field:
> >protected org.apache.cloudstack.region.
> >                       gslb.GslbServiceProvider 
> >org.apache.cloudstack.region.gslb.GlobalLoadBalancingRulesServiceImpl._gsl
> >bProv                                                          ider;
> >nested exception is
> >org.springframework.beans.factory.NoSuchBeanDefinitionException: No
> >matching b                                                          ean
> >of type [org.apache.cloudstack.region.gslb.GslbServiceProvider] found 
> >for
> >dependency: expected at le
> >          ast 1 bean which qualifies as autowire candidate for this 
> >dependency. Dependency annotations: {@javax.in
> >                              ject.Inject()}
> >        at
> >org.springframework.beans.factory.annotation.AutowiredAnnotationBeanP
> >os
> >tPr
> >ocessor.postProcess
> >   PropertyValues(AutowiredAnnotationBeanPostProcessor.java:287)
> >        at org.springframe
> 
> Please pull latest master, I pushed a fix.


RE: Jetty Failing on latest master due to class UCS manager not Found

Posted by Rajesh Battala <ra...@citrix.com>.
Thanks a lot Murali 

> -----Original Message-----
> From: Murali Reddy [mailto:Murali.Reddy@citrix.com]
> Sent: Thursday, March 28, 2013 9:07 AM
> To: dev@cloudstack.apache.org; Chip Childers; Kelven Yang
> Cc: cloudstack-dev@incubator.apache.org
> Subject: Re: Jetty Failing on latest master due to class UCS manager not Found
> 
> On 28/03/13 9:00 AM, "Rajesh Battala" <ra...@citrix.com> wrote:
> 
> >Jetty is failing to start on latest master building oss.
> >Am on the latest master, building oss and starting jetty is failing
> >with below error.
> >
> >Error creating bean with name 'globalLoadBalancingRulesServiceImpl':
> >Injection of autowired dependencies failed; nested exception is
> >org.springframewor
> >  k.beans.factory.BeanCreationException: Could not autowire field:
> >protected org.apache.cloudstack.region.
> >                       gslb.GslbServiceProvider
> >org.apache.cloudstack.region.gslb.GlobalLoadBalancingRulesServiceImpl._gsl
> >bProv                                                          ider;
> >nested exception is
> >org.springframework.beans.factory.NoSuchBeanDefinitionException: No
> >matching b                                                          ean
> >of type [org.apache.cloudstack.region.gslb.GslbServiceProvider] found
> >for
> >dependency: expected at le
> >          ast 1 bean which qualifies as autowire candidate for this
> >dependency. Dependency annotations: {@javax.in
> >                              ject.Inject()}
> >        at
> >org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPos
> >tPr
> >ocessor.postProcess
> >   PropertyValues(AutowiredAnnotationBeanPostProcessor.java:287)
> >        at org.springframe
> 
> Please pull latest master, I pushed a fix.


Re: Jetty Failing on latest master due to class UCS manager not Found

Posted by Murali Reddy <Mu...@citrix.com>.
On 29/03/13 12:45 AM, "Chiradeep Vittal" <Ch...@citrix.com>
wrote:

>For optional dependencies, JSR330 injection requires using setter
>injection.
>You should write
>
>@Inject void setGslbProvider(GslbProvider provider) {
>  this._gslbProvider = provider;
>}

Thanks Chiradeep for suggestion. But due to Spring default behaviour with
@Inject, both setter and interface injection fails if there is no
implementation. 

For now, I am just initializing through the bean property configured in
componentContext.xml and nonossComponentContext.xml.

>
>
>
>On 3/27/13 8:36 PM, "Murali Reddy" <Mu...@citrix.com> wrote:
>
>>On 28/03/13 9:00 AM, "Rajesh Battala" <ra...@citrix.com> wrote:
>>
>>>Jetty is failing to start on latest master building oss.
>>>Am on the latest master, building oss and starting jetty is failing with
>>>below error. 
>>>
>>>Error creating bean with name 'globalLoadBalancingRulesServiceImpl':
>>>Injection of autowired dependencies failed; nested exception is
>>>org.springframewor
>>>  k.beans.factory.BeanCreationException: Could not autowire field:
>>>protected org.apache.cloudstack.region.
>>>                       gslb.GslbServiceProvider
>>>org.apache.cloudstack.region.gslb.GlobalLoadBalancingRulesServiceImpl._g
>>>s
>>>l
>>>bProv                                                          ider;
>>>nested exception is
>>>org.springframework.beans.factory.NoSuchBeanDefinitionException: No
>>>matching b                                                          ean
>>>of type [org.apache.cloudstack.region.gslb.GslbServiceProvider] found
>>>for
>>>dependency: expected at le
>>>          ast 1 bean which qualifies as autowire candidate for this
>>>dependency. Dependency annotations: {@javax.in
>>>                              ject.Inject()}
>>>        at 
>>>org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPost
>>>P
>>>r
>>>ocessor.postProcess
>>>   PropertyValues(AutowiredAnnotationBeanPostProcessor.java:287)
>>>        at org.springframe
>>
>>Please pull latest master, I pushed a fix.
>>
>
>



Re: Jetty Failing on latest master due to class UCS manager not Found

Posted by Chiradeep Vittal <Ch...@citrix.com>.
For optional dependencies, JSR330 injection requires using setter
injection.
You should write

@Inject void setGslbProvider(GslbProvider provider) {
  this._gslbProvider = provider;
}



On 3/27/13 8:36 PM, "Murali Reddy" <Mu...@citrix.com> wrote:

>On 28/03/13 9:00 AM, "Rajesh Battala" <ra...@citrix.com> wrote:
>
>>Jetty is failing to start on latest master building oss.
>>Am on the latest master, building oss and starting jetty is failing with
>>below error. 
>>
>>Error creating bean with name 'globalLoadBalancingRulesServiceImpl':
>>Injection of autowired dependencies failed; nested exception is
>>org.springframewor
>>  k.beans.factory.BeanCreationException: Could not autowire field:
>>protected org.apache.cloudstack.region.
>>                       gslb.GslbServiceProvider
>>org.apache.cloudstack.region.gslb.GlobalLoadBalancingRulesServiceImpl._gs
>>l
>>bProv                                                          ider;
>>nested exception is
>>org.springframework.beans.factory.NoSuchBeanDefinitionException: No
>>matching b                                                          ean
>>of type [org.apache.cloudstack.region.gslb.GslbServiceProvider] found for
>>dependency: expected at le
>>          ast 1 bean which qualifies as autowire candidate for this
>>dependency. Dependency annotations: {@javax.in
>>                              ject.Inject()}
>>        at 
>>org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostP
>>r
>>ocessor.postProcess
>>   PropertyValues(AutowiredAnnotationBeanPostProcessor.java:287)
>>        at org.springframe
>
>Please pull latest master, I pushed a fix.
>


Re: Jetty Failing on latest master due to class UCS manager not Found

Posted by Murali Reddy <Mu...@citrix.com>.
On 28/03/13 9:00 AM, "Rajesh Battala" <ra...@citrix.com> wrote:

>Jetty is failing to start on latest master building oss.
>Am on the latest master, building oss and starting jetty is failing with
>below error. 
>
>Error creating bean with name 'globalLoadBalancingRulesServiceImpl':
>Injection of autowired dependencies failed; nested exception is
>org.springframewor
>  k.beans.factory.BeanCreationException: Could not autowire field:
>protected org.apache.cloudstack.region.
>                       gslb.GslbServiceProvider
>org.apache.cloudstack.region.gslb.GlobalLoadBalancingRulesServiceImpl._gsl
>bProv                                                          ider;
>nested exception is
>org.springframework.beans.factory.NoSuchBeanDefinitionException: No
>matching b                                                          ean
>of type [org.apache.cloudstack.region.gslb.GslbServiceProvider] found for
>dependency: expected at le
>          ast 1 bean which qualifies as autowire candidate for this
>dependency. Dependency annotations: {@javax.in
>                              ject.Inject()}
>        at 
>org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostPr
>ocessor.postProcess
>   PropertyValues(AutowiredAnnotationBeanPostProcessor.java:287)
>        at org.springframe

Please pull latest master, I pushed a fix.


Re: Jetty Failing on latest master due to class UCS manager not Found

Posted by Kelven Yang <ke...@citrix.com>.

On 3/27/13 8:30 PM, "Rajesh Battala" <ra...@citrix.com> wrote:

>Jetty is failing to start on latest master building oss.
>Am on the latest master, building oss and starting jetty is failing with
>below error. 
>
>Error creating bean with name 'globalLoadBalancingRulesServiceImpl':
>Injection of autowired dependencies failed; nested exception is
>org.springframewor
>  k.beans.factory.BeanCreationException: Could not autowire field:
>protected org.apache.cloudstack.region.
>                       gslb.GslbServiceProvider
>org.apache.cloudstack.region.gslb.GlobalLoadBalancingRulesServiceImpl._gsl
>bProv                                                          ider;
>nested exception is
>org.springframework.beans.factory.NoSuchBeanDefinitionException: No
>matching b                                                          ean
>of type [org.apache.cloudstack.region.gslb.GslbServiceProvider] found for
>dependency: expected at le
>          ast 1 bean which qualifies as autowire candidate for this
>dependency. Dependency annotations: {@javax.in
>                              ject.Inject()}
>        at 
>org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostPr
>ocessor.postProcess
>   PropertyValues(AutowiredAnnotationBeanPostProcessor.java:287)
>        at org.springframe


Please use non-OSS build as a work-around for now.



>
>
>
>> -----Original Message-----
>> From: Murali Reddy [mailto:Murali.Reddy@citrix.com]
>> Sent: Thursday, March 28, 2013 8:24 AM
>> To: Chip Childers; Kelven Yang
>> Cc: dev@cloudstack.apache.org; cloudstack-dev@incubator.apache.org
>> Subject: Re: Jetty Failing on latest master due to class UCS manager
>>not Found
>> 
>> On 28/03/13 7:42 AM, "Chip Childers" <ch...@sungard.com> wrote:
>> 
>> >On Wed, Mar 27, 2013 at 04:31:05PM -0700, Kelven Yang wrote:
>> >> For UCS issue, I've put a fix in.
>> >>
>> >> For GSLB, a work around is to run non-OSS build, hopefully this can
>> >>unlock  developers temporarily on master branch
>> >
>> >Good work-around for now.
>> >
>> >Murali - This appears to be something that we *all* missed realizing
>> >prior to the merge of the GSLB functionality.  Can you sort this out
>> >during your day today?
>> 
>> I was running Non-oss builds, so could not hit this issue. My apologies
>>for the
>> breaking OSS build.
>> 
>> Kelven,
>> 
>> I am not sure how to fix this issue. If there is no implementing class,
>>why should
>> inject fail? I was under impression it will be set to null?
>> 
>> I have this code in one of the managers in server, but the implementing
>>class for
>> GslbServiceProvider is only present in non-oss NetScaler plug-in. If
>>you can
>> suggest how to deal with this in Spring auto wiring that would be
>>useful for me
>> to quickly fix this.
>> 
>> @Inject
>>     protected GslbServiceProvider _gslbProvider;
>


RE: Jetty Failing on latest master due to class UCS manager not Found

Posted by Rajesh Battala <ra...@citrix.com>.
Jetty is failing to start on latest master building oss. 
Am on the latest master, building oss and starting jetty is failing with below error. 

Error creating bean with name 'globalLoadBalancingRulesServiceImpl':
Injection of autowired dependencies failed; nested exception is org.springframewor                                                          k.beans.factory.BeanCreationException: Could not autowire field: protected org.apache.cloudstack.region.                                                          gslb.GslbServiceProvider org.apache.cloudstack.region.gslb.GlobalLoadBalancingRulesServiceImpl._gslbProv                                                          ider; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No matching b                                                          ean of type [org.apache.cloudstack.region.gslb.GslbServiceProvider] found for dependency: expected at le                                                          ast 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@javax.in                                                          ject.Inject()}
        at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcess                                                          PropertyValues(AutowiredAnnotationBeanPostProcessor.java:287)
        at org.springframe



> -----Original Message-----
> From: Murali Reddy [mailto:Murali.Reddy@citrix.com]
> Sent: Thursday, March 28, 2013 8:24 AM
> To: Chip Childers; Kelven Yang
> Cc: dev@cloudstack.apache.org; cloudstack-dev@incubator.apache.org
> Subject: Re: Jetty Failing on latest master due to class UCS manager not Found
> 
> On 28/03/13 7:42 AM, "Chip Childers" <ch...@sungard.com> wrote:
> 
> >On Wed, Mar 27, 2013 at 04:31:05PM -0700, Kelven Yang wrote:
> >> For UCS issue, I've put a fix in.
> >>
> >> For GSLB, a work around is to run non-OSS build, hopefully this can
> >>unlock  developers temporarily on master branch
> >
> >Good work-around for now.
> >
> >Murali - This appears to be something that we *all* missed realizing
> >prior to the merge of the GSLB functionality.  Can you sort this out
> >during your day today?
> 
> I was running Non-oss builds, so could not hit this issue. My apologies for the
> breaking OSS build.
> 
> Kelven,
> 
> I am not sure how to fix this issue. If there is no implementing class, why should
> inject fail? I was under impression it will be set to null?
> 
> I have this code in one of the managers in server, but the implementing class for
> GslbServiceProvider is only present in non-oss NetScaler plug-in. If you can
> suggest how to deal with this in Spring auto wiring that would be useful for me
> to quickly fix this.
> 
> @Inject
>     protected GslbServiceProvider _gslbProvider;


Re: Jetty Failing on latest master due to class UCS manager not Found

Posted by Murali Reddy <Mu...@citrix.com>.
On 28/03/13 9:00 AM, "Kelven Yang" <ke...@citrix.com> wrote:
>>
>>I was running Non-oss builds, so could not hit this issue. My apologies
>>for the breaking OSS build.
>>
>>Kelven,
>>
>>I am not sure how to fix this issue. If there is no implementing class,
>>why should inject fail? I was under impression it will be set to null?
>>
>>I have this code in one of the managers in server, but the implementing
>>class for GslbServiceProvider is only present in non-oss NetScaler
>>plug-in. If you can suggest how to deal with this in Spring auto wiring
>>that would be useful for me to quickly fix this.
>>
>>@Inject
>>    protected GslbServiceProvider _gslbProvider;
>>
>
>In this case, you should avoid using auto-wiring, so that it won't be
>bound at loading time. Spring is designed to shout out loudly at loading
>time instead of run-time if it finds any unresolvable auto-wiring in
>place. It is good to expose the issue early and force developer to fix it.
>
>This is what you may do,
>
>1) Remove @Inject for _gslbProvider;
>2) Make your code be safe at runtime to deal with the possibility that
>_gslbProvider is null
>3) Provide getter and setters to _gslbProvider
>4) Put the wiring logic in nonossComponentContext.xml so that it is only
>loaded in non-OSS build
>
>Kelven

Thanks Kelven. Temporarily I pushed
e8a144a21d46467109ae2780fe30cc1e34b0abcf to master that bypass auto
wiring. This will unblock the OSS builds.

I will apply clean fix based on what you suggested.


Re: Jetty Failing on latest master due to class UCS manager not Found

Posted by Kelven Yang <ke...@citrix.com>.

On 3/27/13 7:53 PM, "Murali Reddy" <Mu...@citrix.com> wrote:

>On 28/03/13 7:42 AM, "Chip Childers" <ch...@sungard.com> wrote:
>
>>On Wed, Mar 27, 2013 at 04:31:05PM -0700, Kelven Yang wrote:
>>> For UCS issue, I've put a fix in.
>>> 
>>> For GSLB, a work around is to run non-OSS build, hopefully this can
>>>unlock
>>> developers temporarily on master branch
>>
>>Good work-around for now.
>>
>>Murali - This appears to be something that we *all* missed realizing
>>prior to the merge of the GSLB functionality.  Can you sort this out
>>during your day today?
>
>I was running Non-oss builds, so could not hit this issue. My apologies
>for the breaking OSS build.
>
>Kelven,
>
>I am not sure how to fix this issue. If there is no implementing class,
>why should inject fail? I was under impression it will be set to null?
>
>I have this code in one of the managers in server, but the implementing
>class for GslbServiceProvider is only present in non-oss NetScaler
>plug-in. If you can suggest how to deal with this in Spring auto wiring
>that would be useful for me to quickly fix this.
>
>@Inject
>    protected GslbServiceProvider _gslbProvider;
>

In this case, you should avoid using auto-wiring, so that it won't be
bound at loading time. Spring is designed to shout out loudly at loading
time instead of run-time if it finds any unresolvable auto-wiring in
place. It is good to expose the issue early and force developer to fix it.

This is what you may do,

1) Remove @Inject for _gslbProvider;
2) Make your code be safe at runtime to deal with the possibility that
_gslbProvider is null
3) Provide getter and setters to _gslbProvider
4) Put the wiring logic in nonossComponentContext.xml so that it is only
loaded in non-OSS build

Kelven



>


Re: Jetty Failing on latest master due to class UCS manager not Found

Posted by Murali Reddy <Mu...@citrix.com>.
On 28/03/13 7:42 AM, "Chip Childers" <ch...@sungard.com> wrote:

>On Wed, Mar 27, 2013 at 04:31:05PM -0700, Kelven Yang wrote:
>> For UCS issue, I've put a fix in.
>> 
>> For GSLB, a work around is to run non-OSS build, hopefully this can
>>unlock
>> developers temporarily on master branch
>
>Good work-around for now.
>
>Murali - This appears to be something that we *all* missed realizing
>prior to the merge of the GSLB functionality.  Can you sort this out
>during your day today?

I was running Non-oss builds, so could not hit this issue. My apologies
for the breaking OSS build.

Kelven,

I am not sure how to fix this issue. If there is no implementing class,
why should inject fail? I was under impression it will be set to null?

I have this code in one of the managers in server, but the implementing
class for GslbServiceProvider is only present in non-oss NetScaler
plug-in. If you can suggest how to deal with this in Spring auto wiring
that would be useful for me to quickly fix this.

@Inject
    protected GslbServiceProvider _gslbProvider;


Re: Jetty Failing on latest master due to class UCS manager not Found

Posted by Chip Childers <ch...@sungard.com>.
On Wed, Mar 27, 2013 at 04:31:05PM -0700, Kelven Yang wrote:
> For UCS issue, I've put a fix in.
> 
> For GSLB, a work around is to run non-OSS build, hopefully this can unlock
> developers temporarily on master branch

Good work-around for now.

Murali - This appears to be something that we *all* missed realizing
prior to the merge of the GSLB functionality.  Can you sort this out
during your day today?

> 
> Kelven
> 
> 
> On 3/27/13 3:03 PM, "David Nalley" <da...@gnsa.us> wrote:
> 
> >On Wed, Mar 27, 2013 at 5:16 PM, Pranav Saxena <pr...@citrix.com>
> >wrote:
> >> 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 ?
> >>
> >
> >Pranav:
> >
> >In such matters you have as much authority as Chip. You don't need to
> >ask his permission.
> >
> >--David
> 
> 

Re: Jetty Failing on latest master due to class UCS manager not Found

Posted by Chip Childers <ch...@sungard.com>.
On Wed, Mar 27, 2013 at 04:09:24PM -0700, Kelven Yang wrote:
> UCS issue is a POM dependency issue, the UCS project is not declared to be
> a dependency in the master project.
> 
> GSLB autowiring is caused by that a referenced Netscalar network element
> class is only available in Non-OSS build, if Netscalar element is only
> available in non-OSS, we need to move its referencing classes to the right
> place, or the other way around?
> 
> Can someone clarify where Netscalar element should belong to (OSS or Non
> OSS)?

The discussion about transitioning it is still ongoing.  From what I
recall, we are still waiting for something from Citrix (Netscaler team)
before we can make that change.

As of right now, we should consider Netscaler as being non-oss.


Re: Jetty Failing on latest master due to class UCS manager not Found

Posted by Kelven Yang <ke...@citrix.com>.
For UCS issue, I've put a fix in.

For GSLB, a work around is to run non-OSS build, hopefully this can unlock
developers temporarily on master branch

Kelven


On 3/27/13 3:03 PM, "David Nalley" <da...@gnsa.us> wrote:

>On Wed, Mar 27, 2013 at 5:16 PM, Pranav Saxena <pr...@citrix.com>
>wrote:
>> 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 ?
>>
>
>Pranav:
>
>In such matters you have as much authority as Chip. You don't need to
>ask his permission.
>
>--David


Re: Jetty Failing on latest master due to class UCS manager not Found

Posted by Kelven Yang <ke...@citrix.com>.
UCS issue is a POM dependency issue, the UCS project is not declared to be
a dependency in the master project.

GSLB autowiring is caused by that a referenced Netscalar network element
class is only available in Non-OSS build, if Netscalar element is only
available in non-OSS, we need to move its referencing classes to the right
place, or the other way around?

Can someone clarify where Netscalar element should belong to (OSS or Non
OSS)?

Kelven

On 3/27/13 3:03 PM, "David Nalley" <da...@gnsa.us> wrote:

>On Wed, Mar 27, 2013 at 5:16 PM, Pranav Saxena <pr...@citrix.com>
>wrote:
>> 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 ?
>>
>
>Pranav:
>
>In such matters you have as much authority as Chip. You don't need to
>ask his permission.
>
>--David


Re: Jetty Failing on latest master due to class UCS manager not Found

Posted by David Nalley <da...@gnsa.us>.
On Wed, Mar 27, 2013 at 5:16 PM, Pranav Saxena <pr...@citrix.com> wrote:
> 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 ?
>

Pranav:

In such matters you have as much authority as Chip. You don't need to
ask his permission.

--David

RE: Jetty Failing on latest master due to class UCS manager not Found

Posted by Pranav Saxena <pr...@citrix.com>.
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.saxena@citrix.com] 
Sent: Thursday, March 28, 2013 12:56 AM
To: cloudstack-dev@incubator.apache.org
Cc: Chip Childers <ch...@sungard.com> (chip.childers@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