Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 92C99200D4A for ; Tue, 14 Nov 2017 02:00:05 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id E6FC8160C06; Tue, 14 Nov 2017 00:59:54 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id DD2CB160BF3 for ; Tue, 14 Nov 2017 01:59:53 +0100 (CET) Received: (qmail 27288 invoked by uid 500); 14 Nov 2017 00:59:47 -0000 Mailing-List: contact dev-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cloudstack.apache.org Delivered-To: mailing list dev@cloudstack.apache.org Received: (qmail 27276 invoked by uid 99); 14 Nov 2017 00:59:47 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Nov 2017 00:59:47 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 6A0261A058B for ; Tue, 14 Nov 2017 00:59:46 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.88 X-Spam-Level: ** X-Spam-Status: No, score=2.88 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_REPLY=1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id gUgiEr_ShHV3 for ; Tue, 14 Nov 2017 00:59:41 +0000 (UTC) Received: from mail-ot0-f181.google.com (mail-ot0-f181.google.com [74.125.82.181]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 4E7655FD83 for ; Tue, 14 Nov 2017 00:59:41 +0000 (UTC) Received: by mail-ot0-f181.google.com with SMTP id w8so15291499otw.11 for ; Mon, 13 Nov 2017 16:59:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=Ez0ck6WNhaPIOVgMi4kEGG0HrCgdORL8SybkIJ4eT4U=; b=OWgqLQGFl6rdP4xMvA3oKkeb4TGZCTcxtl7KVD0pE5FWh9KfUGTxRMVXUn7RowDe2H rv88uoij7Hbscjnql9OX3q9o6oIks5glzNXSPSJmcYMHZ0k8UY7X+j7bMct1hcBVxneR 50YG74qFU9xOWOPGH4fxKsMqknbxyXjLZ54aBinyVmwtL7/kmYP7kVKEs67CXamCE2v5 pn94fGfv4id7MWm7gdhfYSYWv7hEBcQTjvmjcDIfBoqaQEAdiUWqcinfmhg44mJShF+8 vNSHJz+8jt8iqRG6zlkbDP3+qtCJVOvx4cah48U7IfR+H7yUIo2Cq0z+zXlNVh2Zhfl6 iNMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=Ez0ck6WNhaPIOVgMi4kEGG0HrCgdORL8SybkIJ4eT4U=; b=ANofksuy8/Eq/yDNLz66+3pbO+LHiyxSb7O2jtG3XEk/vk0+41CAepEq1BST838AaU WL+6VJcn1F6rxx4OxxnvoIA1G8yAm9kBr7N0v0hyOKZZ8P5gPxSyebI+lwpEplkubGrl h7z0I4hAkOVbPhaDWJDHxQ1ILhid3ncaAvfL7Q0ui68C3sokBJjJzNM+WjA1KANqH0rg YKgg0VQ/xYu0KKuNgtcVFug7jeOh9R6+Nli+CG7TY+rb8aLrjvFbtZGlLAw0GVtrY5pA XnLWxHVox9RZcRD3HtG2LM5Q6qsCauYiklbquIGDYQzIn+PLwYM+CMHitpBONodek9ui jzlw== X-Gm-Message-State: AJaThX7+nvuirZumQZEaPTdM+uB2pOzDnZ19h2G2AqyaC/vON6WVQCvC 9a4PBCfzcWScuYtHk/xC7ssU5FfxgYPP+VK/uiqcTRCp X-Google-Smtp-Source: AGs4zMZ2jXFGfrmu20m+UbwuWjgCZN7Gju7GVfOd/aStNtFTHWbF23r9FMSy6eu6dzRZsiq9hVfn0KFBhOLGcfIrG9I= X-Received: by 10.157.17.80 with SMTP id p16mr6616659otp.371.1510621175124; Mon, 13 Nov 2017 16:59:35 -0800 (PST) MIME-Version: 1.0 Received: by 10.157.11.161 with HTTP; Mon, 13 Nov 2017 16:59:34 -0800 (PST) In-Reply-To: References: From: =?UTF-8?Q?Rafael_Weing=C3=A4rtner?= Date: Mon, 13 Nov 2017 22:59:34 -0200 Message-ID: Subject: Re: jetty simulator problem To: "dev@cloudstack.apache.org" Content-Type: multipart/alternative; boundary="001a1134eba088995e055de6e631" archived-at: Tue, 14 Nov 2017 01:00:05 -0000 --001a1134eba088995e055de6e631 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I removed some spring configurations that were not making sense to me. After that, everything started working. I committed these changes at https://github.com/rafaelweingartner/cloudstack/tree/daanTestSimulator Could you test it? If it works I can open a PR. On Mon, Nov 13, 2017 at 5:33 PM, Daan Hoogland wrote: > trying with only the depends-on lines removed now > > On Mon, Nov 13, 2017 at 8:30 PM, Daan Hoogland > wrote: > > > from maven: > > mvn -pl client jetty:run -Dsimulator > > > > On Mon, Nov 13, 2017 at 8:16 PM, Rafael Weing=C3=A4rtner < > > rafaelweingartner@gmail.com> wrote: > > > >> The error changed! That is good... It is a misconfiguration with > >> dependencies between modules. > >> How are you running the simulator? > >> > >> On Mon, Nov 13, 2017 at 5:13 PM, Daan Hoogland > > >> wrote: > >> > >> > didn't work:( trying with only some parts removed now > >> > > >> > Caused by: org.springframework.beans.factory. > >> > NoSuchBeanDefinitionException: > >> > No qualifying bean of type > >> > 'org.apache.cloudstack.engine.subsystem.api.storage.SnapshotService' > >> > available: expected at least 1 bean which qualifies as autowire > >> candidate. > >> > Dependency annotations: {@javax.inject.Inject()} > >> > at > >> > org.springframework.beans.factory.support.DefaultListableBeanFactory= . > >> > raiseNoMatchingBeanFound > >> > (DefaultListableBeanFactory.java:1501) > >> > > >> > On Mon, Nov 13, 2017 at 7:27 PM, Rafael Weing=C3=A4rtner < > >> > rafaelweingartner@gmail.com> wrote: > >> > > >> > > These beans declarations do not make much sense. They are declared > >> twice, > >> > > once in the XML (spring-engine-storage-snapshot-core-context.xml), > >> and > >> > the > >> > > second declaration is executed through the use of annotations > >> > (@Component) > >> > > in those classes. This exception is happening because there is a > >> > > configuration in the XML saying that one bean is depending on the > >> other. > >> > > You can simply remove lines 30-40 from the XML file to fix this. > >> > > > >> > > > >> > > > >> > > Side note: Spring automatically build the chain of dependencies > >> between > >> > > beans to execute the dependency injection properly. The > configuration > >> > > "depends-on" you find in the XML "bean" element is to define an > exotic > >> > and > >> > > not obvious dependency. > >> > > > >> > > > >> > > On Mon, Nov 13, 2017 at 3:48 PM, Daan Hoogland < > >> daan.hoogland@gmail.com> > >> > > wrote: > >> > > > >> > > > I'm looking at a problem, any one recognises this on master? > >> simulator > >> > > does > >> > > > not start cleanly. > >> > > > > >> > > > [WARNING] Failed startup of context o.e.j.m.p.JettyWebAppContext= @ > >> > > 51de5efa > >> > > > {/client,file:/Users/dahn/apache/cloudstack/client/ > >> > > > target/classes/META-INF/webapp/,STARTING}{file:/Users/ > >> > > > dahn/apache/cloudstack/client/target/classes/META-INF/webapp/} > >> > > > org.springframework.beans.factory.BeanCreationException: Error > >> > creating > >> > > > bean with name 'snapshotDataFactoryImpl' defined in URL > >> > > > [jar:file:/Users/dahn/.m2/repository/org/apache/ > >> > cloudstack/cloud-engine- > >> > > > storage-snapshot/4.11.0.0-SNAPSHOT/cloud-engine-storage- > >> > > > snapshot-4.11.0.0-SNAPSHOT.jar!/META-INF/cloudstack/core/ > >> > > > spring-engine-storage-snapshot-core-context.xml]: > >> > > > Circular depends-on relationship between 'snapshotDataFactoryImp= l' > >> and > >> > > > 'volumeDataFactoryImpl' > >> > > > at > >> > > > org.springframework.beans.factory.support. > >> > AbstractBeanFactory.doGetBean > >> > > > (AbstractBeanFactory.java:300) > >> > > > at > >> > > > org.springframework.beans.factory.support.AbstractBeanFactor > >> y.getBean > >> > > > (AbstractBeanFactory.java:200) > >> > > > at > >> > > > org.springframework.beans.factory.support. > >> > AbstractBeanFactory.doGetBean > >> > > > (AbstractBeanFactory.java:304) > >> > > > at > >> > > > org.springframework.beans.factory.support.AbstractBeanFactor > >> y.getBean > >> > > > (AbstractBeanFactory.java:200) > >> > > > at > >> > > > org.springframework.beans.factory.support.DefaultListableBea > >> nFactory. > >> > > > preInstantiateSingletons > >> > > > (DefaultListableBeanFactory.java:756) > >> > > > at > >> > > > org.springframework.context.support.AbstractApplicationContext. > >> > > > finishBeanFactoryInitialization > >> > > > (AbstractApplicationContext.java:868) > >> > > > at > >> > > > org.springframework.context.support.AbstractApplicationConte > >> xt.refresh > >> > > > (AbstractApplicationContext.java:549) > >> > > > at > >> > > > org.apache.cloudstack.spring.module.model.impl. > >> > > DefaultModuleDefinitionSet. > >> > > > loadContext > >> > > > (DefaultModuleDefinitionSet.java:145) > >> > > > at > >> > > > org.apache.cloudstack.spring.module.model.impl. > >> > > > DefaultModuleDefinitionSet$2.with > >> > > > (DefaultModuleDefinitionSet.java:122) > >> > > > at > >> > > > org.apache.cloudstack.spring.module.model.impl. > >> > > DefaultModuleDefinitionSet. > >> > > > withModule > >> > > > (DefaultModuleDefinitionSet.java:245) > >> > > > at > >> > > > org.apache.cloudstack.spring.module.model.impl. > >> > > DefaultModuleDefinitionSet. > >> > > > withModule > >> > > > (DefaultModuleDefinitionSet.java:250) > >> > > > at > >> > > > org.apache.cloudstack.spring.module.model.impl. > >> > > DefaultModuleDefinitionSet. > >> > > > withModule > >> > > > (DefaultModuleDefinitionSet.java:250) > >> > > > at > >> > > > org.apache.cloudstack.spring.module.model.impl. > >> > > DefaultModuleDefinitionSet. > >> > > > withModule > >> > > > (DefaultModuleDefinitionSet.java:233) > >> > > > at > >> > > > org.apache.cloudstack.spring.module.model.impl. > >> > > DefaultModuleDefinitionSet. > >> > > > loadContexts > >> > > > (DefaultModuleDefinitionSet.java:117) > >> > > > at > >> > > > org.apache.cloudstack.spring.module.model.impl. > >> > > DefaultModuleDefinitionSet. > >> > > > load > >> > > > (DefaultModuleDefinitionSet.java:79) > >> > > > at > >> > > > org.apache.cloudstack.spring.module.factory.ModuleBasedConte > >> xtFactory. > >> > > > loadModules > >> > > > (ModuleBasedContextFactory.java:37) > >> > > > at > >> > > > org.apache.cloudstack.spring.module.factory. > >> > CloudStackSpringContext.init > >> > > > (CloudStackSpringContext.java:71) > >> > > > at > >> > > > org.apache.cloudstack.spring.module.factory. > >> > > CloudStackSpringContext. > >> > > > (CloudStackSpringContext.java:58) > >> > > > at > >> > > > org.apache.cloudstack.spring.module.factory. > >> > > CloudStackSpringContext. > >> > > > (CloudStackSpringContext.java:62) > >> > > > at > >> > > > org.apache.cloudstack.spring.module.web.CloudStackContextLoa > >> derListene > >> > > > r.contextInitialized > >> > > > (CloudStackContextLoaderListener.java:52) > >> > > > at > >> > > > org.eclipse.jetty.server.handler.ContextHandler.callContextI > >> nitialized > >> > > > (ContextHandler.java:800) > >> > > > at > >> > > > org.eclipse.jetty.servlet.ServletContextHandler.callContextI > >> nitialized > >> > > > (ServletContextHandler.java:444) > >> > > > at org.eclipse.jetty.server.handler.ContextHandler. > startContext > >> > > > (ContextHandler.java:791) > >> > > > at org.eclipse.jetty.servlet.ServletContextHandler. > startContext > >> > > > (ServletContextHandler.java:294) > >> > > > at org.eclipse.jetty.webapp.WebAppContext.startWebapp > >> > > > (WebAppContext.java:1349) > >> > > > at org.eclipse.jetty.maven.plugin.JettyWebAppContext. > startWebap > >> p > >> > > > (JettyWebAppContext.java:297) > >> > > > at org.eclipse.jetty.webapp.WebAppContext.startContext > >> > > > (WebAppContext.java:1342) > >> > > > at org.eclipse.jetty.server.handler.ContextHandler.doStart > >> > > > (ContextHandler.java:741) > >> > > > at org.eclipse.jetty.webapp.WebAppContext.doStart > >> > > > (WebAppContext.java:505) > >> > > > at org.eclipse.jetty.maven.plugin.JettyWebAppContext.doStart > >> > > > (JettyWebAppContext.java:366) > >> > > > at org.eclipse.jetty.util.component.AbstractLifeCycle.start > >> > > > (AbstractLifeCycle.java:68) > >> > > > at org.eclipse.jetty.util.component.ContainerLifeCycle.start > >> > > > (ContainerLifeCycle.java:132) > >> > > > at org.eclipse.jetty.util.component.ContainerLifeCycle. > doStart > >> > > > (ContainerLifeCycle.java:114) > >> > > > at org.eclipse.jetty.server.handler.AbstractHandler.doStart > >> > > > (AbstractHandler.java:61) > >> > > > at org.eclipse.jetty.server.handler.ContextHandlerCollection= . > >> > doStart > >> > > > (ContextHandlerCollection.java:163) > >> > > > at org.eclipse.jetty.util.component.AbstractLifeCycle.start > >> > > > (AbstractLifeCycle.java:68) > >> > > > at org.eclipse.jetty.util.component.ContainerLifeCycle.start > >> > > > (ContainerLifeCycle.java:132) > >> > > > at org.eclipse.jetty.util.component.ContainerLifeCycle. > doStart > >> > > > (ContainerLifeCycle.java:114) > >> > > > at org.eclipse.jetty.server.handler.AbstractHandler.doStart > >> > > > (AbstractHandler.java:61) > >> > > > at org.eclipse.jetty.util.component.AbstractLifeCycle.start > >> > > > (AbstractLifeCycle.java:68) > >> > > > at org.eclipse.jetty.util.component.ContainerLifeCycle.start > >> > > > (ContainerLifeCycle.java:132) > >> > > > at org.eclipse.jetty.server.Server.start (Server.java:387) > >> > > > at org.eclipse.jetty.util.component.ContainerLifeCycle. > doStart > >> > > > (ContainerLifeCycle.java:114) > >> > > > at org.eclipse.jetty.server.handler.AbstractHandler.doStart > >> > > > (AbstractHandler.java:61) > >> > > > at org.eclipse.jetty.server.Server.doStart (Server.java:354) > >> > > > at org.eclipse.jetty.maven.plugin.JettyServer.doStart > >> > > > (JettyServer.java:73) > >> > > > at org.eclipse.jetty.util.component.AbstractLifeCycle.start > >> > > > (AbstractLifeCycle.java:68) > >> > > > at org.eclipse.jetty.maven.plugin.AbstractJettyMojo. > startJetty > >> > > > (AbstractJettyMojo.java:535) > >> > > > at org.eclipse.jetty.maven.plugin.AbstractJettyMojo.execute > >> > > > (AbstractJettyMojo.java:358) > >> > > > at org.eclipse.jetty.maven.plugin.JettyRunMojo.execute > >> > > > (JettyRunMojo.java:167) > >> > > > at org.apache.maven.plugin.DefaultBuildPluginManager. > executeMoj > >> o > >> > > > (DefaultBuildPluginManager.java:134) > >> > > > at org.apache.maven.lifecycle.internal.MojoExecutor.execute > >> > > > (MojoExecutor.java:208) > >> > > > at org.apache.maven.lifecycle.internal.MojoExecutor.execute > >> > > > (MojoExecutor.java:154) > >> > > > at org.apache.maven.lifecycle.internal.MojoExecutor.execute > >> > > > (MojoExecutor.java:146) > >> > > > at > >> > > > org.apache.maven.lifecycle.internal.LifecycleModuleBuilder. > >> > buildProject > >> > > > (LifecycleModuleBuilder.java:117) > >> > > > at > >> > > > org.apache.maven.lifecycle.internal.LifecycleModuleBuilder. > >> > buildProject > >> > > > (LifecycleModuleBuilder.java:81) > >> > > > at > >> > > > org.apache.maven.lifecycle.internal.builder.singlethreaded. > >> > > > SingleThreadedBuilder.build > >> > > > (SingleThreadedBuilder.java:51) > >> > > > at org.apache.maven.lifecycle.internal.LifecycleStarter. > execute > >> > > > (LifecycleStarter.java:128) > >> > > > at org.apache.maven.DefaultMaven.doExecute > >> (DefaultMaven.java:309) > >> > > > at org.apache.maven.DefaultMaven.doExecute > >> (DefaultMaven.java:194) > >> > > > at org.apache.maven.DefaultMaven.execute > >> (DefaultMaven.java:107) > >> > > > at org.apache.maven.cli.MavenCli.execute (MavenCli.java:955) > >> > > > at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:290) > >> > > > at org.apache.maven.cli.MavenCli.main (MavenCli.java:194) > >> > > > at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native > Method) > >> > > > at sun.reflect.NativeMethodAccessorImpl.invoke > >> > > > (NativeMethodAccessorImpl.java:62) > >> > > > at sun.reflect.DelegatingMethodAccessorImpl.invoke > >> > > > (DelegatingMethodAccessorImpl.java:43) > >> > > > at java.lang.reflect.Method.invoke (Method.java:498) > >> > > > at org.codehaus.plexus.classworlds.launcher.Launcher. > >> > launchEnhanced > >> > > > (Launcher.java:289) > >> > > > at org.codehaus.plexus.classworlds.launcher.Launcher.launch > >> > > > (Launcher.java:229) > >> > > > at org.codehaus.plexus.classworlds.launcher.Launcher. > >> > > mainWithExitCode > >> > > > (Launcher.java:415) > >> > > > at org.codehaus.plexus.classworlds.launcher.Launcher.main > >> > > > (Launcher.java:356) > >> > > > [WARNING] !RequestLog > >> > > > > >> > > > > >> > > > -- > >> > > > Daan > >> > > > > >> > > > >> > > > >> > > > >> > > -- > >> > > Rafael Weing=C3=A4rtner > >> > > > >> > > >> > > >> > > >> > -- > >> > Daan > >> > > >> > >> > >> > >> -- > >> Rafael Weing=C3=A4rtner > >> > > > > > > > > -- > > Daan > > > > > > -- > Daan > --=20 Rafael Weing=C3=A4rtner --001a1134eba088995e055de6e631--