Return-Path: X-Original-To: apmail-cloudstack-dev-archive@www.apache.org Delivered-To: apmail-cloudstack-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1495CFA58 for ; Fri, 29 Mar 2013 10:32:27 +0000 (UTC) Received: (qmail 10578 invoked by uid 500); 29 Mar 2013 10:32:26 -0000 Delivered-To: apmail-cloudstack-dev-archive@cloudstack.apache.org Received: (qmail 10515 invoked by uid 500); 29 Mar 2013 10:32:26 -0000 Mailing-List: contact dev-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cloudstack.apache.org Delivered-To: mailing list dev@cloudstack.apache.org Received: (qmail 10496 invoked by uid 500); 29 Mar 2013 10:32:25 -0000 Delivered-To: apmail-incubator-cloudstack-dev@incubator.apache.org Received: (qmail 10487 invoked by uid 99); 29 Mar 2013 10:32:25 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 Mar 2013 10:32:25 +0000 X-ASF-Spam-Status: No, hits=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of Murali.Reddy@citrix.com designates 203.166.19.134 as permitted sender) Received: from [203.166.19.134] (HELO SMTP.CITRIX.COM.AU) (203.166.19.134) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 Mar 2013 10:32:19 +0000 X-IronPort-AV: E=Sophos;i="4.87,373,1363132800"; d="scan'208";a="1717548" Received: from sinpex01cl02.citrite.net ([10.151.46.33]) by SYDPIPO01.CITRIX.COM.AU with ESMTP/TLS/AES128-SHA; 29 Mar 2013 10:31:57 +0000 Received: from SINPEX01CL01.citrite.net ([169.254.1.187]) by SINPEX01CL02.citrite.net ([169.254.2.203]) with mapi id 14.02.0342.003; Fri, 29 Mar 2013 18:31:55 +0800 From: Murali Reddy To: "dev@cloudstack.apache.org" , Chip Childers , Kelven Yang CC: "cloudstack-dev@incubator.apache.org" Subject: Re: Jetty Failing on latest master due to class UCS manager not Found Thread-Topic: Jetty Failing on latest master due to class UCS manager not Found Thread-Index: Ac4rINIt08fz2UCVSJKW6M40SFg7HAADjA1Q//+JuACAABh0gIAALRiAgABntQD//8yqEIAAP1GAgACqDYCAAVxTgA== Date: Fri, 29 Mar 2013 10:31:54 +0000 Message-ID: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Microsoft-MacOutlook/14.2.5.121010 x-originating-ip: [10.13.107.78] Content-Type: text/plain; charset="us-ascii" Content-ID: <4DCECD20B6634149BC4C9C1A63DA242F@citrix.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org On 29/03/13 12:45 AM, "Chiradeep Vittal" wrote: >For optional dependencies, JSR330 injection requires using setter >injection. >You should write > >@Inject void setGslbProvider(GslbProvider provider) { > this._gslbProvider =3D provider; >} Thanks Chiradeep for suggestion. But due to Spring default behaviour with @Inject, both setter and interface injection fails if there is no implementation.=20 For now, I am just initializing through the bean property configured in componentContext.xml and nonossComponentContext.xml. > > > >On 3/27/13 8:36 PM, "Murali Reddy" wrote: > >>On 28/03/13 9:00 AM, "Rajesh Battala" wrote: >> >>>Jetty is failing to start on latest master building oss. >>>Am on the latest master, building oss and starting jetty is failing with >>>below error.=20 >>> >>>Error creating bean with name 'globalLoadBalancingRulesServiceImpl': >>>Injection of autowired dependencies failed; nested exception is >>>org.springframewor >>> k.beans.factory.BeanCreationException: Could not autowire field: >>>protected org.apache.cloudstack.region. >>> gslb.GslbServiceProvider >>>org.apache.cloudstack.region.gslb.GlobalLoadBalancingRulesServiceImpl._g >>>s >>>l >>>bProv ider; >>>nested exception is >>>org.springframework.beans.factory.NoSuchBeanDefinitionException: No >>>matching b ean >>>of type [org.apache.cloudstack.region.gslb.GslbServiceProvider] found >>>for >>>dependency: expected at le >>> ast 1 bean which qualifies as autowire candidate for this >>>dependency. Dependency annotations: {@javax.in >>> ject.Inject()} >>> at=20 >>>org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPost >>>P >>>r >>>ocessor.postProcess >>> PropertyValues(AutowiredAnnotationBeanPostProcessor.java:287) >>> at org.springframe >> >>Please pull latest master, I pushed a fix. >> > >