Some spring bean configurations are not understood
--------------------------------------------------

                 Key: TUSCANY-3393
                 URL: https://issues.apache.org/jira/browse/TUSCANY-3393
             Project: Tuscany
          Issue Type: Bug
          Components: Java SCA Spring Implementation Extension
    Affects Versions: Java-SCA-1.5
            Reporter: Phil Housley


The following bean will cause an exception as there is no class on the top 
level bean element:

<bean id="..." parent="baseTransactionProxy">
        <property name="target">
                <bean class="..." />
        </property>
</bean>

Where the parent is something like:

<bean id="baseTransactionProxy"
        
class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean"
        abstract="true">
        <property name="transactionAttributes">
                <props>
                        <prop key="save*">PROPAGATION_REQUIRED</prop>
                </props>
        </property>
</bean>

I'm not really sure how to handle these, so internally I've just found the code 
that throws the exceptions and made sure any offending beans are skipped before 
they cause a problem.  I could make a patch of this if there is no obvious 
proper solution - it's basically just a null check in each of SpringContextTie 
and SpringXMLComponentTypeLoader.

-- 
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