Hi Simon,
> Ah - That's a good piece of detective work. The new workspace
> support uses some new modules, e.g, node2-* that are
> intended in due course to replace some of the existing
> modules and this may be causing problems with the whole lib
> dir in the classpath. Are you able to manually pull out the
> correct dependencies and try that.
>
> I should point out that there is also some code in the
> launcher we are using that calculates the classpath at
> runtime. See the runtimeClassLoader method in [1]. This uses
> the location of the launcher jar to identify the directory of
> other jars that need loading. So if you look in the ant
> script use to run this from the binary distribution
> (build.xml) you will see that the classpath is very short.
> This is because the code takes this classpath and
> automatically appends all of the runtime jars. The important
> thing is that the stated node2 jars come first. While this
> runtime classpath creation won't work from eclipse (because
> the modules & lib dirs are not in the right
> place) you may be able to play the trick of putting the node2
> jars first on your classpath.
>
I just toyed with my classpath settings. At one point, the only jars
included in my classpath were the ones from the build.xml:
- tuscany-node2-api-1.2-incubating-SNAPSHOT.jar
- tuscany-node2-launcher-1.2-incubating-SNAPSHOT.jar
- tuscany-sca-api-1.2-incubating-SNAPSHOT.jar
No 3rd party jars and no Tuscany lib.
On console is the following output
11.04.2008 12:06:28
org.apache.tuscany.sca.node.launcher.NodeLauncherUtil collectJARFiles
INFO: Runtime classpath: 93 JARs from
C:\develop\tuscany\tuscany-sca-1.2-incubating-SNAPSHOT\modules
11.04.2008 12:06:28
org.apache.tuscany.sca.node.launcher.NodeLauncherUtil collectJARFiles
INFO: Runtime classpath: 148 JARs from
C:\develop\tuscany\tuscany-sca-1.2-incubating-SNAPSHOT\lib
So the classpath calculation during runtime seems to work (how does it
get the correct path? Based on the jars from the static classpath?).
However, the sample still does not work and I don't get any error
messages either.
Bye,
Daniel
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]