[ 
https://issues.apache.org/jira/browse/TUSCANY-3655?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12900284#action_12900284
 ] 

Mike Edwards commented on TUSCANY-3655:
---------------------------------------

Winston,

The Tuscany 2.x code implements the OASIS version of the SCA spec, rather than 
the earlier OSOA version implemented in 1.x.

This leads to a change in the namespaces, in particular the one used in the 
application context, which in 2.x needs to look like this:

<beans xmlns="http://www.springframework.org/schema/beans";
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
       xmlns:sca="http://www.springframework.org/schema/sca";
       xsi:schemaLocation="
       http://www.springframework.org/schema/beans 
http://www.springframework.org/schema/beans/spring-beans.xsd
       http://www.springframework.org/schema/sca 
http://www.osoa.org/xmlns/sca/1.0/spring-sca.xsd";>

    <bean id="HelloworldBean" class="sample.HelloworldImpl">
    </bean>

</beans>

note:  http://www.springframework.org/schema/sca 
http://www.osoa.org/xmlns/sca/1.0/spring-sca.xsd

You can see this in action in the helloworld-spring sample in the 2.x codebase

> implementation.spring in a Web Applicaton
> -----------------------------------------
>
>                 Key: TUSCANY-3655
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-3655
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SCA Spring Implementation Extension
>    Affects Versions: Java-SCA-2.0-M5
>         Environment: JSF2.0, Spring3.0, Hibernate3.1 and java-SCA 2.0
>            Reporter: winston antony
>
>      <implementation.spring location="applicationContext.xml"/>  this is 
> throwing the below error 
> org.apache.tuscany.sca.contribution.processor.ContributionReadException: 
> Location cannot be resloved: applicationContext.xml
> applicationContext.xml is put under web-inf directory as well as under src 
> directory. Still it is not able to find the applicationContext.xml.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to