You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@tuscany.apache.org by "Sykes, Phil" <Ph...@sungardhe.com> on 2008/12/19 15:33:51 UTC

bpel

I can see that tuscany uses ode for the bpel implementation.  Does tuscany provide a way to plugin a differnent bpel implementation?  Actually, the question is more broad than that....can you change the implementation of any of the components of tuscany or is it tightly coupled to products that ship with it?

Thanks,

Phil

Philip Sykes * Principal Java Developer, Banner Product Engineering * SunGard Higher Education * 3 Country View Road, Malvern PA 19335 * Tel 610 578 5185 * Phil.Sykes@sungardhe.com<ma...@sungardhe.com> * www.sungardhe.com<http://www.sungardhe.com/>


RE: bpel

Posted by sh...@rsa.com.
Hi Phil,
	
	Are you evaluating BPEL from jboss. What are other implementations
you are looking.
Would it be possible for you share any issues you come across in arriving at
your decision.


Regards,
Shobha
____________________________________________
Shobha Rani J | RSA India | Ph - 91 80 4013 8576 

-----Original Message-----
From: Sykes, Phil [mailto:Phil.Sykes@sungardhe.com] 
Sent: Monday, December 22, 2008 7:40 PM
To: user@tuscany.apache.org
Subject: RE: bpel

Thanks Mike,

We are currently evaluating BPEL implementations.  For my current project we
will proabaly need to support 2 diffferent implementations.  ODE may be one
but we will need to support another, possibly Oracle.   I appreciate the
offer to discuss this further.  I will contact you as soon as we make our
decision.

Phil 

-----Original Message-----
From: Mike Edwards [mailto:mike.edwards.inglenook@gmail.com] 
Sent: Monday, December 22, 2008 5:35 AM
To: user@tuscany.apache.org
Subject: Re: bpel

Phil,

Do you have a particular other BPEL implementation in mind?

As Simon says in his reply to you, Tuscany is structured to allow different
implementations of BPEL 
to to be used rather than ODE.  How easy or difficult it is to plug in
another implementation of 
BPEL will mostly depend on the interfaces that the BPEL engine offers - it
must be possible for the 
Tuscany code to tell the BPEL engine to start a particular BPEL process and
for Tuscany to be able 
to call operations on that process - and to provide the implementation for
partnerLinks from the 
process.

I'll be happy to discuss this further with you.

Yours,  Mike.

Sykes, Phil wrote:
> I can see that tuscany uses ode for the bpel implementation.  Does 
> tuscany provide a way to plugin a differnent bpel implementation?  
> Actually, the question is more broad than that..can you change the 
> implementation of any of the components of tuscany or is it tightly 
> coupled to products that ship with it?
> 
>  
> 
> Thanks,
> 
>  
> 
> Phil
> 
>  
> 
> Philip Sykes * Principal Java Developer, Banner Product Engineering * 
> SunGard Higher Education * 3 Country View Road, Malvern PA 19335 * Tel 
> 610 578 5185 * Phil.Sykes@sungardhe.com 
> <ma...@sungardhe.com> * www.sungardhe.com 
> <http://www.sungardhe.com/>
> 
>  
> 


Re: rampart / security / callbacks

Posted by Abraham Washington <ab...@yahoo.com>.
anyone have a guess?  googled around but nothing seems to make much sense.

thx abe




________________________________
From: Abraham Washington <ab...@yahoo.com>
To: user@tuscany.apache.org
Sent: Monday, December 22, 2008 9:03:01 PM
Subject: Re: rampart / security / callbacks


more information...the service is running on jboss 4.3.2.ga and i'm using jdk 1.6.  the client is using another instance of jboss 4.2.3.ga and is using jdk 1.6 as well. 

hope that helps. thx abe




________________________________
From: Abraham Washington <ab...@yahoo.com>
To: user@tuscany.apache.org
Sent: Monday, December 22, 2008 11:15:14 AM
Subject: rampart / security / callbacks


hi all...i'm trying to use tuscany's policySet and callbacks for authentication, but i'm getting the error below.  the client callback class is called, but the server class is not.  here's my config for the client:

<!-- WS Security POLICY SETS --><sca:policySet name="soasecurity:wsAuthenticationPolicy"provides="authentication"appliesTo="sca:binding.ws"><tuscany:wsConfigParam><parameter name="InflowSecurity"><action><items>UsernameToken</items><passwordCallbackClass>org.soa.services.security.client.ServerPWCBHandler</passwordCallbackClass></action></parameter></tuscany:wsConfigParam></sca:policySet>


here's the server (my tuscany service) security:
<
 sca:definitions xmlns="http://www.osoa.org/xmlns/sca/1.0"targetNamespace="http://www.osoa.org/xmlns/sca/1.0"xmlns:sca="http://www.osoa.org/xmlns/sca/1.0"xmlns:tuscany="http://tuscany.apache.org/xmlns/sca/1.0"xmlns:soasecurity="http://org.soa.services">
<sca:policySet name="oasecurity:wsAuthenticationPolicy"provides="authentication"appliesTo="sca:binding.ws"><tuscany:wsConfigParam><parameter name="InflowSecurity"><action><items>UsernameToken</items><passwordCallbackClass>org.soa.services.security.server.ServerPWCBHandler</passwordCallbackClass></action></parameter></tuscany:wsConfigParam> 
 </sca:policySet>
10:56:01,694 INFO  [STDOUT] message -> org.apache.tuscany.sca.interfacedef.util.FaultException: Must Understand check failed for header http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd : Security
10:56:01,695 ERROR [STDERR] org.osoa.sca.ServiceRuntimeException: org.apache.tuscany.sca.interfacedef.util.FaultExceptio
n: Must Understand check failed for header http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd : Security
10:56:01,697 ERROR [STDERR]     at org.apache.tuscany.sca.core.databinding.wire.DataTransformationInterceptor.invoke(Dat
aTransformationInterceptor.java:136)
10:56:01,697 ERROR [STDERR]     at org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandl
er.java:287)
10:56:01,698 ERROR [STDERR]     at org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandl
er.java:154)
10:56:01,698 ERROR [STDERR]     at $Proxy72.findOrganization(Unknown Source)
10:56:01,699 ERROR [STDERR]     at org.soa.services.OrganizationServiceImpl.findOrganization(OrganizationServiceImp
l.java:21)
10:56:01,699 ERROR [STDERR]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
10:56:01,699 ERROR [STDERR]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
10:56:01,700 ERROR [STDERR]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
10:56:01,700 ERROR [STDERR]     at java.lang.reflect.Method.invoke(Method.java:597)
10:56:01,701 ERROR [STDERR]     at org.apache.tuscany.sca.implementation.java.invocation.JavaImplementationInvoker.invok
e(JavaImplementationInvoker.java:132)
10:56:01,701 ERROR [STDERR]     at org.apache.tuscany.sca.core.databinding.wire.PassByValueInterceptor.invoke(PassByValu
eInterceptor.java:112)
10:56:01,702 ERROR [STDERR]     at org.apache.tuscany.sca.binding.sca.impl.SCABindingInvoker.invoke(SCABindingInvoker.ja
va:61)
10:56:01,702 ERROR [STDERR]     at org.apache.tuscany.sca.core.databinding.wire.PassByValueInterceptor.invoke(PassByValu
eInterceptor.java:112)
10:56:01,703 ERROR [STDERR]     at org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandl
er.java:287)
10:56:01,703 ERROR [STDERR]     at org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandl
er.java:154)


thx abe


      

Re: rampart / security / callbacks

Posted by Abraham Washington <ab...@yahoo.com>.
more information...the service is running on jboss 4.3.2.ga and i'm using jdk 1.6.  the client is using another instance of jboss 4.2.3.ga and is using jdk 1.6 as well. 

hope that helps. thx abe




________________________________
From: Abraham Washington <ab...@yahoo.com>
To: user@tuscany.apache.org
Sent: Monday, December 22, 2008 11:15:14 AM
Subject: rampart / security / callbacks


hi all...i'm trying to use tuscany's policySet and callbacks for authentication, but i'm getting the error below.  the client callback class is called, but the server class is not.  here's my config for the client:

<!-- WS Security POLICY SETS --><sca:policySet name="soasecurity:wsAuthenticationPolicy"provides="authentication"appliesTo="sca:binding.ws"><tuscany:wsConfigParam><parameter name="InflowSecurity"><action><items>UsernameToken</items><passwordCallbackClass>org.soa.services.security.client.ServerPWCBHandler</passwordCallbackClass></action></parameter></tuscany:wsConfigParam></sca:policySet>


here's the server (my tuscany service) security:
<
 sca:definitions xmlns="http://www.osoa.org/xmlns/sca/1.0"targetNamespace="http://www.osoa.org/xmlns/sca/1.0"xmlns:sca="http://www.osoa.org/xmlns/sca/1.0"xmlns:tuscany="http://tuscany.apache.org/xmlns/sca/1.0"xmlns:soasecurity="http://org.soa.services">
<sca:policySet name="oasecurity:wsAuthenticationPolicy"provides="authentication"appliesTo="sca:binding.ws"><tuscany:wsConfigParam><parameter name="InflowSecurity"><action><items>UsernameToken</items><passwordCallbackClass>org.soa.services.security.server.ServerPWCBHandler</passwordCallbackClass></action></parameter></tuscany:wsConfigParam> 
 </sca:policySet>
10:56:01,694 INFO  [STDOUT] message -> org.apache.tuscany.sca.interfacedef.util.FaultException: Must Understand check failed for header http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd : Security
10:56:01,695 ERROR [STDERR] org.osoa.sca.ServiceRuntimeException: org.apache.tuscany.sca.interfacedef.util.FaultExceptio
n: Must Understand check failed for header http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd : Security
10:56:01,697 ERROR [STDERR]     at org.apache.tuscany.sca.core.databinding.wire.DataTransformationInterceptor.invoke(Dat
aTransformationInterceptor.java:136)
10:56:01,697 ERROR [STDERR]     at org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandl
er.java:287)
10:56:01,698 ERROR [STDERR]     at org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandl
er.java:154)
10:56:01,698 ERROR [STDERR]     at $Proxy72.findOrganization(Unknown Source)
10:56:01,699 ERROR [STDERR]     at org.soa.services.OrganizationServiceImpl.findOrganization(OrganizationServiceImp
l.java:21)
10:56:01,699 ERROR [STDERR]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
10:56:01,699 ERROR [STDERR]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
10:56:01,700 ERROR [STDERR]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
10:56:01,700 ERROR [STDERR]     at java.lang.reflect.Method.invoke(Method.java:597)
10:56:01,701 ERROR [STDERR]     at org.apache.tuscany.sca.implementation.java.invocation.JavaImplementationInvoker.invok
e(JavaImplementationInvoker.java:132)
10:56:01,701 ERROR [STDERR]     at org.apache.tuscany.sca.core.databinding.wire.PassByValueInterceptor.invoke(PassByValu
eInterceptor.java:112)
10:56:01,702 ERROR [STDERR]     at org.apache.tuscany.sca.binding.sca.impl.SCABindingInvoker.invoke(SCABindingInvoker.ja
va:61)
10:56:01,702 ERROR [STDERR]     at org.apache.tuscany.sca.core.databinding.wire.PassByValueInterceptor.invoke(PassByValu
eInterceptor.java:112)
10:56:01,703 ERROR [STDERR]     at org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandl
er.java:287)
10:56:01,703 ERROR [STDERR]     at org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandl
er.java:154)


thx abe


      

rampart / security / callbacks

Posted by Abraham Washington <ab...@yahoo.com>.
hi all...i'm trying to use tuscany's policySet and callbacks for authentication, but i'm getting the error below.  the client callback class is called, but the server class is not.  here's my config for the client:

<!-- WS Security POLICY SETS --><sca:policySet name="soasecurity:wsAuthenticationPolicy"provides="authentication"appliesTo="sca:binding.ws"><tuscany:wsConfigParam><parameter name="InflowSecurity"><action><items>UsernameToken</items><passwordCallbackClass>org.soa.services.security.client.ServerPWCBHandler</passwordCallbackClass></action></parameter></tuscany:wsConfigParam></sca:policySet>


here's the server (my tuscany service) security:
<
 sca:definitions xmlns="http://www.osoa.org/xmlns/sca/1.0"targetNamespace="http://www.osoa.org/xmlns/sca/1.0"xmlns:sca="http://www.osoa.org/xmlns/sca/1.0"xmlns:tuscany="http://tuscany.apache.org/xmlns/sca/1.0"xmlns:soasecurity="http://org.soa.services">
<sca:policySet name="oasecurity:wsAuthenticationPolicy"provides="authentication"appliesTo="sca:binding.ws"><tuscany:wsConfigParam><parameter name="InflowSecurity"><action><items>UsernameToken</items><passwordCallbackClass>org.soa.services.security.server.ServerPWCBHandler</passwordCallbackClass></action></parameter></tuscany:wsConfigParam> 
 </sca:policySet>
10:56:01,694 INFO  [STDOUT] message -> org.apache.tuscany.sca.interfacedef.util.FaultException: Must Understand check failed for header http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd : Security
10:56:01,695 ERROR [STDERR] org.osoa.sca.ServiceRuntimeException: org.apache.tuscany.sca.interfacedef.util.FaultExceptio
n: Must Understand check failed for header http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd : Security
10:56:01,697 ERROR [STDERR]     at org.apache.tuscany.sca.core.databinding.wire.DataTransformationInterceptor.invoke(Dat
aTransformationInterceptor.java:136)
10:56:01,697 ERROR [STDERR]     at org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandl
er.java:287)
10:56:01,698 ERROR [STDERR]     at org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandl
er.java:154)
10:56:01,698 ERROR [STDERR]     at $Proxy72.findOrganization(Unknown Source)
10:56:01,699 ERROR [STDERR]     at org.soa.services.OrganizationServiceImpl.findOrganization(OrganizationServiceImp
l.java:21)
10:56:01,699 ERROR [STDERR]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
10:56:01,699 ERROR [STDERR]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
10:56:01,700 ERROR [STDERR]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
10:56:01,700 ERROR [STDERR]     at java.lang.reflect.Method.invoke(Method.java:597)
10:56:01,701 ERROR [STDERR]     at org.apache.tuscany.sca.implementation.java.invocation.JavaImplementationInvoker.invok
e(JavaImplementationInvoker.java:132)
10:56:01,701 ERROR [STDERR]     at org.apache.tuscany.sca.core.databinding.wire.PassByValueInterceptor.invoke(PassByValu
eInterceptor.java:112)
10:56:01,702 ERROR [STDERR]     at org.apache.tuscany.sca.binding.sca.impl.SCABindingInvoker.invoke(SCABindingInvoker.ja
va:61)
10:56:01,702 ERROR [STDERR]     at org.apache.tuscany.sca.core.databinding.wire.PassByValueInterceptor.invoke(PassByValu
eInterceptor.java:112)
10:56:01,703 ERROR [STDERR]     at org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandl
er.java:287)
10:56:01,703 ERROR [STDERR]     at org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandl
er.java:154)


thx abe


      

RE: bpel

Posted by "Sykes, Phil" <Ph...@sungardhe.com>.
Thanks Mike,

We are currently evaluating BPEL implementations.  For my current project we will proabaly need to support 2 diffferent implementations.  ODE may be one but we will need to support another, possibly Oracle.   I appreciate the offer to discuss this further.  I will contact you as soon as we make our decision.

Phil 

-----Original Message-----
From: Mike Edwards [mailto:mike.edwards.inglenook@gmail.com] 
Sent: Monday, December 22, 2008 5:35 AM
To: user@tuscany.apache.org
Subject: Re: bpel

Phil,

Do you have a particular other BPEL implementation in mind?

As Simon says in his reply to you, Tuscany is structured to allow different implementations of BPEL 
to to be used rather than ODE.  How easy or difficult it is to plug in another implementation of 
BPEL will mostly depend on the interfaces that the BPEL engine offers - it must be possible for the 
Tuscany code to tell the BPEL engine to start a particular BPEL process and for Tuscany to be able 
to call operations on that process - and to provide the implementation for partnerLinks from the 
process.

I'll be happy to discuss this further with you.

Yours,  Mike.

Sykes, Phil wrote:
> I can see that tuscany uses ode for the bpel implementation.  Does 
> tuscany provide a way to plugin a differnent bpel implementation?  
> Actually, the question is more broad than that….can you change the 
> implementation of any of the components of tuscany or is it tightly 
> coupled to products that ship with it?
> 
>  
> 
> Thanks,
> 
>  
> 
> Phil
> 
>  
> 
> Philip Sykes * Principal Java Developer, Banner Product Engineering * 
> SunGard Higher Education * 3 Country View Road, Malvern PA 19335 * Tel 
> 610 578 5185 * Phil.Sykes@sungardhe.com 
> <ma...@sungardhe.com> * www.sungardhe.com 
> <http://www.sungardhe.com/>
> 
>  
> 


Re: bpel

Posted by Mike Edwards <mi...@gmail.com>.
Phil,

Do you have a particular other BPEL implementation in mind?

As Simon says in his reply to you, Tuscany is structured to allow different implementations of BPEL 
to to be used rather than ODE.  How easy or difficult it is to plug in another implementation of 
BPEL will mostly depend on the interfaces that the BPEL engine offers - it must be possible for the 
Tuscany code to tell the BPEL engine to start a particular BPEL process and for Tuscany to be able 
to call operations on that process - and to provide the implementation for partnerLinks from the 
process.

I'll be happy to discuss this further with you.

Yours,  Mike.

Sykes, Phil wrote:
> I can see that tuscany uses ode for the bpel implementation.  Does 
> tuscany provide a way to plugin a differnent bpel implementation?  
> Actually, the question is more broad than that….can you change the 
> implementation of any of the components of tuscany or is it tightly 
> coupled to products that ship with it?
> 
>  
> 
> Thanks,
> 
>  
> 
> Phil
> 
>  
> 
> Philip Sykes * Principal Java Developer, Banner Product Engineering * 
> SunGard Higher Education * 3 Country View Road, Malvern PA 19335 * Tel 
> 610 578 5185 * Phil.Sykes@sungardhe.com 
> <ma...@sungardhe.com> * www.sungardhe.com 
> <http://www.sungardhe.com/>
> 
>  
> 


Re: tuscany exceptions

Posted by Abraham Washington <ab...@yahoo.com>.
thx scott for the reference.  will check it out.

 



________________________________
From: Scott Kurz <sc...@gmail.com>
To: user@tuscany.apache.org
Sent: Tuesday, December 23, 2008 9:02:50 AM
Subject: Re: tuscany exceptions

Abraham,

Another tip is to view the Wiki page:
http://cwiki.apache.org/confluence/display/TUSCANYWIKI/Databinding+Scope

and read section

 "Business Exceptions/Faults"

to understand how we use the JAX-WS specification to guide our implementation in this area.

Scott



      

Re: domain manager node fails to start

Posted by Ramkumar R <ra...@gmail.com>.
Hi Abraham,

This is a known issue with Spring Implementation and is been addressed in
release 1.4, which is expected to be released within the end of the year.

If you like to give a try with the release candidate of 1.4, the please
download the artifacts from
http://people.apache.org/~ramkumar/tuscany/1.4RC3/.

Please let me know, if this version resolves your issue. Thanks.

On Thu, Dec 25, 2008 at 4:11 AM, Abraham Washington <ab...@yahoo.com>wrote:

> hi all, i'm trying to deploy an application using the tuscany domain
> manager.  used this link as a reference:
>
>
> http://www.ibm.com/developerworks/webservices/library/ws-sca-tuscany/index.html?S_TACT=105AGX04&S_CMP=EDU
>
> everything went smooth.  was able to add the contribution, composite and
> node using the ui (http://localhost:9990/ui/home).  no errors came up
> while going thru the steps.  after trying to start the node, i'm getting the
> following error below (tuscany sca 1.3, jdk 1.6):
>
> $ java -jar modules/tuscany-node2-launcher-1.3.jar
> http://127.0.0.1:9990/node-config/Organization-Service-Node
> Dec 24, 2008 3:12:33 PM org.apache.tuscany.sca.node.launcher.NodeLauncher
> main
> INFO: Apache Tuscany SCA Node starting...
> Dec 24, 2008 3:12:33 PM org.apache.tuscany.sca.node.launcher.NodeLauncher
> main
> INFO: SCA Node configuration:
> http://127.0.0.1:9990/node-config/Organization-Service-Node
> Dec 24, 2008 3:12:33 PM org.apache.tuscany.sca.node.impl.NodeImpl <init>
> INFO: Creating node:
> http://127.0.0.1:9990/node-config/Organization-Service-Node
> Dec 24, 2008 3:12:34 PM org.apache.tuscany.sca.node.impl.NodeImpl
> configureNode
> INFO: Loading contribution:
> file:/C:/work/development/Organization-Service-Composite/target/organization-service.jar
> Dec 24, 2008 3:12:36 PM
> org.apache.tuscany.sca.implementation.spring.SpringImplementationProcessor
> SEVERE: ContributionResolveException occured due to:
> Dec 24, 2008 3:12:36 PM
> org.apache.tuscany.sca.node.launcher.NodeLauncherUtil node
> SEVERE: SCA Node could not be created
> java.lang.reflect.InvocationTargetException
>         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
> Method)
>         at
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
>         at
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
>         at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
>         at
> org.apache.tuscany.sca.node.launcher.NodeLauncherUtil.node(NodeLauncherUtil.java:340)
>         at
> org.apache.tuscany.sca.node.launcher.NodeLauncher.createNode(NodeLauncher.java:60)
>         at
> org.apache.tuscany.sca.node.launcher.NodeLauncher.main(NodeLauncher.java:122)
>         at
> org.apache.tuscany.sca.node.launcher.NodeMain.main(NodeMain.java:38)
> Caused by: org.osoa.sca.ServiceRuntimeException:
> org.apache.tuscany.sca.contribution.service.ContributionResolveExceptio
> n: org.apache.tuscany.sca.contribution.service.ContributionReadException:
> SpringXMLLoader getApplicationContextResource:
>  unable to find resource file Organization-spring-context.xml
>         at
> org.apache.tuscany.sca.node.impl.NodeImpl.<init>(NodeImpl.java:173)
>         at
> org.apache.tuscany.sca.node.impl.NodeFactoryImpl.createSCANodeFromURL(NodeFactoryImpl.java:42)
>         at
> org.apache.tuscany.sca.implementation.node.launcher.NodeImplementationLauncherBootstrap.<init>(NodeImplementa
> tionLauncherBootstrap.java:94)
>         ... 8 more
> Caused by:
> org.apache.tuscany.sca.contribution.service.ContributionResolveException:
> org.apache.tuscany.sca.contribution
> .service.ContributionReadException: SpringXMLLoader
> getApplicationContextResource: unable to find resource file Organiza
> tion-spring-context.xml
>         at
> org.apache.tuscany.sca.implementation.spring.SpringImplementationProcessor.resolve(SpringImplementationProces
> sor.java:198)
>         at
> org.apache.tuscany.sca.implementation.spring.SpringImplementationProcessor.resolve(SpringImplementationProces
> sor.java:53)
>         at
> org.apache.tuscany.sca.contribution.processor.DefaultStAXArtifactProcessorExtensionPoint$LazyStAXArtifactProc
> essor.resolve(DefaultStAXArtifactProcessorExtensionPoint.java:364)
>         at
> org.apache.tuscany.sca.contribution.processor.ExtensibleStAXArtifactProcessor.resolve(ExtensibleStAXArtifactP
> rocessor.java:170)
>         at
> org.apache.tuscany.sca.assembly.xml.BaseAssemblyProcessor.resolveImplementation(BaseAssemblyProcessor.java:30
> 1)
>         at
> org.apache.tuscany.sca.assembly.xml.CompositeProcessor.resolve(CompositeProcessor.java:901)
>         at
> org.apache.tuscany.sca.assembly.xml.CompositeProcessor.resolve(CompositeProcessor.java:87)
>         at
> org.apache.tuscany.sca.contribution.processor.DefaultStAXArtifactProcessorExtensionPoint$LazyStAXArtifactProc
> essor.resolve(DefaultStAXArtifactProcessorExtensionPoint.java:364)
>         at
> org.apache.tuscany.sca.contribution.processor.ExtensibleStAXArtifactProcessor.resolve(ExtensibleStAXArtifactP
> rocessor.java:170)
>         at
> org.apache.tuscany.sca.assembly.xml.CompositeDocumentProcessor.resolve(CompositeDocumentProcessor.java:164)
>         at
> org.apache.tuscany.sca.assembly.xml.CompositeDocumentProcessor.resolve(CompositeDocumentProcessor.java:56)
>         at
> org.apache.tuscany.sca.contribution.processor.ExtensibleURLArtifactProcessor.resolve(ExtensibleURLArtifactPro
> cessor.java:106)
>         at
> org.apache.tuscany.sca.contribution.service.impl.ContributionServiceImpl.processResolvePhase(ContributionServ
> iceImpl.java:530)
>         at
> org.apache.tuscany.sca.contribution.service.impl.ContributionServiceImpl.addContribution(ContributionServiceI
> mpl.java:396)
>         at
> org.apache.tuscany.sca.contribution.service.impl.ContributionServiceImpl.contribute(ContributionServiceImpl.j
> ava:189)
>         at
> org.apache.tuscany.sca.node.impl.NodeImpl.configureNode(NodeImpl.java:488)
>         at
> org.apache.tuscany.sca.node.impl.NodeImpl.<init>(NodeImpl.java:170)
>         ... 10 more
> Caused by:
> org.apache.tuscany.sca.contribution.service.ContributionReadException:
> SpringXMLLoader getApplicationContextResource: unable to find resource file
> Organization-spring-context.xml
>         at
> org.apache.tuscany.sca.implementation.spring.xml.SpringXMLComponentTypeLoader.getApplicationContextResource(SpringXMLComponentTypeLoader.java:457)
>         at
> org.apache.tuscany.sca.implementation.spring.xml.SpringXMLComponentTypeLoader.loadFromXML(SpringXMLComponentTypeLoader.java:143)
>         at
> org.apache.tuscany.sca.implementation.spring.xml.SpringXMLComponentTypeLoader.load(SpringXMLComponentTypeLoader.java:113)
>         at
> org.apache.tuscany.sca.implementation.spring.SpringImplementationProcessor.resolve(SpringImplementationProcessor.java:196)
>         ... 26 more
> Exception in thread "main"
> org.apache.tuscany.sca.node.launcher.LauncherException:
> java.lang.reflect.InvocationTargetException
>         at
> org.apache.tuscany.sca.node.launcher.NodeLauncherUtil.node(NodeLauncherUtil.java:373)
>         at
> org.apache.tuscany.sca.node.launcher.NodeLauncher.createNode(NodeLauncher.java:60)
>         at
> org.apache.tuscany.sca.node.launcher.NodeLauncher.main(NodeLauncher.java:122)
>         at
> org.apache.tuscany.sca.node.launcher.NodeMain.main(NodeMain.java:38)
> Caused by: java.lang.reflect.InvocationTargetException
>         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
> Method)
>         at
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
>         at
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
>         at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
>         at
> org.apache.tuscany.sca.node.launcher.NodeLauncherUtil.node(NodeLauncherUtil.java:340)
>         ... 3 more
> Caused by: org.osoa.sca.ServiceRuntimeException:
> org.apache.tuscany.sca.contribution.service.ContributionResolveExceptio
> n: org.apache.tuscany.sca.contribution.service.ContributionReadException:
> SpringXMLLoader getApplicationContextResource:
>  unable to find resource file Organization-spring-context.xml
>         at
> org.apache.tuscany.sca.node.impl.NodeImpl.<init>(NodeImpl.java:173)
>         at
> org.apache.tuscany.sca.node.impl.NodeFactoryImpl.createSCANodeFromURL(NodeFactoryImpl.java:42)
>         at
> org.apache.tuscany.sca.implementation.node.launcher.NodeImplementationLauncherBootstrap.<init>(NodeImplementa
> tionLauncherBootstrap.java:94)
>         ... 8 more
> Caused by:
> org.apache.tuscany.sca.contribution.service.ContributionResolveException:
> org.apache.tuscany.sca.contribution
> .service.ContributionReadException: SpringXMLLoader
> getApplicationContextResource: unable to find resource file Organiza
> tion-spring-context.xml
>         at
> org.apache.tuscany.sca.implementation.spring.SpringImplementationProcessor.resolve(SpringImplementationProces
> sor.java:198)
>         at
> org.apache.tuscany.sca.implementation.spring.SpringImplementationProcessor.resolve(SpringImplementationProces
> sor.java:53)
>         at
> org.apache.tuscany.sca.contribution.processor.DefaultStAXArtifactProcessorExtensionPoint$LazyStAXArtifactProc
> essor.resolve(DefaultStAXArtifactProcessorExtensionPoint.java:364)
>         at
> org.apache.tuscany.sca.contribution.processor.ExtensibleStAXArtifactProcessor.resolve(ExtensibleStAXArtifactProcessor.java:170)
>         at
> org.apache.tuscany.sca.assembly.xml.BaseAssemblyProcessor.resolveImplementation(BaseAssemblyProcessor.java:301)
>         at
> org.apache.tuscany.sca.assembly.xml.CompositeProcessor.resolve(CompositeProcessor.java:901)
>         at
> org.apache.tuscany.sca.assembly.xml.CompositeProcessor.resolve(CompositeProcessor.java:87)
>         at
> org.apache.tuscany.sca.contribution.processor.DefaultStAXArtifactProcessorExtensionPoint$LazyStAXArtifactProc
> essor.resolve(DefaultStAXArtifactProcessorExtensionPoint.java:364)
>         at
> org.apache.tuscany.sca.contribution.processor.ExtensibleStAXArtifactProcessor.resolve(ExtensibleStAXArtifactP
> rocessor.java:170)
>         at
> org.apache.tuscany.sca.assembly.xml.CompositeDocumentProcessor.resolve(CompositeDocumentProcessor.java:164)
>         at
> org.apache.tuscany.sca.assembly.xml.CompositeDocumentProcessor.resolve(CompositeDocumentProcessor.java:56)
>         at
> org.apache.tuscany.sca.contribution.processor.ExtensibleURLArtifactProcessor.resolve(ExtensibleURLArtifactProcessor.java:106)
>         at
> org.apache.tuscany.sca.contribution.service.impl.ContributionServiceImpl.processResolvePhase(ContributionServiceImpl.java:530)
>         at
> org.apache.tuscany.sca.contribution.service.impl.ContributionServiceImpl.addContribution(ContributionServiceImpl.java:396)
>         at
> org.apache.tuscany.sca.contribution.service.impl.ContributionServiceImpl.contribute(ContributionServiceImpl.java:189)
>         at
> org.apache.tuscany.sca.node.impl.NodeImpl.configureNode(NodeImpl.java:488)
>         at
> org.apache.tuscany.sca.node.impl.NodeImpl.<init>(NodeImpl.java:170)
>         ... 10 more
> Caused by:
> org.apache.tuscany.sca.contribution.service.ContributionReadException:
> SpringXMLLoader getApplicationContextResource: unable to find resource file
> Organization-spring-context.xml
>         at
> org.apache.tuscany.sca.implementation.spring.xml.SpringXMLComponentTypeLoader.getApplicationContextResource(SpringXMLComponentTypeLoader.java:457)
>         at
> org.apache.tuscany.sca.implementation.spring.xml.SpringXMLComponentTypeLoader.loadFromXML(SpringXMLComponentTypeLoader.java:143)
>         at
> org.apache.tuscany.sca.implementation.spring.xml.SpringXMLComponentTypeLoader.load(SpringXMLComponentTypeLoader.java:113)
>         at
> org.apache.tuscany.sca.implementation.spring.SpringImplementationProcessor.resolve(SpringImplementationProcessor.java:196)
>         ... 26 more
> $
>
> the file, Organization-spring-context.xml is the spring context file.  it's
> in the jar organization-service.jar.  so, i'm a little lost on why it can't
> find it.
>
> thx abe
>
>
>
>
>
>


-- 
Thanks & Regards,
Ramkumar Ramalingam

domain manager node fails to start

Posted by Abraham Washington <ab...@yahoo.com>.
hi all, i'm trying to deploy an application using the tuscany domain manager.  used this link as a reference:

http://www.ibm.com/developerworks/webservices/library/ws-sca-tuscany/index.html?S_TACT=105AGX04&S_CMP=EDU

everything went smooth.  was able to add the contribution, composite and node using the ui (http://localhost:9990/ui/home).  no errors came up while going thru the steps.  after trying to start the node, i'm getting the following error below (tuscany sca 1.3, jdk 1.6):

$ java -jar modules/tuscany-node2-launcher-1.3.jar http://127.0.0.1:9990/node-config/Organization-Service-Node
Dec 24, 2008 3:12:33 PM org.apache.tuscany.sca.node.launcher.NodeLauncher main
INFO: Apache Tuscany SCA Node starting...
Dec 24, 2008 3:12:33 PM org.apache.tuscany.sca.node.launcher.NodeLauncher main
INFO: SCA Node configuration: http://127.0.0.1:9990/node-config/Organization-Service-Node
Dec 24, 2008 3:12:33 PM org.apache.tuscany.sca.node.impl.NodeImpl <init>
INFO: Creating node: http://127.0.0.1:9990/node-config/Organization-Service-Node
Dec 24, 2008 3:12:34 PM org.apache.tuscany.sca.node.impl.NodeImpl configureNode
INFO: Loading contribution: file:/C:/work/development/Organization-Service-Composite/target/organization-service.jar
Dec 24, 2008 3:12:36 PM org.apache.tuscany.sca.implementation.spring.SpringImplementationProcessor
SEVERE: ContributionResolveException occured due to:
Dec 24, 2008 3:12:36 PM org.apache.tuscany.sca.node.launcher.NodeLauncherUtil node
SEVERE: SCA Node could not be created
java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
        at org.apache.tuscany.sca.node.launcher.NodeLauncherUtil.node(NodeLauncherUtil.java:340)
        at org.apache.tuscany.sca.node.launcher.NodeLauncher.createNode(NodeLauncher.java:60)
        at org.apache.tuscany.sca.node.launcher.NodeLauncher.main(NodeLauncher.java:122)
        at org.apache.tuscany.sca.node.launcher.NodeMain.main(NodeMain.java:38)
Caused by: org.osoa.sca.ServiceRuntimeException: org.apache.tuscany.sca.contribution.service.ContributionResolveExceptio
n: org.apache.tuscany.sca.contribution.service.ContributionReadException: SpringXMLLoader getApplicationContextResource:
 unable to find resource file Organization-spring-context.xml
        at org.apache.tuscany.sca.node.impl.NodeImpl.<init>(NodeImpl.java:173)
        at org.apache.tuscany.sca.node.impl.NodeFactoryImpl.createSCANodeFromURL(NodeFactoryImpl.java:42)
        at org.apache.tuscany.sca.implementation.node.launcher.NodeImplementationLauncherBootstrap.<init>(NodeImplementa
tionLauncherBootstrap.java:94)
        ... 8 more
Caused by: org.apache.tuscany.sca.contribution.service.ContributionResolveException: org.apache.tuscany.sca.contribution
.service.ContributionReadException: SpringXMLLoader getApplicationContextResource: unable to find resource file Organiza
tion-spring-context.xml
        at org.apache.tuscany.sca.implementation.spring.SpringImplementationProcessor.resolve(SpringImplementationProces
sor.java:198)
        at org.apache.tuscany.sca.implementation.spring.SpringImplementationProcessor.resolve(SpringImplementationProces
sor.java:53)
        at org.apache.tuscany.sca.contribution.processor.DefaultStAXArtifactProcessorExtensionPoint$LazyStAXArtifactProc
essor.resolve(DefaultStAXArtifactProcessorExtensionPoint.java:364)
        at org.apache.tuscany.sca.contribution.processor.ExtensibleStAXArtifactProcessor.resolve(ExtensibleStAXArtifactP
rocessor.java:170)
        at org.apache.tuscany.sca.assembly.xml.BaseAssemblyProcessor.resolveImplementation(BaseAssemblyProcessor.java:30
1)
        at org.apache.tuscany.sca.assembly.xml.CompositeProcessor.resolve(CompositeProcessor.java:901)
        at org.apache.tuscany.sca.assembly.xml.CompositeProcessor.resolve(CompositeProcessor.java:87)
        at org.apache.tuscany.sca.contribution.processor.DefaultStAXArtifactProcessorExtensionPoint$LazyStAXArtifactProc
essor.resolve(DefaultStAXArtifactProcessorExtensionPoint.java:364)
        at org.apache.tuscany.sca.contribution.processor.ExtensibleStAXArtifactProcessor.resolve(ExtensibleStAXArtifactP
rocessor.java:170)
        at org.apache.tuscany.sca.assembly.xml.CompositeDocumentProcessor.resolve(CompositeDocumentProcessor.java:164)
        at org.apache.tuscany.sca.assembly.xml.CompositeDocumentProcessor.resolve(CompositeDocumentProcessor.java:56)
        at org.apache.tuscany.sca.contribution.processor.ExtensibleURLArtifactProcessor.resolve(ExtensibleURLArtifactPro
cessor.java:106)
        at org.apache.tuscany.sca.contribution.service.impl.ContributionServiceImpl.processResolvePhase(ContributionServ
iceImpl.java:530)
        at org.apache.tuscany.sca.contribution.service.impl.ContributionServiceImpl.addContribution(ContributionServiceI
mpl.java:396)
        at org.apache.tuscany.sca.contribution.service.impl.ContributionServiceImpl.contribute(ContributionServiceImpl.j
ava:189)
        at org.apache.tuscany.sca.node.impl.NodeImpl.configureNode(NodeImpl.java:488)
        at org.apache.tuscany.sca.node.impl.NodeImpl.<init>(NodeImpl.java:170)
        ... 10 more
Caused by: org.apache.tuscany.sca.contribution.service.ContributionReadException: SpringXMLLoader getApplicationContextResource: unable to find resource file Organization-spring-context.xml
        at org.apache.tuscany.sca.implementation.spring.xml.SpringXMLComponentTypeLoader.getApplicationContextResource(SpringXMLComponentTypeLoader.java:457)
        at org.apache.tuscany.sca.implementation.spring.xml.SpringXMLComponentTypeLoader.loadFromXML(SpringXMLComponentTypeLoader.java:143)
        at org.apache.tuscany.sca.implementation.spring.xml.SpringXMLComponentTypeLoader.load(SpringXMLComponentTypeLoader.java:113)
        at org.apache.tuscany.sca.implementation.spring.SpringImplementationProcessor.resolve(SpringImplementationProcessor.java:196)
        ... 26 more
Exception in thread "main" org.apache.tuscany.sca.node.launcher.LauncherException: java.lang.reflect.InvocationTargetException
        at org.apache.tuscany.sca.node.launcher.NodeLauncherUtil.node(NodeLauncherUtil.java:373)
        at org.apache.tuscany.sca.node.launcher.NodeLauncher.createNode(NodeLauncher.java:60)
        at org.apache.tuscany.sca.node.launcher.NodeLauncher.main(NodeLauncher.java:122)
        at org.apache.tuscany.sca.node.launcher.NodeMain.main(NodeMain.java:38)
Caused by: java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
        at org.apache.tuscany.sca.node.launcher.NodeLauncherUtil.node(NodeLauncherUtil.java:340)
        ... 3 more
Caused by: org.osoa.sca.ServiceRuntimeException: org.apache.tuscany.sca.contribution.service.ContributionResolveExceptio
n: org.apache.tuscany.sca.contribution.service.ContributionReadException: SpringXMLLoader getApplicationContextResource:
 unable to find resource file Organization-spring-context.xml
        at org.apache.tuscany.sca.node.impl.NodeImpl.<init>(NodeImpl.java:173)
        at org.apache.tuscany.sca.node.impl.NodeFactoryImpl.createSCANodeFromURL(NodeFactoryImpl.java:42)
        at org.apache.tuscany.sca.implementation.node.launcher.NodeImplementationLauncherBootstrap.<init>(NodeImplementa
tionLauncherBootstrap.java:94)
        ... 8 more
Caused by: org.apache.tuscany.sca.contribution.service.ContributionResolveException: org.apache.tuscany.sca.contribution
.service.ContributionReadException: SpringXMLLoader getApplicationContextResource: unable to find resource file Organiza
tion-spring-context.xml
        at org.apache.tuscany.sca.implementation.spring.SpringImplementationProcessor.resolve(SpringImplementationProces
sor.java:198)
        at org.apache.tuscany.sca.implementation.spring.SpringImplementationProcessor.resolve(SpringImplementationProces
sor.java:53)
        at org.apache.tuscany.sca.contribution.processor.DefaultStAXArtifactProcessorExtensionPoint$LazyStAXArtifactProc
essor.resolve(DefaultStAXArtifactProcessorExtensionPoint.java:364)
        at org.apache.tuscany.sca.contribution.processor.ExtensibleStAXArtifactProcessor.resolve(ExtensibleStAXArtifactProcessor.java:170)
        at org.apache.tuscany.sca.assembly.xml.BaseAssemblyProcessor.resolveImplementation(BaseAssemblyProcessor.java:301)
        at org.apache.tuscany.sca.assembly.xml.CompositeProcessor.resolve(CompositeProcessor.java:901)
        at org.apache.tuscany.sca.assembly.xml.CompositeProcessor.resolve(CompositeProcessor.java:87)
        at org.apache.tuscany.sca.contribution.processor.DefaultStAXArtifactProcessorExtensionPoint$LazyStAXArtifactProc
essor.resolve(DefaultStAXArtifactProcessorExtensionPoint.java:364)
        at org.apache.tuscany.sca.contribution.processor.ExtensibleStAXArtifactProcessor.resolve(ExtensibleStAXArtifactP
rocessor.java:170)
        at org.apache.tuscany.sca.assembly.xml.CompositeDocumentProcessor.resolve(CompositeDocumentProcessor.java:164)
        at org.apache.tuscany.sca.assembly.xml.CompositeDocumentProcessor.resolve(CompositeDocumentProcessor.java:56)
        at org.apache.tuscany.sca.contribution.processor.ExtensibleURLArtifactProcessor.resolve(ExtensibleURLArtifactProcessor.java:106)
        at org.apache.tuscany.sca.contribution.service.impl.ContributionServiceImpl.processResolvePhase(ContributionServiceImpl.java:530)
        at org.apache.tuscany.sca.contribution.service.impl.ContributionServiceImpl.addContribution(ContributionServiceImpl.java:396)
        at org.apache.tuscany.sca.contribution.service.impl.ContributionServiceImpl.contribute(ContributionServiceImpl.java:189)
        at org.apache.tuscany.sca.node.impl.NodeImpl.configureNode(NodeImpl.java:488)
        at org.apache.tuscany.sca.node.impl.NodeImpl.<init>(NodeImpl.java:170)
        ... 10 more
Caused by: org.apache.tuscany.sca.contribution.service.ContributionReadException: SpringXMLLoader getApplicationContextResource: unable to find resource file Organization-spring-context.xml
        at org.apache.tuscany.sca.implementation.spring.xml.SpringXMLComponentTypeLoader.getApplicationContextResource(SpringXMLComponentTypeLoader.java:457)
        at org.apache.tuscany.sca.implementation.spring.xml.SpringXMLComponentTypeLoader.loadFromXML(SpringXMLComponentTypeLoader.java:143)
        at org.apache.tuscany.sca.implementation.spring.xml.SpringXMLComponentTypeLoader.load(SpringXMLComponentTypeLoader.java:113)
        at org.apache.tuscany.sca.implementation.spring.SpringImplementationProcessor.resolve(SpringImplementationProcessor.java:196)
        ... 26 more
$

the file, Organization-spring-context.xml is the spring context file.  it's in the jar organization-service.jar.  so, i'm a little lost on why it can't find it.

thx abe


      

Re: tuscany exceptions

Posted by Scott Kurz <sc...@gmail.com>.
Abraham,

Another tip is to view the Wiki page:
http://cwiki.apache.org/confluence/display/TUSCANYWIKI/Databinding+Scope

and read section

 "Business Exceptions/Faults"

to understand how we use the JAX-WS specification to guide our
implementation in this area.

Scott

Re: tuscany exceptions

Posted by Abraham Washington <ab...@yahoo.com>.
hi simon...i'll take a look at the page that scott recommended.  hopefully that points be in the right direction.

thx abe

 



________________________________
From: Simon Laws <si...@googlemail.com>
To: user@tuscany.apache.org
Sent: Tuesday, December 23, 2008 3:23:51 AM
Subject: Re: tuscany exceptions




On Mon, Dec 22, 2008 at 5:31 AM, Abraham Washington <ab...@yahoo.com> wrote:

hi all...

  is there a good way (example?) on how to handle exceptions when a tuscany service throws an exception?  within a controller, i invoke a service and at times the service throws an exception (say a db constraint exception).  the service is using the binding.ws, but i may add a rmi binding down the road.  

right now, when an exception is thrown, i'm getting this error:

21:48:04,195 INFO  [STDOUT] message -> org.apache.tuscany.sca.interfacedef.util.FaultException: unknown
21:48:04,195 ERROR [STDERR] org.osoa.sca.ServiceRuntimeException: org.apache.tuscany.sca.interfacedef.util.FaultException: unknown
21:48:04,196 ERROR [STDERR]     at org.apache.tuscany.sca.core.databinding.wire.DataTransformationInterceptor.invoke(DataTransformationInterceptor.java:136)
21:48:04,197 ERROR [STDERR]     at org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandl
er.java:287)
21:48:04,198 ERROR [STDERR]     at org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandl
er.java:154)
21:48:04,199 ERROR [STDERR]     at $Proxy72.findOrganizationByName(Unknown Source)
21:48:04,199 ERROR [STDERR]     at org.soa.services.OrganizationServiceImpl.findOrganizationByName(OrganizationServiceImpl.java:35)
21:48:04,200 ERROR [STDERR]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
21:48:04,200 ERROR [STDERR]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
21:48:04,200 ERROR [STDERR]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
21:48:04,201 ERROR [STDERR]     at java.lang.reflect.Method.invoke(Method.java:597)
21:48:04,201 ERROR [STDERR]     at org.apache.tuscany.sca.implementation.java.invocation.JavaImplementationInvoker.invok
e(JavaImplementationInvoker.java:132)
21:48:04,202 ERROR [STDERR]     at org.apache.tuscany.sca.core.databinding.wire.PassByValueInterceptor.invoke(PassByValu
eInterceptor.java:112)
21:48:04,205 ERROR [STDERR]     at org.apache.tuscany.sca.binding.sca.impl.SCABindingInvoker.invoke(SCABindingInvoker.ja
va:61)
21:48:04,206 ERROR [STDERR]     at org.apache.tuscany.sca.core.databinding.wire.PassByValueInterceptor.invoke(PassByValu
eInterceptor.java:112)
21:48:04,207 ERROR [STDERR]     at org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandl
er.java:287)
21:48:04,208 ERROR [STDERR]     at org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandl

thx abe

Hi Abe

What does the service interface look like and how is the exception you re throwing implemented? Tuscany should be able to handle applications throwing exceptions back over binding.ws (should work with other bindings also) but of course you may have uncovered a problem. 

Simon



      

Re: tuscany exceptions

Posted by Simon Laws <si...@googlemail.com>.
On Mon, Dec 22, 2008 at 5:31 AM, Abraham Washington <ab...@yahoo.com>wrote:

> hi all...
>
>   is there a good way (example?) on how to handle exceptions when a tuscany
> service throws an exception?  within a controller, i invoke a service and at
> times the service throws an exception (say a db constraint exception).  the
> service is using the binding.ws, but i may add a rmi binding down the
> road.
>
> right now, when an exception is thrown, i'm getting this error:
>
> 21:48:04,195 INFO  [STDOUT] message ->
> org.apache.tuscany.sca.interfacedef.util.FaultException: unknown
> 21:48:04,195 ERROR [STDERR] org.osoa.sca.ServiceRuntimeException:
> org.apache.tuscany.sca.interfacedef.util.FaultException: unknown
> 21:48:04,196 ERROR [STDERR]     at
> org.apache.tuscany.sca.core.databinding.wire.DataTransformationInterceptor.invoke(DataTransformationInterceptor.java:136)
> 21:48:04,197 ERROR [STDERR]     at
> org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandl
> er.java:287)
> 21:48:04,198 ERROR [STDERR]     at
> org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandl
> er.java:154)
> 21:48:04,199 ERROR [STDERR]     at $Proxy72.findOrganizationByName(Unknown
> Source)
> 21:48:04,199 ERROR [STDERR]     at
> org.soa.services.OrganizationServiceImpl.findOrganizationByName(OrganizationServiceImpl.java:35)
> 21:48:04,200 ERROR [STDERR]     at
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 21:48:04,200 ERROR [STDERR]     at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 21:48:04,200 ERROR [STDERR]     at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 21:48:04,201 ERROR [STDERR]     at
> java.lang.reflect.Method.invoke(Method.java:597)
> 21:48:04,201 ERROR [STDERR]     at
> org.apache.tuscany.sca.implementation.java.invocation.JavaImplementationInvoker.invok
> e(JavaImplementationInvoker.java:132)
> 21:48:04,202 ERROR [STDERR]     at
> org.apache.tuscany.sca.core.databinding.wire.PassByValueInterceptor.invoke(PassByValu
> eInterceptor.java:112)
> 21:48:04,205 ERROR [STDERR]     at
> org.apache.tuscany.sca.binding.sca.impl.SCABindingInvoker.invoke(SCABindingInvoker.ja
> va:61)
> 21:48:04,206 ERROR [STDERR]     at
> org.apache.tuscany.sca.core.databinding.wire.PassByValueInterceptor.invoke(PassByValu
> eInterceptor.java:112)
> 21:48:04,207 ERROR [STDERR]     at
> org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandl
> er.java:287)
> 21:48:04,208 ERROR [STDERR]     at
> org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandl
>
> thx abe
>
>
> Hi Abe

What does the service interface look like and how is the exception you re
throwing implemented? Tuscany should be able to handle applications throwing
exceptions back over binding.ws (should work with other bindings also) but
of course you may have uncovered a problem.

Simon

tuscany exceptions

Posted by Abraham Washington <ab...@yahoo.com>.
hi all...

  is there a good way (example?) on how to handle exceptions when a tuscany service throws an exception?  within a controller, i invoke a service and at times the service throws an exception (say a db constraint exception).  the service is using the binding.ws, but i may add a rmi binding down the road.  

right now, when an exception is thrown, i'm getting this error:

21:48:04,195 INFO  [STDOUT] message -> org.apache.tuscany.sca.interfacedef.util.FaultException: unknown
21:48:04,195 ERROR [STDERR] org.osoa.sca.ServiceRuntimeException: org.apache.tuscany.sca.interfacedef.util.FaultException: unknown
21:48:04,196 ERROR [STDERR]     at org.apache.tuscany.sca.core.databinding.wire.DataTransformationInterceptor.invoke(DataTransformationInterceptor.java:136)
21:48:04,197 ERROR [STDERR]     at org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandl
er.java:287)
21:48:04,198 ERROR [STDERR]     at org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandl
er.java:154)
21:48:04,199 ERROR [STDERR]     at $Proxy72.findOrganizationByName(Unknown Source)
21:48:04,199 ERROR [STDERR]     at org.soa.services.OrganizationServiceImpl.findOrganizationByName(OrganizationServiceImpl.java:35)
21:48:04,200 ERROR [STDERR]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
21:48:04,200 ERROR [STDERR]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
21:48:04,200 ERROR [STDERR]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
21:48:04,201 ERROR [STDERR]     at java.lang.reflect.Method.invoke(Method.java:597)
21:48:04,201 ERROR [STDERR]     at org.apache.tuscany.sca.implementation.java.invocation.JavaImplementationInvoker.invok
e(JavaImplementationInvoker.java:132)
21:48:04,202 ERROR [STDERR]     at org.apache.tuscany.sca.core.databinding.wire.PassByValueInterceptor.invoke(PassByValu
eInterceptor.java:112)
21:48:04,205 ERROR [STDERR]     at org.apache.tuscany.sca.binding.sca.impl.SCABindingInvoker.invoke(SCABindingInvoker.ja
va:61)
21:48:04,206 ERROR [STDERR]     at org.apache.tuscany.sca.core.databinding.wire.PassByValueInterceptor.invoke(PassByValu
eInterceptor.java:112)
21:48:04,207 ERROR [STDERR]     at org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandl
er.java:287)
21:48:04,208 ERROR [STDERR]     at org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandl

thx abe



      

Re: bpel

Posted by Simon Laws <si...@googlemail.com>.
On Fri, Dec 19, 2008 at 2:33 PM, Sykes, Phil <Ph...@sungardhe.com>wrote:

>  I can see that tuscany uses ode for the bpel implementation.  Does
> tuscany provide a way to plugin a differnent bpel implementation?  Actually,
> the question is more broad than that….can you change the implementation of
> any of the components of tuscany or is it tightly coupled to products that
> ship with it?
>
>
>
> Thanks,
>
>
>
> Phil
>
>
>
> Philip Sykes * Principal Java Developer, Banner Product Engineering *
> SunGard Higher Education * 3 Country View Road, Malvern PA 19335 * Tel 610
> 578 5185 * Phil.Sykes@sungardhe.com <Ka...@sungardhe.com> *
> www.sungardhe.com
>
>
>
Hi Phil

SCA (and Tuscany) is designed so that various parts of the runtime are
extensible, for example, implementation and binding types. You will notice
that the BPEL functionality is provided by two Tuscany modules;

implementation-bpel - contains the generic model of the implementation.bpel
element that appears inside composite files
implementation-bpel-ode - contains the intergation with ODE

There is every intention that someone could build an
implementation-bpel-myfavouritebpelengine and use that instead of
implementation-bpel-ode by simply changing which modules appear on the
classpath.

Regards

Simon