On Fri, Apr 11, 2008 at 11:28 AM, <[EMAIL PROTECTED]> wrote:

> 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]
>

Hi Daniel

It loads all of the jars from

1) the directory where the launcher class is found.
2) the ../modules directory
3) the ../libs directory

It then repeats the process looking for ../modules and ../lib dirs based on
the contents of  a TUSCANY_HOME environment variable

With the final list it creates a URLClassLoader with the current classloader
as the parent and enforces a parent first classloading strategy.

Thinking about this this generated classpath is not optimal as it will
contain jars that conflict with one another, e.g. host-tomcat and
host-jetty. Having said that this does work from the command line so I'm
struggling to see exactly what is causing it to fail in your Eclipse
project.  I'd like to take a two stage approach to this. Firstly just get it
working then secondly get it working in a way that you are comfortable with.


So is it possible  to  try generating the Eclipse project using the
-Peclipse approach just to convince ourselves that this sample is going to
work. I've appended at the bottom the contents of my .classpath file for the
calculator-distributed project in my Eclipse workspace if you want to see
how mine looks. We may then find that something else is causing problems
over and above classpath issues.

Assuming we get it working we can then look at how you can tailor the
configuration.

Regards

Simon

=====================

<classpath>
  <classpathentry kind="src" path="src/main/java"/>
  <classpathentry kind="src" path="src/main/resources"
excluding="**/*.java"/>
  <classpathentry kind="src" path="src/test/java"
output="target/test-classes"/>
  <classpathentry kind="output" path="target/classes"/>
  <classpathentry kind="con"
path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
  <classpathentry kind="var"
path="M2_REPO/org/apache/abdera/abdera-core/0.3.0-incubating/abdera-core-0.3.0-incubating.jar"/>
  <classpathentry kind="var"
path="M2_REPO/org/apache/abdera/abdera-i18n/0.3.0-incubating/abdera-i18n-0.3.0-incubating.jar"/>
  <classpathentry kind="var"
path="M2_REPO/org/apache/abdera/abdera-parser/0.3.0-incubating/abdera-parser-0.3.0-incubating.jar"/>
  <classpathentry kind="var"
path="M2_REPO/javax/activation/activation/1.1/activation-1.1.jar"/>
  <classpathentry kind="var"
path="M2_REPO/annogen/annogen/0.1.0/annogen-0.1.0.jar"/>
  <classpathentry kind="var"
path="M2_REPO/org/apache/tomcat/annotations-api/6.0.14/annotations-api-6.0.14.jar"/>
  <classpathentry kind="var"
path="M2_REPO/org/apache/ws/commons/axiom/axiom-api/1.2.5/axiom-api-1.2.5.jar"/>
  <classpathentry kind="var"
path="M2_REPO/org/apache/ws/commons/axiom/axiom-dom/1.2.5/axiom-dom-1.2.5.jar"/>
  <classpathentry kind="var"
path="M2_REPO/org/apache/ws/commons/axiom/axiom-impl/1.2.5/axiom-impl-1.2.5.jar"/>
  <classpathentry kind="var"
path="M2_REPO/org/apache/axis2/axis2-adb/1.3/axis2-adb-1.3.jar"/>
  <classpathentry kind="var"
path="M2_REPO/org/apache/axis2/axis2-adb-codegen/1.3/axis2-adb-codegen-1.3.jar"/>
  <classpathentry kind="var"
path="M2_REPO/org/apache/axis2/axis2-codegen/1.3/axis2-codegen-1.3.jar"/>
  <classpathentry kind="var"
path="M2_REPO/org/apache/axis2/axis2-java2wsdl/1.3/axis2-java2wsdl-1.3.jar"/>
  <classpathentry kind="var"
path="M2_REPO/org/apache/axis2/axis2-kernel/1.3/axis2-kernel-1.3.jar"/>
  <classpathentry kind="var"
path="M2_REPO/org/apache/axis2/axis2-mtompolicy/1.3/axis2-mtompolicy-1.3.jar"/>
  <classpathentry kind="var"
path="M2_REPO/backport-util-concurrent/backport-util-concurrent/2.2/backport-util-concurrent-2.2.jar"/>
  <classpathentry kind="var"
path="M2_REPO/bouncycastle/bcprov-jdk15/132/bcprov-jdk15-132.jar"/>
  <classpathentry kind="var"
path="M2_REPO/org/apache/tomcat/catalina/6.0.14/catalina-6.0.14.jar"/>
  <classpathentry kind="var"
path="M2_REPO/cglib/cglib-nodep/2.1_3/cglib-nodep-2.1_3.jar"/>
  <classpathentry kind="var"
path="M2_REPO/commons-codec/commons-codec/1.3/commons-codec-1.3.jar"/>
  <classpathentry kind="var"
path="M2_REPO/commons-collections/commons-collections/3.1/commons-collections-3.1.jar"/>
  <classpathentry kind="var"
path="M2_REPO/commons-discovery/commons-discovery/0.2/commons-discovery-0.2.jar"/>
  <classpathentry kind="var"
path="M2_REPO/commons-fileupload/commons-fileupload/1.2/commons-fileupload-1.2.jar"/>
  <classpathentry kind="var"
path="M2_REPO/commons-httpclient/commons-httpclient/3.0.1/commons-httpclient-3.0.1.jar"/>
  <classpathentry kind="var"
path="M2_REPO/commons-io/commons-io/1.2/commons-io-1.2.jar"/>
  <classpathentry kind="var"
path="M2_REPO/commons-logging/commons-logging/1.1/commons-logging-1.1.jar"/>
  <classpathentry kind="var"
path="M2_REPO/org/apache/tomcat/coyote/6.0.14/coyote-6.0.14.jar"/>
  <classpathentry kind="var"
path="M2_REPO/org/apache/geronimo/specs/geronimo-activation_1.0.2_spec/1.1/geronimo-activation_1.0.2_spec-1.1.jar"/>
  <classpathentry kind="var"
path="M2_REPO/org/apache/geronimo/specs/geronimo-activation_1.1_spec/1.0-M1/geronimo-activation_1.1_spec-1.0-M1.jar"/>
  <classpathentry kind="var"
path="M2_REPO/org/apache/geronimo/specs/geronimo-commonj_1.1_spec/1.0/geronimo-commonj_1.1_spec-1.0.jar"/>
  <classpathentry kind="var"
path="M2_REPO/org/apache/geronimo/specs/geronimo-javamail_1.4_spec/1.0-M1/geronimo-javamail_1.4_spec-1.0-M1.jar"/>
  <classpathentry kind="var"
path="M2_REPO/org/apache/geronimo/specs/geronimo-jms_1.1_spec/1.1/geronimo-jms_1.1_spec-1.1.jar"/>
  <classpathentry kind="var"
path="M2_REPO/org/apache/httpcomponents/httpcore/4.0-alpha5/httpcore-4.0-alpha5.jar"/>
  <classpathentry kind="var"
path="M2_REPO/org/apache/httpcomponents/httpcore-nio/4.0-alpha5/httpcore-nio-4.0-alpha5.jar"/>
  <classpathentry kind="var"
path="M2_REPO/org/apache/httpcomponents/httpcore-niossl/4.0-alpha5/httpcore-niossl-4.0-alpha5.jar"/>
  <classpathentry kind="var"
path="M2_REPO/javax/xml/bind/jaxb-api/2.1/jaxb-api-2.1.jar"/>
  <classpathentry kind="var"
path="M2_REPO/com/sun/xml/bind/jaxb-impl/2.1.6/jaxb-impl-2.1.6.jar"/>
  <classpathentry kind="var"
path="M2_REPO/org/jvnet/jaxb/reflection/jaxb2-reflection/2.1.4/jaxb2-reflection-2.1.4.jar"/>
  <classpathentry kind="var"
path="M2_REPO/jaxen/jaxen/1.1-beta-9/jaxen-1.1-beta-9.jar"/>
  <classpathentry kind="var"
path="M2_REPO/javax/xml/ws/jaxws-api/2.1/jaxws-api-2.1.jar"/>
  <classpathentry kind="var"
path="M2_REPO/org/codehaus/jettison/jettison/1.0/jettison-1.0.jar"/>
  <classpathentry kind="var"
path="M2_REPO/com/metaparadigm/json-rpc/1.0/json-rpc-1.0.jar"/>
  <classpathentry kind="var"
path="M2_REPO/javax/jws/jsr181-api/1.0-MR1/jsr181-api-1.0-MR1.jar"/>
  <classpathentry kind="var"
path="M2_REPO/javax/annotation/jsr250-api/1.0/jsr250-api-1.0.jar"/>
  <classpathentry kind="var"
path="M2_REPO/org/apache/tomcat/juli/6.0.14/juli-6.0.14.jar"/>
  <classpathentry kind="var" path="M2_REPO/junit/junit/4.2/junit-4.2.jar"/>
  <classpathentry kind="var"
path="M2_REPO/log4j/log4j/1.2.12/log4j-1.2.12.jar"/>
  <classpathentry kind="var"
path="M2_REPO/logkit/logkit/1.0.1/logkit-1.0.1.jar"/>
  <classpathentry kind="var"
path="M2_REPO/javax/mail/mail/1.4/mail-1.4.jar"/>
  <classpathentry kind="var"
path="M2_REPO/org/apache/neethi/neethi/2.0.2/neethi-2.0.2.jar"/>
  <classpathentry kind="var"
path="M2_REPO/opensaml/opensaml/1.1/opensaml-1.1.jar"/>
  <classpathentry kind="var"
path="M2_REPO/org/apache/rampart/rampart-core/1.3/rampart-core-1.3.jar"/>
  <classpathentry kind="var"
path="M2_REPO/org/apache/rampart/rampart-policy/1.3/rampart-policy-1.3.jar"/>
  <classpathentry kind="var"
path="M2_REPO/org/apache/rampart/rampart-trust/1.3/rampart-trust-1.3.jar"/>
  <classpathentry kind="var"
path="M2_REPO/javax/xml/soap/saaj-api/1.3/saaj-api-1.3.jar"/>
  <classpathentry kind="var"
path="M2_REPO/javax/servlet/servlet-api/2.5/servlet-api-2.5.jar"/>
  <classpathentry kind="var"
path="M2_REPO/javax/xml/stream/stax-api/1.0-2/stax-api-1.0-2.jar"/>
  <classpathentry kind="var"
path="M2_REPO/stax/stax-api/1.0.1/stax-api-1.0.1.jar"/>
  <classpathentry kind="src" path="/tuscany-assembly"/>
  <classpathentry kind="src" path="/tuscany-assembly-xml"/>
  <classpathentry kind="src" path="/tuscany-assembly-xsd"/>
  <classpathentry kind="src" path="/tuscany-binding-atom"/>
  <classpathentry kind="src" path="/tuscany-binding-atom-abdera"/>
  <classpathentry kind="src" path="/tuscany-binding-http"/>
  <classpathentry kind="src" path="/tuscany-binding-jsonrpc"/>
  <classpathentry kind="src" path="/tuscany-binding-sca"/>
  <classpathentry kind="src" path="/tuscany-binding-sca-axis2"/>
  <classpathentry kind="src" path="/tuscany-binding-sca-xml"/>
  <classpathentry kind="src" path="/tuscany-binding-ws"/>
  <classpathentry kind="src" path="/tuscany-binding-ws-axis2"/>
  <classpathentry kind="src" path="/tuscany-binding-ws-xml"/>
  <classpathentry kind="src" path="/tuscany-contribution"/>
  <classpathentry kind="src" path="/tuscany-contribution-impl"/>
  <classpathentry kind="src" path="/tuscany-contribution-java"/>
  <classpathentry kind="src" path="/tuscany-contribution-namespace"/>
  <classpathentry kind="src" path="/tuscany-contribution-resource"/>
  <classpathentry kind="src" path="/tuscany-contribution-xml"/>
  <classpathentry kind="src" path="/tuscany-core"/>
  <classpathentry kind="src" path="/tuscany-core-databinding"/>
  <classpathentry kind="src" path="/tuscany-core-spi"/>
  <classpathentry kind="src" path="/tuscany-databinding"/>
  <classpathentry kind="src" path="/tuscany-databinding-axiom"/>
  <classpathentry kind="src" path="/tuscany-databinding-jaxb"/>
  <classpathentry kind="src" path="/tuscany-databinding-json"/>
  <classpathentry kind="src" path="/tuscany-definitions"/>
  <classpathentry kind="src" path="/tuscany-definitions-xml"/>
  <classpathentry kind="src" path="/tuscany-domain"/>
  <classpathentry kind="src" path="/tuscany-domain-api"/>
  <classpathentry kind="src" path="/tuscany-extensibility"/>
  <classpathentry kind="src" path="/tuscany-host-embedded"/>
  <classpathentry kind="src" path="/tuscany-host-http"/>
  <classpathentry kind="src" path="/tuscany-host-tomcat"/>
  <classpathentry kind="src" path="/tuscany-implementation-data-api"/>
  <classpathentry kind="src" path="/tuscany-implementation-java"/>
  <classpathentry kind="src" path="/tuscany-implementation-java-runtime"/>
  <classpathentry kind="src" path="/tuscany-implementation-java-xml"/>
  <classpathentry kind="src" path="/tuscany-implementation-node"/>
  <classpathentry kind="src" path="/tuscany-implementation-node-runtime"/>
  <classpathentry kind="src" path="/tuscany-implementation-node-xml"/>
  <classpathentry kind="src" path="/tuscany-implementation-resource"/>
  <classpathentry kind="src" path="/tuscany-implementation-widget"/>
  <classpathentry kind="src" path="/tuscany-interface"/>
  <classpathentry kind="src" path="/tuscany-interface-java"/>
  <classpathentry kind="src" path="/tuscany-interface-java-jaxws"/>
  <classpathentry kind="src" path="/tuscany-interface-java-xml"/>
  <classpathentry kind="src" path="/tuscany-interface-wsdl"/>
  <classpathentry kind="src" path="/tuscany-interface-wsdl-java2wsdl"/>
  <classpathentry kind="src" path="/tuscany-interface-wsdl-xml"/>
  <classpathentry kind="src" path="/tuscany-node"/>
  <classpathentry kind="src" path="/tuscany-node-api"/>
  <classpathentry kind="src" path="/tuscany-node2-api"/>
  <classpathentry kind="src" path="/tuscany-node2-impl"/>
  <classpathentry kind="src" path="/tuscany-node2-launcher"/>
  <classpathentry kind="src" path="/tuscany-policy"/>
  <classpathentry kind="src" path="/tuscany-policy-security"/>
  <classpathentry kind="src" path="/tuscany-policy-xml"/>
  <classpathentry kind="src" path="/tuscany-sca-api"/>
  <classpathentry kind="src" path="/tuscany-workspace"/>
  <classpathentry kind="src" path="/tuscany-workspace-admin"/>
  <classpathentry kind="src" path="/tuscany-workspace-impl"/>
  <classpathentry kind="src" path="/tuscany-workspace-xml"/>
  <classpathentry kind="var"
path="M2_REPO/org/apache/woden/woden/1.0-incubating-M7b/woden-1.0-incubating-M7b.jar"/>
  <classpathentry kind="var"
path="M2_REPO/wsdl4j/wsdl4j/1.6.2/wsdl4j-1.6.2.jar"/>
  <classpathentry kind="var"
path="M2_REPO/org/apache/ws/security/wss4j/1.5.3/wss4j-1.5.3.jar"/>
  <classpathentry kind="var"
path="M2_REPO/org/codehaus/woodstox/wstx-asl/3.2.1/wstx-asl-3.2.1.jar"/>
  <classpathentry kind="var"
path="M2_REPO/xalan/xalan/2.7.0/xalan-2.7.0.jar"/>
  <classpathentry kind="var"
path="M2_REPO/xerces/xercesImpl/2.8.1/xercesImpl-2.8.1.jar"/>
  <classpathentry kind="var"
path="M2_REPO/xml-apis/xml-apis/1.3.03/xml-apis-1.3.03.jar"/>
  <classpathentry kind="var"
path="M2_REPO/org/apache/ws/commons/schema/XmlSchema/1.3.2/XmlSchema-1.3.2.jar"/>
  <classpathentry kind="var"
path="M2_REPO/org/apache/santuario/xmlsec/1.4.0/xmlsec-1.4.0.jar"/>
</classpath>

Reply via email to