<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>user@tuscany.apache.org Archives</title>
<link rel="self" href="http://mail-archives.apache.org/mod_mbox/tuscany-user/?format=atom"/>
<link href="http://mail-archives.apache.org/mod_mbox/tuscany-user/"/>
<id>http://mail-archives.apache.org/mod_mbox/tuscany-user/</id>
<updated>2009-12-06T02:28:57Z</updated>
<entry>
<title>Re: tuscany 2 and SCADomain</title>
<author><name>&quot;Raymond Feng&quot; &lt;enjoyjava@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tuscany-user/200912.mbox/%3c7C9BFF9C5B8D4D6D94F9DAEFBD833279@rfengt61p%3e"/>
<id>urn:uuid:%3c7C9BFF9C5B8D4D6D94F9DAEFBD833279@rfengt61p%3e</id>
<updated>2009-12-04T16:34:25Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Similar as the service side:

Node  node = NodeFactory.newInstance().createNode(""helloworldwsclient.composite", this.getClass().getClassLoader()).start();
HelloWorldService helloWorldService  = node.getService(HelloWorldService.class, "HelloWorldServiceComponent");

...


From: amit patel 
Sent: Friday, December 04, 2009 8:02 AM
To: user@tuscany.apache.org ; antelder@apache.org 
Subject: Re: tuscany 2 and SCADomain


Thanks!

So I was able to start the service

Now what do I change the client code to?

SCADomain scaDomain = SCADomain.newInstance(

"helloworldwsclient.composite"); 
HelloWorldService helloWorldService = scaDomain.getService(HelloWorldService.

class, "HelloWorldServiceComponent"); 

OMFactory fac = OMAbstractFactory.getOMFactory();

OMElement imageElement = fac.createOMElement(

"image", null); 

// Creating the Data Handler for the file. 
DataHandler dataHandler = 

new DataHandler(new FileDataSource("C:/attachedfile.jpg")); 

//create an OMText node with the above DataHandler and set optimized to true 
OMText textData = fac.createOMText(dataHandler, 

true); 
imageElement.addChild(textData); 


String value = helloWorldService.getGreetings(

"attachedfile.jpg", imageElement); 
System.

out.println(value); 

scaDomain.close();


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: tuscany 2 and SCADomain</title>
<author><name>amit patel &lt;amitptel@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tuscany-user/200912.mbox/%3c8709d7f30912040829l28c4738dx60031c04f3098f75@mail.gmail.com%3e"/>
<id>urn:uuid:%3c8709d7f30912040829l28c4738dx60031c04f3098f75@mail-gmail-com%3e</id>
<updated>2009-12-04T16:29:28Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
i found this
http://cwiki.apache.org/TUSCANYxDOCx2x/converting-tuscany-1x-extensions.html

Changed client code to


String contribution = ContributionLocationHelper.*getContributionLocation*
(HelloWorldService.*class*);

Node node = NodeFactory.*newInstance*().createNode(
"helloworldwsclient.composite",

*new* Contribution("test", contribution));

node.start();

HelloWorldService helloWorldService = node.getService(HelloWorldService.*
class*, "HelloTuscanyServiceComponent");

And Now I got hit by the bug
http://issues.apache.org/jira/browse/TUSCANY-2664

Is there a workaround?

Thanks

Dec 4, 2009 10:23:32 AM
org.apache.tuscany.sca.core.assembly.impl.EndpointRegistryImpl addEndpoint

INFO: Add endpoint - (@622863648)Endpoint: URI =
HelloWorldServiceComponent#service-binding(HelloWorldService/HelloWorldService)

class org.apache.axiom.om.impl.llom.OMElementImpl

class org.apache.axiom.om.impl.llom.OMTextImpl

Injected helloWorldService

Called getGreetings

Exception in thread "main" *java.lang.IllegalArgumentException*:
Pass-by-value is not supported for the given object: *
org.apache.tuscany.sca.databinding.TransformationException
*

at org.apache.tuscany.sca.databinding.javabeans.JavaBeansDataBinding.copy(*
JavaBeansDataBinding.java:128*)

at
org.apache.tuscany.sca.databinding.DefaultDataBindingExtensionPoint$LazyDataBinding.copy(
*DefaultDataBindingExtensionPoint.java:169*)


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: tuscany 2 and SCADomain</title>
<author><name>amit patel &lt;amitptel@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tuscany-user/200912.mbox/%3c8709d7f30912040802lc937b7bt70a21e916b4661f9@mail.gmail.com%3e"/>
<id>urn:uuid:%3c8709d7f30912040802lc937b7bt70a21e916b4661f9@mail-gmail-com%3e</id>
<updated>2009-12-04T16:02:43Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Thanks!

So I was able to start the service

Now what do I change the client code to?


SCADomain scaDomain = SCADomain.newInstance("helloworldwsclient.composite");

HelloWorldService helloWorldService =
scaDomain.getService(HelloWorldService.*class*, "HelloWorldServiceComponent"
);

OMFactory fac = OMAbstractFactory.*getOMFactory*();

OMElement imageElement = fac.createOMElement("image", *null*);

// Creating the Data Handler for the file.

DataHandler dataHandler = *new* DataHandler(*new* FileDataSource(
"C:/attachedfile.jpg"));

//create an OMText node with the above DataHandler and set optimized to true

OMText textData = fac.createOMText(dataHandler, *true*);

imageElement.addChild(textData);

String value = helloWorldService.getGreetings("attachedfile.jpg",
imageElement);

System.*out*.println(value);

scaDomain.close();


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: tuscany 2 and SCADomain</title>
<author><name>ant elder &lt;ant.elder@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tuscany-user/200912.mbox/%3c71e1b5740912040046j7cb3113at3449546bdd65b8f4@mail.gmail.com%3e"/>
<id>urn:uuid:%3c71e1b5740912040046j7cb3113at3449546bdd65b8f4@mail-gmail-com%3e</id>
<updated>2009-12-04T08:46:50Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Or even better just use call createNode with the explicit contribution
location, for example:

        Node node = NodeFactory.newInstance().createNode(null, new
String[] {"target/classes"}).start();

I'd like to get that API simplified even further but have't got to it
yet, so you should be able to just do:

       Node node =
NodeFactory.newInstance().createNode("target/classes").start();

   ...ant

On Fri, Dec 4, 2009 at 1:40 AM, Raymond Feng &lt;enjoyjava@gmail.com&gt; wrote:
&gt; Please use NodeFactory/Node APIs instead. For example,
&gt;
&gt;         String location =
&gt; ContributionLocationHelper.getContributionLocation(SampleClient.class);
&gt;         Node node = NodeFactory.newInstance().createNode(new
&gt; Contribution("c1", location));
&gt;
&gt;         node.start();
&gt;
&gt;         SampleClient sampleClient = node.getService(SampleClient.class,
&gt; "SampleClient");
&gt;         sampleClient.runSample();
&gt; Thanks,
&gt; Raymond
&gt; From: amit patel
&gt; Sent: Thursday, December 03, 2009 4:20 PM
&gt; To: user@tuscany.apache.org
&gt; Subject: tuscany 2 and SCADomain
&gt; I am using tuscany 2.0-M4 to run ram's sample from here
&gt;
&gt; http://svn.apache.org/repos/asf/tuscany/sandbox/ramkumar/helloworld-ws-reference/
&gt;
&gt; I can't find the SCADomain class, is it deprecated? what should I use now?
&gt; Is there an equivalent sample for tuscany 2?
&gt;
&gt;
&gt; public
&gt;
&gt; class HelloWorldClient {
&gt;
&gt; public final static void main(String[] args) throws Exception {
&gt;
&gt; SCADomain scaDomain = SCADomain.newInstance(
&gt;
&gt; "helloworldwsclient.composite");
&gt;
&gt; HelloWorldService helloWorldService =
&gt; scaDomain.getService(HelloWorldService.
&gt;
&gt; class, "HelloWorldServiceComponent");
&gt;
&gt; OMFactory fac = OMAbstractFactory.getOMFactory();
&gt;
&gt; OMElement imageElement = fac.createOMElement(
&gt;
&gt; "image", null);
&gt;
&gt; // Creating the Data Handler for the file.
&gt;
&gt; DataHandler dataHandler =
&gt;
&gt; new DataHandler(new FileDataSource("C:/attachedfile.jpg"));
&gt;
&gt; //create an OMText node with the above DataHandler and set optimized to true
&gt;
&gt; OMText textData = fac.createOMText(dataHandler,
&gt;
&gt; true);
&gt;
&gt; imageElement.addChild(textData);
&gt;
&gt; String value = helloWorldService.getGreetings(
&gt;
&gt; "attachedfile.jpg", imageElement);
&gt;
&gt; System.
&gt;
&gt; out.println(value);
&gt;
&gt; scaDomain.close();
&gt;
&gt; }
&gt;
&gt; }


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: tuscany 2 and SCADomain</title>
<author><name>&quot;Raymond Feng&quot; &lt;enjoyjava@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tuscany-user/200912.mbox/%3c98C5E2130DC649419A199A1F2DBFE25A@rfengt61p%3e"/>
<id>urn:uuid:%3c98C5E2130DC649419A199A1F2DBFE25A@rfengt61p%3e</id>
<updated>2009-12-04T01:40:41Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Please use NodeFactory/Node APIs instead. For example,

        String location = ContributionLocationHelper.getContributionLocation(SampleClient.class);
        Node node = NodeFactory.newInstance().createNode(new Contribution("c1", location));
        
        node.start();

        SampleClient sampleClient = node.getService(SampleClient.class, "SampleClient");
        sampleClient.runSample();

Thanks,
Raymond


From: amit patel 
Sent: Thursday, December 03, 2009 4:20 PM
To: user@tuscany.apache.org 
Subject: tuscany 2 and SCADomain


I am using tuscany 2.0-M4 to run ram's sample from here

http://svn.apache.org/repos/asf/tuscany/sandbox/ramkumar/helloworld-ws-reference/

I can't find the SCADomain class, is it deprecated? what should I use now?
Is there an equivalent sample for tuscany 2?

public

class HelloWorldClient { 


public final static void main(String[] args) throws Exception { 
SCADomain scaDomain = SCADomain.newInstance(

"helloworldwsclient.composite"); 
HelloWorldService helloWorldService = scaDomain.getService(HelloWorldService.

class, "HelloWorldServiceComponent"); 

OMFactory fac = OMAbstractFactory.getOMFactory();

OMElement imageElement = fac.createOMElement(

"image", null); 

// Creating the Data Handler for the file. 
DataHandler dataHandler = 

new DataHandler(new FileDataSource("C:/attachedfile.jpg")); 

//create an OMText node with the above DataHandler and set optimized to true 
OMText textData = fac.createOMText(dataHandler, 

true); 
imageElement.addChild(textData); 


String value = helloWorldService.getGreetings(

"attachedfile.jpg", imageElement); 
System.

out.println(value); 

scaDomain.close();

}

}


</pre>
</div>
</content>
</entry>
<entry>
<title>tuscany 2 and SCADomain</title>
<author><name>amit patel &lt;amitptel@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tuscany-user/200912.mbox/%3c8709d7f30912031620j225fd031u445f2c131f7791f2@mail.gmail.com%3e"/>
<id>urn:uuid:%3c8709d7f30912031620j225fd031u445f2c131f7791f2@mail-gmail-com%3e</id>
<updated>2009-12-04T00:20:56Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
I am using tuscany 2.0-M4 to run ram's sample from here

http://svn.apache.org/repos/asf/tuscany/sandbox/ramkumar/helloworld-ws-reference/

I can't find the SCADomain class, is it deprecated? what should I use now?
Is there an equivalent sample for tuscany 2?

*

public* *class* HelloWorldClient {

*public* *final* *static* *void* main(String[] args) *throws* Exception {

SCADomain scaDomain = SCADomain.newInstance("helloworldwsclient.composite");

HelloWorldService helloWorldService =
scaDomain.getService(HelloWorldService.*class*, "HelloWorldServiceComponent"
);

OMFactory fac = OMAbstractFactory.*getOMFactory*();

OMElement imageElement = fac.createOMElement("image", *null*);

// Creating the Data Handler for the file.

DataHandler dataHandler = *new* DataHandler(*new* FileDataSource(
"C:/attachedfile.jpg"));

//create an OMText node with the above DataHandler and set optimized to true

OMText textData = fac.createOMText(dataHandler, *true*);

imageElement.addChild(textData);

String value = helloWorldService.getGreetings("attachedfile.jpg",
imageElement);

System.*out*.println(value);

scaDomain.close();

}

}


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: store sample - getting started</title>
<author><name>Luciano Resende &lt;luckbr1975@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tuscany-user/200912.mbox/%3c5a75db780912031518o1afd46b6r7805d3b93734d895@mail.gmail.com%3e"/>
<id>urn:uuid:%3c5a75db780912031518o1afd46b6r7805d3b93734d895@mail-gmail-com%3e</id>
<updated>2009-12-03T23:18:08Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
On Thu, Dec 3, 2009 at 3:10 PM, amit patel &lt;amitptel@gmail.com&gt; wrote:
&gt; I had to add wstx-asl-3.2.4.jar to fix the NPE
&gt;
&gt; now I am getting
&gt;
&gt;
&gt; Starting ...
&gt;
&gt; Dec 3, 2009 5:08:28 PM org.apache.tuscany.sca.node.impl.NodeImpl start
&gt;
&gt; INFO: Starting node: http://tuscany.apache.org/sca/1.1/nodes/default0
&gt; domain: tuscany.apache.org
&gt;
&gt; Dec 3, 2009 5:08:28 PM org.apache.tuscany.sca.node.impl.NodeFactoryImpl
&gt; loadContributions
&gt;
&gt; INFO: Loading contribution: file:/C:/workspaces/ast/tuscany1/store/target/
&gt;
&gt; Dec 3, 2009 5:08:29 PM
&gt; org.apache.tuscany.sca.contribution.processor.ValidatingXMLStreamReader
&gt; [Contribution: test, Artifact: store.composite] (SchemaError)
&gt;
&gt; SEVERE: XMLSchema validation error occured in: store.composite ,line = 8,
&gt; column = 9, Message = cvc-complex-type.2.4.a: Invalid content was found
&gt; starting with element 'service'. One of
&gt; '{"http://docs.oasis-open.org/ns/opencsa/sca/200903":documentation,
&gt; "http://docs.oasis-open.org/ns/opencsa/sca/200903":implementation}' is
&gt; expected.
&gt;
&gt; Dec 3, 2009 5:08:29 PM
&gt; org.apache.tuscany.sca.contribution.processor.ExtensibleStAXArtifactProcessor
&gt; [Contribution: test, Artifact: store.composite] (ElementCannotBeProcessed)
&gt;
&gt; SEVERE: Element
&gt; {http://tuscany.apache.org/xmlns/sca/1.1}implementation.widget cannot be
&gt; processed. ([row,col {unknown-source}]: [14,9])
&gt;
&gt; Exception in thread "main"
&gt;
&gt; java.lang.IllegalStateException: org.oasisopen.sca.ServiceRuntimeException:
&gt; [Contribution: test, Artifact: store.composite] - XMLSchema validation error
&gt; occured in: store.composite ,line = 8, column = 9, Message =
&gt; cvc-complex-type.2.4.a: Invalid content was found starting with element
&gt; 'service'. One of
&gt; '{"http://docs.oasis-open.org/ns/opencsa/sca/200903":documentation,
&gt; "http://docs.oasis-open.org/ns/opencsa/sca/200903":implementation}' is
&gt; expected.
&gt;
&gt; at org.apache.tuscany.sca.node.impl.NodeImpl.start(
&gt;
&gt; NodeImpl.java:176)
&gt;
&gt; at launch.Launch.main(
&gt;
&gt; Launch.java:15)
&gt;
&gt; Caused by:
&gt;
&gt; org.oasisopen.sca.ServiceRuntimeException: [Contribution: test, Artifact:
&gt; store.composite] - XMLSchema validation error occured in: store.composite
&gt; ,line = 8, column = 9, Message = cvc-complex-type.2.4.a: Invalid content was
&gt; found starting with element 'service'. One of
&gt; '{"http://docs.oasis-open.org/ns/opencsa/sca/200903":documentation,
&gt; "http://docs.oasis-open.org/ns/opencsa/sca/200903":implementation}' is
&gt; expected.
&gt;
&gt; at org.apache.tuscany.sca.node.impl.NodeFactoryImpl.analyzeProblems(
&gt;
&gt; NodeFactoryImpl.java:174)
&gt;
&gt; at org.apache.tuscany.sca.node.impl.NodeFactoryImpl.loadContributions(
&gt;
&gt; NodeFactoryImpl.java:333)
&gt;
&gt; at org.apache.tuscany.sca.node.impl.NodeImpl.start(
&gt;
&gt; NodeImpl.java:133)
&gt;
&gt; ... 1 more

You are using the 2.x Runtime, but the guide you mentioned was
designed to the 1.x runtime. Please try with our latest 1.x release.


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


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: store sample - getting started</title>
<author><name>amit patel &lt;amitptel@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tuscany-user/200912.mbox/%3c8709d7f30912031510p550bcfeclbad1c5563849d78@mail.gmail.com%3e"/>
<id>urn:uuid:%3c8709d7f30912031510p550bcfeclbad1c5563849d78@mail-gmail-com%3e</id>
<updated>2009-12-03T23:10:30Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
I had to add wstx-asl-3.2.4.jar to fix the NPE

now I am getting


Starting ...

Dec 3, 2009 5:08:28 PM org.apache.tuscany.sca.node.impl.NodeImpl start

INFO: Starting node: http://tuscany.apache.org/sca/1.1/nodes/default0domain:
tuscany.apache.org

Dec 3, 2009 5:08:28 PM org.apache.tuscany.sca.node.impl.NodeFactoryImpl
loadContributions

INFO: Loading contribution: file:/C:/workspaces/ast/tuscany1/store/target/

Dec 3, 2009 5:08:29 PM
org.apache.tuscany.sca.contribution.processor.ValidatingXMLStreamReader
[Contribution: test, Artifact: store.composite] (SchemaError)

SEVERE: XMLSchema validation error occured in: store.composite ,line = 8,
column = 9, Message = cvc-complex-type.2.4.a: Invalid content was found
starting with element 'service'. One of '{"
http://docs.oasis-open.org/ns/opencsa/sca/200903":documentation, "
http://docs.oasis-open.org/ns/opencsa/sca/200903":implementation}' is
expected.

Dec 3, 2009 5:08:29 PM
org.apache.tuscany.sca.contribution.processor.ExtensibleStAXArtifactProcessor
[Contribution: test, Artifact: store.composite] (ElementCannotBeProcessed)

SEVERE: Element {
http://tuscany.apache.org/xmlns/sca/1.1}implementation.widget cannot be
processed. ([row,col {unknown-source}]: [14,9])

Exception in thread "main" *java.lang.IllegalStateException*: *
org.oasisopen.sca.ServiceRuntimeException*: [Contribution: test, Artifact:
store.composite] - XMLSchema validation error occured in: store.composite
,line = 8, column = 9, Message = cvc-complex-type.2.4.a: Invalid content was
found starting with element 'service'. One of '{"
http://docs.oasis-open.org/ns/opencsa/sca/200903":documentation, "
http://docs.oasis-open.org/ns/opencsa/sca/200903":implementation}' is
expected.

at org.apache.tuscany.sca.node.impl.NodeImpl.start(*NodeImpl.java:176*)

at launch.Launch.main(*Launch.java:15*)

Caused by: *org.oasisopen.sca.ServiceRuntimeException*: [Contribution: test,
Artifact: store.composite] - XMLSchema validation error occured in:
store.composite ,line = 8, column = 9, Message = cvc-complex-type.2.4.a:
Invalid content was found starting with element 'service'. One of '{"
http://docs.oasis-open.org/ns/opencsa/sca/200903":documentation, "
http://docs.oasis-open.org/ns/opencsa/sca/200903":implementation}' is
expected.

at org.apache.tuscany.sca.node.impl.NodeFactoryImpl.analyzeProblems(*
NodeFactoryImpl.java:174*)

at org.apache.tuscany.sca.node.impl.NodeFactoryImpl.loadContributions(*
NodeFactoryImpl.java:333*)

at org.apache.tuscany.sca.node.impl.NodeImpl.start(*NodeImpl.java:133*)

... 1 more


</pre>
</div>
</content>
</entry>
<entry>
<title>store sample - getting started</title>
<author><name>amit patel &lt;amitptel@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tuscany-user/200912.mbox/%3c8709d7f30912031446g77b0b0a7o95347451fea7fbf8@mail.gmail.com%3e"/>
<id>urn:uuid:%3c8709d7f30912031446g77b0b0a7o95347451fea7fbf8@mail-gmail-com%3e</id>
<updated>2009-12-03T22:46:41Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
I am trying to follow
http://tuscany.apache.org/getting-started-with-tuscany.html

I downloaded latest sources from
https://svn.apache.org/repos/asf/tuscany/sca-java-2.x/trunk/samples/store/

In eclipse when I run Launch I get exceptions. Is this a bug?

Starting ...

Dec 3, 2009 4:29:14 PM org.apache.tuscany.sca.node.impl.NodeImpl start

INFO: Starting node: http://tuscany.apache.org/sca/1.1/nodes/default0domain:
tuscany.apache.org

Dec 3, 2009 4:29:14 PM org.apache.tuscany.sca.node.impl.NodeFactoryImpl
loadContributions

INFO: Loading contribution: file:/C:/workspaces/ast/tuscany1/store/src/

Exception in thread "main" *java.lang.IllegalStateException*: *
java.lang.IllegalArgumentException*: *
java.lang.reflect.InvocationTargetException
*

at org.apache.tuscany.sca.node.impl.NodeImpl.start(*NodeImpl.java:176*)

at launch.Launch.main(*Launch.java:16*)

Caused by: *java.lang.IllegalArgumentException*: *
java.lang.reflect.InvocationTargetException
*

at org.apache.tuscany.sca.core.DefaultUtilityExtensionPoint.getUtility(*
DefaultUtilityExtensionPoint.java:189*)

at org.apache.tuscany.sca.core.DefaultUtilityExtensionPoint.getUtility(*
DefaultUtilityExtensionPoint.java:94*)

at org.apache.tuscany.sca.deployment.impl.DeployerImpl.init(*
DeployerImpl.java:248*)

at org.apache.tuscany.sca.deployment.impl.DeployerImpl.loadContribution(*
DeployerImpl.java:520*)

at org.apache.tuscany.sca.node.impl.NodeFactoryImpl.loadContributions(*
NodeFactoryImpl.java:295*)

at org.apache.tuscany.sca.node.impl.NodeImpl.start(*NodeImpl.java:133*)

... 1 more

Caused by: *java.lang.reflect.InvocationTargetException
*

at sun.reflect.NativeConstructorAccessorImpl.newInstance0(*Native Method*)

at sun.reflect.NativeConstructorAccessorImpl.newInstance(*
NativeConstructorAccessorImpl.java:67*)

at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(*
DelegatingConstructorAccessorImpl.java:45*)

at java.lang.reflect.Constructor.newInstance(*Constructor.java:522*)

at org.apache.tuscany.sca.extensibility.ServiceHelper.newInstance(*
ServiceHelper.java:88*)

at org.apache.tuscany.sca.core.DefaultUtilityExtensionPoint.getUtility(*
DefaultUtilityExtensionPoint.java:176*)

... 6 more

Caused by: *java.lang.NullPointerException
*

at org.apache.tuscany.sca.common.xml.stax.StAXHelper.&lt;init&gt;(*
StAXHelper.java:73*)

... 12 more


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: building tuscany from source</title>
<author><name>amit patel &lt;amitptel@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tuscany-user/200912.mbox/%3c8709d7f30912031318v7a07274die9b9e4e04204553e@mail.gmail.com%3e"/>
<id>urn:uuid:%3c8709d7f30912031318v7a07274die9b9e4e04204553e@mail-gmail-com%3e</id>
<updated>2009-12-03T21:18:23Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
I got it to run by pointing my repository to
http://repository.apache.org/content/repositories/central/

On Thu, Dec 3, 2009 at 2:29 PM, amit patel &lt;amitptel@gmail.com&gt; wrote:



&gt; I am using maven to build tuscany from source but unable to resolve
&gt; the dependencies
&gt;
&gt; I have downloaded the binary version as well, but I want to build it
&gt; from source using maven so that my local maven repository has all jars
&gt; installed.
&gt;
&gt; How can I set up my settings to download tuscay dependencies correctly?
&gt;
&gt; Thanks
&gt; Kal
&gt;
&gt; [INFO]
&gt; ------------------------------------------------------------------------
&gt; [ERROR] BUILD ERROR
&gt; [INFO]
&gt; ------------------------------------------------------------------------
&gt; [INFO] Error building POM (may not be this project's POM).
&gt;
&gt;
&gt; Project ID: org.jvnet.jaxb2.maven2:maven-jaxb2-plugin
&gt;
&gt; Reason: POM 'org.jvnet.jaxb2.maven2:maven-jaxb2-plugin' not found in
&gt; repository: Unable to download the artifact from any repository
&gt;
&gt;  org.jvnet.jaxb2.maven2:maven-jaxb2-plugin:pom:0.7.1
&gt;
&gt; from the specified remote repositories:
&gt;  nexus (http://mybuildserver:12080/nexus/content/groups/my-central)
&gt;
&gt;  for project org.jvnet.jaxb2.maven2:maven-jaxb2-plugin
&gt;


</pre>
</div>
</content>
</entry>
<entry>
<title>building tuscany from source</title>
<author><name>amit patel &lt;amitptel@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tuscany-user/200912.mbox/%3c8709d7f30912031229i17a0dfcagfed4021beb55e10c@mail.gmail.com%3e"/>
<id>urn:uuid:%3c8709d7f30912031229i17a0dfcagfed4021beb55e10c@mail-gmail-com%3e</id>
<updated>2009-12-03T20:29:36Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
I am using maven to build tuscany from source but unable to resolve
the dependencies

I have downloaded the binary version as well, but I want to build it
from source using maven so that my local maven repository has all jars
installed.

How can I set up my settings to download tuscay dependencies correctly?

Thanks
Kal

[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error building POM (may not be this project's POM).


Project ID: org.jvnet.jaxb2.maven2:maven-jaxb2-plugin

Reason: POM 'org.jvnet.jaxb2.maven2:maven-jaxb2-plugin' not found in
repository: Unable to download the artifact from any repository

 org.jvnet.jaxb2.maven2:maven-jaxb2-plugin:pom:0.7.1

from the specified remote repositories:
 nexus (http://mybuildserver:12080/nexus/content/groups/my-central)

 for project org.jvnet.jaxb2.maven2:maven-jaxb2-plugin


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Calling JSON RPC Service From Flex</title>
<author><name>Simon Laws &lt;simonslaws@googlemail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tuscany-user/200912.mbox/%3cc0c051b50912021037i26e4cebbt170af7ca597567ae@mail.gmail.com%3e"/>
<id>urn:uuid:%3cc0c051b50912021037i26e4cebbt170af7ca597567ae@mail-gmail-com%3e</id>
<updated>2009-12-02T18:37:56Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
On Wed, Dec 2, 2009 at 6:36 PM, Simon Laws &lt;simonslaws@googlemail.com&gt; wrote:
&gt; Hey, thanks Adam.
&gt;
&gt; Simon
&gt;

Abraham even. Mind went numb:-)

Simon


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Calling JSON RPC Service From Flex</title>
<author><name>Simon Laws &lt;simonslaws@googlemail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tuscany-user/200912.mbox/%3cc0c051b50912021036l236812c7lb6c538dd87f20a17@mail.gmail.com%3e"/>
<id>urn:uuid:%3cc0c051b50912021036l236812c7lb6c538dd87f20a17@mail-gmail-com%3e</id>
<updated>2009-12-02T18:36:54Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hey, thanks Adam.

Simon


</pre>
</div>
</content>
</entry>
<entry>
<title>Calling JSON RPC Service From Flex</title>
<author><name>Abraham G Guerra &lt;aguerra@us.ibm.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tuscany-user/200912.mbox/%3cOFFAEFCF5C.C4ED1A7F-ON85257680.0063CCAF-85257680.0066004F@us.ibm.com%3e"/>
<id>urn:uuid:%3cOFFAEFCF5C-C4ED1A7F-ON85257680-0063CCAF-85257680-0066004F@us-ibm-com%3e</id>
<updated>2009-12-02T18:34:07Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Content-type: text/plain; charset=US-ASCII
Content-transfer-encoding: quoted-printable



Hi All,

I recently needed to call a Tuscany service (using json-rpc binding) fr=
om
Flex.  One of the Tuscany developers mentioned this was a common questi=
on
and thought it would be useful to post for the community.  Here's the
snippet of code we're using.  I hope it helps.

                        var http:HTTPService =3D new HTTPService();
                        http.addEventListener( ResultEvent.RESULT,
handleLoadTestData );
                        http.url =3D
"http://localhost/test/services/TestServiceComponent";
                        http.method =3D "POST";
                        http.contentType =3D "application/json";

                        var jsonArgs:String =3D JSON.encode({
                              "params": ["5"],
                              "method": "getTestData",
                              "id": 1
                        });

                        http.send(jsonArgs);

The above snippet makes a call to our TestServiceComponent's getTestDat=
a
method (which expects a string arg -- "5").  The snippet also depends o=
n an
external class called com.adobe.serialization.json.JSON.  It is part of=

this library: http://code.google.com/p/as3corelib/

Regards,

Abraham
=


</pre>
</div>
</content>
</entry>
<entry>
<title>RE: Runtime problem running webapp with web service binding</title>
<author><name>&quot;Phillips, Chad&quot; &lt;Chad.Phillips@gdit.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tuscany-user/200912.mbox/%3c50F4F6752FF4C2419311B7376D18CA56820A9F8D1F@EXCHCCR03.ad.local%3e"/>
<id>urn:uuid:%3c50F4F6752FF4C2419311B7376D18CA56820A9F8D1F@EXCHCCR03-ad-local%3e</id>
<updated>2009-12-02T16:20:04Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi David,

If you're accessing the service URL from a web browser, you should expect to see an error
such as the one you provided; this is not a problem w/ your service.  Have you tried executing
your client code yet?  If you're not sure if your client code is correct you can also use
a tool such as soapUI [1] to access your service using the WSDL.

[1] http://www.soapui.org/ 

________________________________________
From: David Sanchez Escobar [mailto:davock@gmail.com] 
Sent: Wednesday, December 02, 2009 06:52
To: user@tuscany.apache.org
Subject: Runtime problem running webapp with web service binding

Hi Guys!

I have a wsdl definition problem running a webapp. When I access  to the service (http://localhost:8080/ptool-task-sca-ws/TaskService)
I got this error

org.apache.axis2.AxisFault: The endpoint reference (EPR) for the Operation not found is /ptool-task-sca-ws/TaskService
and the WSA Action = null at org.apache.axis2.engine.DispatchPhase.checkPostConditions(DispatchPhase.java:89)
at org.apache.axis2.engine.Phase.invoke(Phase.java:333) at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:264)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:163) at org.apache.axis2.transport.http.util.RESTUtil.invokeAxisEngine(RESTUtil.java:136)
at org.apache.axis2.transport.http.util.RESTUtil.processURLRequest(RESTUtil.java:130) at org.apache.axis2.transport.http.AxisServlet$RestRequestProcessor.processURLRequest(AxisServlet.java:829)
at org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:255) at org.apache.tuscany.sca.binding.ws.axis2.Axis2ServiceServlet.doGet(Axis2ServiceServlet.java:321)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:617) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.tuscany.sca.host.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:107)
at org.apache.tuscany.sca.host.webapp.TuscanyServletFilter.doFilter(TuscanyServletFilter.java:94)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at 
...


I deployed the contribution as a webapp in Tomcat with a ws.binding in this way:

***  .composite graphical diagram

http://www.imageno.com/zckmhtxj3k0ipic.html 

*** This is the code of the .composite definition

&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;sca:composite xmlns:sca="http://www.osoa.org/xmlns/sca/1.0" name="Task" targetNamespace="http://eclipse.org/PlanningToolSCA/src/Task"&gt;
 &lt;sca:component name="TaskListServiceComponent"&gt;
 &lt;sca:implementation.java class="main.task.lib.TaskListServiceImpl"/&gt;
 &lt;sca:service name="TaskListService"&gt;
 &lt;sca:interface.java interface="main.task.api.TaskListService"/&gt;
 &lt;/sca:service&gt;
 &lt;sca:reference name="taskCrudService"/&gt;
 &lt;/sca:component&gt;
 &lt;sca:service name="TaskService" promote="TaskListServiceComponent/TaskListService"&gt;
 &lt;sca:binding.ws uri="http://localhost:8080/ptool-task-sca-ws/TaskService"/&gt;
 &lt;/sca:service&gt;
 &lt;sca:component name="TaskServiceComponent"&gt;
 &lt;sca:implementation.java class="main.task.lib.TaskCrudServiceImpl"/&gt;
 &lt;sca:service name="TaskCrudService"&gt;
 &lt;sca:interface.java interface="main.task.api.TaskCrudService"/&gt;
 &lt;/sca:service&gt;
 &lt;/sca:component&gt;
 &lt;sca:wire source="TaskListServiceComponent/taskCrudService" target="TaskServiceComponent/TaskCrudService"/&gt;
&lt;/sca:composite&gt;

(What I'm trying to do is to use the promote of  TaskListServiceComponent/TaskListService
  in "TaskService" and  put a  ws binding  in "TaskService" for doing an explicit and conceptualy
correct "service exposition", and allow the composite to be accesed trough web services from
any place.)


**** You can see the WSDL generated when I access to (http://localhost:8080/ptool-task-sca-ws/TaskService?wsdl)
here :

http://codepaste.net/pkjiu3


¿I missed something in the .composite?


*****Additionally I developed a client for that web service and I don't know if it will going
to work (I suppose it works like any ws but I want to be sure), this is the code of my client

	String wsdlURL = "http://localhost:8080/ptool-task-sca-ws/TaskService?wsdl";
	String namespace = "http://eclipse.org/PlanningToolSCA/src/Task";
	String serviceName = "TaskService";
	QName serviceQN = new QName(namespace, serviceName);        
	ServiceFactory serviceFactory = ServiceFactory.newInstance();
	/* The "new URL(wsdlURL)" parameter is optional */
	Service service = serviceFactory.createService(serviceQN);
	Call mycall = service.createCall();
	Object response = mycall.invoke();



Thanks for your help!

Best Regards
David



</pre>
</div>
</content>
</entry>
<entry>
<title>Runtime problem running webapp with web service binding</title>
<author><name>David Sanchez Escobar &lt;davock@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tuscany-user/200912.mbox/%3c9ea9074f0912020652u76c2a8b2m1e313ea8cfe15598@mail.gmail.com%3e"/>
<id>urn:uuid:%3c9ea9074f0912020652u76c2a8b2m1e313ea8cfe15598@mail-gmail-com%3e</id>
<updated>2009-12-02T14:52:14Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi Guys!

I have a wsdl definition problem running a webapp. When I access  to the
service (http://localhost:8080/ptool-task-sca-ws/TaskService) I got this
error

org.apache.axis2.AxisFault: The endpoint reference (EPR) for the Operation
not found is /ptool-task-sca-ws/TaskService and the WSA Action = null at
org.apache.axis2.engine.DispatchPhase.checkPostConditions(DispatchPhase.java:89)
at org.apache.axis2.engine.Phase.invoke(Phase.java:333) at
org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:264) at
org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:163) at
org.apache.axis2.transport.http.util.RESTUtil.invokeAxisEngine(RESTUtil.java:136)
at
org.apache.axis2.transport.http.util.RESTUtil.processURLRequest(RESTUtil.java:130)
at
org.apache.axis2.transport.http.AxisServlet$RestRequestProcessor.processURLRequest(AxisServlet.java:829)
at org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:255)
at
org.apache.tuscany.sca.binding.ws.axis2.Axis2ServiceServlet.doGet(Axis2ServiceServlet.java:321)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:617) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at
org.apache.tuscany.sca.host.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:107)
at
org.apache.tuscany.sca.host.webapp.TuscanyServletFilter.doFilter(TuscanyServletFilter.java:94)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
...


I deployed the contribution as a webapp in Tomcat with a ws.binding in this
way:

***  .composite graphical diagram

http://www.imageno.com/zckmhtxj3k0ipic.html

*** This is the code of the .composite definition

&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;sca:composite xmlns:sca="http://www.osoa.org/xmlns/sca/1.0" name="Task"
targetNamespace="http://eclipse.org/PlanningToolSCA/src/Task"&gt;
 &lt;sca:component name="TaskListServiceComponent"&gt;
 &lt;sca:implementation.java class="main.task.lib.TaskListServiceImpl"/&gt;
 &lt;sca:service name="TaskListService"&gt;
 &lt;sca:interface.java interface="main.task.api.TaskListService"/&gt;
 &lt;/sca:service&gt;
 &lt;sca:reference name="taskCrudService"/&gt;
 &lt;/sca:component&gt;
 &lt;sca:service name="TaskService"
promote="TaskListServiceComponent/TaskListService"&gt;
 &lt;sca:binding.ws uri="http://localhost:8080/ptool-task-sca-ws/TaskService"/&gt;
 &lt;/sca:service&gt;
 &lt;sca:component name="TaskServiceComponent"&gt;
 &lt;sca:implementation.java class="main.task.lib.TaskCrudServiceImpl"/&gt;
 &lt;sca:service name="TaskCrudService"&gt;
 &lt;sca:interface.java interface="main.task.api.TaskCrudService"/&gt;
 &lt;/sca:service&gt;
 &lt;/sca:component&gt;
 &lt;sca:wire source="TaskListServiceComponent/taskCrudService"
target="TaskServiceComponent/TaskCrudService"/&gt;
&lt;/sca:composite&gt;

(What I'm trying to do is to use the promote of
 TaskListServiceComponent/TaskListService   in "TaskService" and  put a  ws
binding  in "TaskService" for doing an explicit and conceptualy correct
"service exposition", and allow the composite to be accesed trough web
services from any place.)


**** You can see the WSDL generated when I access to (
http://localhost:8080/ptool-task-sca-ws/TaskService?wsdl) here :

http://codepaste.net/pkjiu3


¿I missed something in the .composite?


*****Additionally I developed a client for that web service and I don't know
if it will going to work (I suppose it works like any ws but I want to be
sure), this is the code of my client

String wsdlURL = "http://localhost:8080/ptool-task-sca-ws/TaskService?wsdl";
String namespace = "http://eclipse.org/PlanningToolSCA/src/Task";
String serviceName = "TaskService";
QName serviceQN = new QName(namespace, serviceName);
ServiceFactory serviceFactory = ServiceFactory.newInstance();
 /* The "new URL(wsdlURL)" parameter is optional */
Service service = serviceFactory.createService(serviceQN);
Call mycall = service.createCall();
Object response = mycall.invoke();



Thanks for your help!

Best Regards
David


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Problem running an application in Tomcat + related questions</title>
<author><name>David Sanchez Escobar &lt;davock@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tuscany-user/200912.mbox/%3c9ea9074f0912011336n49dc047fn52cd4adc60fb4337@mail.gmail.com%3e"/>
<id>urn:uuid:%3c9ea9074f0912011336n49dc047fn52cd4adc60fb4337@mail-gmail-com%3e</id>
<updated>2009-12-01T21:36:41Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Thank you Raymond !! that fixed the contribution problem! I will post the
questions about web service binding and a problem related in a  new thread


On Tue, Dec 1, 2009 at 12:08 PM, David Sanchez Escobar &lt;davock@gmail.com&gt;wrote:

&gt; Hi guys!
&gt;
&gt; I have a problem  wen I run (trough a jsp page inside the package) a webapp
&gt; deployed in tomcat
&gt;
&gt;
&gt; ********** This is the error log :
&gt;
&gt; org.apache.jasper.JasperException: Ha sucedido una excepción al procesar la página JSP
/taskclient.jsp en línea 26
&gt;
&gt; 23: &lt;%@ page contentType="text/html;charset=UTF-8" language="java" %&gt;
&gt; 24: &lt;%
&gt; 25:    SCADomain scaDomain = (SCADomain) application.getAttribute("org.apache.tuscany.sca.SCADomain");
&gt; 26:    TaskListService taskListService = scaDomain.getService(TaskListService.class,
"TaskListServiceComponent");
&gt; 27:    TaskList tl = taskListService.createTaskList(12, 22);
&gt; 28:    long listId = tl.getId();
&gt; 29: %&gt;
&gt;
&gt;
&gt; Stacktrace:
&gt; 	org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:505)
&gt; 	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:416)
&gt; 	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
&gt; 	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
&gt; 	javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
&gt; 	org.apache.tuscany.sca.host.webapp.TuscanyServletFilter.doFilter(TuscanyServletFilter.java:99)
&gt;
&gt;  org.osoa.sca.ServiceRuntimeException: The service
&gt; TaskListServiceComponent has not been contributed to the domain
&gt;
&gt; 	org.apache.tuscany.sca.node.impl.NodeImpl.getServiceReference(NodeImpl.java:791)
&gt; 	org.apache.tuscany.sca.node.impl.NodeImpl.getService(NodeImpl.java:758)
&gt; 	org.apache.tuscany.sca.host.embedded.impl.DefaultSCADomain.getService(DefaultSCADomain.java:232)
&gt; 	org.apache.jsp.taskclient_jsp._jspService(taskclient_jsp.java:63)
&gt; 	org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
&gt; 	javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
&gt; 	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
&gt; 	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
&gt; 	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
&gt; 	javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
&gt; 	org.apache.tuscany.sca.host.webapp.TuscanyServletFilter.doFilter(TuscanyServletFilter.java:99)
&gt;
&gt;
&gt; As you can see it says that  TaskListServiceComponent has not been contributed to the
domain.
&gt;
&gt;
&gt; ******** This is the composite of my webapp:
&gt;
&gt;
&gt; &lt;?xml version="1.0" encoding="UTF-8"?&gt;
&gt; &lt;sca:composite xmlns:sca="http://www.osoa.org/xmlns/sca/1.0" name="Task" targetNamespace="http://eclipse.org/PlanningToolSCA/src/Task"&gt;
&gt;   &lt;sca:component name="TaskListServiceComponent"&gt;
&gt;     &lt;sca:implementation.java class="main.task.lib.TaskListServiceImpl"/&gt;
&gt;     &lt;sca:service name="TaskListService"&gt;
&gt;       &lt;sca:interface.java interface="main.task.api.TaskListService"/&gt;
&gt;     &lt;/sca:service&gt;
&gt;     &lt;sca:reference name="taskCrudService"/&gt;
&gt;   &lt;/sca:component&gt;
&gt;   &lt;sca:service name="TaskService" promote="TaskListServiceComponent/TaskListService"/&gt;
&gt;   &lt;sca:component name="TaskServiceComponent"&gt;
&gt;     &lt;sca:implementation.java class="main.task.lib.TaskCrudServiceImpl"/&gt;
&gt;     &lt;sca:service name="TaskCrudService"&gt;
&gt;       &lt;sca:interface.java interface="main.task.api.TaskCrudService"/&gt;
&gt;     &lt;/sca:service&gt;
&gt;   &lt;/sca:component&gt;
&gt;   &lt;sca:wire source="TaskListServiceComponent/taskCrudService" target="TaskServiceComponent/TaskCrudService"/&gt;
&gt; &lt;/sca:composite&gt;
&gt;
&gt; You can see graphically my composite here: http://www.imageno.com/gdvq0mpmyxjkpic.html
&gt;
&gt; ******** This is the sca-contribution.xml file
&gt;
&gt; &lt;contribution xmlns="http://www.osoa.org/xmlns/sca/1.0"
&gt;
&gt;               xmlns:ptool="http://ptool"&gt;
&gt;    &lt;deployable composite="ptool:Task"/&gt;
&gt; &lt;/contribution&gt;
&gt;
&gt;
&gt; ******** This is the web.xml file
&gt;
&gt; &lt;!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web
&gt; Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd"&gt;
&gt; &lt;web-app&gt;
&gt;
&gt;   &lt;display-name&gt;Planning Tool SCA Task&lt;/display-name&gt;
&gt;
&gt;   &lt;filter&gt;
&gt;     &lt;filter-name&gt;tuscany&lt;/filter-name&gt;
&gt;     &lt;filter-class&gt;org.apache.tuscany.sca.host.webapp.TuscanyServletFilter&lt;/filter-class&gt;
&gt;   &lt;/filter&gt;
&gt;
&gt;   &lt;filter-mapping&gt;
&gt;     &lt;filter-name&gt;tuscany&lt;/filter-name&gt;
&gt;     &lt;url-pattern&gt;/*&lt;/url-pattern&gt;
&gt;   &lt;/filter-mapping&gt;
&gt;
&gt;
&gt;   &lt;welcome-file-list id="WelcomeFileList"&gt;
&gt;     &lt;welcome-file&gt;taskclient.jsp&lt;/welcome-file&gt;
&gt;   &lt;/welcome-file-list&gt;
&gt; &lt;/web-app&gt;
&gt;
&gt;
&gt; This is the structure of the .war that I put in the tomcat webapps folder ( I follow
the calculator-ws-webapp example for this because I want to use a ws binding in this way :
http://www.imageno.com/zckmhtxj3k0ipic.html   )
&gt;
&gt; WEB-INF
&gt;
&gt;   lib
&gt;
&gt;   classes
&gt;
&gt;       main
&gt;
&gt;       Task.composite
&gt;
&gt;   web.xml
&gt;
&gt;   geronimo
&gt;
&gt; META-INF
&gt;
&gt; taskclient.jsp
&gt;
&gt; manifest.mf
&gt;
&gt;
&gt;
&gt; That's about my execution problem, additionaly I have some doubts regards
&gt; the samples in the tuscany installation (and some general):
&gt;
&gt; 1. The files .composite defined in the samples don't use wires, since I
&gt; understand when you don't use wires is because you are using bindings for
&gt; communicating the components inside a composite. ¿Is that right? ¿Is there
&gt; any restriction for using wires when you run a contribution in Tomcat for
&gt; example?
&gt;
&gt; 2. ¿Is POJO the standard comunication mechanism in the tuscany
&gt; implementation when you use wires between components inside a Composite?
&gt;
&gt;
&gt; 3. ¿Is there any example of many SCA Domains deployed as webapps in Tomcat
&gt; that use ws bindings (located as a service of the composite, when this
&gt; service is related trough a promotion of a component inside the composite)
&gt; that are communicating between them trough those bindings?
&gt;
&gt;
&gt; Your help will be apreciatted
&gt;
&gt;
&gt;
&gt;


-- 
Super Ácido UP {OvO}


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Problem running an application in Tomcat + related questions</title>
<author><name>&quot;Raymond Feng&quot; &lt;enjoyjava@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tuscany-user/200912.mbox/%3cD8E699F68D614788A6F09545522E453B@rfengt61p%3e"/>
<id>urn:uuid:%3cD8E699F68D614788A6F09545522E453B@rfengt61p%3e</id>
<updated>2009-12-01T18:57:25Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi,

The sca-contribution.xml uses a wrong qname for the composite. It should be:
&lt;contribution xmlns="http://www.osoa.org/xmlns/sca/1.0"              xmlns:ptool="http://eclipse.org/PlanningToolSCA/src/Task"&gt;
   &lt;deployable composite="ptool:Task"/&gt;
&lt;/contribution&gt;Thanks,
Raymond

From: David Sanchez Escobar 
Sent: Tuesday, December 01, 2009 9:08 AM
To: user@tuscany.apache.org 
Subject: Problem running an application in Tomcat + related questions


Hi guys! 


I have a problem  wen I run (trough a jsp page inside the package) a webapp deployed in tomcat




********** This is the error log :


org.apache.jasper.JasperException: Ha sucedido una excepción al procesar la página JSP /taskclient.jsp
en línea 26

23: &lt;%@ page contentType="text/html;charset=UTF-8" language="java" %&gt;
24: &lt;%
25:    SCADomain scaDomain = (SCADomain) application.getAttribute("org.apache.tuscany.sca.SCADomain");
26:    TaskListService taskListService = scaDomain.getService(TaskListService.class, "TaskListServiceComponent");
27:    TaskList tl = taskListService.createTaskList(12, 22);
28:    long listId = tl.getId();
29: %&gt;


Stacktrace:
	org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:505)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:416)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
	org.apache.tuscany.sca.host.webapp.TuscanyServletFilter.doFilter(TuscanyServletFilter.java:99)

org.osoa.sca.ServiceRuntimeException: The service TaskListServiceComponent has not been contributed
to the domain

	org.apache.tuscany.sca.node.impl.NodeImpl.getServiceReference(NodeImpl.java:791)
	org.apache.tuscany.sca.node.impl.NodeImpl.getService(NodeImpl.java:758)
	org.apache.tuscany.sca.host.embedded.impl.DefaultSCADomain.getService(DefaultSCADomain.java:232)
	org.apache.jsp.taskclient_jsp._jspService(taskclient_jsp.java:63)
	org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
	org.apache.tuscany.sca.host.webapp.TuscanyServletFilter.doFilter(TuscanyServletFilter.java:99)As
you can see it says that  TaskListServiceComponent has not been contributed to the domain.********
This is the composite of my webapp:&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;sca:composite xmlns:sca="http://www.osoa.org/xmlns/sca/1.0" name="Task" targetNamespace="http://eclipse.org/PlanningToolSCA/src/Task"&gt;
  &lt;sca:component name="TaskListServiceComponent"&gt;
    &lt;sca:implementation.java class="main.task.lib.TaskListServiceImpl"/&gt;
    &lt;sca:service name="TaskListService"&gt;
      &lt;sca:interface.java interface="main.task.api.TaskListService"/&gt;
    &lt;/sca:service&gt;
    &lt;sca:reference name="taskCrudService"/&gt;
  &lt;/sca:component&gt;
  &lt;sca:service name="TaskService" promote="TaskListServiceComponent/TaskListService"/&gt;
  &lt;sca:component name="TaskServiceComponent"&gt;
    &lt;sca:implementation.java class="main.task.lib.TaskCrudServiceImpl"/&gt;
    &lt;sca:service name="TaskCrudService"&gt;
      &lt;sca:interface.java interface="main.task.api.TaskCrudService"/&gt;
    &lt;/sca:service&gt;
  &lt;/sca:component&gt;
  &lt;sca:wire source="TaskListServiceComponent/taskCrudService" target="TaskServiceComponent/TaskCrudService"/&gt;
&lt;/sca:composite&gt;You can see graphically my composite here: http://www.imageno.com/gdvq0mpmyxjkpic.html********
This is the sca-contribution.xml file
&lt;contribution xmlns="http://www.osoa.org/xmlns/sca/1.0"              xmlns:ptool="http://ptool"&gt;
   &lt;deployable composite="ptool:Task"/&gt;
&lt;/contribution&gt;******** This is the web.xml file
&lt;!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web
Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd"&gt;
&lt;web-app&gt;

  &lt;display-name&gt;Planning Tool SCA Task&lt;/display-name&gt;

  &lt;filter&gt;
    &lt;filter-name&gt;tuscany&lt;/filter-name&gt; 
    &lt;filter-class&gt;org.apache.tuscany.sca.host.webapp.TuscanyServletFilter&lt;/filter-class&gt;

  &lt;/filter&gt;

  &lt;filter-mapping&gt;
    &lt;filter-name&gt;tuscany&lt;/filter-name&gt; 
    &lt;url-pattern&gt;/*&lt;/url-pattern&gt; 
  &lt;/filter-mapping&gt;

  
  &lt;welcome-file-list id="WelcomeFileList"&gt;
    &lt;welcome-file&gt;taskclient.jsp&lt;/welcome-file&gt;
  &lt;/welcome-file-list&gt;
&lt;/web-app&gt;This is the structure of the .war that I put in the tomcat webapps folder
( I follow the calculator-ws-webapp example for this because I want to use a ws binding in
this way : http://www.imageno.com/zckmhtxj3k0ipic.html   )
WEB-INF  lib  classes      main      Task.composite  web.xml  geronimo  META-INFtaskclient.jspmanifest.mf
That's about my execution problem, additionaly I have some doubts regards the samples in the
tuscany installation (and some general):
1. The files .composite defined in the samples don't use wires, since I understand when you
don't use wires is because you are using bindings for communicating the components inside
a composite. ¿Is that right?  ¿Is there any restriction for using wires when you run a contribution
in Tomcat for example?
2. ¿Is POJO the standard comunication mechanism in the tuscany implementation when you use
wires between components inside a Composite?

3. ¿Is there any example of many SCA Domains deployed as webapps in Tomcat that use ws bindings
(located as a service of the composite, when this service is related trough a promotion of
a component inside the composite) that are communicating between them trough those bindings?

Your help will be apreciatted




</pre>
</div>
</content>
</entry>
<entry>
<title>Problem running an application in Tomcat + related questions</title>
<author><name>David Sanchez Escobar &lt;davock@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tuscany-user/200912.mbox/%3c9ea9074f0912010908t2d109210j924135c952adcf5f@mail.gmail.com%3e"/>
<id>urn:uuid:%3c9ea9074f0912010908t2d109210j924135c952adcf5f@mail-gmail-com%3e</id>
<updated>2009-12-01T17:08:07Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi guys!

I have a problem  wen I run (trough a jsp page inside the package) a webapp
deployed in tomcat


********** This is the error log :

org.apache.jasper.JasperException: Ha sucedido una excepción al
procesar la página JSP /taskclient.jsp en línea 26

23: &lt;%@ page contentType="text/html;charset=UTF-8" language="java" %&gt;
24: &lt;%
25:    SCADomain scaDomain = (SCADomain)
application.getAttribute("org.apache.tuscany.sca.SCADomain");
26:    TaskListService taskListService =
scaDomain.getService(TaskListService.class,
"TaskListServiceComponent");
27:    TaskList tl = taskListService.createTaskList(12, 22);
28:    long listId = tl.getId();
29: %&gt;


Stacktrace:
	org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:505)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:416)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
	org.apache.tuscany.sca.host.webapp.TuscanyServletFilter.doFilter(TuscanyServletFilter.java:99)

org.osoa.sca.ServiceRuntimeException: The service TaskListServiceComponent
has not been contributed to the domain

	org.apache.tuscany.sca.node.impl.NodeImpl.getServiceReference(NodeImpl.java:791)
	org.apache.tuscany.sca.node.impl.NodeImpl.getService(NodeImpl.java:758)
	org.apache.tuscany.sca.host.embedded.impl.DefaultSCADomain.getService(DefaultSCADomain.java:232)
	org.apache.jsp.taskclient_jsp._jspService(taskclient_jsp.java:63)
	org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
	org.apache.tuscany.sca.host.webapp.TuscanyServletFilter.doFilter(TuscanyServletFilter.java:99)


As you can see it says that  TaskListServiceComponent has not been
contributed to the domain.


******** This is the composite of my webapp:


&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;sca:composite xmlns:sca="http://www.osoa.org/xmlns/sca/1.0"
name="Task" targetNamespace="http://eclipse.org/PlanningToolSCA/src/Task"&gt;
  &lt;sca:component name="TaskListServiceComponent"&gt;
    &lt;sca:implementation.java class="main.task.lib.TaskListServiceImpl"/&gt;
    &lt;sca:service name="TaskListService"&gt;
      &lt;sca:interface.java interface="main.task.api.TaskListService"/&gt;
    &lt;/sca:service&gt;
    &lt;sca:reference name="taskCrudService"/&gt;
  &lt;/sca:component&gt;
  &lt;sca:service name="TaskService"
promote="TaskListServiceComponent/TaskListService"/&gt;
  &lt;sca:component name="TaskServiceComponent"&gt;
    &lt;sca:implementation.java class="main.task.lib.TaskCrudServiceImpl"/&gt;
    &lt;sca:service name="TaskCrudService"&gt;
      &lt;sca:interface.java interface="main.task.api.TaskCrudService"/&gt;
    &lt;/sca:service&gt;
  &lt;/sca:component&gt;
  &lt;sca:wire source="TaskListServiceComponent/taskCrudService"
target="TaskServiceComponent/TaskCrudService"/&gt;
&lt;/sca:composite&gt;

You can see graphically my composite here:
http://www.imageno.com/gdvq0mpmyxjkpic.html

******** This is the sca-contribution.xml file

&lt;contribution xmlns="http://www.osoa.org/xmlns/sca/1.0"

              xmlns:ptool="http://ptool"&gt;
   &lt;deployable composite="ptool:Task"/&gt;
&lt;/contribution&gt;


******** This is the web.xml file

&lt;!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web
Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd"&gt;
&lt;web-app&gt;

  &lt;display-name&gt;Planning Tool SCA Task&lt;/display-name&gt;

  &lt;filter&gt;
    &lt;filter-name&gt;tuscany&lt;/filter-name&gt;
    &lt;filter-class&gt;org.apache.tuscany.sca.host.webapp.TuscanyServletFilter&lt;/filter-class&gt;
  &lt;/filter&gt;

  &lt;filter-mapping&gt;
    &lt;filter-name&gt;tuscany&lt;/filter-name&gt;
    &lt;url-pattern&gt;/*&lt;/url-pattern&gt;
  &lt;/filter-mapping&gt;


  &lt;welcome-file-list id="WelcomeFileList"&gt;
    &lt;welcome-file&gt;taskclient.jsp&lt;/welcome-file&gt;
  &lt;/welcome-file-list&gt;
&lt;/web-app&gt;


This is the structure of the .war that I put in the tomcat webapps
folder ( I follow the calculator-ws-webapp example for this because I
want to use a ws binding in this way :
http://www.imageno.com/zckmhtxj3k0ipic.html   )

WEB-INF

  lib

  classes

      main

      Task.composite

  web.xml

  geronimo

META-INF

taskclient.jsp

manifest.mf



That's about my execution problem, additionaly I have some doubts regards
the samples in the tuscany installation (and some general):

1. The files .composite defined in the samples don't use wires, since I
understand when you don't use wires is because you are using bindings for
communicating the components inside a composite. ¿Is that right? ¿Is there
any restriction for using wires when you run a contribution in Tomcat for
example?

2. ¿Is POJO the standard comunication mechanism in the tuscany
implementation when you use wires between components inside a Composite?


3. ¿Is there any example of many SCA Domains deployed as webapps in Tomcat
that use ws bindings (located as a service of the composite, when this
service is related trough a promotion of a component inside the composite)
that are communicating between them trough those bindings?


Your help will be apreciatted


</pre>
</div>
</content>
</entry>
<entry>
<title>Fw: OSGi 4.2 Enterprise Release Early Access Draft</title>
<author><name>&quot;Raymond Feng&quot; &lt;enjoyjava@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tuscany-user/200912.mbox/%3cF05DCF92BD4B48779FA923433AFCDA6E@rfengt61p%3e"/>
<id>urn:uuid:%3cF05DCF92BD4B48779FA923433AFCDA6E@rfengt61p%3e</id>
<updated>2009-12-01T16:38:41Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
FYI. Tuscany 2.x has an initial implementation of:

* SCA Configuration Type for Remote Services
* Remote Service Admin

http://apache-tuscany.blogspot.com/2009/11/apachecon-update-osgi-remote-services.html

Thanks,
Raymond

--------------------------------------------------
From: "David Bosschaert" &lt;david.bosschaert@gmail.com&gt;
Sent: Tuesday, December 01, 2009 12:06 AM
To: &lt;aries-dev@incubator.apache.org&gt;
Subject: OSGi 4.2 Enterprise Release Early Access Draft

&gt; Hi all,
&gt;
&gt; FYI a new Early Access draft of the 4.2 Enterprise Release has just
&gt; been made available. You can find it here:
&gt; http://www.osgi.org/download/osgi-4.2-enterprise-early-draft4.pdf
&gt; For more info see also:
&gt; http://osgithoughts.blogspot.com/2009/12/osgi-42-enterprise-release-early-access.html
&gt;
&gt; Best regards,
&gt;
&gt; David 



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: How do I do the following.</title>
<author><name>kelvin goodson &lt;kelvingoodson@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tuscany-user/200911.mbox/%3c9deac9fd0911300249i5cef4ce4q946076824ce91d94@mail.gmail.com%3e"/>
<id>urn:uuid:%3c9deac9fd0911300249i5cef4ce4q946076824ce91d94@mail-gmail-com%3e</id>
<updated>2009-11-30T10:49:11Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
The interface code for the 2.1 API is in the tuscany SDO 1.1.1 source
code download. The SDO 2.1 spec is available at [1]. This is the level
that tuscany SDO complies to.

Kelvin.

[1] http://www.osoa.org/display/Main/Service+Data+Objects+Specifications

2009/11/30 Malisetti, Ramanjaneyulu &lt;Ramanjaneyulu.Malisetti@ca.com&gt;:
&gt; Is SDO 2.1 API available for download?
&gt;
&gt; Regards
&gt; Raman
&gt;
&gt; -----Original Message-----
&gt; From: kelvin goodson [mailto:kelvingoodson@gmail.com]
&gt; Sent: Monday, 30 November 2009 3:39 PM
&gt; To: user@tuscany.apache.org
&gt; Subject: Re: How do I do the following.
&gt;
&gt; Ajay,
&gt;
&gt; all I can think of at the moment is that you are seeing differences
&gt; due to parsing of open content. The SDO 2.1 API now contains the
&gt; DataObject method getInstanceProperties() which includes all the
&gt; properties declared in the Type, plus any that have been created on
&gt; the fly by virtue of the fact that the schema permitted open content
&gt; and the document contained undeclared elements.  What do you get for
&gt; bo.getInstanceProperties() in your example?
&gt;
&gt; Kelvin.
&gt;
&gt; 2009/11/25 Amrite, Ajay &lt;Ajay.Amrite@bskyb.com&gt;:
&gt;&gt; Hi,
&gt;&gt;
&gt;&gt;
&gt;&gt;
&gt;&gt; I have some code that runs in WebSphere and uses the SDO
&gt; implementation that
&gt;&gt; comes with WebSphere.
&gt;&gt;
&gt;&gt; I want to run the same SDO code using Tuscany SDO implementation but I
&gt; am
&gt;&gt; having problems with that.
&gt;&gt;
&gt;&gt; I would assume that all the interfaces should continue to work the
&gt; same, for
&gt;&gt; example
&gt;&gt;
&gt;&gt;
&gt;&gt;
&gt;&gt; bo.getType().getProperties()
&gt;&gt;
&gt;&gt; On WebSphere SDO I get a list of attributes in the BO.
&gt;&gt;
&gt;&gt; In Tuscany SDO I get an empty list.
&gt;&gt;
&gt;&gt;
&gt;&gt;
&gt;&gt; I don't why this is happening.
&gt;&gt;
&gt;&gt;
&gt;&gt;
&gt;&gt; Please help.
&gt;&gt;
&gt;&gt;
&gt;&gt;
&gt;&gt; Ajay.
&gt;&gt;
&gt;&gt;
&gt;&gt;
&gt;&gt;
&gt;&gt;
&gt;&gt; ________________________________
&gt;&gt;
&gt;&gt; Information in this email including any attachments may be privileged,
&gt;&gt; confidential and is intended exclusively for the addressee. The views
&gt;&gt; expressed may not be official policy, but the personal views of the
&gt;&gt; originator. If you have received it in error, please notify the sender
&gt; by
&gt;&gt; return e-mail and delete it from your system. You should not
&gt; reproduce,
&gt;&gt; distribute, store, retransmit, use or disclose its contents to anyone.
&gt;&gt; Please note we reserve the right to monitor all e-mail communication
&gt; through
&gt;&gt; our internal and external networks. SKY and the SKY marks are trade
&gt; marks of
&gt;&gt; British Sky Broadcasting Group plc and are used under licence. British
&gt; Sky
&gt;&gt; Broadcasting Limited (Registration No. 2906991), Sky Interactive
&gt; Limited
&gt;&gt; (Registration No. 3554332), Sky-In-Home Service Limited (Registration
&gt; No.
&gt;&gt; 2067075) and Sky Subscribers Services Limited (Registration No.
&gt; 2340150) are
&gt;&gt; direct or indirect subsidiaries of British Sky Broadcasting Group plc
&gt;&gt; (Registration No. 2247735). All of the companies mentioned in this
&gt; paragraph
&gt;&gt; are incorporated in England and Wales and share the same registered
&gt; office
&gt;&gt; at Grant Way, Isleworth, Middlesex TW7 5QD.
&gt;
&gt;


</pre>
</div>
</content>
</entry>
<entry>
<title>RE: How do I do the following.</title>
<author><name>&quot;Malisetti, Ramanjaneyulu&quot; &lt;Ramanjaneyulu.Malisetti@ca.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tuscany-user/200911.mbox/%3c9AB704E9182FC34D97F394D449EE17DC88AFB6@INHYMS12.ca.com%3e"/>
<id>urn:uuid:%3c9AB704E9182FC34D97F394D449EE17DC88AFB6@INHYMS12-ca-com%3e</id>
<updated>2009-11-30T10:20:19Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Is SDO 2.1 API available for download?

Regards
Raman

-----Original Message-----
From: kelvin goodson [mailto:kelvingoodson@gmail.com] 
Sent: Monday, 30 November 2009 3:39 PM
To: user@tuscany.apache.org
Subject: Re: How do I do the following.

Ajay,

all I can think of at the moment is that you are seeing differences
due to parsing of open content. The SDO 2.1 API now contains the
DataObject method getInstanceProperties() which includes all the
properties declared in the Type, plus any that have been created on
the fly by virtue of the fact that the schema permitted open content
and the document contained undeclared elements.  What do you get for
bo.getInstanceProperties() in your example?

Kelvin.

2009/11/25 Amrite, Ajay &lt;Ajay.Amrite@bskyb.com&gt;:
&gt; Hi,
&gt;
&gt;
&gt;
&gt; I have some code that runs in WebSphere and uses the SDO
implementation that
&gt; comes with WebSphere.
&gt;
&gt; I want to run the same SDO code using Tuscany SDO implementation but I
am
&gt; having problems with that.
&gt;
&gt; I would assume that all the interfaces should continue to work the
same, for
&gt; example
&gt;
&gt;
&gt;
&gt; bo.getType().getProperties()
&gt;
&gt; On WebSphere SDO I get a list of attributes in the BO.
&gt;
&gt; In Tuscany SDO I get an empty list.
&gt;
&gt;
&gt;
&gt; I don't why this is happening.
&gt;
&gt;
&gt;
&gt; Please help.
&gt;
&gt;
&gt;
&gt; Ajay.
&gt;
&gt;
&gt;
&gt;
&gt;
&gt; ________________________________
&gt;
&gt; Information in this email including any attachments may be privileged,
&gt; confidential and is intended exclusively for the addressee. The views
&gt; expressed may not be official policy, but the personal views of the
&gt; originator. If you have received it in error, please notify the sender
by
&gt; return e-mail and delete it from your system. You should not
reproduce,
&gt; distribute, store, retransmit, use or disclose its contents to anyone.
&gt; Please note we reserve the right to monitor all e-mail communication
through
&gt; our internal and external networks. SKY and the SKY marks are trade
marks of
&gt; British Sky Broadcasting Group plc and are used under licence. British
Sky
&gt; Broadcasting Limited (Registration No. 2906991), Sky Interactive
Limited
&gt; (Registration No. 3554332), Sky-In-Home Service Limited (Registration
No.
&gt; 2067075) and Sky Subscribers Services Limited (Registration No.
2340150) are
&gt; direct or indirect subsidiaries of British Sky Broadcasting Group plc
&gt; (Registration No. 2247735). All of the companies mentioned in this
paragraph
&gt; are incorporated in England and Wales and share the same registered
office
&gt; at Grant Way, Isleworth, Middlesex TW7 5QD.



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: How do I do the following.</title>
<author><name>kelvin goodson &lt;kelvingoodson@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tuscany-user/200911.mbox/%3c9deac9fd0911300209x6bb32828q976e0222baf05462@mail.gmail.com%3e"/>
<id>urn:uuid:%3c9deac9fd0911300209x6bb32828q976e0222baf05462@mail-gmail-com%3e</id>
<updated>2009-11-30T10:09:06Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Ajay,

all I can think of at the moment is that you are seeing differences
due to parsing of open content. The SDO 2.1 API now contains the
DataObject method getInstanceProperties() which includes all the
properties declared in the Type, plus any that have been created on
the fly by virtue of the fact that the schema permitted open content
and the document contained undeclared elements.  What do you get for
bo.getInstanceProperties() in your example?

Kelvin.

2009/11/25 Amrite, Ajay &lt;Ajay.Amrite@bskyb.com&gt;:
&gt; Hi,
&gt;
&gt;
&gt;
&gt; I have some code that runs in WebSphere and uses the SDO implementation that
&gt; comes with WebSphere.
&gt;
&gt; I want to run the same SDO code using Tuscany SDO implementation but I am
&gt; having problems with that.
&gt;
&gt; I would assume that all the interfaces should continue to work the same, for
&gt; example
&gt;
&gt;
&gt;
&gt; bo.getType().getProperties()
&gt;
&gt; On WebSphere SDO I get a list of attributes in the BO.
&gt;
&gt; In Tuscany SDO I get an empty list.
&gt;
&gt;
&gt;
&gt; I don’t why this is happening.
&gt;
&gt;
&gt;
&gt; Please help.
&gt;
&gt;
&gt;
&gt; Ajay.
&gt;
&gt;
&gt;
&gt;
&gt;
&gt; ________________________________
&gt;
&gt; Information in this email including any attachments may be privileged,
&gt; confidential and is intended exclusively for the addressee. The views
&gt; expressed may not be official policy, but the personal views of the
&gt; originator. If you have received it in error, please notify the sender by
&gt; return e-mail and delete it from your system. You should not reproduce,
&gt; distribute, store, retransmit, use or disclose its contents to anyone.
&gt; Please note we reserve the right to monitor all e-mail communication through
&gt; our internal and external networks. SKY and the SKY marks are trade marks of
&gt; British Sky Broadcasting Group plc and are used under licence. British Sky
&gt; Broadcasting Limited (Registration No. 2906991), Sky Interactive Limited
&gt; (Registration No. 3554332), Sky-In-Home Service Limited (Registration No.
&gt; 2067075) and Sky Subscribers Services Limited (Registration No. 2340150) are
&gt; direct or indirect subsidiaries of British Sky Broadcasting Group plc
&gt; (Registration No. 2247735). All of the companies mentioned in this paragraph
&gt; are incorporated in England and Wales and share the same registered office
&gt; at Grant Way, Isleworth, Middlesex TW7 5QD.


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: [OT] Production references applications</title>
<author><name>=?ISO-8859-1?Q?Daniel_Mej=EDa?= &lt;mejiad@evol-tech.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tuscany-user/200911.mbox/%3c9DB3E637-0790-4D64-8BE3-1B99A8435992@evol-tech.com%3e"/>
<id>urn:uuid:%3c9DB3E637-0790-4D64-8BE3-1B99A8435992@evol-tech-com%3e</id>
<updated>2009-11-28T16:52:13Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Luciano,

Yes, this is what i was looking for.

Saludos,

Daniel.

El 27/11/2009, a las 05:17 p.m., Luciano Resende escribió:

&gt; 2009/11/27 Daniel Mejía &lt;mejiad@evol-tech.com&gt;:
&gt;&gt; Hi all,
&gt;&gt;
&gt;&gt; Is there any site where I can see some reference to appications or  
&gt;&gt; success
&gt;&gt; stories using tuscany?
&gt;&gt;
&gt;&gt; Regards,
&gt;&gt;
&gt;&gt; Daniel.
&gt;&gt;
&gt;
&gt; Is this what you are looking for :
&gt; http://tuscany.apache.org/projects-using-tuscany.html
&gt;
&gt;
&gt; -- 
&gt; Luciano Resende
&gt; http://people.apache.org/~lresende
&gt; http://lresende.blogspot.com/



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: [OT] Production references applications</title>
<author><name>Luciano Resende &lt;luckbr1975@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tuscany-user/200911.mbox/%3c5a75db780911271517g6c680778wc64323ba5bd63309@mail.gmail.com%3e"/>
<id>urn:uuid:%3c5a75db780911271517g6c680778wc64323ba5bd63309@mail-gmail-com%3e</id>
<updated>2009-11-27T23:17:35Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
2009/11/27 Daniel Mejía &lt;mejiad@evol-tech.com&gt;:
&gt; Hi all,
&gt;
&gt; Is there any site where I can see some reference to appications or success
&gt; stories using tuscany?
&gt;
&gt; Regards,
&gt;
&gt; Daniel.
&gt;

Is this what you are looking for :
http://tuscany.apache.org/projects-using-tuscany.html


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


</pre>
</div>
</content>
</entry>
<entry>
<title>[OT] Production references applications</title>
<author><name>=?ISO-8859-1?Q?Daniel_Mej=EDa?= &lt;mejiad@evol-tech.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tuscany-user/200911.mbox/%3c92FDF6EE-A440-4704-ACD4-D71A042682E1@evol-tech.com%3e"/>
<id>urn:uuid:%3c92FDF6EE-A440-4704-ACD4-D71A042682E1@evol-tech-com%3e</id>
<updated>2009-11-27T17:55:20Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi all,

Is there any site where I can see some reference to appications or  
success stories using tuscany?

Regards,

Daniel.



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Cannot bind to web service [SOLVED]</title>
<author><name>keinmensch &lt;keinmensch@mailhaven.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tuscany-user/200911.mbox/%3c4B0FE6A1.4050907@mailhaven.com%3e"/>
<id>urn:uuid:%3c4B0FE6A1-4050907@mailhaven-com%3e</id>
<updated>2009-11-27T14:48:01Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi and many thanks for the swift replies!

Simon Laws wrote:
&gt; Can you try a couple of things for me.
&gt; 1/ Try putting the binding.ws on component service, for example,
&gt;   
I managed to get things working to some extent when using a &lt;service&gt;
element external to the &lt;component&gt;, promoting the &lt;service&gt; declared in
the component (with only an interface) and a &lt;binding.ws&gt; in the
(external) &lt;service&gt; element. However, both attributes uri and requires,
as shown in the example below, were ignored in this case:
&lt;binding.ws requires="SOAP.1_2" uri="http://localhost:8085/CalcService"/&gt;
When I put the &lt;binding.ws&gt; element in the &lt;service&gt; element inside the
&lt;component&gt; element, then both the above attributes are honored.
&gt; 2/ Check that the following modules are on available to the runtime
&gt;   
I originally tried to use Maven, copying the dependencies from the
calculator-ws sample program, but I had to revert to including the
tuscany-sca-manifest.jar on the classpath, since I could not figure out
which dependencies were missing in my project.
&gt; How are you running the application as a matter of interest?
&gt;   
Currently, I am running inside of Eclipse only, using the following to
start the SCA node:
Node theNode = NodeFactory.newInstance().createNode();
theNode.start();

I am sure there will be more questions from me in due time, since I am
set on exploring Tuscany 2.0.
Best wishes!
 Ivan


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: binding.jms in SCA Java 2.0 M4</title>
<author><name>&quot;Joseph, Roshan IN BLR SISL&quot; &lt;Roshan.Joseph@siemens.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tuscany-user/200911.mbox/%3c7E6556E29FAE084590BE56A0BB7AA5CC2EF6DD392A@INBLRK77M2MSX.in002.siemens.net%3e"/>
<id>urn:uuid:%3c7E6556E29FAE084590BE56A0BB7AA5CC2EF6DD392A@INBLRK77M2MSX-in002-siemens-net%3e</id>
<updated>2009-11-27T10:10:43Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi Ant,
 Does this mean how I have used the reference service in the client implementation class?
Then please see below, I have used exactly same way I have named it in composite file.

package org.myexample;
import org.oasisopen.sca.annotation.Reference;
import org.oasisopen.sca.annotation.Service;

@Service(HelloWorldService.class)

public class HelloWorldClient implements HelloWorldService{

              private HelloWorldService serviceA;

                @Reference
                public void setServiceA(HelloWorldService service) {
                    this.serviceA = service;
                }

                public String sayHello(String name) {
                        return serviceA.sayHello(name);
                }
                public void unsetServiceA(HelloWorldService service){
                        this.serviceA = null;
                }
}

Also do I have to have another remote-service entry in manifest file like OSGI-INF/remote-service/*.xml?
I am not using this file in my bundle. Will this be the problem?


Thank you and appreciate your help and feedback.

Thanks &amp; Regards,
Roshan

Re: binding.jms in SCA Java 2.0 M4

ant elder
Thu, 26 Nov 2009 02:13:23 -0800

Hi Roshan, that error you're getting:



Component type reference not found for component reference: Component

= HelloWorldClientComponent Reference = serviceA



is saying that the reference name in the SCDL "serviceA" isnt found

when introspecting the implementation:



&lt;tuscany:implementation.osgi bundleSymbolicName="HelloWorldClient"

bundleVersion="1.0.0" /&gt;



Does it exist in the HelloWorldClient bundle with exactly the same

spelling and capitalisation?



   ...ant



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Which version?</title>
<author><name>Simon Laws &lt;simonslaws@googlemail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tuscany-user/200911.mbox/%3cc0c051b50911260922sa65a23cpf617ade29976bdac@mail.gmail.com%3e"/>
<id>urn:uuid:%3cc0c051b50911260922sa65a23cpf617ade29976bdac@mail-gmail-com%3e</id>
<updated>2009-11-26T17:22:31Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
On Thu, Nov 26, 2009 at 4:55 PM, Malisetti, Ramanjaneyulu
&lt;Ramanjaneyulu.Malisetti@ca.com&gt; wrote:
&gt; Does 2.0-M4 also has latest SDO or only it is SCA?
&gt;
&gt; Regards
&gt; Raman
&gt;

Hi Raman

Just SCA at the moment. SDO hasn't been brought up in 2.0 just yet.

Simon
-- 
Apache Tuscany committer: tuscany.apache.org
Co-author of a book about Tuscany and SCA: tuscanyinaction.com


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Which version?</title>
<author><name>=?ISO-8859-1?Q?Daniel_Mej=EDa?= &lt;mejiad@evol-tech.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tuscany-user/200911.mbox/%3c94020513-9EE2-4125-AA8B-F79472A7C2E1@evol-tech.com%3e"/>
<id>urn:uuid:%3c94020513-9EE2-4125-AA8B-F79472A7C2E1@evol-tech-com%3e</id>
<updated>2009-11-26T17:08:24Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Simon,

Thank you for your promptly response. I think that to learn the basics  
is better to start with the more stable version. After your comments I  
will try the 1.5 version.

Saludos,

Daniel.

El 26/11/2009, a las 10:50 a.m., Simon Laws escribió:

&gt; Hi Daniel
&gt;
&gt; As will all of these things it depends what you mean by "best".
&gt;
&gt; If you want a stable runtime with the most features and are happy to
&gt; work the OSOA version of SCA then go for the current 1.x release
&gt; (1.5.1).
&gt;
&gt; If you want to use the OASIS version of SCA, want to use some of the
&gt; new features, such as OSGi integration, and are happy to put up with
&gt; some change in the runtime over time then go with the latest 2.x
&gt; milestone release (2.0-M4).
&gt;
&gt; The 2.x code is also a good place to start if you want to get involved
&gt; and help develop the runtime itself. That's where most of the action
&gt; is these days.
&gt;
&gt; Hope that helps.
&gt;
&gt; Simon



</pre>
</div>
</content>
</entry>
<entry>
<title>RE: Which version?</title>
<author><name>&quot;Malisetti, Ramanjaneyulu&quot; &lt;Ramanjaneyulu.Malisetti@ca.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tuscany-user/200911.mbox/%3c9AB704E9182FC34D97F394D449EE17DC88AE45@INHYMS12.ca.com%3e"/>
<id>urn:uuid:%3c9AB704E9182FC34D97F394D449EE17DC88AE45@INHYMS12-ca-com%3e</id>
<updated>2009-11-26T16:55:04Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Does 2.0-M4 also has latest SDO or only it is SCA?

Regards
Raman

-----Original Message-----
From: Simon Laws [mailto:simonslaws@googlemail.com] 
Sent: Thursday, 26 November 2009 10:20 PM
To: user@tuscany.apache.org
Subject: Re: Which version?

Hi Daniel

As will all of these things it depends what you mean by "best".

If you want a stable runtime with the most features and are happy to
work the OSOA version of SCA then go for the current 1.x release
(1.5.1).

If you want to use the OASIS version of SCA, want to use some of the
new features, such as OSGi integration, and are happy to put up with
some change in the runtime over time then go with the latest 2.x
milestone release (2.0-M4).

The 2.x code is also a good place to start if you want to get involved
and help develop the runtime itself. That's where most of the action
is these days.

Hope that helps.

Simon



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Which version?</title>
<author><name>Simon Laws &lt;simonslaws@googlemail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tuscany-user/200911.mbox/%3cc0c051b50911260850u46d5990ak7f3b5a83d9c2beaa@mail.gmail.com%3e"/>
<id>urn:uuid:%3cc0c051b50911260850u46d5990ak7f3b5a83d9c2beaa@mail-gmail-com%3e</id>
<updated>2009-11-26T16:50:28Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi Daniel

As will all of these things it depends what you mean by "best".

If you want a stable runtime with the most features and are happy to
work the OSOA version of SCA then go for the current 1.x release
(1.5.1).

If you want to use the OASIS version of SCA, want to use some of the
new features, such as OSGi integration, and are happy to put up with
some change in the runtime over time then go with the latest 2.x
milestone release (2.0-M4).

The 2.x code is also a good place to start if you want to get involved
and help develop the runtime itself. That's where most of the action
is these days.

Hope that helps.

Simon


</pre>
</div>
</content>
</entry>
<entry>
<title>Which version?</title>
<author><name>=?ISO-8859-1?Q?Daniel_Mej=EDa?= &lt;mejiad@evol-tech.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tuscany-user/200911.mbox/%3c759A6176-1708-4BE3-BB44-FF7784FA421D@evol-tech.com%3e"/>
<id>urn:uuid:%3c759A6176-1708-4BE3-BB44-FF7784FA421D@evol-tech-com%3e</id>
<updated>2009-11-26T15:39:15Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
I´m starting to play with tuscany and I would like to know wich is the  
best version to start. Is the tuscany 2.x version ready or is better  
to start with the 1.5 version?

Saludos,

Daniel.



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Cannot bind to web service</title>
<author><name>ant elder &lt;ant.elder@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tuscany-user/200911.mbox/%3c71e1b5740911260723p36c51928o3723b393984ee39b@mail.gmail.com%3e"/>
<id>urn:uuid:%3c71e1b5740911260723p36c51928o3723b393984ee39b@mail-gmail-com%3e</id>
<updated>2009-11-26T15:23:38Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
On Thu, Nov 26, 2009 at 2:59 PM, keinmensch &lt;keinmensch@mailhaven.com&gt; wrote:
&gt; Hi!
&gt; Playing around with Tuscany 2.0M4 and have a problem that I cannot seem
&gt; to solve.
&gt; Writing a Calculator composite consisting of a Calculator component, an
&gt; Addition component and a Subtraction component.
&gt; All works well until I want to expose the Calculator as a web service
&gt; with the following composite file:
&gt;
&gt; &lt;?xml version="1.0" encoding="UTF-8"?&gt;
&gt; &lt;composite
&gt;    xmlns="http://docs.oasis-open.org/ns/opencsa/sca/200903"
&gt;    targetNamespace="http://ivan.com/soaexamples"
&gt;    xmlns:ik="http://ivan.com/soaexamples"
&gt;    name="CalculatorComposite"&gt;
&gt;
&gt;    &lt;!-- Tried both with and without a &lt;service&gt; element in the Addition
&gt; and Subtraction componets. --&gt;
&gt;    &lt;component name="AdditionComponent"&gt;
&gt;        &lt;implementation.java
&gt; class="com.ivan.components.impl.AdditionServiceImpl"/&gt;
&gt;        &lt;service name="AdditionService"&gt;
&gt;            &lt;interface.java
&gt; interface="com.ivan.components.AdditionService"/&gt;
&gt;        &lt;/service&gt;
&gt;    &lt;/component&gt;
&gt;
&gt;    &lt;component name="SubtractionComponent"&gt;
&gt;        &lt;implementation.java
&gt; class="com.ivan.components.impl.SubtractionServiceImpl"/&gt;
&gt;        &lt;service name="SubtractionService"&gt;
&gt;            &lt;interface.java
&gt; interface="com.ivan.components.SubtractionService"/&gt;
&gt;        &lt;/service&gt;
&gt;    &lt;/component&gt;
&gt;
&gt;    &lt;component name="CalculatorComponent"&gt;
&gt;        &lt;implementation.java
&gt; class="com.ivan.components.impl.CalculatorServiceImpl"/&gt;
&gt;        &lt;service name="CalculatorService"&gt;
&gt;            &lt;interface.java
&gt;                interface="com.ivan.components.CalculatorService" /&gt;
&gt;        &lt;/service&gt;
&gt;
&gt;        &lt;reference name="additionService" target="AdditionComponent"/&gt;
&gt;        &lt;reference name="subtractionServ" target="SubtractionComponent"/&gt;
&gt;    &lt;/component&gt;
&gt;
&gt;    &lt;!--
&gt;        Tried both with the uri attribute as below and
&gt; requires="SOAP.1_1", but no luck.
&gt;        Read somewhere that this way, promoting a service, is the
&gt; preferred way to declare bindings to a service.
&gt;    --&gt;
&gt;    &lt;service name="CalculatorService"
&gt; promote="CalculatorComponent/CalculatorService"&gt;
&gt;        &lt;binding.ws uri="http://localhost:8085/CalculatorService"/&gt;
&gt;    &lt;/service&gt;
&gt; &lt;/composite&gt;
&gt;
&gt; When I start a SCA node containing the above composite, there are no
&gt; error messages, but also no log messages telling me, for instance, that
&gt; jetty has been started and that the service has been bound to some
&gt; address. Neither is there any response from the above URI.
&gt; The interesting thing is that I have another example that successfully
&gt; exposes a web service with a composite that is similar to the above,
&gt; although it totally ignores the value of the uri attribute in the
&gt; &lt;binding.ws&gt; element. I have tried over and over again to understand why
&gt; this happens, but given up.
&gt;
&gt; One experience I would want to share is that Tuscany is quite poor at
&gt; telling me what the problem is in the case of missing libraries. There
&gt; are error messages that tell me nothing and I end up "including
&gt; everything". Is this an issue of setting some log level or is there
&gt; something else that I can do?
&gt; Many thanks in advance!
&gt;  Ivan
&gt;

That looks like the one where promoted services are ignored so you
need to move your &lt;service&gt; with the WS binding to be inside the
&lt;component&gt;.

See this thread:
http://apache.markmail.org/search/?q=%22[2.x]+Calculating+Endpoints+to+promoted+services%22+order%3Adate-forward

I note that we still haven't added the message.

Thanks for the feedback on the poor error messages and having to
"include everything", we are continually improving this and I'd hope
its much better by 2.0

   ...ant


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Cannot bind to web service</title>
<author><name>Simon Laws &lt;simonslaws@googlemail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tuscany-user/200911.mbox/%3cc0c051b50911260722q47e3639ke2ecdf13ee578a72@mail.gmail.com%3e"/>
<id>urn:uuid:%3cc0c051b50911260722q47e3639ke2ecdf13ee578a72@mail-gmail-com%3e</id>
<updated>2009-11-26T15:22:33Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi Ivan

That's good feedback. Tuscany should be giving clear error messages so
we need to look into that.

Can you try a couple of things for me.

1/ Try putting the binding.ws on component service, for example,

   &lt;component name="CalculatorComponent"&gt;
       &lt;implementation.java
class="com.ivan.components.impl.CalculatorServiceImpl"/&gt;
       &lt;service name="CalculatorService"&gt;
           &lt;interface.java
               interface="com.ivan.components.CalculatorService" /&gt;
           &lt;binding.ws uri="http://localhost:8085/CalculatorService"/&gt;
       &lt;/service&gt;

       &lt;reference name="additionService" target="AdditionComponent"/&gt;
       &lt;reference name="subtractionServ" target="SubtractionComponent"/&gt;
   &lt;/component&gt;

2/ Check that the following modules are on available to the runtime
    binding-ws
    binding-ws-axis2
    binding-ws-axis2-policy
    binding-ws-wsdlgen
    host-jetty

How are you running the application as a matter of interest?

If, for example, you're running from the command line using the
launcher this should be locating the Tuscany manifest jars behind the
scenes which references all of these modules.

Regards

Simon


</pre>
</div>
</content>
</entry>
<entry>
<title>Cannot bind to web service</title>
<author><name>keinmensch &lt;keinmensch@mailhaven.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tuscany-user/200911.mbox/%3c4B0E97BD.8000903@mailhaven.com%3e"/>
<id>urn:uuid:%3c4B0E97BD-8000903@mailhaven-com%3e</id>
<updated>2009-11-26T14:59:09Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi!
Playing around with Tuscany 2.0M4 and have a problem that I cannot seem
to solve.
Writing a Calculator composite consisting of a Calculator component, an
Addition component and a Subtraction component.
All works well until I want to expose the Calculator as a web service
with the following composite file:

&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;composite
    xmlns="http://docs.oasis-open.org/ns/opencsa/sca/200903"
    targetNamespace="http://ivan.com/soaexamples"
    xmlns:ik="http://ivan.com/soaexamples"
    name="CalculatorComposite"&gt;

    &lt;!-- Tried both with and without a &lt;service&gt; element in the Addition
and Subtraction componets. --&gt;
    &lt;component name="AdditionComponent"&gt;
        &lt;implementation.java
class="com.ivan.components.impl.AdditionServiceImpl"/&gt;
        &lt;service name="AdditionService"&gt;
            &lt;interface.java
interface="com.ivan.components.AdditionService"/&gt;
        &lt;/service&gt;
    &lt;/component&gt;
   
    &lt;component name="SubtractionComponent"&gt;
        &lt;implementation.java
class="com.ivan.components.impl.SubtractionServiceImpl"/&gt;
        &lt;service name="SubtractionService"&gt;
            &lt;interface.java
interface="com.ivan.components.SubtractionService"/&gt;
        &lt;/service&gt;
    &lt;/component&gt;
   
    &lt;component name="CalculatorComponent"&gt;
        &lt;implementation.java
class="com.ivan.components.impl.CalculatorServiceImpl"/&gt;
        &lt;service name="CalculatorService"&gt;
            &lt;interface.java
                interface="com.ivan.components.CalculatorService" /&gt;
        &lt;/service&gt;
       
        &lt;reference name="additionService" target="AdditionComponent"/&gt;
        &lt;reference name="subtractionServ" target="SubtractionComponent"/&gt;
    &lt;/component&gt;
   
    &lt;!--
        Tried both with the uri attribute as below and
requires="SOAP.1_1", but no luck.
        Read somewhere that this way, promoting a service, is the
preferred way to declare bindings to a service.
    --&gt;
    &lt;service name="CalculatorService"
promote="CalculatorComponent/CalculatorService"&gt;
        &lt;binding.ws uri="http://localhost:8085/CalculatorService"/&gt;
    &lt;/service&gt;
&lt;/composite&gt;

When I start a SCA node containing the above composite, there are no
error messages, but also no log messages telling me, for instance, that
jetty has been started and that the service has been bound to some
address. Neither is there any response from the above URI.
The interesting thing is that I have another example that successfully
exposes a web service with a composite that is similar to the above,
although it totally ignores the value of the uri attribute in the
&lt;binding.ws&gt; element. I have tried over and over again to understand why
this happens, but given up.

One experience I would want to share is that Tuscany is quite poor at
telling me what the problem is in the case of missing libraries. There
are error messages that tell me nothing and I end up "including
everything". Is this an issue of setting some log level or is there
something else that I can do?
Many thanks in advance!
 Ivan


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: SDO UnmarshalException</title>
<author><name>kelvin goodson &lt;kelvingoodson@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tuscany-user/200911.mbox/%3c9deac9fd0911260445k594b7996nbea5e4647ec45a31@mail.gmail.com%3e"/>
<id>urn:uuid:%3c9deac9fd0911260445k594b7996nbea5e4647ec45a31@mail-gmail-com%3e</id>
<updated>2009-11-26T12:45:47Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
A further couple of comments.  One is that I think you are hitting the
nasty "when is a singleton not a singleton" problem [1], and this may
be a time when the Tuscany specific CrossScopeCopyHelper may be of
interest (I haven't used it but I know it plays a part in this
multiple classloader scenarios)

Kelvin.

[1] http://www.javaworld.com/jw-01-2001/jw-0112-singleton.html

2009/11/26 Malisetti, Ramanjaneyulu &lt;Ramanjaneyulu.Malisetti@ca.com&gt;:
&gt; Now I understood the problem. It is happening in scenario like if we load
&gt; two XSDs from different classes with same URI but different types in them,
&gt; XSDHelper is keeping only types from first XSD. Here, two different classes
&gt; mean their class loaders are different.  If we load same two XSDs from
&gt; single class then there is no issue. is this the expected behavior?
&gt;
&gt; Regards
&gt;
&gt; Raman
&gt;
&gt; _____________________________________________
&gt; From: Malisetti, Ramanjaneyulu
&gt; Sent: Wednesday, 25 November 2009 5:39 PM
&gt;
&gt; To: 'tuscany-user@ws.apache.org'
&gt; Subject: RE: SDO UnmarshalException
&gt;
&gt; Hi Kelvin,
&gt;
&gt;                        &lt;&lt; File: SDO-Marshall-Exception.zip &gt;&gt;
&gt;
&gt; After so many trails I found the problem. The issue is where we are loading
&gt; Schemas and XML files with XMLHelpter.INSTANCE object. For example, if we
&gt; write one facade class to encapsulate all calls to SDO Api, it is leading to
&gt; issues like, “Feature not Found” while loading XML resource after loading
&gt; XSDs or ClassCastException: The feature 'xxxx's type 'DataObject' does not
&gt; permit a value of type 'xxx'. This is kind of issues can be avoided if we
&gt; call XMLHelpter.INSTANCE.define/load in our implementation.
&gt;
&gt; Here I attached sample source which is slightly complex example. I have
&gt; taken this scenario to replicate marshall error. However, I got symptoms of
&gt; the issue before I reach to RMI. So, you can see the issue from very
&gt; begining of the running Test from sdo.rmi.sample.hello RemoteDescriptor. To
&gt; illustrate the issue w.r.t attached sample…
&gt;
&gt; -       sdo.rmi.sampl.impl.util.BeanXmlHelper.java is a façade class which
&gt; encapsulate SDO APIs
&gt;
&gt; -       I load XSDs and XML with help of BeanXmlHelper  in
&gt; sdo.rmi.sample.hello.HelloDescriptor and sdo.rmi.sampl.impl.XMLDescriptor
&gt;
&gt; -       I use HelloDescriptor in HelloConnector.
&gt;
&gt; What is the right way of loading XSDs and XMLs so that I can have dynamic
&gt; types  in my code and can use them without in issues across different
&gt; classloaders?
&gt;
&gt; I don’t have much exp in using SDO APIs, please bear me if these questions
&gt; are very basic. I appreciate your help.
&gt;
&gt; Thanks in advance..
&gt;
&gt; Regards
&gt;
&gt; Raman
&gt;
&gt; _____________________________________________
&gt; From: Malisetti, Ramanjaneyulu
&gt; Sent: Monday, 23 November 2009 4:29 PM
&gt; To: 'tuscany-user@ws.apache.org'
&gt; Subject: RE: SDO UnmarshalException
&gt;
&gt; Thanks Kelvin for quick response. I am trying to reproduce with sample
&gt; program so that I can share that with you. Apparently, no luck. It means
&gt; there is something we are doing differently. I have been trying to identify
&gt; that..
&gt;
&gt; I’ll post progress.
&gt;
&gt; Regards
&gt;
&gt; Raman
&gt;
&gt; to be sure about this, I'd need to be able to recreate the problem
&gt;
&gt; with a bit of test code, and I've not played with SDO using RMI calls,
&gt;
&gt; but the SDO metadata associated with the namespace URI must be
&gt;
&gt; available when the XML document is parsed. This would be made
&gt;
&gt; available when either the XSDHelper is used to load a schema or
&gt;
&gt; generated SDO classes are registered with the environment, and it is
&gt;
&gt; going to need to be available in the jvm that the xml parsing is
&gt;
&gt; happening.
&gt;
&gt; Kelvin.
&gt;
&gt; _____________________________________________
&gt; From: Malisetti, Ramanjaneyulu
&gt; Sent: Friday, 20 November 2009 5:21 PM
&gt; To: 'tuscany-user@ws.apache.org'
&gt; Subject: SDO UnmarshalException
&gt;
&gt; Hi,
&gt;
&gt;           We have a class called Descriptor that loads XML and XSD files to
&gt; build SDO objects, this we are doing in its constructor.  We have another
&gt; class called Container that contains Descriptor  class.  If we make
&gt; Container class object as Remotable (Exported as RMI object) and call a
&gt; method on remotable object on RMI client side to get descriptor, it is
&gt; throwing the following exception . The below “not found URI” is there in
&gt; XML file. We are not getting what is the problem. Could you  helps us here
&gt; what is going wrong? BTW, we ensured all required interfaces as  Remote so
&gt; that there is nothing wrong on RMI side.
&gt;
&gt; java.rmi.UnmarshalException: error unmarshalling return; nested exception
&gt; is:
&gt;
&gt;         org.eclipse.emf.ecore.resource.Resource$IOWrappedException: Package
&gt; with uri 'http://www.abc.com/connex' not found. (http:///temp.xml, 3, 106)
&gt;
&gt;         at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:173)
&gt;
&gt;         at
&gt; java.rmi.server.RemoteObjectInvocationHandler.invokeRemoteMethod(RemoteObjectInvocationHandler.java:178)
&gt;
&gt;         at
&gt; java.rmi.server.RemoteObjectInvocationHandler.invoke(RemoteObjectInvocationHandler.java:132)
&gt;
&gt;         at $Proxy8.getDescriptor(Unknown Source)
&gt;
&gt;         at
&gt; com.abc.connector.impl.infrastructure.rmi.RemoteRMIConnectorProxy.getDescriptor(RemoteRMIConnectorProxy.java:66)
&gt;
&gt;         at
&gt; com.abc.connector.impl.infrastructure.rmi.test.TestRMIConnector.setUpBeforeClass(TestRMIConnector.java:79)
&gt;
&gt;         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
&gt;
&gt;         at
&gt; sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
&gt;
&gt;         at
&gt; sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
&gt;
&gt;         at java.lang.reflect.Method.invoke(Method.java:597)
&gt;
&gt;         at
&gt; org.junit.internal.runners.BeforeAndAfterRunner.invokeMethod(BeforeAndAfterRunner.java:74)
&gt;
&gt;         at
&gt; org.junit.internal.runners.BeforeAndAfterRunner.runBefores(BeforeAndAfterRunner.java:50)
&gt;
&gt;         at
&gt; org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:33)
&gt;
&gt;         at
&gt; org.junit.internal.runners.TestClassRunner.run(TestClassRunner.java:52)
&gt;
&gt;         at
&gt; org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:45)
&gt;
&gt;         at
&gt; org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
&gt;
&gt;         at
&gt; org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
&gt;
&gt;         at
&gt; org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
&gt;
&gt;         at
&gt; org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
&gt;
&gt;         at
&gt; org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
&gt;
&gt; Caused by: org.eclipse.emf.ecore.resource.Resource$IOWrappedException:
&gt; Package with uri 'http://www.abc.com/connex' not found. (http:///temp.xml,
&gt; 3, 106)
&gt;
&gt;         at
&gt; org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.handleErrors(XMLLoadImpl.java:83)
&gt;
&gt;         at
&gt; org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.load(XMLLoadImpl.java:278)
&gt;
&gt;         at
&gt; org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.doLoad(XMLResourceImpl.java:666)
&gt;
&gt;         at
&gt; org.apache.tuscany.sdo.util.resource.SDOXMLResourceImpl.doLoad(SDOXMLResourceImpl.java:589)
&gt;
&gt;         at
&gt; org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.load(XMLResourceImpl.java:634)
&gt;
&gt;         at
&gt; org.apache.tuscany.sdo.helper.XMLDocumentImpl.load(XMLDocumentImpl.java:266)
&gt;
&gt;         at
&gt; org.apache.tuscany.sdo.helper.XMLDocumentImpl.load(XMLDocumentImpl.java:239)
&gt;
&gt;         at
&gt; org.apache.tuscany.sdo.helper.XMLHelperImpl.load(XMLHelperImpl.java:97)
&gt;
&gt;         at
&gt; org.apache.tuscany.sdo.helper.XMLHelperImpl.load(XMLHelperImpl.java:79)
&gt;
&gt;         at
&gt; org.apache.tuscany.sdo.spi.HelperProviderBase$ResolvableImpl.readDataObject(HelperProviderBase.java:229)
&gt;
&gt;         at
&gt; org.apache.tuscany.sdo.spi.HelperProviderBase$ResolvableImpl.readExternal(HelperProviderBase.java:161)
&gt;
&gt;         at
&gt; commonj.sdo.impl.ExternalizableDelegator.readExternal(ExternalizableDelegator.java:83)
&gt;
&gt;         at
&gt; java.io.ObjectInputStream.readExternalData(ObjectInputStream.java:1792)
&gt;
&gt;         at
&gt; java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1751)
&gt;
&gt;         at
&gt; java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
&gt;
&gt;         at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
&gt;
&gt;         at
&gt; org.apache.tuscany.sdo.spi.HelperProviderBase$ResolvableImpl.readDataObject(HelperProviderBase.java:238)
&gt;
&gt;         at
&gt; org.apache.tuscany.sdo.spi.HelperProviderBase$ResolvableImpl.readExternal(HelperProviderBase.java:161)
&gt;
&gt;         at
&gt; commonj.sdo.impl.ExternalizableDelegator.readExternal(ExternalizableDelegator.java:83)
&gt;
&gt;         at
&gt; java.io.ObjectInputStream.readExternalData(ObjectInputStream.java:1792)
&gt;
&gt;         at
&gt; java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1751)
&gt;
&gt;         at
&gt; java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
&gt;
&gt;         at
&gt; java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947)
&gt;
&gt;         at
&gt; java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871)
&gt;
&gt;         at
&gt; java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
&gt;
&gt;         at
&gt; java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
&gt;
&gt;         at
&gt; java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947)
&gt;
&gt;         at
&gt; java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871)
&gt;
&gt;         at
&gt; java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
&gt;
&gt;         at
&gt; java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
&gt;
&gt;         at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
&gt;
&gt;         at sun.rmi.server.UnicastRef.unmarshalValue(UnicastRef.java:306)
&gt;
&gt;         at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:155)
&gt;
&gt;         ... 19 more
&gt;
&gt; Caused by: org.eclipse.emf.ecore.xmi.PackageNotFoundException: Package with
&gt; uri 'http://www.abc.com/connex' not found. (http:///temp.xml, 3, 106)
&gt;
&gt;         at
&gt; org.eclipse.emf.ecore.xmi.impl.XMLHandler.getPackageForURI(XMLHandler.java:2350)
&gt;
&gt;         at
&gt; org.eclipse.emf.ecore.xmi.impl.XMLHandler.getFactoryForPrefix(XMLHandler.java:2188)
&gt;
&gt;         at
&gt; org.eclipse.emf.ecore.xmi.impl.XMLHandler.createObjectFromTypeName(XMLHandler.java:1828)
&gt;
&gt;         at
&gt; org.eclipse.emf.ecore.xmi.impl.XMLHandler.createObject(XMLHandler.java:1787)
&gt;
&gt;         at
&gt; org.eclipse.emf.ecore.xmi.impl.XMLHandler.handleFeature(XMLHandler.java:1569)
&gt;
&gt;         at
&gt; org.eclipse.emf.ecore.xmi.impl.XMLHandler.createDocumentRoot(XMLHandler.java:1237)
&gt;
&gt;         at
&gt; org.eclipse.emf.ecore.xmi.impl.XMLHandler.createObjectByType(XMLHandler.java:1165)
&gt;
&gt;         at
&gt; org.eclipse.emf.ecore.xmi.impl.XMLHandler.createTopObject(XMLHandler.java:1247)
&gt;
&gt;         at
&gt; org.eclipse.emf.ecore.xmi.impl.XMLHandler.processElement(XMLHandler.java:883)
&gt;
&gt;         at
&gt; org.eclipse.emf.ecore.xmi.impl.XMLHandler.startElement(XMLHandler.java:866)
&gt;
&gt;         at
&gt; org.eclipse.emf.ecore.xmi.impl.XMLHandler.startElement(XMLHandler.java:627)
&gt;
&gt;         at
&gt; org.apache.tuscany.sdo.util.resource.SDOXMLResourceImpl$SDOXMLLoadImpl$XmlHandler.startElement(SDOXMLResourceImpl.java:405)
&gt;
&gt;         at
&gt; com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:501)
&gt;
&gt;         at
&gt; com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:400)
&gt;
&gt;         at
&gt; com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl$NSContentDriver.scanRootElementHook(XMLNSDocumentScannerImpl.java:626)
&gt;
&gt;         at
&gt; com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:3088)
&gt;
&gt;         at
&gt; com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:914)
&gt;
&gt;         at
&gt; com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:647)
&gt;
&gt;         at
&gt; com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:140)
&gt;
&gt;         at
&gt; com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:508)
&gt;
&gt;         at
&gt; com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:807)
&gt;
&gt;         at
&gt; com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
&gt;
&gt;         at
&gt; com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:107)
&gt;
&gt;         at
&gt; com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)
&gt;
&gt;         at
&gt; com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)
&gt;
&gt;         at javax.xml.parsers.SAXParser.parse(SAXParser.java:395)
&gt;
&gt;         at
&gt; org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.load(XMLLoadImpl.java:268)
&gt;
&gt;         ... 50 more
&gt;
&gt; Regards
&gt;
&gt; Raman


</pre>
</div>
</content>
</entry>
<entry>
<title>RE: SDO UnmarshalException</title>
<author><name>&quot;Malisetti, Ramanjaneyulu&quot; &lt;Ramanjaneyulu.Malisetti@ca.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tuscany-user/200911.mbox/%3c9AB704E9182FC34D97F394D449EE17DC88AE0E@INHYMS12.ca.com%3e"/>
<id>urn:uuid:%3c9AB704E9182FC34D97F394D449EE17DC88AE0E@INHYMS12-ca-com%3e</id>
<updated>2009-11-26T12:40:38Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Thanks Kelvin. Off late I found this using getTypes().

Regards
Raman

-----Original Message-----
From: kelvin goodson [mailto:kelvingoodson@gmail.com] 
Sent: Thursday, 26 November 2009 6:07 PM
To: user@tuscany.apache.org
Subject: Re: SDO UnmarshalException

Yes, the HelperContext acts as a registry for the types, where the key
/ value pairs are namespaceuri-&gt;{set of types}.  If you attempt to
register a second XSD of the same namespace uri you will see the
behaviour you report.  You may have already found the SDOUtil class's
getTypes(HelperContext hc, String nsuri) method which helps you to get
a handle on what you really have available in a given context.

Regards, Kelvin.

2009/11/26 Malisetti, Ramanjaneyulu &lt;Ramanjaneyulu.Malisetti@ca.com&gt;:
&gt; Now I understood the problem. It is happening in scenario like if we load
&gt; two XSDs from different classes with same URI but different types in them,
&gt; XSDHelper is keeping only types from first XSD. Here, two different classes
&gt; mean their class loaders are different.  If we load same two XSDs from
&gt; single class then there is no issue. is this the expected behavior?
&gt;
&gt; Regards
&gt;
&gt; Raman
&gt;
&gt; _____________________________________________
&gt; From: Malisetti, Ramanjaneyulu
&gt; Sent: Wednesday, 25 November 2009 5:39 PM
&gt;
&gt; To: 'tuscany-user@ws.apache.org'
&gt; Subject: RE: SDO UnmarshalException
&gt;
&gt; Hi Kelvin,
&gt;
&gt;                        &lt;&lt; File: SDO-Marshall-Exception.zip &gt;&gt;
&gt;
&gt; After so many trails I found the problem. The issue is where we are loading
&gt; Schemas and XML files with XMLHelpter.INSTANCE object. For example, if we
&gt; write one facade class to encapsulate all calls to SDO Api, it is leading to
&gt; issues like, "Feature not Found" while loading XML resource after loading
&gt; XSDs or ClassCastException: The feature 'xxxx's type 'DataObject' does not
&gt; permit a value of type 'xxx'. This is kind of issues can be avoided if we
&gt; call XMLHelpter.INSTANCE.define/load in our implementation.
&gt;
&gt; Here I attached sample source which is slightly complex example. I have
&gt; taken this scenario to replicate marshall error. However, I got symptoms of
&gt; the issue before I reach to RMI. So, you can see the issue from very
&gt; begining of the running Test from sdo.rmi.sample.hello RemoteDescriptor. To
&gt; illustrate the issue w.r.t attached sample...
&gt;
&gt; -       sdo.rmi.sampl.impl.util.BeanXmlHelper.java is a façade class which
&gt; encapsulate SDO APIs
&gt;
&gt; -       I load XSDs and XML with help of BeanXmlHelper  in
&gt; sdo.rmi.sample.hello.HelloDescriptor and sdo.rmi.sampl.impl.XMLDescriptor
&gt;
&gt; -       I use HelloDescriptor in HelloConnector.
&gt;
&gt; What is the right way of loading XSDs and XMLs so that I can have dynamic
&gt; types  in my code and can use them without in issues across different
&gt; classloaders?
&gt;
&gt; I don't have much exp in using SDO APIs, please bear me if these questions
&gt; are very basic. I appreciate your help.
&gt;
&gt; Thanks in advance..
&gt;
&gt; Regards
&gt;
&gt; Raman
&gt;
&gt; _____________________________________________
&gt; From: Malisetti, Ramanjaneyulu
&gt; Sent: Monday, 23 November 2009 4:29 PM
&gt; To: 'tuscany-user@ws.apache.org'
&gt; Subject: RE: SDO UnmarshalException
&gt;
&gt; Thanks Kelvin for quick response. I am trying to reproduce with sample
&gt; program so that I can share that with you. Apparently, no luck. It means
&gt; there is something we are doing differently. I have been trying to identify
&gt; that..
&gt;
&gt; I'll post progress.
&gt;
&gt; Regards
&gt;
&gt; Raman
&gt;
&gt; to be sure about this, I'd need to be able to recreate the problem
&gt;
&gt; with a bit of test code, and I've not played with SDO using RMI calls,
&gt;
&gt; but the SDO metadata associated with the namespace URI must be
&gt;
&gt; available when the XML document is parsed. This would be made
&gt;
&gt; available when either the XSDHelper is used to load a schema or
&gt;
&gt; generated SDO classes are registered with the environment, and it is
&gt;
&gt; going to need to be available in the jvm that the xml parsing is
&gt;
&gt; happening.
&gt;
&gt; Kelvin.
&gt;
&gt; _____________________________________________
&gt; From: Malisetti, Ramanjaneyulu
&gt; Sent: Friday, 20 November 2009 5:21 PM
&gt; To: 'tuscany-user@ws.apache.org'
&gt; Subject: SDO UnmarshalException
&gt;
&gt; Hi,
&gt;
&gt;           We have a class called Descriptor that loads XML and XSD files to
&gt; build SDO objects, this we are doing in its constructor.  We have another
&gt; class called Container that contains Descriptor  class.  If we make
&gt; Container class object as Remotable (Exported as RMI object) and call a
&gt; method on remotable object on RMI client side to get descriptor, it is
&gt; throwing the following exception . The below "not found URI" is there in
&gt; XML file. We are not getting what is the problem. Could you  helps us here
&gt; what is going wrong? BTW, we ensured all required interfaces as  Remote so
&gt; that there is nothing wrong on RMI side.
&gt;
&gt; java.rmi.UnmarshalException: error unmarshalling return; nested exception
&gt; is:
&gt;
&gt;         org.eclipse.emf.ecore.resource.Resource$IOWrappedException: Package
&gt; with uri 'http://www.abc.com/connex' not found. (http:///temp.xml, 3, 106)
&gt;
&gt;         at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:173)
&gt;
&gt;         at
&gt; java.rmi.server.RemoteObjectInvocationHandler.invokeRemoteMethod(RemoteObjectInvocationHandler.java:178)
&gt;
&gt;         at
&gt; java.rmi.server.RemoteObjectInvocationHandler.invoke(RemoteObjectInvocationHandler.java:132)
&gt;
&gt;         at $Proxy8.getDescriptor(Unknown Source)
&gt;
&gt;         at
&gt; com.abc.connector.impl.infrastructure.rmi.RemoteRMIConnectorProxy.getDescriptor(RemoteRMIConnectorProxy.java:66)
&gt;
&gt;         at
&gt; com.abc.connector.impl.infrastructure.rmi.test.TestRMIConnector.setUpBeforeClass(TestRMIConnector.java:79)
&gt;
&gt;         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
&gt;
&gt;         at
&gt; sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
&gt;
&gt;         at
&gt; sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
&gt;
&gt;         at java.lang.reflect.Method.invoke(Method.java:597)
&gt;
&gt;         at
&gt; org.junit.internal.runners.BeforeAndAfterRunner.invokeMethod(BeforeAndAfterRunner.java:74)
&gt;
&gt;         at
&gt; org.junit.internal.runners.BeforeAndAfterRunner.runBefores(BeforeAndAfterRunner.java:50)
&gt;
&gt;         at
&gt; org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:33)
&gt;
&gt;         at
&gt; org.junit.internal.runners.TestClassRunner.run(TestClassRunner.java:52)
&gt;
&gt;         at
&gt; org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:45)
&gt;
&gt;         at
&gt; org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
&gt;
&gt;         at
&gt; org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
&gt;
&gt;         at
&gt; org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
&gt;
&gt;         at
&gt; org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
&gt;
&gt;         at
&gt; org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
&gt;
&gt; Caused by: org.eclipse.emf.ecore.resource.Resource$IOWrappedException:
&gt; Package with uri 'http://www.abc.com/connex' not found. (http:///temp.xml,
&gt; 3, 106)
&gt;
&gt;         at
&gt; org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.handleErrors(XMLLoadImpl.java:83)
&gt;
&gt;         at
&gt; org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.load(XMLLoadImpl.java:278)
&gt;
&gt;         at
&gt; org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.doLoad(XMLResourceImpl.java:666)
&gt;
&gt;         at
&gt; org.apache.tuscany.sdo.util.resource.SDOXMLResourceImpl.doLoad(SDOXMLResourceImpl.java:589)
&gt;
&gt;         at
&gt; org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.load(XMLResourceImpl.java:634)
&gt;
&gt;         at
&gt; org.apache.tuscany.sdo.helper.XMLDocumentImpl.load(XMLDocumentImpl.java:266)
&gt;
&gt;         at
&gt; org.apache.tuscany.sdo.helper.XMLDocumentImpl.load(XMLDocumentImpl.java:239)
&gt;
&gt;         at
&gt; org.apache.tuscany.sdo.helper.XMLHelperImpl.load(XMLHelperImpl.java:97)
&gt;
&gt;         at
&gt; org.apache.tuscany.sdo.helper.XMLHelperImpl.load(XMLHelperImpl.java:79)
&gt;
&gt;         at
&gt; org.apache.tuscany.sdo.spi.HelperProviderBase$ResolvableImpl.readDataObject(HelperProviderBase.java:229)
&gt;
&gt;         at
&gt; org.apache.tuscany.sdo.spi.HelperProviderBase$ResolvableImpl.readExternal(HelperProviderBase.java:161)
&gt;
&gt;         at
&gt; commonj.sdo.impl.ExternalizableDelegator.readExternal(ExternalizableDelegator.java:83)
&gt;
&gt;         at
&gt; java.io.ObjectInputStream.readExternalData(ObjectInputStream.java:1792)
&gt;
&gt;         at
&gt; java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1751)
&gt;
&gt;         at
&gt; java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
&gt;
&gt;         at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
&gt;
&gt;         at
&gt; org.apache.tuscany.sdo.spi.HelperProviderBase$ResolvableImpl.readDataObject(HelperProviderBase.java:238)
&gt;
&gt;         at
&gt; org.apache.tuscany.sdo.spi.HelperProviderBase$ResolvableImpl.readExternal(HelperProviderBase.java:161)
&gt;
&gt;         at
&gt; commonj.sdo.impl.ExternalizableDelegator.readExternal(ExternalizableDelegator.java:83)
&gt;
&gt;         at
&gt; java.io.ObjectInputStream.readExternalData(ObjectInputStream.java:1792)
&gt;
&gt;         at
&gt; java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1751)
&gt;
&gt;         at
&gt; java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
&gt;
&gt;         at
&gt; java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947)
&gt;
&gt;         at
&gt; java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871)
&gt;
&gt;         at
&gt; java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
&gt;
&gt;         at
&gt; java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
&gt;
&gt;         at
&gt; java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947)
&gt;
&gt;         at
&gt; java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871)
&gt;
&gt;         at
&gt; java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
&gt;
&gt;         at
&gt; java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
&gt;
&gt;         at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
&gt;
&gt;         at sun.rmi.server.UnicastRef.unmarshalValue(UnicastRef.java:306)
&gt;
&gt;         at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:155)
&gt;
&gt;         ... 19 more
&gt;
&gt; Caused by: org.eclipse.emf.ecore.xmi.PackageNotFoundException: Package with
&gt; uri 'http://www.abc.com/connex' not found. (http:///temp.xml, 3, 106)
&gt;
&gt;         at
&gt; org.eclipse.emf.ecore.xmi.impl.XMLHandler.getPackageForURI(XMLHandler.java:2350)
&gt;
&gt;         at
&gt; org.eclipse.emf.ecore.xmi.impl.XMLHandler.getFactoryForPrefix(XMLHandler.java:2188)
&gt;
&gt;         at
&gt; org.eclipse.emf.ecore.xmi.impl.XMLHandler.createObjectFromTypeName(XMLHandler.java:1828)
&gt;
&gt;         at
&gt; org.eclipse.emf.ecore.xmi.impl.XMLHandler.createObject(XMLHandler.java:1787)
&gt;
&gt;         at
&gt; org.eclipse.emf.ecore.xmi.impl.XMLHandler.handleFeature(XMLHandler.java:1569)
&gt;
&gt;         at
&gt; org.eclipse.emf.ecore.xmi.impl.XMLHandler.createDocumentRoot(XMLHandler.java:1237)
&gt;
&gt;         at
&gt; org.eclipse.emf.ecore.xmi.impl.XMLHandler.createObjectByType(XMLHandler.java:1165)
&gt;
&gt;         at
&gt; org.eclipse.emf.ecore.xmi.impl.XMLHandler.createTopObject(XMLHandler.java:1247)
&gt;
&gt;         at
&gt; org.eclipse.emf.ecore.xmi.impl.XMLHandler.processElement(XMLHandler.java:883)
&gt;
&gt;         at
&gt; org.eclipse.emf.ecore.xmi.impl.XMLHandler.startElement(XMLHandler.java:866)
&gt;
&gt;         at
&gt; org.eclipse.emf.ecore.xmi.impl.XMLHandler.startElement(XMLHandler.java:627)
&gt;
&gt;         at
&gt; org.apache.tuscany.sdo.util.resource.SDOXMLResourceImpl$SDOXMLLoadImpl$XmlHandler.startElement(SDOXMLResourceImpl.java:405)
&gt;
&gt;         at
&gt; com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:501)
&gt;
&gt;         at
&gt; com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:400)
&gt;
&gt;         at
&gt; com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl$NSContentDriver.scanRootElementHook(XMLNSDocumentScannerImpl.java:626)
&gt;
&gt;         at
&gt; com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:3088)
&gt;
&gt;         at
&gt; com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:914)
&gt;
&gt;         at
&gt; com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:647)
&gt;
&gt;         at
&gt; com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:140)
&gt;
&gt;         at
&gt; com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:508)
&gt;
&gt;         at
&gt; com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:807)
&gt;
&gt;         at
&gt; com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
&gt;
&gt;         at
&gt; com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:107)
&gt;
&gt;         at
&gt; com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)
&gt;
&gt;         at
&gt; com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)
&gt;
&gt;         at javax.xml.parsers.SAXParser.parse(SAXParser.java:395)
&gt;
&gt;         at
&gt; org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.load(XMLLoadImpl.java:268)
&gt;
&gt;         ... 50 more
&gt;
&gt; Regards
&gt;
&gt; Raman



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: SDO UnmarshalException</title>
<author><name>kelvin goodson &lt;kelvingoodson@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tuscany-user/200911.mbox/%3c9deac9fd0911260437x5f78a870n684c62853f465594@mail.gmail.com%3e"/>
<id>urn:uuid:%3c9deac9fd0911260437x5f78a870n684c62853f465594@mail-gmail-com%3e</id>
<updated>2009-11-26T12:37:13Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Yes, the HelperContext acts as a registry for the types, where the key
/ value pairs are namespaceuri-&gt;{set of types}.  If you attempt to
register a second XSD of the same namespace uri you will see the
behaviour you report.  You may have already found the SDOUtil class's
getTypes(HelperContext hc, String nsuri) method which helps you to get
a handle on what you really have available in a given context.

Regards, Kelvin.

2009/11/26 Malisetti, Ramanjaneyulu &lt;Ramanjaneyulu.Malisetti@ca.com&gt;:
&gt; Now I understood the problem. It is happening in scenario like if we load
&gt; two XSDs from different classes with same URI but different types in them,
&gt; XSDHelper is keeping only types from first XSD. Here, two different classes
&gt; mean their class loaders are different.  If we load same two XSDs from
&gt; single class then there is no issue. is this the expected behavior?
&gt;
&gt; Regards
&gt;
&gt; Raman
&gt;
&gt; _____________________________________________
&gt; From: Malisetti, Ramanjaneyulu
&gt; Sent: Wednesday, 25 November 2009 5:39 PM
&gt;
&gt; To: 'tuscany-user@ws.apache.org'
&gt; Subject: RE: SDO UnmarshalException
&gt;
&gt; Hi Kelvin,
&gt;
&gt;                        &lt;&lt; File: SDO-Marshall-Exception.zip &gt;&gt;
&gt;
&gt; After so many trails I found the problem. The issue is where we are loading
&gt; Schemas and XML files with XMLHelpter.INSTANCE object. For example, if we
&gt; write one facade class to encapsulate all calls to SDO Api, it is leading to
&gt; issues like, “Feature not Found” while loading XML resource after loading
&gt; XSDs or ClassCastException: The feature 'xxxx's type 'DataObject' does not
&gt; permit a value of type 'xxx'. This is kind of issues can be avoided if we
&gt; call XMLHelpter.INSTANCE.define/load in our implementation.
&gt;
&gt; Here I attached sample source which is slightly complex example. I have
&gt; taken this scenario to replicate marshall error. However, I got symptoms of
&gt; the issue before I reach to RMI. So, you can see the issue from very
&gt; begining of the running Test from sdo.rmi.sample.hello RemoteDescriptor. To
&gt; illustrate the issue w.r.t attached sample…
&gt;
&gt; -       sdo.rmi.sampl.impl.util.BeanXmlHelper.java is a façade class which
&gt; encapsulate SDO APIs
&gt;
&gt; -       I load XSDs and XML with help of BeanXmlHelper  in
&gt; sdo.rmi.sample.hello.HelloDescriptor and sdo.rmi.sampl.impl.XMLDescriptor
&gt;
&gt; -       I use HelloDescriptor in HelloConnector.
&gt;
&gt; What is the right way of loading XSDs and XMLs so that I can have dynamic
&gt; types  in my code and can use them without in issues across different
&gt; classloaders?
&gt;
&gt; I don’t have much exp in using SDO APIs, please bear me if these questions
&gt; are very basic. I appreciate your help.
&gt;
&gt; Thanks in advance..
&gt;
&gt; Regards
&gt;
&gt; Raman
&gt;
&gt; _____________________________________________
&gt; From: Malisetti, Ramanjaneyulu
&gt; Sent: Monday, 23 November 2009 4:29 PM
&gt; To: 'tuscany-user@ws.apache.org'
&gt; Subject: RE: SDO UnmarshalException
&gt;
&gt; Thanks Kelvin for quick response. I am trying to reproduce with sample
&gt; program so that I can share that with you. Apparently, no luck. It means
&gt; there is something we are doing differently. I have been trying to identify
&gt; that..
&gt;
&gt; I’ll post progress.
&gt;
&gt; Regards
&gt;
&gt; Raman
&gt;
&gt; to be sure about this, I'd need to be able to recreate the problem
&gt;
&gt; with a bit of test code, and I've not played with SDO using RMI calls,
&gt;
&gt; but the SDO metadata associated with the namespace URI must be
&gt;
&gt; available when the XML document is parsed. This would be made
&gt;
&gt; available when either the XSDHelper is used to load a schema or
&gt;
&gt; generated SDO classes are registered with the environment, and it is
&gt;
&gt; going to need to be available in the jvm that the xml parsing is
&gt;
&gt; happening.
&gt;
&gt; Kelvin.
&gt;
&gt; _____________________________________________
&gt; From: Malisetti, Ramanjaneyulu
&gt; Sent: Friday, 20 November 2009 5:21 PM
&gt; To: 'tuscany-user@ws.apache.org'
&gt; Subject: SDO UnmarshalException
&gt;
&gt; Hi,
&gt;
&gt;           We have a class called Descriptor that loads XML and XSD files to
&gt; build SDO objects, this we are doing in its constructor.  We have another
&gt; class called Container that contains Descriptor  class.  If we make
&gt; Container class object as Remotable (Exported as RMI object) and call a
&gt; method on remotable object on RMI client side to get descriptor, it is
&gt; throwing the following exception . The below “not found URI” is there in
&gt; XML file. We are not getting what is the problem. Could you  helps us here
&gt; what is going wrong? BTW, we ensured all required interfaces as  Remote so
&gt; that there is nothing wrong on RMI side.
&gt;
&gt; java.rmi.UnmarshalException: error unmarshalling return; nested exception
&gt; is:
&gt;
&gt;         org.eclipse.emf.ecore.resource.Resource$IOWrappedException: Package
&gt; with uri 'http://www.abc.com/connex' not found. (http:///temp.xml, 3, 106)
&gt;
&gt;         at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:173)
&gt;
&gt;         at
&gt; java.rmi.server.RemoteObjectInvocationHandler.invokeRemoteMethod(RemoteObjectInvocationHandler.java:178)
&gt;
&gt;         at
&gt; java.rmi.server.RemoteObjectInvocationHandler.invoke(RemoteObjectInvocationHandler.java:132)
&gt;
&gt;         at $Proxy8.getDescriptor(Unknown Source)
&gt;
&gt;         at
&gt; com.abc.connector.impl.infrastructure.rmi.RemoteRMIConnectorProxy.getDescriptor(RemoteRMIConnectorProxy.java:66)
&gt;
&gt;         at
&gt; com.abc.connector.impl.infrastructure.rmi.test.TestRMIConnector.setUpBeforeClass(TestRMIConnector.java:79)
&gt;
&gt;         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
&gt;
&gt;         at
&gt; sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
&gt;
&gt;         at
&gt; sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
&gt;
&gt;         at java.lang.reflect.Method.invoke(Method.java:597)
&gt;
&gt;         at
&gt; org.junit.internal.runners.BeforeAndAfterRunner.invokeMethod(BeforeAndAfterRunner.java:74)
&gt;
&gt;         at
&gt; org.junit.internal.runners.BeforeAndAfterRunner.runBefores(BeforeAndAfterRunner.java:50)
&gt;
&gt;         at
&gt; org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:33)
&gt;
&gt;         at
&gt; org.junit.internal.runners.TestClassRunner.run(TestClassRunner.java:52)
&gt;
&gt;         at
&gt; org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:45)
&gt;
&gt;         at
&gt; org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
&gt;
&gt;         at
&gt; org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
&gt;
&gt;         at
&gt; org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
&gt;
&gt;         at
&gt; org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
&gt;
&gt;         at
&gt; org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
&gt;
&gt; Caused by: org.eclipse.emf.ecore.resource.Resource$IOWrappedException:
&gt; Package with uri 'http://www.abc.com/connex' not found. (http:///temp.xml,
&gt; 3, 106)
&gt;
&gt;         at
&gt; org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.handleErrors(XMLLoadImpl.java:83)
&gt;
&gt;         at
&gt; org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.load(XMLLoadImpl.java:278)
&gt;
&gt;         at
&gt; org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.doLoad(XMLResourceImpl.java:666)
&gt;
&gt;         at
&gt; org.apache.tuscany.sdo.util.resource.SDOXMLResourceImpl.doLoad(SDOXMLResourceImpl.java:589)
&gt;
&gt;         at
&gt; org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.load(XMLResourceImpl.java:634)
&gt;
&gt;         at
&gt; org.apache.tuscany.sdo.helper.XMLDocumentImpl.load(XMLDocumentImpl.java:266)
&gt;
&gt;         at
&gt; org.apache.tuscany.sdo.helper.XMLDocumentImpl.load(XMLDocumentImpl.java:239)
&gt;
&gt;         at
&gt; org.apache.tuscany.sdo.helper.XMLHelperImpl.load(XMLHelperImpl.java:97)
&gt;
&gt;         at
&gt; org.apache.tuscany.sdo.helper.XMLHelperImpl.load(XMLHelperImpl.java:79)
&gt;
&gt;         at
&gt; org.apache.tuscany.sdo.spi.HelperProviderBase$ResolvableImpl.readDataObject(HelperProviderBase.java:229)
&gt;
&gt;         at
&gt; org.apache.tuscany.sdo.spi.HelperProviderBase$ResolvableImpl.readExternal(HelperProviderBase.java:161)
&gt;
&gt;         at
&gt; commonj.sdo.impl.ExternalizableDelegator.readExternal(ExternalizableDelegator.java:83)
&gt;
&gt;         at
&gt; java.io.ObjectInputStream.readExternalData(ObjectInputStream.java:1792)
&gt;
&gt;         at
&gt; java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1751)
&gt;
&gt;         at
&gt; java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
&gt;
&gt;         at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
&gt;
&gt;         at
&gt; org.apache.tuscany.sdo.spi.HelperProviderBase$ResolvableImpl.readDataObject(HelperProviderBase.java:238)
&gt;
&gt;         at
&gt; org.apache.tuscany.sdo.spi.HelperProviderBase$ResolvableImpl.readExternal(HelperProviderBase.java:161)
&gt;
&gt;         at
&gt; commonj.sdo.impl.ExternalizableDelegator.readExternal(ExternalizableDelegator.java:83)
&gt;
&gt;         at
&gt; java.io.ObjectInputStream.readExternalData(ObjectInputStream.java:1792)
&gt;
&gt;         at
&gt; java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1751)
&gt;
&gt;         at
&gt; java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
&gt;
&gt;         at
&gt; java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947)
&gt;
&gt;         at
&gt; java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871)
&gt;
&gt;         at
&gt; java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
&gt;
&gt;         at
&gt; java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
&gt;
&gt;         at
&gt; java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947)
&gt;
&gt;         at
&gt; java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871)
&gt;
&gt;         at
&gt; java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
&gt;
&gt;         at
&gt; java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
&gt;
&gt;         at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
&gt;
&gt;         at sun.rmi.server.UnicastRef.unmarshalValue(UnicastRef.java:306)
&gt;
&gt;         at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:155)
&gt;
&gt;         ... 19 more
&gt;
&gt; Caused by: org.eclipse.emf.ecore.xmi.PackageNotFoundException: Package with
&gt; uri 'http://www.abc.com/connex' not found. (http:///temp.xml, 3, 106)
&gt;
&gt;         at
&gt; org.eclipse.emf.ecore.xmi.impl.XMLHandler.getPackageForURI(XMLHandler.java:2350)
&gt;
&gt;         at
&gt; org.eclipse.emf.ecore.xmi.impl.XMLHandler.getFactoryForPrefix(XMLHandler.java:2188)
&gt;
&gt;         at
&gt; org.eclipse.emf.ecore.xmi.impl.XMLHandler.createObjectFromTypeName(XMLHandler.java:1828)
&gt;
&gt;         at
&gt; org.eclipse.emf.ecore.xmi.impl.XMLHandler.createObject(XMLHandler.java:1787)
&gt;
&gt;         at
&gt; org.eclipse.emf.ecore.xmi.impl.XMLHandler.handleFeature(XMLHandler.java:1569)
&gt;
&gt;         at
&gt; org.eclipse.emf.ecore.xmi.impl.XMLHandler.createDocumentRoot(XMLHandler.java:1237)
&gt;
&gt;         at
&gt; org.eclipse.emf.ecore.xmi.impl.XMLHandler.createObjectByType(XMLHandler.java:1165)
&gt;
&gt;         at
&gt; org.eclipse.emf.ecore.xmi.impl.XMLHandler.createTopObject(XMLHandler.java:1247)
&gt;
&gt;         at
&gt; org.eclipse.emf.ecore.xmi.impl.XMLHandler.processElement(XMLHandler.java:883)
&gt;
&gt;         at
&gt; org.eclipse.emf.ecore.xmi.impl.XMLHandler.startElement(XMLHandler.java:866)
&gt;
&gt;         at
&gt; org.eclipse.emf.ecore.xmi.impl.XMLHandler.startElement(XMLHandler.java:627)
&gt;
&gt;         at
&gt; org.apache.tuscany.sdo.util.resource.SDOXMLResourceImpl$SDOXMLLoadImpl$XmlHandler.startElement(SDOXMLResourceImpl.java:405)
&gt;
&gt;         at
&gt; com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:501)
&gt;
&gt;         at
&gt; com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:400)
&gt;
&gt;         at
&gt; com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl$NSContentDriver.scanRootElementHook(XMLNSDocumentScannerImpl.java:626)
&gt;
&gt;         at
&gt; com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:3088)
&gt;
&gt;         at
&gt; com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:914)
&gt;
&gt;         at
&gt; com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:647)
&gt;
&gt;         at
&gt; com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:140)
&gt;
&gt;         at
&gt; com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:508)
&gt;
&gt;         at
&gt; com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:807)
&gt;
&gt;         at
&gt; com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
&gt;
&gt;         at
&gt; com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:107)
&gt;
&gt;         at
&gt; com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)
&gt;
&gt;         at
&gt; com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)
&gt;
&gt;         at javax.xml.parsers.SAXParser.parse(SAXParser.java:395)
&gt;
&gt;         at
&gt; org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.load(XMLLoadImpl.java:268)
&gt;
&gt;         ... 50 more
&gt;
&gt; Regards
&gt;
&gt; Raman


</pre>
</div>
</content>
</entry>
<entry>
<title>RE: SDO UnmarshalException</title>
<author><name>&quot;Malisetti, Ramanjaneyulu&quot; &lt;Ramanjaneyulu.Malisetti@ca.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tuscany-user/200911.mbox/%3c9AB704E9182FC34D97F394D449EE17DC88ADEA@INHYMS12.ca.com%3e"/>
<id>urn:uuid:%3c9AB704E9182FC34D97F394D449EE17DC88ADEA@INHYMS12-ca-com%3e</id>
<updated>2009-11-26T12:26:17Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Now I understood the problem. It is happening in scenario like if we load two XSDs from different
classes with same URI but different types in them, XSDHelper is keeping only types from first
XSD. Here, two different classes mean their class loaders are different.  If we load same
two XSDs from single class then there is no issue. is this the expected behavior?

Regards
Raman

_____________________________________________
From: Malisetti, Ramanjaneyulu 
Sent: Wednesday, 25 November 2009 5:39 PM
To: 'tuscany-user@ws.apache.org'
Subject: RE: SDO UnmarshalException


Hi Kelvin,
                       &lt;&lt; File: SDO-Marshall-Exception.zip &gt;&gt; 

After so many trails I found the problem. The issue is where we are loading Schemas and XML
files with XMLHelpter.INSTANCE object. For example, if we write one facade class to encapsulate
all calls to SDO Api, it is leading to issues like, "Feature not Found" while loading XML
resource after loading XSDs or ClassCastException: The feature 'xxxx's type 'DataObject' does
not permit a value of type 'xxx'. This is kind of issues can be avoided if we call XMLHelpter.INSTANCE.define/load
in our implementation. 

Here I attached sample source which is slightly complex example. I have taken this scenario
to replicate marshall error. However, I got symptoms of the issue before I reach to RMI. So,
you can see the issue from very begining of the running Test from sdo.rmi.sample.hello RemoteDescriptor.
To illustrate the issue w.r.t attached sample...

-	sdo.rmi.sampl.impl.util.BeanXmlHelper.java is a façade class which encapsulate SDO APIs
-	I load XSDs and XML with help of BeanXmlHelper  in sdo.rmi.sample.hello.HelloDescriptor
and sdo.rmi.sampl.impl.XMLDescriptor
-	I use HelloDescriptor in HelloConnector.

What is the right way of loading XSDs and XMLs so that I can have dynamic types  in my code
and can use them without in issues across different classloaders?

I don't have much exp in using SDO APIs, please bear me if these questions are very basic.
I appreciate your help.

Thanks in advance..

Regards
Raman
_____________________________________________
From: Malisetti, Ramanjaneyulu 
Sent: Monday, 23 November 2009 4:29 PM
To: 'tuscany-user@ws.apache.org'
Subject: RE: SDO UnmarshalException



Thanks Kelvin for quick response. I am trying to reproduce with sample program so that I can
share that with you. Apparently, no luck. It means there is something we are doing differently.
I have been trying to identify that..

I'll post progress.

Regards
Raman





to be sure about this, I'd need to be able to recreate the problem
with a bit of test code, and I've not played with SDO using RMI calls,
but the SDO metadata associated with the namespace URI must be
available when the XML document is parsed. This would be made
available when either the XSDHelper is used to load a schema or
generated SDO classes are registered with the environment, and it is
going to need to be available in the jvm that the xml parsing is
happening.

Kelvin.


_____________________________________________
From: Malisetti, Ramanjaneyulu 
Sent: Friday, 20 November 2009 5:21 PM
To: 'tuscany-user@ws.apache.org'
Subject: SDO UnmarshalException


Hi,
          We have a class called Descriptor that loads XML and XSD files to build SDO objects,
this we are doing in its constructor.  We have another class called Container that contains
Descriptor  class.  If we make Container class object as Remotable (Exported as RMI object)
and call a method on remotable object on RMI client side to get descriptor, it is throwing
the following exception . The below "not found URI" is there in  XML file. We are not getting
what is the problem. Could you  helps us here what is going wrong? BTW, we ensured all required
interfaces as  Remote so that there is nothing wrong on RMI side.


java.rmi.UnmarshalException: error unmarshalling return; nested exception is: 
	org.eclipse.emf.ecore.resource.Resource$IOWrappedException: Package with uri 'http://www.abc.com/connex'
not found. (http:///temp.xml, 3, 106)
	at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:173)
	at java.rmi.server.RemoteObjectInvocationHandler.invokeRemoteMethod(RemoteObjectInvocationHandler.java:178)
	at java.rmi.server.RemoteObjectInvocationHandler.invoke(RemoteObjectInvocationHandler.java:132)
	at $Proxy8.getDescriptor(Unknown Source)
	at com.abc.connector.impl.infrastructure.rmi.RemoteRMIConnectorProxy.getDescriptor(RemoteRMIConnectorProxy.java:66)
	at com.abc.connector.impl.infrastructure.rmi.test.TestRMIConnector.setUpBeforeClass(TestRMIConnector.java:79)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.junit.internal.runners.BeforeAndAfterRunner.invokeMethod(BeforeAndAfterRunner.java:74)
	at org.junit.internal.runners.BeforeAndAfterRunner.runBefores(BeforeAndAfterRunner.java:50)
	at org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:33)
	at org.junit.internal.runners.TestClassRunner.run(TestClassRunner.java:52)
	at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:45)
	at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
Caused by: org.eclipse.emf.ecore.resource.Resource$IOWrappedException: Package with uri 'http://www.abc.com/connex'
not found. (http:///temp.xml, 3, 106)
	at org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.handleErrors(XMLLoadImpl.java:83)
	at org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.load(XMLLoadImpl.java:278)
	at org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.doLoad(XMLResourceImpl.java:666)
	at org.apache.tuscany.sdo.util.resource.SDOXMLResourceImpl.doLoad(SDOXMLResourceImpl.java:589)
	at org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.load(XMLResourceImpl.java:634)
	at org.apache.tuscany.sdo.helper.XMLDocumentImpl.load(XMLDocumentImpl.java:266)
	at org.apache.tuscany.sdo.helper.XMLDocumentImpl.load(XMLDocumentImpl.java:239)
	at org.apache.tuscany.sdo.helper.XMLHelperImpl.load(XMLHelperImpl.java:97)
	at org.apache.tuscany.sdo.helper.XMLHelperImpl.load(XMLHelperImpl.java:79)
	at org.apache.tuscany.sdo.spi.HelperProviderBase$ResolvableImpl.readDataObject(HelperProviderBase.java:229)
	at org.apache.tuscany.sdo.spi.HelperProviderBase$ResolvableImpl.readExternal(HelperProviderBase.java:161)
	at commonj.sdo.impl.ExternalizableDelegator.readExternal(ExternalizableDelegator.java:83)
	at java.io.ObjectInputStream.readExternalData(ObjectInputStream.java:1792)
	at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1751)
	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
	at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
	at org.apache.tuscany.sdo.spi.HelperProviderBase$ResolvableImpl.readDataObject(HelperProviderBase.java:238)
	at org.apache.tuscany.sdo.spi.HelperProviderBase$ResolvableImpl.readExternal(HelperProviderBase.java:161)
	at commonj.sdo.impl.ExternalizableDelegator.readExternal(ExternalizableDelegator.java:83)
	at java.io.ObjectInputStream.readExternalData(ObjectInputStream.java:1792)
	at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1751)
	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
	at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947)
	at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871)
	at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
	at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947)
	at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871)
	at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
	at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
	at sun.rmi.server.UnicastRef.unmarshalValue(UnicastRef.java:306)
	at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:155)
	... 19 more
Caused by: org.eclipse.emf.ecore.xmi.PackageNotFoundException: Package with uri 'http://www.abc.com/connex'
not found. (http:///temp.xml, 3, 106)
	at org.eclipse.emf.ecore.xmi.impl.XMLHandler.getPackageForURI(XMLHandler.java:2350)
	at org.eclipse.emf.ecore.xmi.impl.XMLHandler.getFactoryForPrefix(XMLHandler.java:2188)
	at org.eclipse.emf.ecore.xmi.impl.XMLHandler.createObjectFromTypeName(XMLHandler.java:1828)
	at org.eclipse.emf.ecore.xmi.impl.XMLHandler.createObject(XMLHandler.java:1787)
	at org.eclipse.emf.ecore.xmi.impl.XMLHandler.handleFeature(XMLHandler.java:1569)
	at org.eclipse.emf.ecore.xmi.impl.XMLHandler.createDocumentRoot(XMLHandler.java:1237)
	at org.eclipse.emf.ecore.xmi.impl.XMLHandler.createObjectByType(XMLHandler.java:1165)
	at org.eclipse.emf.ecore.xmi.impl.XMLHandler.createTopObject(XMLHandler.java:1247)
	at org.eclipse.emf.ecore.xmi.impl.XMLHandler.processElement(XMLHandler.java:883)
	at org.eclipse.emf.ecore.xmi.impl.XMLHandler.startElement(XMLHandler.java:866)
	at org.eclipse.emf.ecore.xmi.impl.XMLHandler.startElement(XMLHandler.java:627)
	at org.apache.tuscany.sdo.util.resource.SDOXMLResourceImpl$SDOXMLLoadImpl$XmlHandler.startElement(SDOXMLResourceImpl.java:405)
	at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:501)
	at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:400)
	at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl$NSContentDriver.scanRootElementHook(XMLNSDocumentScannerImpl.java:626)
	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:3088)
	at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:914)
	at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:647)
	at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:140)
	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:508)
	at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:807)
	at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
	at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:107)
	at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)
	at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)
	at javax.xml.parsers.SAXParser.parse(SAXParser.java:395)
	at org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.load(XMLLoadImpl.java:268)
	... 50 more

Regards
Raman


</pre>
</div>
</content>
</entry>
</feed>
