Re: [VOTE] Graduate Apache Tuscany as a Top Level Project (take two)

2008-05-10 Thread Wang Feng
+1 from me.

 
Thanks,
Feng Wang

On 2008-05-10 15:17:39,ant elder <[EMAIL PROTECTED]> wrote:

>Restarting the graduation vote with the updated proposal words, please vote
>on the proposal below to graduate Tuscany to a TLP.
>
>+1 from me.
>
>   ...ant
>
> X. Establish the Apache Tuscany Project
>
>WHEREAS, the Board of Directors deems it to be in the best
>interests of the Foundation and consistent with the Foundation's
>purpose to establish a Project Management Committee charged with
>the creation and maintenance of open-source software for
>distribution at no charge to the public, that simplifies the
>development, deployment and management of distributed applications
>built as compositions of service components. These components
>may be implemented with a range of technologies and connected
>using a variety of communication protocols. This software will
>implement relevant open standards including, but not limited to,
>the Service Component Architecture standard defined by the OASIS
>OpenCSA member section, and related technologies.
>
>NOW, THEREFORE, BE IT RESOLVED, that a Project Management
>Committee (PMC), to be known as the "Apache Tuscany Project",
>be and hereby is established pursuant to Bylaws of the
>Foundation; and be it further
>
>RESOLVED, that the Apache Tuscany Project be and hereby is
>responsible for the creation and maintenance of software
>related to Apache Tuscany;
>and be it further
>
>RESOLVED, that the office of "Vice President, Apache Tuscany" be
>and hereby is created, the person holding such office to
>serve at the direction of the Board of Directors as the chair
>of the Apache Tuscany Project, and to have primary responsibility
>for management of the projects within the scope of
>responsibility of the Apache Tuscany Project; and be it further
>
>RESOLVED, that the persons listed immediately below be and
>hereby are appointed to serve as the initial members of the
>Apache Tuscany Project:
>
>* Adriano Crestani 
>* ant elder 
>* Brady Johnson 
>* Frank Budinsky 
>* Ignacio Silva-Lepe 
>* Jean-Sebastien Delfino 
>* kelvin goodson 
>* Luciano Resende 
>* Mark Combellack 
>* Matthieu Riou 
>* Mike Edwards 
>* Paul Fremantle 
>* Pete Robbins 
>* Raymond Feng 
>* Simon Laws 
>* Simon Nash 
>* Venkata Krishnan 
>
>NOW, THEREFORE, BE IT FURTHER RESOLVED, that Ant Elder
>be appointed to the office of Vice President, Apache Tuscany, to
>serve in accordance with and subject to the direction of the
>Board of Directors and the Bylaws of the Foundation until
>death, resignation, retirement, removal or disqualification,
>or until a successor is appointed; and be it further
>
>RESOLVED, that the Apache Tuscany Project be and hereby
>is tasked with the migration and rationalization of the Apache
>Incubator Tuscany podling; and be it further
>
>RESOLVED, that all responsibilities pertaining to the Apache
>Incubator Tuscany podling encumbered upon the Apache Incubator
>Project are hereafter discharged.
>



Re: [VOTE] Graduate Apache Tuscany as a Top Level Project

2008-04-28 Thread Wang Feng
+1 from me too.

 
Thanks,
Wang Feng

On 2008-04-29 02:16:50,ant elder <[EMAIL PROTECTED]> wrote:

>We've done a lot of work since last October. We now have a diverse community
>of contributors and have demonstrated the ability to attract new committers
>to create an even more diverse community, we have shown we can do releases
>based on Apache guidelines, and we have shown we conduct our discussions in
>public within full view of the community and can resolve disagreements on
>the lists. I think we're ready, so please vote on the proposal below to
>graduate Tuscany to a TLP.
>
>+1 from me.
>
>   ...ant
>
>X. Establish the Apache Tuscany Project
>
>WHEREAS, the Board of Directors deems it to be in the best
>interests of the Foundation and consistent with the Foundation's
>purpose to establish a Project Management Committee charged with
>the creation and maintenance of open-source software that
>simplifies the development and deployment of service oriented
>applications and provides a managed service-oriented runtime
>based on the standards defined by the OASIS OpenCSA group,
>for distribution at no charge to the public.
>
>NOW, THEREFORE, BE IT RESOLVED, that a Project Management
>Committee (PMC), to be known as the "Apache Tuscany Project",
>be and hereby is established pursuant to Bylaws of the
>Foundation; and be it further
>
>RESOLVED, that the Apache Tuscany Project be and hereby is
>responsible for the creation and maintenance of software
>related to Apache Tuscany;
>and be it further
>
>RESOLVED, that the office of "Vice President, Apache Tuscany" be
>and hereby is created, the person holding such office to
>serve at the direction of the Board of Directors as the chair
>of the Apache Tuscany Project, and to have primary responsibility
>for management of the projects within the scope of
>responsibility of the Apache Tuscany Project; and be it further
>
>RESOLVED, that the persons listed immediately below be and
>hereby are appointed to serve as the initial members of the
>Apache Tuscany Project:
>
>   - Adriano Crestani 
>   - ant elder 
>   - Brady Johnson 
>   - Frank Budinsky 
>   - Ignacio Silva-Lepe 
>   - Jean-Sebastien Delfino 
>   - kelvin goodson 
>   - Luciano Resende 
>   - Mark Combellack 
>   - Matthieu Riou 
>   - Mike Edwards 
>   - Paul Fremantle 
>   - Pete Robbins 
>   - Raymond Feng 
>   - Simon Laws 
>   - Simon Nash 
>   - Venkata Krishnan 
>
> NOW, THEREFORE, BE IT FURTHER RESOLVED, that Ant Elder
>be appointed to the office of Vice President, Apache Tuscany, to
>serve in accordance with and subject to the direction of the
>Board of Directors and the Bylaws of the Foundation until
>death, resignation, retirement, removal or disqualification,
>or until a successor is appointed; and be it further
>
>RESOLVED, that the Apache Tuscany Project be and hereby
>is tasked with the migration and rationalization of the Apache
>Incubator Tuscany podling; and be it further
>
>RESOLVED, that all responsibilities pertaining to the Apache
>Incubator Tuscany podling encumbered upon the Apache Incubator
>Project are hereafter discharged.
>



Re: [NOTICE] Mario Antollini voted as Tuscany committer

2008-04-25 Thread Wang Feng
Congratulations and welcome Mario.

 
Thanks,
Wang Feng

On 2008-04-25 23:47:44,Luciano Resende <[EMAIL PROTECTED]> wrote:

>The Tuscany PPMC and Incubator PMC have voted for Mario Antollini to
>become a Tuscany committer.
>
>Please spend sometime to get familiar with Apache developer's pages
>[1], the Apache Incubator site [2] and to the Incubator Committers
>Guide [3]. Also, could you please submit an Apache CLA so we can get
>your userid and access sorted out, you can find out about the
>Contributor License Agreement at [4].
>
>Congratulations and welcome Mario!
>
>[1] http://www.apache.org/dev/
>[2] http://incubator.apache.org/
>[3] http://incubator.apache.org/guides/committer.html
>[4] http://www.apache.org/licenses/#clas
>
>-- 
>Luciano Resende
>Apache Tuscany Committer
>http://people.apache.org/~lresende
>http://lresende.blogspot.com/



Re: Renaming SDO CTS

2008-04-22 Thread Wang Feng
+1
 
Thanks,
Wang Feng

On 2008-04-22 00:52:34,Luciano Resende <[EMAIL PROTECTED]> wrote:

>I'd like to rename the CTS svn project to SDO-CTS Please let me know
>if anyone have issues here, otherwise I want to do this on the next
>couple days.
>
>-- 
>Luciano Resende
>Apache Tuscany Committer
>http://people.apache.org/~lresende
>http://lresende.blogspot.com/
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>



Re: [NOTICE] Wang Feng voted as Tuscany committer

2008-04-16 Thread Wang Feng
Thanks everyone for the congratulations and welcome and I'm looking forward to 
the next
exciting stage of the Tuscany community.

Thanks,
Wang Feng

On 2008-04-16 16:55:10,ant elder <[EMAIL PROTECTED]> wrote:

>The Tuscany PPMC and Incubator PMC have voted for Wang Feng to become a
>Tuscany committer.
>
>Congratulations and welcome Wang Feng!
>
>   ...ant
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Re: Can composite namespace equal in different contribution?

2008-04-14 Thread Wang Feng
Hi  Luciano

Thank you for your quick response.

When a contribution metadata contains a deployable composite but the composite 
is not exist, 
there will be recursive resolve the composite and will stack overflow.

I will create a jira and  put my testcase.

Thanks,
Wang Feng


On 2008-04-15,Luciano Resende <[EMAIL PROTECTED]> wrote:

>I'd say that the scenario is valid, but as mentioned in [1], we were
>not handling cycles very well in our import/export model resolvers.
>Are you experiencing a specific issue that I could try helping ?
>
>
>[1] http://www.mail-archive.com/tuscany-dev@ws.apache.org/msg28147.html
>
>On Mon, Apr 14, 2008 at 8:14 PM, Wang Feng <[EMAIL PROTECTED]> wrote:
>> Hi all
>>  I have a scenario like this.There are two contributions and each one 
>> contribution
>>  contains one composite which has the same namespace.  The namespace has been
>>  imported and exported on every contribution.
>>  I am not sure this scenario is right or wrong,can anybody give me an advice?
>>
>>  Contribution metadata like below:
>>  Contribution A
>>  http://www.osoa.org/xmlns/sca/1.0";
>>   targetNamespace="http://hello";
>>   xmlns:hello="http://hello";>
>>
>>http://hello"/>
>>http://hello"/>
>>  
>>
>>  Contribution B
>>  http://www.osoa.org/xmlns/sca/1.0";
>>   targetNamespace="http://hello";
>>   xmlns:hello="http://hello";>
>>
>>http://hello"/>
>>http://hello"/>
>>  
>>
>>  --
>>  Wang Feng
>>  2008-04-15
>>
>>
>>  -
>>  To unsubscribe, e-mail: [EMAIL PROTECTED]
>>  For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>
>
>-- 
>Luciano Resende
>Apache Tuscany Committer
>http://people.apache.org/~lresende
>http://lresende.blogspot.com/
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Can composite namespace equal in different contribution?

2008-04-14 Thread Wang Feng
Hi all
I have a scenario like this.There are two contributions and each one 
contribution 
contains one composite which has the same namespace.  The namespace has been 
imported and exported on every contribution.
I am not sure this scenario is right or wrong,can anybody give me an advice?

Contribution metadata like below:   
Contribution A  
http://www.osoa.org/xmlns/sca/1.0";
  targetNamespace="http://hello";
  xmlns:hello="http://hello";>
   
   http://hello"/>
   http://hello"/>
 

Contribution B  
http://www.osoa.org/xmlns/sca/1.0";
  targetNamespace="http://hello";
  xmlns:hello="http://hello";>
   
   http://hello"/>
   http://hello"/>
 

--
Wang Feng
2008-04-15


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: SCADomain.getService () should throw exception when bogus component name is passed?

2008-04-10 Thread Wang Feng
+1 throw an exception.

The scenario like this class.getMethod(methodName).
If a matching method  is not found,it will throw NoSuchMethodException.

Thanks,
Wang Feng


On 2008-04-10,ant elder <[EMAIL PROTECTED]> wrote:

>TUSCANY-2145 asks about SCADomain.getService () returning a proxy even when
>the service doesn't exist, but looking back through the SVN history it looks
>like this is intentional. Before I close the JIRA does anyone have any
>comments on if this is/isn't the correct behaviour?
>
>   ...ant
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Parsing the wsdl file,is part element name must equals operation's name?

2008-04-01 Thread Wang Feng
Hi,all

When Parsing the wsdl file,there is a constraint that the element name of the 
part on the operation input messge must equals the operation's name.
I don't find the constraint on the wsdl spec,so I think the constraint should 
be removed.

The snippet :
Part part = (Part)parts.iterator().next();
QName elementName = part.getElementName();
if (elementName == null) {
return null;
}
if (!operation.getName().equals(elementName.getLocalPart())) {
return null;
}

If this is a bug,I will put a jira.

--
Wang Feng
2008-04-02


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Re: How to use logger policy?

2008-03-25 Thread wang feng
My definitions.xml file is in the class path of 
org\apache\tuscany\sca\policy\logging and find the processor has readed the 
file.
The PolicyProvider.createInterceptor will return null,because it can't find any 
applicable policyset for the component.
But I copy the definitions.xml to the same dir of the composite file,it run 
fine.
Is something wrong?

Thanks,
Wang Feng


On 2008-03-26,Raymond Feng <[EMAIL PROTECTED]> wrote:

>Hi,
>
>Are you packaging definitions.xml in your SCA contribution to try 
>application-level configuration of the intents/policySets?
>
>For tuscany extensions, we have switched to SCADefinitionsProvider to 
>contribute definitions.xml model into Tuscany, not the definitions.xml file. 
>Can you take the policy-logging module as an example?
>
>Thanks,
>Raymond
>--
>From: "wang feng" <[EMAIL PROTECTED]>
>Sent: Tuesday, March 25, 2008 8:28 PM
>To: "tuscany-dev" 
>Subject: How to use logger policy?
>
>> Hi,all
>> I do a sample to test policy with logger policy,but the logger policy 
>> don't work.
>>I debug the code and find the method 
>> component.getApplicablePolicySets() in PolicyProvider Impl alway return 
>> null.
>>I look for the code and not find where the  ApplicablePolicySets value 
>> on component or binding or reference was setted.
>>  Can anybody help me?
>>
>> Config file like below
>>
>> definitions.xml
>> http://www.osoa.org/xmlns/sca/1.0"; 
>> targetNamespace="http://tuscany.apache.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:calc="http://calculator";>
>>
>> > alwaysProvides="tuscany:logging"/>
>>
>>All messages to and from this implementation must be 
>> logged
>>
>>> appliesTo="sca:implementation.java"
>>xmlns="http://www.osoa.org/xmlns/sca/1.0";>
>>
>>ALL
>>
>>
>> 
>>
>> calculator.composite
>> http://www.osoa.org/xmlns/sca/1.0";
>>xmlns:sca="http://www.osoa.org/xmlns/sca/1.0";
>>   targetNamespace="http://sample";
>>   xmlns:sample="http://sample";
>>   name="Calculator"
>>   xmlns:tuscany="http://tuscany.apache.org/xmlns/sca/1.0";>
>>
>>> policyset="tuscany:JDKLoggingPolicy">
>> > requires="tuscany:logging"/>
>>
>>> />
>>> />
>>
>>
>>
>>
>>> requires="tuscany:logging"/>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> 
>> --
>> wang feng
>> 2008-03-26
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>> 
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



How to use logger policy?

2008-03-25 Thread wang feng
Hi,all
I do a sample to test policy with logger policy,but the logger policy 
don't work.
I debug the code and find the method component.getApplicablePolicySets() in 
PolicyProvider Impl alway return null.
I look for the code and not find where the  ApplicablePolicySets value on 
component or binding or reference was setted.
Can anybody help me?

Config file like below

definitions.xml
http://www.osoa.org/xmlns/sca/1.0"; 
targetNamespace="http://tuscany.apache.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:calc="http://calculator";>



All messages to and from this implementation must be 
logged

http://www.osoa.org/xmlns/sca/1.0";>

ALL


  

calculator.composite
http://www.osoa.org/xmlns/sca/1.0";
   xmlns:sca="http://www.osoa.org/xmlns/sca/1.0";
   targetNamespace="http://sample";
   xmlns:sample="http://sample";
   name="Calculator"
   xmlns:tuscany="http://tuscany.apache.org/xmlns/sca/1.0";>





















 



--
wang feng
2008-03-26


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Re: Deploy a web service ,but not to target with reference

2008-03-03 Thread wang feng
If the component's service was deployed with web service,would the service 
invoker must through web service client?

Such as the example,  can I get the service through
HelloWorldService service = scaDomain.getService(HelloWorldService.class, 
"HelloWorldServiceJavaComponent/HelloWorldService");

If yes,is the service invoker through web service,not directly through 
binding.sca.

 


http://helloworldsdo#wsdl.interface(HelloWorld)" />

    


Thanks,
Wang Feng


On 2008-03-04,Raymond Feng <[EMAIL PROTECTED]> wrote:

>Hi,
>
>In the 2nd case, the service is exposed using binding.ws. But the reference 
>uses the binding.sca (without an explicit binding, it's default to 
>binding.sca). The wiring should complain that the bindings are not 
>compatible.
>
>Thanks,
>Raymond
>
>--
>From: "wang feng" <[EMAIL PROTECTED]>
>Sent: Monday, March 03, 2008 10:54 PM
>To: "tuscany-dev" 
>Subject: Deploy a web service ,but not to target with reference
>
>> Hi,all.
>>I have deployed a component service with web service, and have made a 
>> reference to it.
>>I have two ways to reference,but only the first is ok,what wrong is the 
>> second?
>>
>> first:
>> http://www.osoa.org/xmlns/sca/1.0";
>> targetNamespace="http://helloworldsdo";
>>name="hellojavaws">
>>
>>> class="com.primeton.demo.helloworld.HelloWorldImpl" />
>> 
>> > interface="http://helloworldsdo#wsdl.interface(HelloWorld)" />
>> 
>> 
>>
>>
>> 
>>  > class="com.primeton.demo.helloworld.HelloWorldServiceComponent"/>
>> 
>>
>>> promote="HelloWorldServiceJavaInvokeComponent/helloWorldService">
>>> interface="com.primeton.demo.helloworld.HelloWorldService" />
>>> wsdlElement="http://helloworldsdo#wsdl.port(HelloWorldService/HelloWorldSoapPort)"/>
>>
>> 
>>
>> second:
>> http://www.osoa.org/xmlns/sca/1.0";
>> targetNamespace="http://helloworldsdo";
>>name="hellojavaws">
>>
>>> class="com.primeton.demo.helloworld.HelloWorldImpl" />
>> 
>> > interface="http://helloworldsdo#wsdl.interface(HelloWorld)" />
>> 
>> 
>>
>>
>> 
>>> class="com.primeton.demo.helloworld.HelloWorldServiceComponent"/>
>>   > target="HelloWorldServiceJavaComponent"/>
>> 
>> 
>>
>> --
>> wang feng
>> 2008-03-04
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>> 
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Deploy a web service ,but not to target with reference

2008-03-03 Thread wang feng
Hi,all.
I have deployed a component service with web service, and have made a 
reference to it.
I have two ways to reference,but only the first is ok,what wrong is the 
second?

first:
http://www.osoa.org/xmlns/sca/1.0";
targetNamespace="http://helloworldsdo";
name="hellojavaws">



http://helloworldsdo#wsdl.interface(HelloWorld)" />





  




http://helloworldsdo#wsdl.port(HelloWorldService/HelloWorldSoapPort)"/>



second:
http://www.osoa.org/xmlns/sca/1.0";
targetNamespace="http://helloworldsdo";
name="hellojavaws">



http://helloworldsdo#wsdl.interface(HelloWorld)" />




    
    
  



--
wang feng
2008-03-04


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Re: Re: How to use SDO in tuscany sca?

2008-02-20 Thread wang feng
It's OK,Thanks Raymond.

Thanks,  
wangfeng


On 2008-02-20, Raymond Feng <[EMAIL PROTECTED]> wrote:

>Hi,
>
>I debugged your test case and it turned out the problem is in your test case. 
>There is a dangling type reference in helloworld.wsdl:
>
>
>http://helloworld"; 
> xmlns="http://www.w3.org/2001/XMLSchema";>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>It should be: .
>
>After fixing the issue, I can run it successfully with the import.sdo 
>statement.
>
>Thanks,
>
>Raymond
>
>- Original Message - 
>From: "wang feng" <[EMAIL PROTECTED]>
>To: 
>Sent: Tuesday, February 19, 2008 5:04 PM
>Subject: Re: Re: How to use SDO in tuscany sca?
>
>
>>I add the element 'import.sdo' in the composite,but the sample throws another 
>>exception.
>> 
>> Exception in thread "main" java.lang.ClassCastException: The value of type 
>> 'class org.apache.tuscany.sdo.impl.DynamicDataObjectImpl' must be of type 
>> 'class java.lang.String'
>> at 
>> org.eclipse.emf.ecore.impl.EStructuralFeatureImpl$InternalSettingDelegateSingleDataUnsettableStatic.validate(EStructuralFeatureImpl.java:2195)
>> at 
>> org.eclipse.emf.ecore.impl.EStructuralFeatureImpl$InternalSettingDelegateSingleDataUnsettable.dynamicSet(EStructuralFeatureImpl.java:2116)
>> at 
>> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eDynamicSet(BasicEObjectImpl.java:709)
>> at 
>> org.apache.tuscany.sdo.impl.DynamicDataObjectImpl.eDynamicSet(DynamicDataObjectImpl.java:160)
>> at org.apache.tuscany.sdo.impl.DataObjectImpl.eSet(DataObjectImpl.java:1468)
>> at 
>> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eSet(BasicEObjectImpl.java:654)
>> at org.apache.tuscany.sdo.impl.DataObjectImpl.set(DataObjectImpl.java:146)
>> at org.apache.tuscany.sdo.impl.DataObjectImpl.set(DataObjectImpl.java:106)
>> at 
>> org.apache.tuscany.sca.databinding.sdo.SDOWrapperHandler.setChild(SDOWrapperHandler.java:71)
>> at 
>> org.apache.tuscany.sca.core.databinding.transformers.Input2InputTransformer.transform(Input2InputTransformer.java:131)
>> at 
>> org.apache.tuscany.sca.core.databinding.transformers.Input2InputTransformer.transform(Input2InputTransformer.java:1)
>> at 
>> org.apache.tuscany.sca.databinding.impl.MediatorImpl.mediate(MediatorImpl.java:73)
>> at 
>> org.apache.tuscany.sca.core.databinding.wire.DataTransformationInterceptor.transform(DataTransformationInterceptor.java:175)
>> at 
>> org.apache.tuscany.sca.core.databinding.wire.DataTransformationInterceptor.invoke(DataTransformationInterceptor.java:72)
>> at 
>> org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:261)
>> at 
>> org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:149)
>> at $Proxy5.getGreetings(Unknown Source)
>> at helloworld.HelloWorldClient.test(HelloWorldClient.java:53)
>> at helloworld.HelloWorldClient.main(HelloWorldClient.java:39)
>> 
>> Is something wrong? Where can I found a sample whith dynamic SDO?
>> 
>> Thanks, 
>> wangfeng
>> 
>> 
>> On 2008-02-19, Scott Kurz <[EMAIL PROTECTED]> wrote:
>> 
>>>Wang,
>>>
>>>I'm guessing the problem is probably that you need to register your
>>>app types with the appropriate context established by the Tuscany
>>>runtime.
>>>
>>>Tuscany typically does this automatically, now, for static SDO.  For
>>>dynamic SDO (i.e. DataObject), you would currently put something like
>>>this in your SCDL ( *.composite) file:
>>>
>>> >>   
>>> xmlns:dbsdo="http://tuscany.apache.org/xmlns/sca/databinding/sdo/1.0";
>>>   >
>>>
>>>
>>>
>>>(I looked in your zip and you don't seem to use the types in the XSD,
>>>so I pointed to the WSDL instead... but you can have as multiple
>>> elements).
>>>
>>>This relation between SCA and SDO scopes is defined by Tuscany, not a
>>>spec, at the moment.
>>>
>>>Scott
>>>
>>>
>>>On Feb 18, 2008 9:15 AM, wang feng <[EMAIL PROTECTED]> wrote:
>>>> Hi all,
>>>>
>>>>I do a sample which has a parameter's type is DataObject,and deploy the 
>>>> component with webservice.
>>>>When I invoke the service ,throws an error.
>>>>Is my usage wr

Re: Re: How to use SDO in tuscany sca?

2008-02-19 Thread wang feng
I add the element 'import.sdo' in the composite,but the sample throws another 
exception.

Exception in thread "main" java.lang.ClassCastException: The value of type 
'class org.apache.tuscany.sdo.impl.DynamicDataObjectImpl' must be of type 
'class java.lang.String'
at 
org.eclipse.emf.ecore.impl.EStructuralFeatureImpl$InternalSettingDelegateSingleDataUnsettableStatic.validate(EStructuralFeatureImpl.java:2195)
at 
org.eclipse.emf.ecore.impl.EStructuralFeatureImpl$InternalSettingDelegateSingleDataUnsettable.dynamicSet(EStructuralFeatureImpl.java:2116)
at 
org.eclipse.emf.ecore.impl.BasicEObjectImpl.eDynamicSet(BasicEObjectImpl.java:709)
at 
org.apache.tuscany.sdo.impl.DynamicDataObjectImpl.eDynamicSet(DynamicDataObjectImpl.java:160)
at 
org.apache.tuscany.sdo.impl.DataObjectImpl.eSet(DataObjectImpl.java:1468)
at 
org.eclipse.emf.ecore.impl.BasicEObjectImpl.eSet(BasicEObjectImpl.java:654)
at 
org.apache.tuscany.sdo.impl.DataObjectImpl.set(DataObjectImpl.java:146)
at 
org.apache.tuscany.sdo.impl.DataObjectImpl.set(DataObjectImpl.java:106)
at 
org.apache.tuscany.sca.databinding.sdo.SDOWrapperHandler.setChild(SDOWrapperHandler.java:71)
at 
org.apache.tuscany.sca.core.databinding.transformers.Input2InputTransformer.transform(Input2InputTransformer.java:131)
at 
org.apache.tuscany.sca.core.databinding.transformers.Input2InputTransformer.transform(Input2InputTransformer.java:1)
at 
org.apache.tuscany.sca.databinding.impl.MediatorImpl.mediate(MediatorImpl.java:73)
at 
org.apache.tuscany.sca.core.databinding.wire.DataTransformationInterceptor.transform(DataTransformationInterceptor.java:175)
at 
org.apache.tuscany.sca.core.databinding.wire.DataTransformationInterceptor.invoke(DataTransformationInterceptor.java:72)
at 
org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:261)
at 
org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:149)
at $Proxy5.getGreetings(Unknown Source)
at helloworld.HelloWorldClient.test(HelloWorldClient.java:53)
at helloworld.HelloWorldClient.main(HelloWorldClient.java:39)

Is something wrong? Where can I found a sample whith dynamic SDO?

Thanks,  
wangfeng


On 2008-02-19, Scott Kurz <[EMAIL PROTECTED]> wrote:

>Wang,
>
>I'm guessing the problem is probably that you need to register your
>app types with the appropriate context established by the Tuscany
>runtime.
>
>Tuscany typically does this automatically, now, for static SDO.  For
>dynamic SDO (i.e. DataObject), you would currently put something like
>this in your SCDL ( *.composite) file:
>
>
> xmlns:dbsdo="http://tuscany.apache.org/xmlns/sca/databinding/sdo/1.0";
>   >
>
>
>
>(I looked in your zip and you don't seem to use the types in the XSD,
>so I pointed to the WSDL instead... but you can have as multiple
> elements).
>
>This relation between SCA and SDO scopes is defined by Tuscany, not a
>spec, at the moment.
>
>Scott
>
>
>On Feb 18, 2008 9:15 AM, wang feng <[EMAIL PROTECTED]> wrote:
>> Hi all,
>>
>>I do a sample which has a parameter's type is DataObject,and deploy the 
>> component with webservice.
>>When I invoke the service ,throws an error.
>>Is my usage wrong?
>>
>> My sample like this.
>>
>> helloworld.composite
>> http://www.osoa.org/xmlns/sca/1.0";
>> targetNamespace="http://helloworld";
>> xmlns:hw="http://helloworld";
>> name="helloworldws">
>> 
>> 
>> 
>> > interface="http://helloworld#wsdl.interface(HelloWorld)" />
>> 
>> 
>> 
>> 
>>
>> HelloWorldImpl.java
>> @Service(HelloWorldService.class)
>> public class HelloWorldImpl implements HelloWorldService {
>> public String getGreetings(DataObject name) {
>> return "Hello " + name.getString("first") + " " + 
>> name.getString("last");
>> }
>> }
>>
>> You can download the full testcase on 
>> http://www.blogjava.net/Files/wangfeng/src.zip
>>
>> Thanks
>> Wang Feng
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



How to use SDO in tuscany sca?

2008-02-18 Thread wang feng
Hi all,

   I do a sample which has a parameter's type is DataObject,and deploy the 
component with webservice.
   When I invoke the service ,throws an error. 
   Is my usage wrong?

My sample like this.

helloworld.composite
http://www.osoa.org/xmlns/sca/1.0";
targetNamespace="http://helloworld";
xmlns:hw="http://helloworld";
name="helloworldws">



http://helloworld#wsdl.interface(HelloWorld)" />





HelloWorldImpl.java
@Service(HelloWorldService.class)
public class HelloWorldImpl implements HelloWorldService {
public String getGreetings(DataObject name) {
return "Hello " + name.getString("first") + " " + 
name.getString("last");
}
}   

You can download the full testcase on 
http://www.blogjava.net/Files/wangfeng/src.zip

Thanks
Wang Feng


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Re: Re: A question on webservice binding

2008-01-09 Thread wang feng
I use the recent build from the trunk,it's working OK.
The issue in 1.0.1 release have been resolved.
Thank you Simon.

Thanks,  
wangfeng


On 2008-01-09, wang feng <[EMAIL PROTECTED]> wrote:

>My environment is Sun jdk 1.5.0_09-b03 and Tomcat 5.5.23,Tuscany version is 
>1.0.1 release.
>
>Thanks, 
>wangfeng
>
>
>On 2008-01-09, Simon Nash <[EMAIL PROTECTED]> wrote:
>
>>There must be some difference between my setup and yours.  Both of
>>these things (?wsdl and calc.jsp) are working OK for me.  I am running
>>on Tomcat 6.0.14 and on Sun JDK 5 (build 1.5.0_11-b03), and I am using
>>a recent build from the Tuscany trunk.  Can you describe your setup?
>>
>>  Simon
>>
>>wang feng wrote:
>>
>>> I run the calculator-ws-webapp sample,it is ok.But I have two questions.
>>> 
>>> a) 
>>> when I use the URL 
>>> 'http://localhost:8080/sample-calculator-ws-webapp/AddServiceComponent?wsdl'
>>>  in the browser,throws an exception.
>>> java.lang.IllegalArgumentException: service path cannot be null or empty
>>> 
>>> org.apache.axis2.context.ConfigurationContext.internalGetServiceContextPath(ConfigurationContext.java:695)
>>> 
>>> org.apache.axis2.context.ConfigurationContext.setContextRoot(ConfigurationContext.java:721)
>>> 
>>> org.apache.tuscany.sca.binding.ws.axis2.TuscanyListingAgent.setContextRoot(TuscanyListingAgent.java:305)
>>> 
>>> org.apache.tuscany.sca.binding.ws.axis2.TuscanyListingAgent.processListService(TuscanyListingAgent.java:110)
>>> 
>>> org.apache.tuscany.sca.binding.ws.axis2.Axis2ServiceServlet.doGet(Axis2ServiceServlet.java:255)
>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
>>> 
>>> org.apache.tuscany.sca.host.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:80)
>>> 
>>> org.apache.tuscany.sca.host.webapp.TuscanyServletFilter.doFilter(TuscanyServletFilter.java:88)
>>> 
>>>  b)
>>>  I add uri attribute on the binding.ws,like below.
>>>   
>>> 
>>> 
>>>
>>> >> uri="http://localhost:8080/sample-calculator-ws-webapp/AddServiceComponent"/>
>>> 
>>> 
>>>  run the calc.jsp,throws an exception too.
>>> org.apache.axis2.AxisFault: Transport error: 404 Error: 
>>> /sample-calculator-ws-webapp/AddServiceComponent
>>> 
>>> org.apache.axis2.transport.http.HTTPSender.handleResponse(HTTPSender.java:298)
>>> 
>>> org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:192)
>>> org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:77)
>>> 
>>> org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:327)
>>> 
>>> org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:206)
>>> org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:396)
>>> 
>>> org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:374)
>>> 
>>> org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:211)
>>> 
>>> org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
>>> 
>>> org.apache.tuscany.sca.binding.ws.axis2.Axis2BindingInvoker.invokeTarget(Axis2BindingInvoker.java:100)
>>> 
>>> org.apache.tuscany.sca.binding.ws.axis2.Axis2BindingInvoker.invoke(Axis2BindingInvoker.java:75)
>>> 
>>> org.apache.tuscany.sca.core.databinding.wire.DataTransformationInterceptor.invoke(DataTransformationInterceptor.java:73)
>>> 
>>> org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:233)
>>> 
>>> org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:130)
>>> $Proxy8.add(Unknown Source)
>>> calculator.CalculatorServiceImpl.add(CalculatorServiceImpl.java:54)
>>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>> 
>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>> 
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>> java.lang.reflect.Method.invoke(Method.java:585)
>>>

Re: Re: A question on webservice binding

2008-01-08 Thread wang feng
My environment is Sun jdk 1.5.0_09-b03 and Tomcat 5.5.23,Tuscany version is 
1.0.1 release.

Thanks,  
wangfeng


On 2008-01-09, Simon Nash <[EMAIL PROTECTED]> wrote:

>There must be some difference between my setup and yours.  Both of
>these things (?wsdl and calc.jsp) are working OK for me.  I am running
>on Tomcat 6.0.14 and on Sun JDK 5 (build 1.5.0_11-b03), and I am using
>a recent build from the Tuscany trunk.  Can you describe your setup?
>
>  Simon
>
>wang feng wrote:
>
>> I run the calculator-ws-webapp sample,it is ok.But I have two questions.
>> 
>> a) 
>> when I use the URL 
>> 'http://localhost:8080/sample-calculator-ws-webapp/AddServiceComponent?wsdl' 
>> in the browser,throws an exception.
>> java.lang.IllegalArgumentException: service path cannot be null or empty
>>  
>> org.apache.axis2.context.ConfigurationContext.internalGetServiceContextPath(ConfigurationContext.java:695)
>>  
>> org.apache.axis2.context.ConfigurationContext.setContextRoot(ConfigurationContext.java:721)
>>  
>> org.apache.tuscany.sca.binding.ws.axis2.TuscanyListingAgent.setContextRoot(TuscanyListingAgent.java:305)
>>  
>> org.apache.tuscany.sca.binding.ws.axis2.TuscanyListingAgent.processListService(TuscanyListingAgent.java:110)
>>  
>> org.apache.tuscany.sca.binding.ws.axis2.Axis2ServiceServlet.doGet(Axis2ServiceServlet.java:255)
>>  javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
>>  javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
>>  
>> org.apache.tuscany.sca.host.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:80)
>>  
>> org.apache.tuscany.sca.host.webapp.TuscanyServletFilter.doFilter(TuscanyServletFilter.java:88)
>> 
>>  b)
>>  I add uri attribute on the binding.ws,like below.
>>   
>> 
>> 
>>
>> > uri="http://localhost:8080/sample-calculator-ws-webapp/AddServiceComponent"/>
>> 
>> 
>>  run the calc.jsp,throws an exception too.
>> org.apache.axis2.AxisFault: Transport error: 404 Error: 
>> /sample-calculator-ws-webapp/AddServiceComponent
>>  
>> org.apache.axis2.transport.http.HTTPSender.handleResponse(HTTPSender.java:298)
>>  
>> org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:192)
>>  org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:77)
>>  
>> org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:327)
>>  
>> org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:206)
>>  org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:396)
>>  
>> org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:374)
>>  
>> org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:211)
>>  
>> org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
>>  
>> org.apache.tuscany.sca.binding.ws.axis2.Axis2BindingInvoker.invokeTarget(Axis2BindingInvoker.java:100)
>>  
>> org.apache.tuscany.sca.binding.ws.axis2.Axis2BindingInvoker.invoke(Axis2BindingInvoker.java:75)
>>  
>> org.apache.tuscany.sca.core.databinding.wire.DataTransformationInterceptor.invoke(DataTransformationInterceptor.java:73)
>>  
>> org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:233)
>>  
>> org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:130)
>>  $Proxy8.add(Unknown Source)
>>  calculator.CalculatorServiceImpl.add(CalculatorServiceImpl.java:54)
>>  sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>  
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>  
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>  java.lang.reflect.Method.invoke(Method.java:585)
>>  
>> org.apache.tuscany.sca.implementation.java.invocation.JavaImplementationInvoker.invoke(JavaImplementationInvoker.java:105)
>>  
>> org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:233)
>>  
>> org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:130)
>>  $Proxy6.add(Unknown Source)
>>  org.apache.jsp.calc_jsp._jspService(calc_jsp.java:65)
>>  org.apache.jasper.runtime.HttpJspBa

Re: Re: A question on webservice binding

2008-01-08 Thread wang feng
I run the calculator-ws-webapp sample,it is ok.But I have two questions.

a) 
when I use the URL 
'http://localhost:8080/sample-calculator-ws-webapp/AddServiceComponent?wsdl' in 
the browser,throws an exception.
java.lang.IllegalArgumentException: service path cannot be null or empty

org.apache.axis2.context.ConfigurationContext.internalGetServiceContextPath(ConfigurationContext.java:695)

org.apache.axis2.context.ConfigurationContext.setContextRoot(ConfigurationContext.java:721)

org.apache.tuscany.sca.binding.ws.axis2.TuscanyListingAgent.setContextRoot(TuscanyListingAgent.java:305)

org.apache.tuscany.sca.binding.ws.axis2.TuscanyListingAgent.processListService(TuscanyListingAgent.java:110)

org.apache.tuscany.sca.binding.ws.axis2.Axis2ServiceServlet.doGet(Axis2ServiceServlet.java:255)
javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

org.apache.tuscany.sca.host.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:80)

org.apache.tuscany.sca.host.webapp.TuscanyServletFilter.doFilter(TuscanyServletFilter.java:88)

 b)
 I add uri attribute on the binding.ws,like below.
  


   
http://localhost:8080/sample-calculator-ws-webapp/AddServiceComponent"/>


 run the calc.jsp,throws an exception too.
org.apache.axis2.AxisFault: Transport error: 404 Error: 
/sample-calculator-ws-webapp/AddServiceComponent

org.apache.axis2.transport.http.HTTPSender.handleResponse(HTTPSender.java:298)

org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:192)
org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:77)

org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:327)

org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:206)
org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:396)

org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:374)

org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:211)

org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)

org.apache.tuscany.sca.binding.ws.axis2.Axis2BindingInvoker.invokeTarget(Axis2BindingInvoker.java:100)

org.apache.tuscany.sca.binding.ws.axis2.Axis2BindingInvoker.invoke(Axis2BindingInvoker.java:75)

org.apache.tuscany.sca.core.databinding.wire.DataTransformationInterceptor.invoke(DataTransformationInterceptor.java:73)

org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:233)

org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:130)
$Proxy8.add(Unknown Source)
calculator.CalculatorServiceImpl.add(CalculatorServiceImpl.java:54)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:585)

org.apache.tuscany.sca.implementation.java.invocation.JavaImplementationInvoker.invoke(JavaImplementationInvoker.java:105)

org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:233)

org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:130)
$Proxy6.add(Unknown Source)
org.apache.jsp.calc_jsp._jspService(calc_jsp.java:65)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:328)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

org.apache.tuscany.sca.host.webapp.TuscanyServletFilter.doFilter(TuscanyServletFilter.java:93)

Is there something wrong?

Thanks,  
wang feng


On 2008-01-08, Simon Nash <[EMAIL PROTECTED]> wrote:

>I'm surprised this doesn't work.  It looks like you have set this up
>just like the calculator-ws-webapp sample.  I tried this sample and it
>works as expected.  Can you try this sample to see if it works for you?
>
>  Simon
>
>wang feng wrote:
>
>> Thanks Simon,
>> 
>> I have removed jetty module and added host-webapp module.
>> But when I use ?wsdl,throws 404 not found the page error. 
>> 
>> My config file like this:
>&

Re: Re: A question on webservice binding

2008-01-06 Thread wang feng
Thanks Simon,

I have removed jetty module and added host-webapp module.
But when I use ?wsdl,throws 404 not found the page error. 

My config file like this:
web.xml
  
tuscany 

org.apache.tuscany.sca.host.webapp.TuscanyServletFilter
 
  
  
tuscany 
/* 
  

helloworld.composite



http://helloworld#wsdl.interface(HelloWorld)" />
http://localhost:8080/tmp/HelloWorldService"/>

 

Application Server: tomcat
Application port:8080
Application contextpath:tmp

When I use the url   http://localhost:8080/tmp/HelloWorldService?wsdl ,throws 
404 error.

I debug the code and found the registered servlet mapping uri is 
'/tmp/HelloWorldService',
but when getting the servlet in TuscanyServletFilter,the inputted uri is 
'/HelloWorldService',
thus not found the registered RequestDispatcher.

Thanks,  
wangfeng


On 2008-01-04, Simon Nash <[EMAIL PROTECTED]> wrote:

>Yes, you can do that.  If this is a webapp deployment, you can omit host-tomcat
>and host-jetty from the embedded Tuscany runtime in the webapp, and include
>host-webapp instead.  This will automatically use the port exposed by the
>webapp container.
>
>  Simon
>
>wang feng wrote:
>
>> Hi,all
>>   
>> I use tuscany on the application server such as jboss or weblogic or 
>> websphere, but I have a question when I use web service binding.
>> 
>> When deploying a service to webservice through webservice binding,should I 
>> must  include the module tomcat or jetty? Can I use the application server's 
>> servelet mapping and not use the build-in tomcat or jetty module?
>>  
>> Thanks
>> Wang Feng
>> 
>> 
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>> 
>> 
>> 
>
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



A question on webservice binding

2008-01-04 Thread wang feng
Hi,all
  
I use tuscany on the application server such as jboss or weblogic or websphere, 
but I have a question when I use web service binding.

When deploying a service to webservice through webservice binding,should I must 
 include the module tomcat or jetty? Can I use the application server's 
servelet mapping and not use the build-in tomcat or jetty module?

Thanks
Wang Feng


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Re: How to invoke a service using a common class interface

2007-12-10 Thread wang feng
Thanks for reply. 
I think the (B) is the best,but I have some questions on this.
Please see my comments below. 

Thanks,  
wangfeng


On 2007-12-11, Jean-Sebastien Delfino <[EMAIL PROTECTED]> wrote:

>wang feng wrote:
>> Hi,all
>> I has a scenario as below.
>> When get a service,I want to use a common service class such as 
>> 'ServiceInvoker'.
>> The use of the common class like a class reflect.
>> 
>> ServiceInvoker.java
>> public interface ServiceInvoker{
>>  Object  invoke(String methodName,Class[] argType,Object[] args);
>> }
>> 
>> Calculator example:
>> CalculatorService calculatorService = 
>> scaDomain.getService(CalculatorService.class, "CalculatorServiceComponent");
>> double res = calculatorService.add(3.0, 2.0)
>> 
>> To
>> ServiceInvoker invoker =  scaDomain.getService("CalculatorServiceComponent");
>> Object res = invoker.invoke("add",new Class[]{Double.class,Double.class},new 
>> Double[]{2.0,3.0});
>> 
>> How can I do for this,anyone has advice.
>>  
>> Thanks
>> Wang Feng
>> 
>
>You can do the following:
>
>(A) use reflection, not very different from your ServiceInvoker:
>
>Object service = scaDomain.getService("CalculatorServiceComponent");
>
What the instance of the result 'getService'?
When get a servcice by DefaultSCADomain, we must supply a interface of the 
service.
If not supply a interface ,there may be an error.

>Object res = service.getClass().
>  getMethod("add", new Class[]{Double.class, Double.class}).
>invoke(new Double[]{2.0, 3.0});
>
>(B) Create a utility class wrapping the above code to provide the
>invocation API you want:
>
>Object res = ServiceInvoker.invoke(service, "add",
>  new Class[]{Double.class, Double.class}, new Double[]{2.0, 3.0}
>
>(C) Customize the Tuscany JDKProxyFactory (to create proxies that
>implement your ServiceInvoker interface) or come up with a different
>implementation of ProxyFactory and configure the runtime to use it.
>
>I would suggest to:
>
>- Try to go with (A) as it's a standard API, not much more complicated
>than ServiceInvoker, and will probably perform better as it allows the
>caller to cache the Class and Method in variables instead of looking up
>the "add" method for each call.
>
>- If (A) really does not meet your requirements go with (B), which
>provides almost the same API as your ServiceInvoker on top of standard
>Java reflection.
>
>- Do (C) only if you really can't do (A) or (B), as with (C) you are
>starting to be dependent on Tuscany SPIs and a specific customization of
>the Tuscany runtime. You're also stepping away from the SCA standard as
>your applications will start to depend on that non-standard
>ServiceInvoker and its implementation as a customization of Tuscany.
>
>Hope this helps.
>-- 
>Jean-Sebastien
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



How to invoke a service using a common class interface

2007-12-10 Thread wang feng
Hi,all
I has a scenario as below.
When get a service,I want to use a common service class such as 
'ServiceInvoker'.
The use of the common class like a class reflect.

ServiceInvoker.java
public interface ServiceInvoker{
Object  invoke(String methodName,Class[] argType,Object[] args);
}

Calculator example:
CalculatorService calculatorService = 
scaDomain.getService(CalculatorService.class, "CalculatorServiceComponent");
double res = calculatorService.add(3.0, 2.0)

To
ServiceInvoker invoker =  scaDomain.getService("CalculatorServiceComponent");
Object res = invoker.invoke("add",new Class[]{Double.class,Double.class},new 
Double[]{2.0,3.0});

How can I do for this,anyone has advice.
    
Thanks
Wang Feng


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Re: [DISCUSS] Tuscany SCA Roadmap and next releases

2007-10-23 Thread wang feng
hi Jean-Sebastien,

Please see my comments below.

Thanks,  
wangfeng


On 2007-10-20, Jean-Sebastien Delfino <[EMAIL PROTECTED]> wrote:

>wang feng wrote:
>> Hi all,
>>
>> We have used Tuscany 1.0 in our product and found some features is important 
>> to us.
>>
>>   
>Thanks a lot for contributing here and helping us understand what you'd
>like to see in Tuscany!
>
>I have a few questions to make sure I understand what you're looking for.
>
>> - Support hot deployable on contribution and composite.
>> This should be have a recursive algorithm to update the correlated component 
>> when it has been referenced.
>>
>>   
>
>Can you give a brief description of the type of hot deployment that
>you're trying to support? It does not have to be very detailed but maybe
>just an outline or an example showing what your contributions and
>composites look like and the steps that you'd like to go through to
>redeploy them.
>
>In particular I'd like to understand if you want to redeploy imported
>contributions (imported by  in sca-contribution.xml), nested
>composites, and what you'd like to be able to update in the
>contributions and composites, classes? component configuration?
>bindings? wiring? etc.
>
My use case like that(there are three contributions):
contribution A export composite A,
contribution B import composite A used by composite B and export composite B,
contribution C import composite B
If we update composite A in contribution A,the sca runtime should be update the 
correlated contribution B and C and the component's relationship  should be 
rewiring.


>> - Support SDO namespace when using websservice.
>> Deploy a service to webservice,a schema file used in SDO and have sdo 
>> namespace such as commonj.sdo/java or commonj.sdo/xml,we should support the 
>> feature when parsing the wsdl.
>>   
>
>Could you provide an example WSDL and XSD?
>
My wsdl file like this:
http://xml.apache.org/xml-soap"; 
xmlns:sdoJava="commonj.sdo/java" 
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"; 
xmlns:tns="http://com.primeton.eos/com/primeton/eos/newcomponent"; 
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"; 
xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"; 
xmlns:xsd="http://www.w3.org/2001/XMLSchema"; 
targetNamespace="http://com.primeton.eos/com/primeton/eos/newcomponent";>

http://www.w3.org/2001/XMLSchema"; 
targetNamespace="http://com.primeton.eos/com/primeton/eos/newcomponent";>
http://schemas.xmlsoap.org/soap/encoding/"/>














































When I use the wsdl file to describe a service's interface,the console show a 
warning as below.
[WARNING] Component service interface incompatible with service interface: 
test/HelloInterfaceImpl null 

>> - Support load contribution as a osgi bundle.
>>   
>
>Are you looking for something different from the OSGi bundle
>contribution support already in the 1.0 release (as in
>itest/itest-contribution-osgi for example)?
>
Sorry for the misunderstanding.
I meaned that the sca runtime should be run in a osgi runtime and the 
classloader should be different for every contribution.
I have already found there were some discussion on the mail list.
>>
>> Thanks,   
>> wangfeng
>-- 
>Jean-Sebastien
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Re: [DISCUSS] Tuscany SCA Roadmap and next releases

2007-10-16 Thread wang feng
Hi all,

We have used Tuscany 1.0 in our product and found some features is important to 
us.

- Support hot deployable on contribution and composite.
This should be have a recursive algorithm to update the correlated component 
when it has been referenced.

- Support SDO namespace when using websservice.
Deploy a service to webservice,a schema file used in SDO and have sdo namespace 
such as commonj.sdo/java or commonj.sdo/xml,we should support the feature when 
parsing the wsdl.

- Support load contribution as a osgi bundle.


Thanks,  
wangfeng


On 2007-10-17, Simon Laws <[EMAIL PROTECTED]> wrote:

>On 10/16/07, Luciano Resende <[EMAIL PROTECTED]> wrote:
>>
>> For implementation.bpel, we need to finalize support for references,
>> and we might want to do introspection of the BPEL process.
>>
>> On 10/16/07, Jean-Sebastien Delfino <[EMAIL PROTECTED]> wrote:
>> > [snip]
>> > ant elder wrote:
>> > >
>> > > - Fix nightly builds (looks like this may be going again now)
>> > >
>> >
>> > Yes it is.
>> >
>> >
>> http://vmbuild1.apache.org/continuum/buildResults.action?projectGroupId=19&projectId=277
>> >
>> > [snip]
>> > > - Fix all the build issues (maven 2.0.6/2.0.7/JDK6/empty repository)
>> so new
>> > > users building Tuscany have a good experience
>> > >
>> >
>> > After the changes I made last week I think this is now all fixed (except
>> > for JIRAs TUSCANY-1846 and TUSCANY-1847). I am currently building with
>> > Maven 2.0.7 and both JDK5 and JDK6.
>> >
>> > Could people please try other Maven combinations? 2.0.5, 2.0.6, and
>> > report any errors? Thanks.
>> >
>> > [snip]
>> > > - Get binding.jms and implementation.bpel more spec complete.
>> > > - For JMS maybe have a host-jms module so you don't have to start a
>> separate
>> > > JMS server or can use the the Geronimo one if thats where Tuscany is
>> running
>> > >
>> >
>> > What's missing in binding.jms and implementation.bpel? Could people
>> > working on these modules give a quick overview?
>> >
>> > --
>> > Jean-Sebastien
>> >
>> >
>> > -
>> > To unsubscribe, e-mail: [EMAIL PROTECTED]
>> > For additional commands, e-mail: [EMAIL PROTECTED]
>> >
>> >
>>
>>
>> --
>> Luciano Resende
>> Apache Tuscany Committer
>> http://people.apache.org/~lresende
>> http://lresende.blogspot.com/
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>> For binding.jms the user guide shows you that most of the options still
>need to be implemented.
>
>http://incubator.apache.org/tuscany/sca-java-bindingjms.html
>
>There are a few people either working on this or have expressed an interest
>in working on it. There is quite a lot on incremental stuff that can be done
>for anyone else who is interested.
>
>Regards
>
>Simon
>




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



change build method to incrementalBuild,throws assembly problem

2007-07-24 Thread wang feng
hi,all

I checked out all the code and found the composite building method has been 
changed to the method named incrementalBuild,not used the method named 
build.The purpose is to build every composite separately,instead of the old 
implementation merged all included composites first.

This will make the building processor on a inner composite running several 
times when a component is implemented by a inner composite and the inner 
composite is deployable and the inner composite is builded early than the outer 
composite.If the inner composite is builded twice,this will occur the assembly 
problem:
Composite assembly problem: Service not found for component service: 
ComponentOne/$promoted$.Service_One


Thanks
Wang Feng


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]