On Wed, Oct 22, 2008 at 3:10 AM, Rohan Sahgal <[EMAIL PROTECTED]> wrote:

> Hi,
> I was trying to get the calculator-distributed sample to work.
>
> However I cannot get the sample to run after following the steps in the
> read me.
>
> ant runDomain works fine and I get the output as outlined in the read me.
>
> However in the next step when I try ant runNodeB, I get the following error
> :-
>  [java] INFO: Creating node: http://rsahgal-wxp01:9990/node-image/NodeB
>      [java] Oct 21, 2008 6:26:53 PM
> org.apache.tuscany.sca.node.launcher.NodeLau
> ncherUtil node
>      [java] SEVERE: SCA Node could not be created
> ...
> ...
> ...
> Caused by: org.osoa.sca.ServiceRuntimeException: java.io.IOException
> : Server returned HTTP response code: 500 for URL:
> http://rsahgal-wxp01:9990/nod
> e-image/NodeB.
>
> Ditto for ant runNodeC
> I did not try ant runNodeA
>
> I am having the same issue in both the latest Tuscany 1.3.2 and Tuscany 1.2
> (I had it lying around).
>
> Am I missing some configurations?
>
> Thanks,
> Rohan
>

Hi Rohan

Just for reference I've attached what I see when I runDomain [1] and
runNodeB [2] with the 1.3.2 release. The node URL is slightly different as
the "node-image" changed to "node-config" in the URL between 1.2 and 1.3.2.

Are you able to bring up the resources exposed by the domain manager in your
web browser? For example, what happens when you put the URL
http://rsahgal-wxp01:9990/node-image/NodeB into your browser. Do you get a
500 then also. Are there any errors reported in the window where you ran
"ant runDomain"? If you point your browser at the url
http://rsahgal-wxp01<http://rsahgal-wxp01:9990/node-image/NodeB>:9990/ui/home/
are you able to see anything?

Regards

Simon


[1] ant runDomain

Buildfile: build.xml

runDomain:
     [java] 22-Oct-2008 11:54:14
org.apache.tuscany.sca.node.launcher.DomainMana
gerLauncher main
     [java] INFO: Apache Tuscany SCA Domain Manager starting...
     [java]
     [java] Using default configuration properties.
     [java] 22-Oct-2008 11:54:34
org.apache.tuscany.sca.http.jetty.JettyServer a
ddServletMapping
     [java] INFO: Added Servlet mapping: http://L3AW203:9990/ui/home/*
     [java] 22-Oct-2008 11:54:34
org.apache.tuscany.sca.http.jetty.JettyServer a
ddServletMapping
     [java] INFO: Added Servlet mapping: http://L3AW203:9990/ui/workspace/*
     [java] 22-Oct-2008 11:54:34
org.apache.tuscany.sca.http.jetty.JettyServer a
ddServletMapping
     [java] INFO: Added Servlet mapping: http://L3AW203:9990/ui/files/*
     [java] 22-Oct-2008 11:54:34
org.apache.tuscany.sca.http.jetty.JettyServer a
ddServletMapping
     [java] INFO: Added Servlet mapping: http://L3AW203:9990/ui/composite/*
     [java] 22-Oct-2008 11:54:34
org.apache.tuscany.sca.http.jetty.JettyServer a
ddServletMapping
     [java] INFO: Added Servlet mapping: http://L3AW203:9990/ui/cloud/*
     [java] 22-Oct-2008 11:54:35
org.apache.tuscany.sca.http.jetty.JettyServer a
ddServletMapping
     [java] INFO: Added Servlet mapping: http://L3AW203:9990/workspace/*
     [java] 22-Oct-2008 11:54:35
org.apache.tuscany.sca.http.jetty.JettyServer a
ddServletMapping
     [java] INFO: Added Servlet mapping: http://L3AW203:9990/contribution/*
     [java] 22-Oct-2008 11:54:35
org.apache.tuscany.sca.http.jetty.JettyServer a
ddServletMapping
     [java] INFO: Added Servlet mapping: http://L3AW203:9990/feed/files/*
     [java] 22-Oct-2008 11:54:35
org.apache.tuscany.sca.http.jetty.JettyServer a
ddServletMapping
     [java] INFO: Added Servlet mapping: http://L3AW203:9990/files/*
     [java] 22-Oct-2008 11:54:35
org.apache.tuscany.sca.http.jetty.JettyServer a
ddServletMapping
     [java] INFO: Added Servlet mapping: http://L3AW203:9990/composite/*
     [java] 22-Oct-2008 11:54:35
org.apache.tuscany.sca.http.jetty.JettyServer a
ddServletMapping
     [java] INFO: Added Servlet mapping:
http://L3AW203:9990/composite-source/*
     [java] 22-Oct-2008 11:54:35
org.apache.tuscany.sca.http.jetty.JettyServer a
ddServletMapping
     [java] INFO: Added Servlet mapping: http://L3AW203:9990/deployable/*
     [java] 22-Oct-2008 11:54:35
org.apache.tuscany.sca.http.jetty.JettyServer a
ddServletMapping
     [java] INFO: Added Servlet mapping:
http://L3AW203:9990/composite-generated
/*
     [java] 22-Oct-2008 11:54:35
org.apache.tuscany.sca.http.jetty.JettyServer a
ddServletMapping
     [java] INFO: Added Servlet mapping:
http://L3AW203:9990/composite-resolved/
*
     [java] 22-Oct-2008 11:54:35
org.apache.tuscany.sca.http.jetty.JettyServer a
ddServletMapping
     [java] INFO: Added Servlet mapping: http://L3AW203:9990/cloud/*
     [java] 22-Oct-2008 11:54:35
org.apache.tuscany.sca.http.jetty.JettyServer a
ddServletMapping
     [java] INFO: Added Servlet mapping: http://L3AW203:9990/cloud-source/*
     [java] 22-Oct-2008 11:54:35
org.apache.tuscany.sca.http.jetty.JettyServer a
ddServletMapping
     [java] INFO: Added Servlet mapping:
http://L3AW203:9990/composite-config/*
     [java] 22-Oct-2008 11:54:35
org.apache.tuscany.sca.http.jetty.JettyServer a
ddServletMapping
     [java] INFO: Added Servlet mapping: http://L3AW203:9990/node-config/*
     [java] 22-Oct-2008 11:54:35
org.apache.tuscany.sca.http.jetty.JettyServer a
ddServletMapping
     [java] INFO: Added Servlet mapping: http://L3AW203:9990/quickstart/*
     [java] 22-Oct-2008 11:54:35
org.apache.tuscany.sca.http.jetty.JettyServer a
ddServletMapping
     [java] INFO: Added Servlet mapping: http://L3AW203:9990/processes/*
     [java] 22-Oct-2008 11:54:35
org.apache.tuscany.sca.http.jetty.JettyServer a
ddServletMapping
     [java] INFO: Added Servlet mapping:
http://L3AW203:9990/node/processes/*
     [java] 22-Oct-2008 11:54:35
org.apache.tuscany.sca.http.jetty.JettyServer a
ddServletMapping
     [java] INFO: Added Servlet mapping: http://L3AW203:9990/ping/*
     [java] 22-Oct-2008 11:54:35
org.apache.tuscany.sca.node.launcher.DomainMana
gerLauncher main
     [java] INFO: SCA Domain Manager started.
     [java] 22-Oct-2008 11:54:35
org.apache.tuscany.sca.node.launcher.DomainMana
gerLauncher main
     [java] INFO: Press enter to shutdown.

[2]  ant runNodeB

Buildfile: build.xml

runNodeB:
     [java] 22-Oct-2008 11:54:48
org.apache.tuscany.sca.node.launcher.NodeLaunch
er main
     [java] INFO: Apache Tuscany SCA Node starting...
     [java] 22-Oct-2008 11:54:48
org.apache.tuscany.sca.node.launcher.NodeLaunch
er main
     [java] INFO: SCA Node configuration:
http://localhost:9990/node-config/Node
B
     [java] 22-Oct-2008 11:54:49 org.apache.tuscany.sca.node.impl.NodeImpl
<init
>
     [java] INFO: Creating node: http://localhost:9990/node-config/NodeB
     [java] 22-Oct-2008 11:54:50 org.apache.tuscany.sca.node.impl.NodeImpl
confi
gureNode
     [java] INFO: Loading contribution:
file:/C:/simon/tuscany/release/sca-r1.3.
2/tuscany-sca-1.3.2/samples/calculator-distributed/./src/main/resources/nodeB/
     [java] 22-Oct-2008 11:54:51 org.apache.tuscany.sca.node.impl.NodeImpl
confi
gureNode
     [java] INFO: Loading composite:
http://localhost:9990/composite-resolved/co
mposite:nodeB;http://sample;CalculatorB
     [java] 22-Oct-2008 11:54:51 org.apache.tuscany.sca.node.impl.NodeImpl
start

     [java] INFO: Starting node: http://localhost:9990/node-config/NodeB
     [java] 22-Oct-2008 11:54:55
org.apache.tuscany.sca.http.jetty.JettyServer a
ddServletMapping
     [java] INFO: Added Servlet mapping:
http://L3AW203:8200/AddServiceComponent
B
     [java] 22-Oct-2008 11:54:55
org.apache.tuscany.sca.node.launcher.NodeLaunch
er main
     [java] INFO: SCA Node started.
     [java] 22-Oct-2008 11:54:55
org.apache.tuscany.sca.node.launcher.NodeLaunch
er main
     [java] INFO: Press enter to shutdown.

Reply via email to