You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by Daan Hoogland <da...@gmail.com> on 2017/11/13 17:48:26 UTC

jetty simulator problem

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 'snapshotDataFactoryImpl' and
'volumeDataFactoryImpl'
    at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean
(AbstractBeanFactory.java:300)
    at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:200)
    at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean
(AbstractBeanFactory.java:304)
    at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:200)
    at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons
(DefaultListableBeanFactory.java:756)
    at
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization
(AbstractApplicationContext.java:868)
    at
org.springframework.context.support.AbstractApplicationContext.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.ModuleBasedContextFactory.loadModules
(ModuleBasedContextFactory.java:37)
    at
org.apache.cloudstack.spring.module.factory.CloudStackSpringContext.init
(CloudStackSpringContext.java:71)
    at
org.apache.cloudstack.spring.module.factory.CloudStackSpringContext.<init>
(CloudStackSpringContext.java:58)
    at
org.apache.cloudstack.spring.module.factory.CloudStackSpringContext.<init>
(CloudStackSpringContext.java:62)
    at
org.apache.cloudstack.spring.module.web.CloudStackContextLoaderListener.contextInitialized
(CloudStackContextLoaderListener.java:52)
    at
org.eclipse.jetty.server.handler.ContextHandler.callContextInitialized
(ContextHandler.java:800)
    at
org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized
(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.startWebapp
(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.executeMojo
(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

Re: jetty simulator problem

Posted by Rohit Yadav <ro...@shapeblue.com>.
Thanks Rafael for sharing and sending the PR, I think that should fix the problem.


Regards.

________________________________
From: Rafael Weingärtner <ra...@gmail.com>
Sent: Wednesday, November 15, 2017 8:33:08 PM
To: dev@cloudstack.apache.org
Subject: Re: jetty simulator problem

Now travis started presenting the same problem reported by Daan.
https://travis-ci.org/apache/cloudstack/jobs/302452927

On Wed, Nov 15, 2017 at 9:48 AM, Rafael Weingärtner <
rafaelweingartner@gmail.com> wrote:

> Thanks Rohit, I did not know that there were Travis scripts inside ACS.
>
> I checked the install script, and it is building the packages using:  mvn
> -Pdeveloper -Dsimulator clean install -DskipTests -T4
>
> I am building using:
> mvn clean install -P developer -Dsimulator -Dmaven.test.skip=false
>
> So, the packages here are being built in the same way with same profile
> and parameter.
>
> Daan said he is using Fedora and MacOS, but my tests are being executed in
> Ubuntu 16.04. I am not sure that this is an environment problem.
>
> On Wed, Nov 15, 2017 at 6:40 AM, Rohit Yadav <ro...@shapeblue.com>
> wrote:
>
>> Here's how I build CloudStack using maven: (latest master works for me)
>>
>>
>> mvn clean install -Dnoredist -Dsimulator -P developer,systemvm
>>
>>
>> And run using:
>>
>> mvn -pl :cloud-client-ui jetty:run  -Dnoredist
>> -Djava.net.preferIPv4Stack=true
>>
>>
>> I'm using mvn 3.5.0 (custom installed from https://maven.apache.org/downl
>> oad.cgi) and I export the following in my .zshrc/.bashrc:
>>
>>
>> export MAVEN_OPTS="-Xmx4096m -XX:MaxPermSize=500m -Xdebug
>> -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n"
>>
>>
>> Rafael - you may review the Travis build/run scripts in `tools/travis`.
>>
>>
>> Regards.
>>
>> ________________________________
>> From: Daan Hoogland <da...@gmail.com>
>> Sent: Wednesday, November 15, 2017 12:50:29 PM
>> To: dev
>> Subject: Re: jetty simulator problem
>>
>> @Rohit, all of this is with -Dsimulator. It is probably due to one of my
>> many bad habits but I have this on fedora 26, macos 10.13 and macos 10.11
>>
>> On Tue, Nov 14, 2017 at 5:49 PM, Rohit Yadav <ro...@shapeblue.com>
>> wrote:
>>
>> > Daan,
>> >
>> > Try doing a mvn clean install build with - Dsimulator. See wiki on
>> > building for other parameters to consider or the Travis build/launch
>> > scripts,including prefering ipv4 stack.
>> >
>> > Our Travis build is green on current master, so likely an environment
>> > issue is causing these failures.
>> >
>> > PS. we recently upgraded master to spring 5.x however we have not caught
>> > any issues ib Travis or Trillian yet. Keep me posted if you still face
>> the
>> > issues.
>> >
>> > Regards.
>> > ________________________________
>> > From: Rafael Weingärtner <ra...@gmail.com>
>> > Sent: Tuesday, November 14, 2017 5:56:03 PM
>> > To: dev@cloudstack.apache.org
>> > Subject: Re: jetty simulator problem
>> >
>> > It works without removing annotation because they are not being
>> processed
>> > (@component). That is why when you deleted the beans declaration in the
>> XML
>> > Spring started complaining about those beans. So, if they are not being
>> > used, we can simply remove them.
>> >
>> > On Tue, Nov 14, 2017 at 10:09 AM, Daan Hoogland <
>> daan.hoogland@gmail.com>
>> > wrote:
>> >
>> > > On Tue, Nov 14, 2017 at 12:00 PM, Rafael Weingärtner <
>> > > rafaelweingartner@gmail.com> wrote:
>> > >
>> > > > That depends-on configuration is not needed when attributes are
>> > annotated
>> > > > with @inject or @Autowired, spring builds automatically de
>> dependency
>> > > > hierarchy. Even though the removal of them did not seem to be
>> > necessary,
>> > > >
>> > > ​the other way around, it worked without removing the annotation, just
>> > > removing the depends-on attribute was enough.
>> > >
>> > > ​
>> > >
>> > > ​I haven't tried with the attribute and without the annotations.
>> > >
>> > > ​
>> > >
>> > > > their use is also not necessary. The issue seems to be related to
>> > > > application contexts building order. I am not sure how spring
>> behaves
>> > > when
>> > > > it encounters the “depend-on” configuration and the bean have not
>> yet
>> > > been
>> > > > created and this bean is in another XML file that has not yet been
>> > > > processed. When we moved to fat jar approach, was any version of the
>> > > > dependencies changed?
>> > > >
>> > > ​don't know, i haven't found any yet (looking at CLOUDSTACK-10012
>> tagged
>> > > commits)
>> > >
>> > > >
>> > > > On Tue, Nov 14, 2017 at 7:31 AM, Daan Hoogland <
>> > daan.hoogland@gmail.com>
>> > > > wrote:
>> > > >
>> > > > > it actually already works with only the depends-on attributes in
>> the
>> > > xml
>> > > > > removed but it all makes sense.
>> > > > >
>> > > > > On Tue, Nov 14, 2017 at 1:59 AM, Rafael Weingärtner <
>> > > > > rafaelweingartner@gmail.com> wrote:
>> > > > >
>> > > > > > 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 <
>> > > > daan.hoogland@gmail.com>
>> > > > > > wrote:
>> > > > > >
>> > > > > > > trying with only the depends-on lines removed now
>> > > > > > >
>> > > > > > > On Mon, Nov 13, 2017 at 8:30 PM, Daan Hoogland <
>> > > > > daan.hoogland@gmail.com>
>> > > > > > > wrote:
>> > > > > > >
>> > > > > > > > from maven:
>> > > > > > > > mvn -pl client jetty:run -Dsimulator
>> > > > > > > >
>> > > > > > > > On Mon, Nov 13, 2017 at 8:16 PM, Rafael Weingärtner <
>> > > > > > > > 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 <
>> > > > > > daan.hoogland@gmail.com
>> > > > > > > >
>> > > > > > > >> 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ärtner <
>> > > > > > > >> > 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
>> > > > > > 'snapshotDataFactoryImpl'
>> > > > > > > >> 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.<init>
>> > > > > > > >> > > > (CloudStackSpringContext.java:58)
>> > > > > > > >> > > >     at
>> > > > > > > >> > > > org.apache.cloudstack.spring.module.factory.
>> > > > > > > >> > > CloudStackSpringContext.<init>
>> > > > > > > >> > > > (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.handl
>> er.ContextHandler.
>> > > > > > > startContext
>> > > > > > > >> > > > (ContextHandler.java:791)
>> > > > > > > >> > > >     at org.eclipse.jetty.servlet.Serv
>> letContextHandler.
>> > > > > > > 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.WebAp
>> pContext.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.DelegatingMethodAc
>> cessorImpl.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ärtner
>> > > > > > > >> > >
>> > > > > > > >> >
>> > > > > > > >> >
>> > > > > > > >> >
>> > > > > > > >> > --
>> > > > > > > >> > Daan
>> > > > > > > >> >
>> > > > > > > >>
>> > > > > > > >>
>> > > > > > > >>
>> > > > > > > >> --
>> > > > > > > >> Rafael Weingärtner
>> > > > > > > >>
>> > > > > > > >
>> > > > > > > >
>> > > > > > > >
>> > > > > > > > --
>> > > > > > > > Daan
>> > > > > > > >
>> > > > > > >
>> > > > > > >
>> > > > > > >
>> > > > > > > --
>> > > > > > > Daan
>> > > > > > >
>> > > > > >
>> > > > > >
>> > > > > >
>> > > > > > --
>> > > > > > Rafael Weingärtner
>> > > > > >
>> > > > >
>> > > > >
>> > > > >
>> > > > > --
>> > > > > Daan
>> > > > >
>> > > >
>> > > >
>> > > >
>> > > > --
>> > > > Rafael Weingärtner
>> > > >
>> > >
>> > >
>> > >
>> > > --
>> > > Daan
>> > >
>> >
>> >
>> >
>> > --
>> > Rafael Weingärtner
>> >
>> > rohit.yadav@shapeblue.com
>> > www.shapeblue.com<http://www.shapeblue.com>
>> > 53 Chandos Place, Covent Garden, London  WC2N 4HSUK
>> > @shapeblue
>> >
>> >
>> >
>> >
>>
>>
>> --
>> Daan
>>
>> rohit.yadav@shapeblue.com
>> www.shapeblue.com<http://www.shapeblue.com>
>> 53 Chandos Place, Covent Garden, London  WC2N 4HSUK
>> @shapeblue
>>
>>
>>
>>
>
>
> --
> Rafael Weingärtner
>



--
Rafael Weingärtner

rohit.yadav@shapeblue.com 
www.shapeblue.com
53 Chandos Place, Covent Garden, London  WC2N 4HSUK
@shapeblue
  
 


Re: jetty simulator problem

Posted by Rafael Weingärtner <ra...@gmail.com>.
Now travis started presenting the same problem reported by Daan.
https://travis-ci.org/apache/cloudstack/jobs/302452927

On Wed, Nov 15, 2017 at 9:48 AM, Rafael Weingärtner <
rafaelweingartner@gmail.com> wrote:

> Thanks Rohit, I did not know that there were Travis scripts inside ACS.
>
> I checked the install script, and it is building the packages using:  mvn
> -Pdeveloper -Dsimulator clean install -DskipTests -T4
>
> I am building using:
> mvn clean install -P developer -Dsimulator -Dmaven.test.skip=false
>
> So, the packages here are being built in the same way with same profile
> and parameter.
>
> Daan said he is using Fedora and MacOS, but my tests are being executed in
> Ubuntu 16.04. I am not sure that this is an environment problem.
>
> On Wed, Nov 15, 2017 at 6:40 AM, Rohit Yadav <ro...@shapeblue.com>
> wrote:
>
>> Here's how I build CloudStack using maven: (latest master works for me)
>>
>>
>> mvn clean install -Dnoredist -Dsimulator -P developer,systemvm
>>
>>
>> And run using:
>>
>> mvn -pl :cloud-client-ui jetty:run  -Dnoredist
>> -Djava.net.preferIPv4Stack=true
>>
>>
>> I'm using mvn 3.5.0 (custom installed from https://maven.apache.org/downl
>> oad.cgi) and I export the following in my .zshrc/.bashrc:
>>
>>
>> export MAVEN_OPTS="-Xmx4096m -XX:MaxPermSize=500m -Xdebug
>> -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n"
>>
>>
>> Rafael - you may review the Travis build/run scripts in `tools/travis`.
>>
>>
>> Regards.
>>
>> ________________________________
>> From: Daan Hoogland <da...@gmail.com>
>> Sent: Wednesday, November 15, 2017 12:50:29 PM
>> To: dev
>> Subject: Re: jetty simulator problem
>>
>> @Rohit, all of this is with -Dsimulator. It is probably due to one of my
>> many bad habits but I have this on fedora 26, macos 10.13 and macos 10.11
>>
>> On Tue, Nov 14, 2017 at 5:49 PM, Rohit Yadav <ro...@shapeblue.com>
>> wrote:
>>
>> > Daan,
>> >
>> > Try doing a mvn clean install build with - Dsimulator. See wiki on
>> > building for other parameters to consider or the Travis build/launch
>> > scripts,including prefering ipv4 stack.
>> >
>> > Our Travis build is green on current master, so likely an environment
>> > issue is causing these failures.
>> >
>> > PS. we recently upgraded master to spring 5.x however we have not caught
>> > any issues ib Travis or Trillian yet. Keep me posted if you still face
>> the
>> > issues.
>> >
>> > Regards.
>> > ________________________________
>> > From: Rafael Weingärtner <ra...@gmail.com>
>> > Sent: Tuesday, November 14, 2017 5:56:03 PM
>> > To: dev@cloudstack.apache.org
>> > Subject: Re: jetty simulator problem
>> >
>> > It works without removing annotation because they are not being
>> processed
>> > (@component). That is why when you deleted the beans declaration in the
>> XML
>> > Spring started complaining about those beans. So, if they are not being
>> > used, we can simply remove them.
>> >
>> > On Tue, Nov 14, 2017 at 10:09 AM, Daan Hoogland <
>> daan.hoogland@gmail.com>
>> > wrote:
>> >
>> > > On Tue, Nov 14, 2017 at 12:00 PM, Rafael Weingärtner <
>> > > rafaelweingartner@gmail.com> wrote:
>> > >
>> > > > That depends-on configuration is not needed when attributes are
>> > annotated
>> > > > with @inject or @Autowired, spring builds automatically de
>> dependency
>> > > > hierarchy. Even though the removal of them did not seem to be
>> > necessary,
>> > > >
>> > > ​the other way around, it worked without removing the annotation, just
>> > > removing the depends-on attribute was enough.
>> > >
>> > > ​
>> > >
>> > > ​I haven't tried with the attribute and without the annotations.
>> > >
>> > > ​
>> > >
>> > > > their use is also not necessary. The issue seems to be related to
>> > > > application contexts building order. I am not sure how spring
>> behaves
>> > > when
>> > > > it encounters the “depend-on” configuration and the bean have not
>> yet
>> > > been
>> > > > created and this bean is in another XML file that has not yet been
>> > > > processed. When we moved to fat jar approach, was any version of the
>> > > > dependencies changed?
>> > > >
>> > > ​don't know, i haven't found any yet (looking at CLOUDSTACK-10012
>> tagged
>> > > commits)
>> > >
>> > > >
>> > > > On Tue, Nov 14, 2017 at 7:31 AM, Daan Hoogland <
>> > daan.hoogland@gmail.com>
>> > > > wrote:
>> > > >
>> > > > > it actually already works with only the depends-on attributes in
>> the
>> > > xml
>> > > > > removed but it all makes sense.
>> > > > >
>> > > > > On Tue, Nov 14, 2017 at 1:59 AM, Rafael Weingärtner <
>> > > > > rafaelweingartner@gmail.com> wrote:
>> > > > >
>> > > > > > 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 <
>> > > > daan.hoogland@gmail.com>
>> > > > > > wrote:
>> > > > > >
>> > > > > > > trying with only the depends-on lines removed now
>> > > > > > >
>> > > > > > > On Mon, Nov 13, 2017 at 8:30 PM, Daan Hoogland <
>> > > > > daan.hoogland@gmail.com>
>> > > > > > > wrote:
>> > > > > > >
>> > > > > > > > from maven:
>> > > > > > > > mvn -pl client jetty:run -Dsimulator
>> > > > > > > >
>> > > > > > > > On Mon, Nov 13, 2017 at 8:16 PM, Rafael Weingärtner <
>> > > > > > > > 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 <
>> > > > > > daan.hoogland@gmail.com
>> > > > > > > >
>> > > > > > > >> 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ärtner <
>> > > > > > > >> > 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
>> > > > > > 'snapshotDataFactoryImpl'
>> > > > > > > >> 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.<init>
>> > > > > > > >> > > > (CloudStackSpringContext.java:58)
>> > > > > > > >> > > >     at
>> > > > > > > >> > > > org.apache.cloudstack.spring.module.factory.
>> > > > > > > >> > > CloudStackSpringContext.<init>
>> > > > > > > >> > > > (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.handl
>> er.ContextHandler.
>> > > > > > > startContext
>> > > > > > > >> > > > (ContextHandler.java:791)
>> > > > > > > >> > > >     at org.eclipse.jetty.servlet.Serv
>> letContextHandler.
>> > > > > > > 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.WebAp
>> pContext.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.DelegatingMethodAc
>> cessorImpl.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ärtner
>> > > > > > > >> > >
>> > > > > > > >> >
>> > > > > > > >> >
>> > > > > > > >> >
>> > > > > > > >> > --
>> > > > > > > >> > Daan
>> > > > > > > >> >
>> > > > > > > >>
>> > > > > > > >>
>> > > > > > > >>
>> > > > > > > >> --
>> > > > > > > >> Rafael Weingärtner
>> > > > > > > >>
>> > > > > > > >
>> > > > > > > >
>> > > > > > > >
>> > > > > > > > --
>> > > > > > > > Daan
>> > > > > > > >
>> > > > > > >
>> > > > > > >
>> > > > > > >
>> > > > > > > --
>> > > > > > > Daan
>> > > > > > >
>> > > > > >
>> > > > > >
>> > > > > >
>> > > > > > --
>> > > > > > Rafael Weingärtner
>> > > > > >
>> > > > >
>> > > > >
>> > > > >
>> > > > > --
>> > > > > Daan
>> > > > >
>> > > >
>> > > >
>> > > >
>> > > > --
>> > > > Rafael Weingärtner
>> > > >
>> > >
>> > >
>> > >
>> > > --
>> > > Daan
>> > >
>> >
>> >
>> >
>> > --
>> > Rafael Weingärtner
>> >
>> > rohit.yadav@shapeblue.com
>> > www.shapeblue.com<http://www.shapeblue.com>
>> > 53 Chandos Place, Covent Garden, London  WC2N 4HSUK
>> > @shapeblue
>> >
>> >
>> >
>> >
>>
>>
>> --
>> Daan
>>
>> rohit.yadav@shapeblue.com
>> www.shapeblue.com
>> 53 Chandos Place, Covent Garden, London  WC2N 4HSUK
>> @shapeblue
>>
>>
>>
>>
>
>
> --
> Rafael Weingärtner
>



-- 
Rafael Weingärtner

Re: jetty simulator problem

Posted by Rafael Weingärtner <ra...@gmail.com>.
Thanks Rohit, I did not know that there were Travis scripts inside ACS.

I checked the install script, and it is building the packages using:  mvn
-Pdeveloper -Dsimulator clean install -DskipTests -T4

I am building using:
mvn clean install -P developer -Dsimulator -Dmaven.test.skip=false

So, the packages here are being built in the same way with same profile and
parameter.

Daan said he is using Fedora and MacOS, but my tests are being executed in
Ubuntu 16.04. I am not sure that this is an environment problem.

On Wed, Nov 15, 2017 at 6:40 AM, Rohit Yadav <ro...@shapeblue.com>
wrote:

> Here's how I build CloudStack using maven: (latest master works for me)
>
>
> mvn clean install -Dnoredist -Dsimulator -P developer,systemvm
>
>
> And run using:
>
> mvn -pl :cloud-client-ui jetty:run  -Dnoredist -Djava.net.preferIPv4Stack=
> true
>
>
> I'm using mvn 3.5.0 (custom installed from https://maven.apache.org/
> download.cgi) and I export the following in my .zshrc/.bashrc:
>
>
> export MAVEN_OPTS="-Xmx4096m -XX:MaxPermSize=500m -Xdebug
> -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n"
>
>
> Rafael - you may review the Travis build/run scripts in `tools/travis`.
>
>
> Regards.
>
> ________________________________
> From: Daan Hoogland <da...@gmail.com>
> Sent: Wednesday, November 15, 2017 12:50:29 PM
> To: dev
> Subject: Re: jetty simulator problem
>
> @Rohit, all of this is with -Dsimulator. It is probably due to one of my
> many bad habits but I have this on fedora 26, macos 10.13 and macos 10.11
>
> On Tue, Nov 14, 2017 at 5:49 PM, Rohit Yadav <ro...@shapeblue.com>
> wrote:
>
> > Daan,
> >
> > Try doing a mvn clean install build with - Dsimulator. See wiki on
> > building for other parameters to consider or the Travis build/launch
> > scripts,including prefering ipv4 stack.
> >
> > Our Travis build is green on current master, so likely an environment
> > issue is causing these failures.
> >
> > PS. we recently upgraded master to spring 5.x however we have not caught
> > any issues ib Travis or Trillian yet. Keep me posted if you still face
> the
> > issues.
> >
> > Regards.
> > ________________________________
> > From: Rafael Weingärtner <ra...@gmail.com>
> > Sent: Tuesday, November 14, 2017 5:56:03 PM
> > To: dev@cloudstack.apache.org
> > Subject: Re: jetty simulator problem
> >
> > It works without removing annotation because they are not being processed
> > (@component). That is why when you deleted the beans declaration in the
> XML
> > Spring started complaining about those beans. So, if they are not being
> > used, we can simply remove them.
> >
> > On Tue, Nov 14, 2017 at 10:09 AM, Daan Hoogland <daan.hoogland@gmail.com
> >
> > wrote:
> >
> > > On Tue, Nov 14, 2017 at 12:00 PM, Rafael Weingärtner <
> > > rafaelweingartner@gmail.com> wrote:
> > >
> > > > That depends-on configuration is not needed when attributes are
> > annotated
> > > > with @inject or @Autowired, spring builds automatically de dependency
> > > > hierarchy. Even though the removal of them did not seem to be
> > necessary,
> > > >
> > > ​the other way around, it worked without removing the annotation, just
> > > removing the depends-on attribute was enough.
> > >
> > > ​
> > >
> > > ​I haven't tried with the attribute and without the annotations.
> > >
> > > ​
> > >
> > > > their use is also not necessary. The issue seems to be related to
> > > > application contexts building order. I am not sure how spring behaves
> > > when
> > > > it encounters the “depend-on” configuration and the bean have not yet
> > > been
> > > > created and this bean is in another XML file that has not yet been
> > > > processed. When we moved to fat jar approach, was any version of the
> > > > dependencies changed?
> > > >
> > > ​don't know, i haven't found any yet (looking at CLOUDSTACK-10012
> tagged
> > > commits)
> > >
> > > >
> > > > On Tue, Nov 14, 2017 at 7:31 AM, Daan Hoogland <
> > daan.hoogland@gmail.com>
> > > > wrote:
> > > >
> > > > > it actually already works with only the depends-on attributes in
> the
> > > xml
> > > > > removed but it all makes sense.
> > > > >
> > > > > On Tue, Nov 14, 2017 at 1:59 AM, Rafael Weingärtner <
> > > > > rafaelweingartner@gmail.com> wrote:
> > > > >
> > > > > > 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 <
> > > > daan.hoogland@gmail.com>
> > > > > > wrote:
> > > > > >
> > > > > > > trying with only the depends-on lines removed now
> > > > > > >
> > > > > > > On Mon, Nov 13, 2017 at 8:30 PM, Daan Hoogland <
> > > > > daan.hoogland@gmail.com>
> > > > > > > wrote:
> > > > > > >
> > > > > > > > from maven:
> > > > > > > > mvn -pl client jetty:run -Dsimulator
> > > > > > > >
> > > > > > > > On Mon, Nov 13, 2017 at 8:16 PM, Rafael Weingärtner <
> > > > > > > > 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 <
> > > > > > daan.hoogland@gmail.com
> > > > > > > >
> > > > > > > >> 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ärtner <
> > > > > > > >> > 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
> > > > > > 'snapshotDataFactoryImpl'
> > > > > > > >> 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.<init>
> > > > > > > >> > > > (CloudStackSpringContext.java:58)
> > > > > > > >> > > >     at
> > > > > > > >> > > > org.apache.cloudstack.spring.module.factory.
> > > > > > > >> > > CloudStackSpringContext.<init>
> > > > > > > >> > > > (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ärtner
> > > > > > > >> > >
> > > > > > > >> >
> > > > > > > >> >
> > > > > > > >> >
> > > > > > > >> > --
> > > > > > > >> > Daan
> > > > > > > >> >
> > > > > > > >>
> > > > > > > >>
> > > > > > > >>
> > > > > > > >> --
> > > > > > > >> Rafael Weingärtner
> > > > > > > >>
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > --
> > > > > > > > Daan
> > > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > --
> > > > > > > Daan
> > > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > --
> > > > > > Rafael Weingärtner
> > > > > >
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > > Daan
> > > > >
> > > >
> > > >
> > > >
> > > > --
> > > > Rafael Weingärtner
> > > >
> > >
> > >
> > >
> > > --
> > > Daan
> > >
> >
> >
> >
> > --
> > Rafael Weingärtner
> >
> > rohit.yadav@shapeblue.com
> > www.shapeblue.com<http://www.shapeblue.com>
> > 53 Chandos Place, Covent Garden, London  WC2N 4HSUK
> > @shapeblue
> >
> >
> >
> >
>
>
> --
> Daan
>
> rohit.yadav@shapeblue.com
> www.shapeblue.com
> 53 Chandos Place, Covent Garden, London  WC2N 4HSUK
> @shapeblue
>
>
>
>


-- 
Rafael Weingärtner

Re: jetty simulator problem

Posted by Rohit Yadav <ro...@shapeblue.com>.
Here's how I build CloudStack using maven: (latest master works for me)


mvn clean install -Dnoredist -Dsimulator -P developer,systemvm


And run using:

mvn -pl :cloud-client-ui jetty:run  -Dnoredist -Djava.net.preferIPv4Stack=true


I'm using mvn 3.5.0 (custom installed from https://maven.apache.org/download.cgi) and I export the following in my .zshrc/.bashrc:


export MAVEN_OPTS="-Xmx4096m -XX:MaxPermSize=500m -Xdebug -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n"


Rafael - you may review the Travis build/run scripts in `tools/travis`.


Regards.

________________________________
From: Daan Hoogland <da...@gmail.com>
Sent: Wednesday, November 15, 2017 12:50:29 PM
To: dev
Subject: Re: jetty simulator problem

@Rohit, all of this is with -Dsimulator. It is probably due to one of my
many bad habits but I have this on fedora 26, macos 10.13 and macos 10.11

On Tue, Nov 14, 2017 at 5:49 PM, Rohit Yadav <ro...@shapeblue.com>
wrote:

> Daan,
>
> Try doing a mvn clean install build with - Dsimulator. See wiki on
> building for other parameters to consider or the Travis build/launch
> scripts,including prefering ipv4 stack.
>
> Our Travis build is green on current master, so likely an environment
> issue is causing these failures.
>
> PS. we recently upgraded master to spring 5.x however we have not caught
> any issues ib Travis or Trillian yet. Keep me posted if you still face the
> issues.
>
> Regards.
> ________________________________
> From: Rafael Weingärtner <ra...@gmail.com>
> Sent: Tuesday, November 14, 2017 5:56:03 PM
> To: dev@cloudstack.apache.org
> Subject: Re: jetty simulator problem
>
> It works without removing annotation because they are not being processed
> (@component). That is why when you deleted the beans declaration in the XML
> Spring started complaining about those beans. So, if they are not being
> used, we can simply remove them.
>
> On Tue, Nov 14, 2017 at 10:09 AM, Daan Hoogland <da...@gmail.com>
> wrote:
>
> > On Tue, Nov 14, 2017 at 12:00 PM, Rafael Weingärtner <
> > rafaelweingartner@gmail.com> wrote:
> >
> > > That depends-on configuration is not needed when attributes are
> annotated
> > > with @inject or @Autowired, spring builds automatically de dependency
> > > hierarchy. Even though the removal of them did not seem to be
> necessary,
> > >
> > ​the other way around, it worked without removing the annotation, just
> > removing the depends-on attribute was enough.
> >
> > ​
> >
> > ​I haven't tried with the attribute and without the annotations.
> >
> > ​
> >
> > > their use is also not necessary. The issue seems to be related to
> > > application contexts building order. I am not sure how spring behaves
> > when
> > > it encounters the “depend-on” configuration and the bean have not yet
> > been
> > > created and this bean is in another XML file that has not yet been
> > > processed. When we moved to fat jar approach, was any version of the
> > > dependencies changed?
> > >
> > ​don't know, i haven't found any yet (looking at CLOUDSTACK-10012 tagged
> > commits)
> >
> > >
> > > On Tue, Nov 14, 2017 at 7:31 AM, Daan Hoogland <
> daan.hoogland@gmail.com>
> > > wrote:
> > >
> > > > it actually already works with only the depends-on attributes in the
> > xml
> > > > removed but it all makes sense.
> > > >
> > > > On Tue, Nov 14, 2017 at 1:59 AM, Rafael Weingärtner <
> > > > rafaelweingartner@gmail.com> wrote:
> > > >
> > > > > 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 <
> > > daan.hoogland@gmail.com>
> > > > > wrote:
> > > > >
> > > > > > trying with only the depends-on lines removed now
> > > > > >
> > > > > > On Mon, Nov 13, 2017 at 8:30 PM, Daan Hoogland <
> > > > daan.hoogland@gmail.com>
> > > > > > wrote:
> > > > > >
> > > > > > > from maven:
> > > > > > > mvn -pl client jetty:run -Dsimulator
> > > > > > >
> > > > > > > On Mon, Nov 13, 2017 at 8:16 PM, Rafael Weingärtner <
> > > > > > > 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 <
> > > > > daan.hoogland@gmail.com
> > > > > > >
> > > > > > >> 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ärtner <
> > > > > > >> > 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
> > > > > 'snapshotDataFactoryImpl'
> > > > > > >> 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.<init>
> > > > > > >> > > > (CloudStackSpringContext.java:58)
> > > > > > >> > > >     at
> > > > > > >> > > > org.apache.cloudstack.spring.module.factory.
> > > > > > >> > > CloudStackSpringContext.<init>
> > > > > > >> > > > (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ärtner
> > > > > > >> > >
> > > > > > >> >
> > > > > > >> >
> > > > > > >> >
> > > > > > >> > --
> > > > > > >> > Daan
> > > > > > >> >
> > > > > > >>
> > > > > > >>
> > > > > > >>
> > > > > > >> --
> > > > > > >> Rafael Weingärtner
> > > > > > >>
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > --
> > > > > > > Daan
> > > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > --
> > > > > > Daan
> > > > > >
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > > Rafael Weingärtner
> > > > >
> > > >
> > > >
> > > >
> > > > --
> > > > Daan
> > > >
> > >
> > >
> > >
> > > --
> > > Rafael Weingärtner
> > >
> >
> >
> >
> > --
> > Daan
> >
>
>
>
> --
> Rafael Weingärtner
>
> rohit.yadav@shapeblue.com
> www.shapeblue.com<http://www.shapeblue.com>
> 53 Chandos Place, Covent Garden, London  WC2N 4HSUK
> @shapeblue
>
>
>
>


--
Daan

rohit.yadav@shapeblue.com 
www.shapeblue.com
53 Chandos Place, Covent Garden, London  WC2N 4HSUK
@shapeblue
  
 


Re: jetty simulator problem

Posted by Daan Hoogland <da...@gmail.com>.
@Rohit, all of this is with -Dsimulator. It is probably due to one of my
many bad habits but I have this on fedora 26, macos 10.13 and macos 10.11

On Tue, Nov 14, 2017 at 5:49 PM, Rohit Yadav <ro...@shapeblue.com>
wrote:

> Daan,
>
> Try doing a mvn clean install build with - Dsimulator. See wiki on
> building for other parameters to consider or the Travis build/launch
> scripts,including prefering ipv4 stack.
>
> Our Travis build is green on current master, so likely an environment
> issue is causing these failures.
>
> PS. we recently upgraded master to spring 5.x however we have not caught
> any issues ib Travis or Trillian yet. Keep me posted if you still face the
> issues.
>
> Regards.
> ________________________________
> From: Rafael Weingärtner <ra...@gmail.com>
> Sent: Tuesday, November 14, 2017 5:56:03 PM
> To: dev@cloudstack.apache.org
> Subject: Re: jetty simulator problem
>
> It works without removing annotation because they are not being processed
> (@component). That is why when you deleted the beans declaration in the XML
> Spring started complaining about those beans. So, if they are not being
> used, we can simply remove them.
>
> On Tue, Nov 14, 2017 at 10:09 AM, Daan Hoogland <da...@gmail.com>
> wrote:
>
> > On Tue, Nov 14, 2017 at 12:00 PM, Rafael Weingärtner <
> > rafaelweingartner@gmail.com> wrote:
> >
> > > That depends-on configuration is not needed when attributes are
> annotated
> > > with @inject or @Autowired, spring builds automatically de dependency
> > > hierarchy. Even though the removal of them did not seem to be
> necessary,
> > >
> > ​the other way around, it worked without removing the annotation, just
> > removing the depends-on attribute was enough.
> >
> > ​
> >
> > ​I haven't tried with the attribute and without the annotations.
> >
> > ​
> >
> > > their use is also not necessary. The issue seems to be related to
> > > application contexts building order. I am not sure how spring behaves
> > when
> > > it encounters the “depend-on” configuration and the bean have not yet
> > been
> > > created and this bean is in another XML file that has not yet been
> > > processed. When we moved to fat jar approach, was any version of the
> > > dependencies changed?
> > >
> > ​don't know, i haven't found any yet (looking at CLOUDSTACK-10012 tagged
> > commits)
> >
> > >
> > > On Tue, Nov 14, 2017 at 7:31 AM, Daan Hoogland <
> daan.hoogland@gmail.com>
> > > wrote:
> > >
> > > > it actually already works with only the depends-on attributes in the
> > xml
> > > > removed but it all makes sense.
> > > >
> > > > On Tue, Nov 14, 2017 at 1:59 AM, Rafael Weingärtner <
> > > > rafaelweingartner@gmail.com> wrote:
> > > >
> > > > > 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 <
> > > daan.hoogland@gmail.com>
> > > > > wrote:
> > > > >
> > > > > > trying with only the depends-on lines removed now
> > > > > >
> > > > > > On Mon, Nov 13, 2017 at 8:30 PM, Daan Hoogland <
> > > > daan.hoogland@gmail.com>
> > > > > > wrote:
> > > > > >
> > > > > > > from maven:
> > > > > > > mvn -pl client jetty:run -Dsimulator
> > > > > > >
> > > > > > > On Mon, Nov 13, 2017 at 8:16 PM, Rafael Weingärtner <
> > > > > > > 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 <
> > > > > daan.hoogland@gmail.com
> > > > > > >
> > > > > > >> 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ärtner <
> > > > > > >> > 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
> > > > > 'snapshotDataFactoryImpl'
> > > > > > >> 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.<init>
> > > > > > >> > > > (CloudStackSpringContext.java:58)
> > > > > > >> > > >     at
> > > > > > >> > > > org.apache.cloudstack.spring.module.factory.
> > > > > > >> > > CloudStackSpringContext.<init>
> > > > > > >> > > > (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ärtner
> > > > > > >> > >
> > > > > > >> >
> > > > > > >> >
> > > > > > >> >
> > > > > > >> > --
> > > > > > >> > Daan
> > > > > > >> >
> > > > > > >>
> > > > > > >>
> > > > > > >>
> > > > > > >> --
> > > > > > >> Rafael Weingärtner
> > > > > > >>
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > --
> > > > > > > Daan
> > > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > --
> > > > > > Daan
> > > > > >
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > > Rafael Weingärtner
> > > > >
> > > >
> > > >
> > > >
> > > > --
> > > > Daan
> > > >
> > >
> > >
> > >
> > > --
> > > Rafael Weingärtner
> > >
> >
> >
> >
> > --
> > Daan
> >
>
>
>
> --
> Rafael Weingärtner
>
> rohit.yadav@shapeblue.com
> www.shapeblue.com
> 53 Chandos Place, Covent Garden, London  WC2N 4HSUK
> @shapeblue
>
>
>
>


-- 
Daan

Re: jetty simulator problem

Posted by Rafael Weingärtner <ra...@gmail.com>.
All of the commits I tried from 2874fc23e7d11ee826ee25069851d7c48381cf75
until 4bc7c270fa7e9a612b1a936f28ca20a13caacf37 caused the same problem.
Commit 4bc7c270fa7e9a612b1a936f28ca20a13caacf37 is working though. I
believe it has something to do with these last version updates of
components lately. I also tried to check a Travis log, for instance, this
one: https://travis-ci.org/apache/cloudstack/jobs/301921455 to see how
Travis is building components, but I could not find the maven command it is
using. It might be the case that it is using an old version of the affected
components.


In any case, I opened a PR to remove the “depends-on” declaration as they
are not needed. I also removed the “@Component” annotation from classes
that are used to create beans in XML files
https://github.com/apache/cloudstack/pull/2324

On Tue, Nov 14, 2017 at 2:49 PM, Rohit Yadav <ro...@shapeblue.com>
wrote:

> Daan,
>
> Try doing a mvn clean install build with - Dsimulator. See wiki on
> building for other parameters to consider or the Travis build/launch
> scripts,including prefering ipv4 stack.
>
> Our Travis build is green on current master, so likely an environment
> issue is causing these failures.
>
> PS. we recently upgraded master to spring 5.x however we have not caught
> any issues ib Travis or Trillian yet. Keep me posted if you still face the
> issues.
>
> Regards.
> ________________________________
> From: Rafael Weingärtner <ra...@gmail.com>
> Sent: Tuesday, November 14, 2017 5:56:03 PM
> To: dev@cloudstack.apache.org
> Subject: Re: jetty simulator problem
>
> It works without removing annotation because they are not being processed
> (@component). That is why when you deleted the beans declaration in the XML
> Spring started complaining about those beans. So, if they are not being
> used, we can simply remove them.
>
> On Tue, Nov 14, 2017 at 10:09 AM, Daan Hoogland <da...@gmail.com>
> wrote:
>
> > On Tue, Nov 14, 2017 at 12:00 PM, Rafael Weingärtner <
> > rafaelweingartner@gmail.com> wrote:
> >
> > > That depends-on configuration is not needed when attributes are
> annotated
> > > with @inject or @Autowired, spring builds automatically de dependency
> > > hierarchy. Even though the removal of them did not seem to be
> necessary,
> > >
> > ​the other way around, it worked without removing the annotation, just
> > removing the depends-on attribute was enough.
> >
> > ​
> >
> > ​I haven't tried with the attribute and without the annotations.
> >
> > ​
> >
> > > their use is also not necessary. The issue seems to be related to
> > > application contexts building order. I am not sure how spring behaves
> > when
> > > it encounters the “depend-on” configuration and the bean have not yet
> > been
> > > created and this bean is in another XML file that has not yet been
> > > processed. When we moved to fat jar approach, was any version of the
> > > dependencies changed?
> > >
> > ​don't know, i haven't found any yet (looking at CLOUDSTACK-10012 tagged
> > commits)
> >
> > >
> > > On Tue, Nov 14, 2017 at 7:31 AM, Daan Hoogland <
> daan.hoogland@gmail.com>
> > > wrote:
> > >
> > > > it actually already works with only the depends-on attributes in the
> > xml
> > > > removed but it all makes sense.
> > > >
> > > > On Tue, Nov 14, 2017 at 1:59 AM, Rafael Weingärtner <
> > > > rafaelweingartner@gmail.com> wrote:
> > > >
> > > > > 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 <
> > > daan.hoogland@gmail.com>
> > > > > wrote:
> > > > >
> > > > > > trying with only the depends-on lines removed now
> > > > > >
> > > > > > On Mon, Nov 13, 2017 at 8:30 PM, Daan Hoogland <
> > > > daan.hoogland@gmail.com>
> > > > > > wrote:
> > > > > >
> > > > > > > from maven:
> > > > > > > mvn -pl client jetty:run -Dsimulator
> > > > > > >
> > > > > > > On Mon, Nov 13, 2017 at 8:16 PM, Rafael Weingärtner <
> > > > > > > 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 <
> > > > > daan.hoogland@gmail.com
> > > > > > >
> > > > > > >> 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ärtner <
> > > > > > >> > 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
> > > > > 'snapshotDataFactoryImpl'
> > > > > > >> 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.<init>
> > > > > > >> > > > (CloudStackSpringContext.java:58)
> > > > > > >> > > >     at
> > > > > > >> > > > org.apache.cloudstack.spring.module.factory.
> > > > > > >> > > CloudStackSpringContext.<init>
> > > > > > >> > > > (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ärtner
> > > > > > >> > >
> > > > > > >> >
> > > > > > >> >
> > > > > > >> >
> > > > > > >> > --
> > > > > > >> > Daan
> > > > > > >> >
> > > > > > >>
> > > > > > >>
> > > > > > >>
> > > > > > >> --
> > > > > > >> Rafael Weingärtner
> > > > > > >>
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > --
> > > > > > > Daan
> > > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > --
> > > > > > Daan
> > > > > >
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > > Rafael Weingärtner
> > > > >
> > > >
> > > >
> > > >
> > > > --
> > > > Daan
> > > >
> > >
> > >
> > >
> > > --
> > > Rafael Weingärtner
> > >
> >
> >
> >
> > --
> > Daan
> >
>
>
>
> --
> Rafael Weingärtner
>
> rohit.yadav@shapeblue.com
> www.shapeblue.com
> 53 Chandos Place, Covent Garden, London  WC2N 4HSUK
> @shapeblue
>
>
>
>


-- 
Rafael Weingärtner

Re: jetty simulator problem

Posted by Rohit Yadav <ro...@shapeblue.com>.
Daan,

Try doing a mvn clean install build with - Dsimulator. See wiki on building for other parameters to consider or the Travis build/launch scripts,including prefering ipv4 stack.

Our Travis build is green on current master, so likely an environment issue is causing these failures.

PS. we recently upgraded master to spring 5.x however we have not caught any issues ib Travis or Trillian yet. Keep me posted if you still face the issues.

Regards.
________________________________
From: Rafael Weingärtner <ra...@gmail.com>
Sent: Tuesday, November 14, 2017 5:56:03 PM
To: dev@cloudstack.apache.org
Subject: Re: jetty simulator problem

It works without removing annotation because they are not being processed
(@component). That is why when you deleted the beans declaration in the XML
Spring started complaining about those beans. So, if they are not being
used, we can simply remove them.

On Tue, Nov 14, 2017 at 10:09 AM, Daan Hoogland <da...@gmail.com>
wrote:

> On Tue, Nov 14, 2017 at 12:00 PM, Rafael Weingärtner <
> rafaelweingartner@gmail.com> wrote:
>
> > That depends-on configuration is not needed when attributes are annotated
> > with @inject or @Autowired, spring builds automatically de dependency
> > hierarchy. Even though the removal of them did not seem to be necessary,
> >
> ​the other way around, it worked without removing the annotation, just
> removing the depends-on attribute was enough.
>
> ​
>
> ​I haven't tried with the attribute and without the annotations.
>
> ​
>
> > their use is also not necessary. The issue seems to be related to
> > application contexts building order. I am not sure how spring behaves
> when
> > it encounters the “depend-on” configuration and the bean have not yet
> been
> > created and this bean is in another XML file that has not yet been
> > processed. When we moved to fat jar approach, was any version of the
> > dependencies changed?
> >
> ​don't know, i haven't found any yet (looking at CLOUDSTACK-10012 tagged
> commits)
>
> >
> > On Tue, Nov 14, 2017 at 7:31 AM, Daan Hoogland <da...@gmail.com>
> > wrote:
> >
> > > it actually already works with only the depends-on attributes in the
> xml
> > > removed but it all makes sense.
> > >
> > > On Tue, Nov 14, 2017 at 1:59 AM, Rafael Weingärtner <
> > > rafaelweingartner@gmail.com> wrote:
> > >
> > > > 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 <
> > daan.hoogland@gmail.com>
> > > > wrote:
> > > >
> > > > > trying with only the depends-on lines removed now
> > > > >
> > > > > On Mon, Nov 13, 2017 at 8:30 PM, Daan Hoogland <
> > > daan.hoogland@gmail.com>
> > > > > wrote:
> > > > >
> > > > > > from maven:
> > > > > > mvn -pl client jetty:run -Dsimulator
> > > > > >
> > > > > > On Mon, Nov 13, 2017 at 8:16 PM, Rafael Weingärtner <
> > > > > > 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 <
> > > > daan.hoogland@gmail.com
> > > > > >
> > > > > >> 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ärtner <
> > > > > >> > 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
> > > > 'snapshotDataFactoryImpl'
> > > > > >> 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.<init>
> > > > > >> > > > (CloudStackSpringContext.java:58)
> > > > > >> > > >     at
> > > > > >> > > > org.apache.cloudstack.spring.module.factory.
> > > > > >> > > CloudStackSpringContext.<init>
> > > > > >> > > > (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ärtner
> > > > > >> > >
> > > > > >> >
> > > > > >> >
> > > > > >> >
> > > > > >> > --
> > > > > >> > Daan
> > > > > >> >
> > > > > >>
> > > > > >>
> > > > > >>
> > > > > >> --
> > > > > >> Rafael Weingärtner
> > > > > >>
> > > > > >
> > > > > >
> > > > > >
> > > > > > --
> > > > > > Daan
> > > > > >
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > > Daan
> > > > >
> > > >
> > > >
> > > >
> > > > --
> > > > Rafael Weingärtner
> > > >
> > >
> > >
> > >
> > > --
> > > Daan
> > >
> >
> >
> >
> > --
> > Rafael Weingärtner
> >
>
>
>
> --
> Daan
>



--
Rafael Weingärtner

rohit.yadav@shapeblue.com 
www.shapeblue.com
53 Chandos Place, Covent Garden, London  WC2N 4HSUK
@shapeblue
  
 


Re: jetty simulator problem

Posted by Rafael Weingärtner <ra...@gmail.com>.
It works without removing annotation because they are not being processed
(@component). That is why when you deleted the beans declaration in the XML
Spring started complaining about those beans. So, if they are not being
used, we can simply remove them.

On Tue, Nov 14, 2017 at 10:09 AM, Daan Hoogland <da...@gmail.com>
wrote:

> On Tue, Nov 14, 2017 at 12:00 PM, Rafael Weingärtner <
> rafaelweingartner@gmail.com> wrote:
>
> > That depends-on configuration is not needed when attributes are annotated
> > with @inject or @Autowired, spring builds automatically de dependency
> > hierarchy. Even though the removal of them did not seem to be necessary,
> >
> ​the other way around, it worked without removing the annotation, just
> removing the depends-on attribute was enough.
>
> ​
>
> ​I haven't tried with the attribute and without the annotations.
>
> ​
>
> > their use is also not necessary. The issue seems to be related to
> > application contexts building order. I am not sure how spring behaves
> when
> > it encounters the “depend-on” configuration and the bean have not yet
> been
> > created and this bean is in another XML file that has not yet been
> > processed. When we moved to fat jar approach, was any version of the
> > dependencies changed?
> >
> ​don't know, i haven't found any yet (looking at CLOUDSTACK-10012 tagged
> commits)
>
> >
> > On Tue, Nov 14, 2017 at 7:31 AM, Daan Hoogland <da...@gmail.com>
> > wrote:
> >
> > > it actually already works with only the depends-on attributes in the
> xml
> > > removed but it all makes sense.
> > >
> > > On Tue, Nov 14, 2017 at 1:59 AM, Rafael Weingärtner <
> > > rafaelweingartner@gmail.com> wrote:
> > >
> > > > 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 <
> > daan.hoogland@gmail.com>
> > > > wrote:
> > > >
> > > > > trying with only the depends-on lines removed now
> > > > >
> > > > > On Mon, Nov 13, 2017 at 8:30 PM, Daan Hoogland <
> > > daan.hoogland@gmail.com>
> > > > > wrote:
> > > > >
> > > > > > from maven:
> > > > > > mvn -pl client jetty:run -Dsimulator
> > > > > >
> > > > > > On Mon, Nov 13, 2017 at 8:16 PM, Rafael Weingärtner <
> > > > > > 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 <
> > > > daan.hoogland@gmail.com
> > > > > >
> > > > > >> 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ärtner <
> > > > > >> > 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
> > > > 'snapshotDataFactoryImpl'
> > > > > >> 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.<init>
> > > > > >> > > > (CloudStackSpringContext.java:58)
> > > > > >> > > >     at
> > > > > >> > > > org.apache.cloudstack.spring.module.factory.
> > > > > >> > > CloudStackSpringContext.<init>
> > > > > >> > > > (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ärtner
> > > > > >> > >
> > > > > >> >
> > > > > >> >
> > > > > >> >
> > > > > >> > --
> > > > > >> > Daan
> > > > > >> >
> > > > > >>
> > > > > >>
> > > > > >>
> > > > > >> --
> > > > > >> Rafael Weingärtner
> > > > > >>
> > > > > >
> > > > > >
> > > > > >
> > > > > > --
> > > > > > Daan
> > > > > >
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > > Daan
> > > > >
> > > >
> > > >
> > > >
> > > > --
> > > > Rafael Weingärtner
> > > >
> > >
> > >
> > >
> > > --
> > > Daan
> > >
> >
> >
> >
> > --
> > Rafael Weingärtner
> >
>
>
>
> --
> Daan
>



-- 
Rafael Weingärtner

Re: jetty simulator problem

Posted by Daan Hoogland <da...@gmail.com>.
On Tue, Nov 14, 2017 at 12:00 PM, Rafael Weingärtner <
rafaelweingartner@gmail.com> wrote:

> That depends-on configuration is not needed when attributes are annotated
> with @inject or @Autowired, spring builds automatically de dependency
> hierarchy. Even though the removal of them did not seem to be necessary,
>
​the other way around, it worked without removing the annotation, just
removing the depends-on attribute was enough.

​

​I haven't tried with the attribute and without the annotations.

​

> their use is also not necessary. The issue seems to be related to
> application contexts building order. I am not sure how spring behaves when
> it encounters the “depend-on” configuration and the bean have not yet been
> created and this bean is in another XML file that has not yet been
> processed. When we moved to fat jar approach, was any version of the
> dependencies changed?
>
​don't know, i haven't found any yet (looking at CLOUDSTACK-10012 tagged
commits)

>
> On Tue, Nov 14, 2017 at 7:31 AM, Daan Hoogland <da...@gmail.com>
> wrote:
>
> > it actually already works with only the depends-on attributes in the xml
> > removed but it all makes sense.
> >
> > On Tue, Nov 14, 2017 at 1:59 AM, Rafael Weingärtner <
> > rafaelweingartner@gmail.com> wrote:
> >
> > > 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 <
> daan.hoogland@gmail.com>
> > > wrote:
> > >
> > > > trying with only the depends-on lines removed now
> > > >
> > > > On Mon, Nov 13, 2017 at 8:30 PM, Daan Hoogland <
> > daan.hoogland@gmail.com>
> > > > wrote:
> > > >
> > > > > from maven:
> > > > > mvn -pl client jetty:run -Dsimulator
> > > > >
> > > > > On Mon, Nov 13, 2017 at 8:16 PM, Rafael Weingärtner <
> > > > > 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 <
> > > daan.hoogland@gmail.com
> > > > >
> > > > >> 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ärtner <
> > > > >> > 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
> > > 'snapshotDataFactoryImpl'
> > > > >> 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.<init>
> > > > >> > > > (CloudStackSpringContext.java:58)
> > > > >> > > >     at
> > > > >> > > > org.apache.cloudstack.spring.module.factory.
> > > > >> > > CloudStackSpringContext.<init>
> > > > >> > > > (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ärtner
> > > > >> > >
> > > > >> >
> > > > >> >
> > > > >> >
> > > > >> > --
> > > > >> > Daan
> > > > >> >
> > > > >>
> > > > >>
> > > > >>
> > > > >> --
> > > > >> Rafael Weingärtner
> > > > >>
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > > Daan
> > > > >
> > > >
> > > >
> > > >
> > > > --
> > > > Daan
> > > >
> > >
> > >
> > >
> > > --
> > > Rafael Weingärtner
> > >
> >
> >
> >
> > --
> > Daan
> >
>
>
>
> --
> Rafael Weingärtner
>



-- 
Daan

Re: jetty simulator problem

Posted by Rafael Weingärtner <ra...@gmail.com>.
That depends-on configuration is not needed when attributes are annotated
with @inject or @Autowired, spring builds automatically de dependency
hierarchy. Even though the removal of them did not seem to be necessary,
their use is also not necessary. The issue seems to be related to
application contexts building order. I am not sure how spring behaves when
it encounters the “depend-on” configuration and the bean have not yet been
created and this bean is in another XML file that has not yet been
processed. When we moved to fat jar approach, was any version of the
dependencies changed?

On Tue, Nov 14, 2017 at 7:31 AM, Daan Hoogland <da...@gmail.com>
wrote:

> it actually already works with only the depends-on attributes in the xml
> removed but it all makes sense.
>
> On Tue, Nov 14, 2017 at 1:59 AM, Rafael Weingärtner <
> rafaelweingartner@gmail.com> wrote:
>
> > 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 <da...@gmail.com>
> > wrote:
> >
> > > trying with only the depends-on lines removed now
> > >
> > > On Mon, Nov 13, 2017 at 8:30 PM, Daan Hoogland <
> daan.hoogland@gmail.com>
> > > wrote:
> > >
> > > > from maven:
> > > > mvn -pl client jetty:run -Dsimulator
> > > >
> > > > On Mon, Nov 13, 2017 at 8:16 PM, Rafael Weingärtner <
> > > > 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 <
> > daan.hoogland@gmail.com
> > > >
> > > >> 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ärtner <
> > > >> > 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
> > 'snapshotDataFactoryImpl'
> > > >> 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.<init>
> > > >> > > > (CloudStackSpringContext.java:58)
> > > >> > > >     at
> > > >> > > > org.apache.cloudstack.spring.module.factory.
> > > >> > > CloudStackSpringContext.<init>
> > > >> > > > (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ärtner
> > > >> > >
> > > >> >
> > > >> >
> > > >> >
> > > >> > --
> > > >> > Daan
> > > >> >
> > > >>
> > > >>
> > > >>
> > > >> --
> > > >> Rafael Weingärtner
> > > >>
> > > >
> > > >
> > > >
> > > > --
> > > > Daan
> > > >
> > >
> > >
> > >
> > > --
> > > Daan
> > >
> >
> >
> >
> > --
> > Rafael Weingärtner
> >
>
>
>
> --
> Daan
>



-- 
Rafael Weingärtner

Re: jetty simulator problem

Posted by Daan Hoogland <da...@gmail.com>.
it actually already works with only the depends-on attributes in the xml
removed but it all makes sense.

On Tue, Nov 14, 2017 at 1:59 AM, Rafael Weingärtner <
rafaelweingartner@gmail.com> wrote:

> 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 <da...@gmail.com>
> wrote:
>
> > trying with only the depends-on lines removed now
> >
> > On Mon, Nov 13, 2017 at 8:30 PM, Daan Hoogland <da...@gmail.com>
> > wrote:
> >
> > > from maven:
> > > mvn -pl client jetty:run -Dsimulator
> > >
> > > On Mon, Nov 13, 2017 at 8:16 PM, Rafael Weingärtner <
> > > 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 <
> daan.hoogland@gmail.com
> > >
> > >> 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ärtner <
> > >> > 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
> 'snapshotDataFactoryImpl'
> > >> 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.<init>
> > >> > > > (CloudStackSpringContext.java:58)
> > >> > > >     at
> > >> > > > org.apache.cloudstack.spring.module.factory.
> > >> > > CloudStackSpringContext.<init>
> > >> > > > (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ärtner
> > >> > >
> > >> >
> > >> >
> > >> >
> > >> > --
> > >> > Daan
> > >> >
> > >>
> > >>
> > >>
> > >> --
> > >> Rafael Weingärtner
> > >>
> > >
> > >
> > >
> > > --
> > > Daan
> > >
> >
> >
> >
> > --
> > Daan
> >
>
>
>
> --
> Rafael Weingärtner
>



-- 
Daan

Re: jetty simulator problem

Posted by Rafael Weingärtner <ra...@gmail.com>.
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 <da...@gmail.com>
wrote:

> trying with only the depends-on lines removed now
>
> On Mon, Nov 13, 2017 at 8:30 PM, Daan Hoogland <da...@gmail.com>
> wrote:
>
> > from maven:
> > mvn -pl client jetty:run -Dsimulator
> >
> > On Mon, Nov 13, 2017 at 8:16 PM, Rafael Weingärtner <
> > 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 <daan.hoogland@gmail.com
> >
> >> 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ärtner <
> >> > 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 'snapshotDataFactoryImpl'
> >> 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.<init>
> >> > > > (CloudStackSpringContext.java:58)
> >> > > >     at
> >> > > > org.apache.cloudstack.spring.module.factory.
> >> > > CloudStackSpringContext.<init>
> >> > > > (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ärtner
> >> > >
> >> >
> >> >
> >> >
> >> > --
> >> > Daan
> >> >
> >>
> >>
> >>
> >> --
> >> Rafael Weingärtner
> >>
> >
> >
> >
> > --
> > Daan
> >
>
>
>
> --
> Daan
>



-- 
Rafael Weingärtner

Re: jetty simulator problem

Posted by Daan Hoogland <da...@gmail.com>.
trying with only the depends-on lines removed now

On Mon, Nov 13, 2017 at 8:30 PM, Daan Hoogland <da...@gmail.com>
wrote:

> from maven:
> mvn -pl client jetty:run -Dsimulator
>
> On Mon, Nov 13, 2017 at 8:16 PM, Rafael Weingärtner <
> 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 <da...@gmail.com>
>> 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ärtner <
>> > 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 'snapshotDataFactoryImpl'
>> 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.<init>
>> > > > (CloudStackSpringContext.java:58)
>> > > >     at
>> > > > org.apache.cloudstack.spring.module.factory.
>> > > CloudStackSpringContext.<init>
>> > > > (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ärtner
>> > >
>> >
>> >
>> >
>> > --
>> > Daan
>> >
>>
>>
>>
>> --
>> Rafael Weingärtner
>>
>
>
>
> --
> Daan
>



-- 
Daan

Re: jetty simulator problem

Posted by Daan Hoogland <da...@gmail.com>.
from maven:
mvn -pl client jetty:run -Dsimulator

On Mon, Nov 13, 2017 at 8:16 PM, Rafael Weingärtner <
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 <da...@gmail.com>
> 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ärtner <
> > 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 'snapshotDataFactoryImpl'
> and
> > > > 'volumeDataFactoryImpl'
> > > >     at
> > > > org.springframework.beans.factory.support.
> > AbstractBeanFactory.doGetBean
> > > > (AbstractBeanFactory.java:300)
> > > >     at
> > > > org.springframework.beans.factory.support.
> AbstractBeanFactory.getBean
> > > > (AbstractBeanFactory.java:200)
> > > >     at
> > > > org.springframework.beans.factory.support.
> > AbstractBeanFactory.doGetBean
> > > > (AbstractBeanFactory.java:304)
> > > >     at
> > > > org.springframework.beans.factory.support.
> AbstractBeanFactory.getBean
> > > > (AbstractBeanFactory.java:200)
> > > >     at
> > > > org.springframework.beans.factory.support.
> DefaultListableBeanFactory.
> > > > preInstantiateSingletons
> > > > (DefaultListableBeanFactory.java:756)
> > > >     at
> > > > org.springframework.context.support.AbstractApplicationContext.
> > > > finishBeanFactoryInitialization
> > > > (AbstractApplicationContext.java:868)
> > > >     at
> > > > org.springframework.context.support.AbstractApplicationContext.
> 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.
> ModuleBasedContextFactory.
> > > > loadModules
> > > > (ModuleBasedContextFactory.java:37)
> > > >     at
> > > > org.apache.cloudstack.spring.module.factory.
> > CloudStackSpringContext.init
> > > > (CloudStackSpringContext.java:71)
> > > >     at
> > > > org.apache.cloudstack.spring.module.factory.
> > > CloudStackSpringContext.<init>
> > > > (CloudStackSpringContext.java:58)
> > > >     at
> > > > org.apache.cloudstack.spring.module.factory.
> > > CloudStackSpringContext.<init>
> > > > (CloudStackSpringContext.java:62)
> > > >     at
> > > > org.apache.cloudstack.spring.module.web.
> CloudStackContextLoaderListene
> > > > r.contextInitialized
> > > > (CloudStackContextLoaderListener.java:52)
> > > >     at
> > > > org.eclipse.jetty.server.handler.ContextHandler.
> callContextInitialized
> > > > (ContextHandler.java:800)
> > > >     at
> > > > org.eclipse.jetty.servlet.ServletContextHandler.
> callContextInitialized
> > > > (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.startWebapp
> > > > (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.executeMojo
> > > > (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ärtner
> > >
> >
> >
> >
> > --
> > Daan
> >
>
>
>
> --
> Rafael Weingärtner
>



-- 
Daan

Re: jetty simulator problem

Posted by Rafael Weingärtner <ra...@gmail.com>.
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 <da...@gmail.com>
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ärtner <
> 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 <da...@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 'snapshotDataFactoryImpl' and
> > > 'volumeDataFactoryImpl'
> > >     at
> > > org.springframework.beans.factory.support.
> AbstractBeanFactory.doGetBean
> > > (AbstractBeanFactory.java:300)
> > >     at
> > > org.springframework.beans.factory.support.AbstractBeanFactory.getBean
> > > (AbstractBeanFactory.java:200)
> > >     at
> > > org.springframework.beans.factory.support.
> AbstractBeanFactory.doGetBean
> > > (AbstractBeanFactory.java:304)
> > >     at
> > > org.springframework.beans.factory.support.AbstractBeanFactory.getBean
> > > (AbstractBeanFactory.java:200)
> > >     at
> > > org.springframework.beans.factory.support.DefaultListableBeanFactory.
> > > preInstantiateSingletons
> > > (DefaultListableBeanFactory.java:756)
> > >     at
> > > org.springframework.context.support.AbstractApplicationContext.
> > > finishBeanFactoryInitialization
> > > (AbstractApplicationContext.java:868)
> > >     at
> > > org.springframework.context.support.AbstractApplicationContext.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.ModuleBasedContextFactory.
> > > loadModules
> > > (ModuleBasedContextFactory.java:37)
> > >     at
> > > org.apache.cloudstack.spring.module.factory.
> CloudStackSpringContext.init
> > > (CloudStackSpringContext.java:71)
> > >     at
> > > org.apache.cloudstack.spring.module.factory.
> > CloudStackSpringContext.<init>
> > > (CloudStackSpringContext.java:58)
> > >     at
> > > org.apache.cloudstack.spring.module.factory.
> > CloudStackSpringContext.<init>
> > > (CloudStackSpringContext.java:62)
> > >     at
> > > org.apache.cloudstack.spring.module.web.CloudStackContextLoaderListene
> > > r.contextInitialized
> > > (CloudStackContextLoaderListener.java:52)
> > >     at
> > > org.eclipse.jetty.server.handler.ContextHandler.callContextInitialized
> > > (ContextHandler.java:800)
> > >     at
> > > org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized
> > > (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.startWebapp
> > > (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.executeMojo
> > > (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ärtner
> >
>
>
>
> --
> Daan
>



-- 
Rafael Weingärtner

Re: jetty simulator problem

Posted by Daan Hoogland <da...@gmail.com>.
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ärtner <
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 <da...@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 'snapshotDataFactoryImpl' and
> > 'volumeDataFactoryImpl'
> >     at
> > org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean
> > (AbstractBeanFactory.java:300)
> >     at
> > org.springframework.beans.factory.support.AbstractBeanFactory.getBean
> > (AbstractBeanFactory.java:200)
> >     at
> > org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean
> > (AbstractBeanFactory.java:304)
> >     at
> > org.springframework.beans.factory.support.AbstractBeanFactory.getBean
> > (AbstractBeanFactory.java:200)
> >     at
> > org.springframework.beans.factory.support.DefaultListableBeanFactory.
> > preInstantiateSingletons
> > (DefaultListableBeanFactory.java:756)
> >     at
> > org.springframework.context.support.AbstractApplicationContext.
> > finishBeanFactoryInitialization
> > (AbstractApplicationContext.java:868)
> >     at
> > org.springframework.context.support.AbstractApplicationContext.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.ModuleBasedContextFactory.
> > loadModules
> > (ModuleBasedContextFactory.java:37)
> >     at
> > org.apache.cloudstack.spring.module.factory.CloudStackSpringContext.init
> > (CloudStackSpringContext.java:71)
> >     at
> > org.apache.cloudstack.spring.module.factory.
> CloudStackSpringContext.<init>
> > (CloudStackSpringContext.java:58)
> >     at
> > org.apache.cloudstack.spring.module.factory.
> CloudStackSpringContext.<init>
> > (CloudStackSpringContext.java:62)
> >     at
> > org.apache.cloudstack.spring.module.web.CloudStackContextLoaderListene
> > r.contextInitialized
> > (CloudStackContextLoaderListener.java:52)
> >     at
> > org.eclipse.jetty.server.handler.ContextHandler.callContextInitialized
> > (ContextHandler.java:800)
> >     at
> > org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized
> > (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.startWebapp
> > (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.executeMojo
> > (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ärtner
>



-- 
Daan

Re: jetty simulator problem

Posted by Rafael Weingärtner <ra...@gmail.com>.
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 <da...@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 'snapshotDataFactoryImpl' and
> 'volumeDataFactoryImpl'
>     at
> org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean
> (AbstractBeanFactory.java:300)
>     at
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean
> (AbstractBeanFactory.java:200)
>     at
> org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean
> (AbstractBeanFactory.java:304)
>     at
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean
> (AbstractBeanFactory.java:200)
>     at
> org.springframework.beans.factory.support.DefaultListableBeanFactory.
> preInstantiateSingletons
> (DefaultListableBeanFactory.java:756)
>     at
> org.springframework.context.support.AbstractApplicationContext.
> finishBeanFactoryInitialization
> (AbstractApplicationContext.java:868)
>     at
> org.springframework.context.support.AbstractApplicationContext.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.ModuleBasedContextFactory.
> loadModules
> (ModuleBasedContextFactory.java:37)
>     at
> org.apache.cloudstack.spring.module.factory.CloudStackSpringContext.init
> (CloudStackSpringContext.java:71)
>     at
> org.apache.cloudstack.spring.module.factory.CloudStackSpringContext.<init>
> (CloudStackSpringContext.java:58)
>     at
> org.apache.cloudstack.spring.module.factory.CloudStackSpringContext.<init>
> (CloudStackSpringContext.java:62)
>     at
> org.apache.cloudstack.spring.module.web.CloudStackContextLoaderListene
> r.contextInitialized
> (CloudStackContextLoaderListener.java:52)
>     at
> org.eclipse.jetty.server.handler.ContextHandler.callContextInitialized
> (ContextHandler.java:800)
>     at
> org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized
> (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.startWebapp
> (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.executeMojo
> (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ärtner