Return-Path: X-Original-To: apmail-tuscany-user-archive@www.apache.org Delivered-To: apmail-tuscany-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 14B9E9A5F for ; Fri, 22 Jun 2012 19:28:42 +0000 (UTC) Received: (qmail 56818 invoked by uid 500); 22 Jun 2012 19:28:41 -0000 Delivered-To: apmail-tuscany-user-archive@tuscany.apache.org Received: (qmail 56789 invoked by uid 500); 22 Jun 2012 19:28:41 -0000 Mailing-List: contact user-help@tuscany.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@tuscany.apache.org Delivered-To: mailing list user@tuscany.apache.org Received: (qmail 56782 invoked by uid 99); 22 Jun 2012 19:28:41 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Jun 2012 19:28:41 +0000 X-ASF-Spam-Status: No, hits=-0.5 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,FSL_RCVD_USER,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of luckbr1975@gmail.com designates 209.85.212.53 as permitted sender) Received: from [209.85.212.53] (HELO mail-vb0-f53.google.com) (209.85.212.53) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Jun 2012 19:28:36 +0000 Received: by vbbfc26 with SMTP id fc26so1249731vbb.26 for ; Fri, 22 Jun 2012 12:28:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=DbXDg5gCTUo0B9aRj+dZ5uvLhBtEhL22WSLnmE3oI8w=; b=OMpYqU2da01alzEU8gg9VkQXdJAEER7DD9P9NLcK0P5DWwnh2Y8pPETb4r9YyjGIkw NxKdC4GI44YUle3a4weS11DoCZ5KS2b+SkwbNbXBPpUiOcIQgJ6WSOMYoypaySVONWtx KWLG02Vlvfo3QRswFw3Wj6EZ5uu2xs/MR+7e7JgwocOBxIljDWXtDeuyNetBq3LRVgan Zm9r3QsW9y1pfQC4m/ip3G0D+q2t04Y2/1y84VMqEq11IVIXgIOeDYAOqEH0QCFFee/b fYfbNO4r/56HBzb0g0OlEueWvNN3bGWMg7PFYOzS4GGUeUYDC9WzUauw2BnxsdpCFx63 3bhQ== MIME-Version: 1.0 Received: by 10.52.17.207 with SMTP id q15mr1377681vdd.49.1340393295518; Fri, 22 Jun 2012 12:28:15 -0700 (PDT) Received: by 10.52.37.201 with HTTP; Fri, 22 Jun 2012 12:28:15 -0700 (PDT) In-Reply-To: <1340357115.53186.YahooMailNeo@web29903.mail.ird.yahoo.com> References: <1340314299.32075.YahooMailNeo@web29902.mail.ird.yahoo.com> <2A5B7D89-662D-4681-A661-2220EE97AED2@gmail.com> <1340357115.53186.YahooMailNeo@web29903.mail.ird.yahoo.com> Date: Fri, 22 Jun 2012 12:28:15 -0700 Message-ID: Subject: Re: Java & Python in distributed nodes From: Luciano Resende To: user@tuscany.apache.org, Joni Lee Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org On Fri, Jun 22, 2012 at 2:25 AM, Joni Lee wrote: > Hi Raymond, > > We are developing a cloud architecture here and first take a look at the > distributed nodes of Tuscany. > > I use maven to run it, and it does not work, even with dependency > tuscany-core > what I did is simply extend your existing sample > (samples/calculator-distributed) with a python component, instead of a ja= va > component in one node. > > Do I miss something important? Because=C2=A0I can build and run the origi= nal > sample project without problems. > thank you for your answers. > > ________________________________ > From: Raymond Feng > To: user@tuscany.apache.org; Joni Lee > Sent: Thursday, June 21, 2012 11:40 PM > Subject: Re: Java & Python in distributed nodes > > It seems that you are missing some dependencies such as tuscany-core on t= he > classpath. > > Thanks, > Raymond > On Jun 21, 2012, at 2:31 PM, Joni Lee wrote: > > Hi all, > > I'm very fascinated with the distributed components of SCA, whereby > different components running on different machines. For the first try, i > want to call python component from a Java component. Both on different no= des > and start them on local machine. > For this I extend the project samples/calculator-distributed by adding a > python component to a node B as follows > > =C2=A0 =C2=A0 // Add a Python component in > src/main/resources/nodeB/Calculator.composite > > =C2=A0 =C2=A0 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 script=3D"calculator/HelloServiceImpl.py"/> > =C2=A0 =C2=A0 =C2=A0 =C2=A0 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 > =C2=A0 =C2=A0 > > the script HelloServiceImpl.py is put in the same directory of the compos= ite > of node B (src/main/resources/nodeB) > the Java interface is put in src/main/java/calculator/HelloService.java > > But I cannot start the node > > 21-Jun-2012 17:16:42 > org.apache.tuscany.sca.implementation.node.builder.impl.NodeCompositeBuil= derImpl > WARNING: Service not found for component service: Component =3D > HelloServiceComponent Service =3D HelloService > 21-Jun-2012 17:16:42 > org.apache.tuscany.sca.assembly.xml.CompositeDocumentProcessor > SEVERE: HTTP Server Error : java.lang.ClassCastException: > org.apache.tuscany.sca.assembly.impl.ComponentImpl cannot be cast to > org.apache.tuscany.sca.runtime.RuntimeComponent > 21-Jun-2012 17:16:42 > org.apache.tuscany.sca.assembly.xml.CompositeDocumentProcessor > > Any suggestions? Do I miss something important? > > Thank you very much > > > > BTW, Are you using 1.x or 2.x ? --=20 Luciano Resende http://people.apache.org/~lresende http://twitter.com/lresende1975 http://lresende.blogspot.com/