You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by Luciano Resende <lu...@gmail.com> on 2007/01/09 03:33:42 UTC

Running SCA Standalone samples : Unable to locate profile directory

Hi All

   I'm trying a very simple task, and that is running Calculator Standalone
sample application following the instructions on the readme.html.
   I have found an issue that was preventing the maven plugin to find the
standalone distribution and have fixed that already as part of Tuscany-1035.
   Now that I have the dependency unpacked trough mvn dependency:unpack I
try to run the sample and get the following error:

X:\java\samples\sca\calculator>java -jar
target/distribution/bin/launcher.jar target/sample-
calculator-1.0-incubator-SNAPSHOT.jar
Exception in thread "main" java.io.FileNotFoundException: Unable to locate
profile directory:
X:\java\samples\sca\calculator\target\distribution\profiles\launcher
        at
org.apache.tuscany.runtime.standalone.DirectoryHelper.getProfileDirectory(
DirectoryHelper.java:124)
        at org.apache.tuscany.launcher.Main.createRuntimeInfo(Main.java:89)
        at org.apache.tuscany.launcher.Main.main(Main.java:56)

If I manually unpack the the
X:\java\sca\runtime\standalone\assembly\target\assembly-
1.0-incubator-SNAPSHOT-bin.zip into the target/distribution of the sample
app, then it start working...

Is this a distribution problem ? Or something wrong with the maven plugin
that unpack the dependencies ?

-- 
Luciano Resende
http://people.apache.org/~lresende