You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@tuscany.apache.org by Yeu-Wen Mak <ye...@gmail.com> on 2010/06/29 09:36:20 UTC

Error encountered while building the Travel Sample v1.0

My build fail at the point of trying to copy the following jar to a target
local folder.
http://people.apache.org/repo/m2-ibiblio-rsync-repository/org/apache/tuscany/sca/tuscany-implementation-web-runtime/1.6/tuscany-implementation-web-runtime-1.6.jar

The detail error messages are as follows ...
---
<previous echo messages are deleted>
#copy-impl-web-nonsnapshot:
     [copy] Copying 2 resources to C:\tools\tuscany-sca-1.6\modules

BUILD FAILED
C:\Projects\tuscany-scatours-1.0\travelsample\build.xml:23: The following
error
occurred while executing this line:
C:\Projects\tuscany-scatours-1.0\travelsample\build.xml:42: The following
error
occurred while executing this line:
C:\Projects\tuscany-scatours-1.0\travelsample\contributions\build.xml:23:
The fo
llowing error occurred while executing this line:
C:\Projects\tuscany-scatours-1.0\travelsample\contributions\build.xml:51:
The fo
llowing error occurred while executing this line:
C:\Projects\tuscany-scatours-1.0\travelsample\antdefs.xml:770: The following
err
or occurred while executing this line:
C:\Projects\tuscany-scatours-1.0\travelsample\antdefs.xml:786: The following
err
or occurred while executing this line:
C:\Projects\tuscany-scatours-1.0\travelsample\antdefs.xml:615: The following
err
or occurred while executing this line:
C:\Projects\tuscany-scatours-1.0\travelsample\contributions\creditcard-payment-w
ebapp\build.xml:32: The following error occurred while executing this line:
C:\Projects\tuscany-scatours-1.0\travelsample\antdefs.xml:576: The following
err
or occurred while executing this line:
C:\Projects\tuscany-scatours-1.0\travelsample\antdefs.xml:565: Failed to
copy ht
tp://
people.apache.org/repo/m2-ibiblio-rsync-repository/org/apache/tuscany/sca/t
uscany-implementation-web-runtime/1.6/tuscany-implementation-web-runtime-1.6.jar
 to
C:\tools\tuscany-sca-1.6\modules\tuscany-implementation-web-runtime-1.6.jar
due to java.io.FileNotFoundException
http://people.apache.org/repo/m2-ibiblio-rs
ync-repository/org/apache/tuscany/sca/tuscany-implementation-web-runtime/1.6/tus
cany-implementation-web-runtime-1.6.jar

Total time: 49 seconds
C:\Projects\tuscany-scatours-1.0\travelsample>
---

Is it a problem in my local environment or something else?

Thanks.
---
YeuWen

Re: Error encountered while building the Travel Sample v1.0

Posted by Simon Nash <na...@apache.org>.
The problem has been resolved by restoring the previously deleted files
in m2-ibiblio-rsync-repository that are referenced by the travel sample.
This means that the travel sample should now build "out of the box"
without needing to use the workaround described below.

   Simon

Simon Nash wrote:
> Hi YeuWen,
> The travel sample build is trying to copy two artifacts from the public
> repository containing the Tuscany SCA Java 1.6 released maven artifacts.
> These artifacts (the jars for tuscany-implementation-web and
> tuscany-implementation-web-runtime) need to be copied because they were
> accidentally omitted from the Tuscany SCA Java 1.6 binary distribution.
> 
> The copy is failing because the directory
>  http://people.apache.org/repo/m2-ibiblio-rsync-repository/org/apache/tuscany 
> 
> is currently empty.  This directory is (was?) the place where the Tuscany
> project puts its released maven artifacts.  I don't know when the 1.6 
> release
> was deleted from this repository, and I don't know whether this deletion 
> was
> deliberate or accidental.
> 
> As a temporary workaround until the repository problem is resolved, you can
> copy the artifacts manually from
>  http://repository.apache.org/content/groups/public/org/apache/tuscany/sca/tuscany-implementation-web/1.6/tuscany-implementation-web-1.6.jar 
> 
>  http://repository.apache.org/content/groups/public/org/apache/tuscany/sca/tuscany-implementation-web-runtime/1.6/tuscany-implementation-web-runtime-1.6.jar 
> 
> into your local downloaded copy of the Tuscany SCA Java 1.6 distribution.
> These jars need to go in the <TUSCANY_HOME>/modules directory.
> 
> I'll start a separate thread on the dev list to discuss what to do about
> the deletion of Tuscany releases from m2-ibiblio-rsync-repository.
> 
>   Simon
> 
> Yeu-Wen Mak wrote:
>> My build fail at the point of trying to copy the following jar to a 
>> target local folder.
>> http://people.apache.org/repo/m2-ibiblio-rsync-repository/org/apache/tuscany/sca/tuscany-implementation-web-runtime/1.6/tuscany-implementation-web-runtime-1.6.jar 
>>
>>
>> The detail error messages are as follows ...
>> ---
>> <previous echo messages are deleted>
>> #copy-impl-web-nonsnapshot:
>>      [copy] Copying 2 resources to C:\tools\tuscany-sca-1.6\modules
>>
>> BUILD FAILED
>> C:\Projects\tuscany-scatours-1.0\travelsample\build.xml:23: The 
>> following error
>> occurred while executing this line:
>> C:\Projects\tuscany-scatours-1.0\travelsample\build.xml:42: The 
>> following error
>> occurred while executing this line:
>> C:\Projects\tuscany-scatours-1.0\travelsample\contributions\build.xml:23: 
>> The fo
>> llowing error occurred while executing this line:
>> C:\Projects\tuscany-scatours-1.0\travelsample\contributions\build.xml:51: 
>> The fo
>> llowing error occurred while executing this line:
>> C:\Projects\tuscany-scatours-1.0\travelsample\antdefs.xml:770: The 
>> following err
>> or occurred while executing this line:
>> C:\Projects\tuscany-scatours-1.0\travelsample\antdefs.xml:786: The 
>> following err
>> or occurred while executing this line:
>> C:\Projects\tuscany-scatours-1.0\travelsample\antdefs.xml:615: The 
>> following err
>> or occurred while executing this line:
>> C:\Projects\tuscany-scatours-1.0\travelsample\contributions\creditcard-payment-w 
>>
>> ebapp\build.xml:32: The following error occurred while executing this 
>> line:
>> C:\Projects\tuscany-scatours-1.0\travelsample\antdefs.xml:576: The 
>> following err
>> or occurred while executing this line:
>> C:\Projects\tuscany-scatours-1.0\travelsample\antdefs.xml:565: Failed 
>> to copy ht
>> tp://people.apache.org/repo/m2-ibiblio-rsync-repository/org/apache/tuscany/sca/t 
>> <http://people.apache.org/repo/m2-ibiblio-rsync-repository/org/apache/tuscany/sca/t> 
>>
>> uscany-implementation-web-runtime/1.6/tuscany-implementation-web-runtime-1.6.jar 
>>
>>  to 
>> C:\tools\tuscany-sca-1.6\modules\tuscany-implementation-web-runtime-1.6.jar 
>>
>> due to java.io.FileNotFoundException 
>> http://people.apache.org/repo/m2-ibiblio-rs
>> ync-repository/org/apache/tuscany/sca/tuscany-implementation-web-runtime/1.6/tus 
>>
>> cany-implementation-web-runtime-1.6.jar
>>
>> Total time: 49 seconds
>> C:\Projects\tuscany-scatours-1.0\travelsample>
>> ---
>>
>> Is it a problem in my local environment or something else?
>>
>> Thanks.
>> ---
>> YeuWen
>>
> 
> 
> 


Information about SCA composites in OSGi framework

Posted by Alexander Blotny <Al...@fokus.fraunhofer.de>.
Hi,

I am experimenting a little bit with the dosgi samples.
I am registering a new service in the start method of the Activator.
The Activator looks that way:

Dictionary<String, Object> props = new Hashtable<String, Object>();

props.put("sca.service", "HelloworldComponent#service-name(Helloworld)");

props.put("Helloworld", "Helloworld");
context.registerService(Hello.class.getName(), hello, props);

Tuscany searches in OSGI-INF/sca for the composite file of the bundle and
starts the node.

My question is if there is a possibility for getting status information of
the started sca composite. For example the bindings used for exporting the
service and so on. I have no idea how to get this from inside the OSGi
platform. Maybe there is a registered Service that is useful for this use
case?

Thanks,
Alex


Re: Error encountered while building the Travel Sample v1.0

Posted by Simon Nash <na...@apache.org>.
Hi YeuWen,
The travel sample build is trying to copy two artifacts from the public
repository containing the Tuscany SCA Java 1.6 released maven artifacts.
These artifacts (the jars for tuscany-implementation-web and
tuscany-implementation-web-runtime) need to be copied because they were
accidentally omitted from the Tuscany SCA Java 1.6 binary distribution.

The copy is failing because the directory
  http://people.apache.org/repo/m2-ibiblio-rsync-repository/org/apache/tuscany
is currently empty.  This directory is (was?) the place where the Tuscany
project puts its released maven artifacts.  I don't know when the 1.6 release
was deleted from this repository, and I don't know whether this deletion was
deliberate or accidental.

As a temporary workaround until the repository problem is resolved, you can
copy the artifacts manually from
  http://repository.apache.org/content/groups/public/org/apache/tuscany/sca/tuscany-implementation-web/1.6/tuscany-implementation-web-1.6.jar
  http://repository.apache.org/content/groups/public/org/apache/tuscany/sca/tuscany-implementation-web-runtime/1.6/tuscany-implementation-web-runtime-1.6.jar
into your local downloaded copy of the Tuscany SCA Java 1.6 distribution.
These jars need to go in the <TUSCANY_HOME>/modules directory.

I'll start a separate thread on the dev list to discuss what to do about
the deletion of Tuscany releases from m2-ibiblio-rsync-repository.

   Simon

Yeu-Wen Mak wrote:
> My build fail at the point of trying to copy the following jar to a 
> target local folder.
> http://people.apache.org/repo/m2-ibiblio-rsync-repository/org/apache/tuscany/sca/tuscany-implementation-web-runtime/1.6/tuscany-implementation-web-runtime-1.6.jar
> 
> The detail error messages are as follows ...
> ---
> <previous echo messages are deleted>
> #copy-impl-web-nonsnapshot:
>      [copy] Copying 2 resources to C:\tools\tuscany-sca-1.6\modules
> 
> BUILD FAILED
> C:\Projects\tuscany-scatours-1.0\travelsample\build.xml:23: The 
> following error
> occurred while executing this line:
> C:\Projects\tuscany-scatours-1.0\travelsample\build.xml:42: The 
> following error
> occurred while executing this line:
> C:\Projects\tuscany-scatours-1.0\travelsample\contributions\build.xml:23: 
> The fo
> llowing error occurred while executing this line:
> C:\Projects\tuscany-scatours-1.0\travelsample\contributions\build.xml:51: 
> The fo
> llowing error occurred while executing this line:
> C:\Projects\tuscany-scatours-1.0\travelsample\antdefs.xml:770: The 
> following err
> or occurred while executing this line:
> C:\Projects\tuscany-scatours-1.0\travelsample\antdefs.xml:786: The 
> following err
> or occurred while executing this line:
> C:\Projects\tuscany-scatours-1.0\travelsample\antdefs.xml:615: The 
> following err
> or occurred while executing this line:
> C:\Projects\tuscany-scatours-1.0\travelsample\contributions\creditcard-payment-w
> ebapp\build.xml:32: The following error occurred while executing this line:
> C:\Projects\tuscany-scatours-1.0\travelsample\antdefs.xml:576: The 
> following err
> or occurred while executing this line:
> C:\Projects\tuscany-scatours-1.0\travelsample\antdefs.xml:565: Failed to 
> copy ht
> tp://people.apache.org/repo/m2-ibiblio-rsync-repository/org/apache/tuscany/sca/t 
> <http://people.apache.org/repo/m2-ibiblio-rsync-repository/org/apache/tuscany/sca/t>
> uscany-implementation-web-runtime/1.6/tuscany-implementation-web-runtime-1.6.jar
>  to 
> C:\tools\tuscany-sca-1.6\modules\tuscany-implementation-web-runtime-1.6.jar
> due to 
> java.io.FileNotFoundException http://people.apache.org/repo/m2-ibiblio-rs
> ync-repository/org/apache/tuscany/sca/tuscany-implementation-web-runtime/1.6/tus
> cany-implementation-web-runtime-1.6.jar
> 
> Total time: 49 seconds
> C:\Projects\tuscany-scatours-1.0\travelsample>
> ---
> 
> Is it a problem in my local environment or something else?
> 
> Thanks.
> ---
> YeuWen
>