Vaadin 7+Sprin 3.2

hi
i want to use spring in vaadin
it’s my config:


web.xml
[b]
[i]
[size=4]
[u]

[/u]
[/size]
[/i]
[color=#000000]

contextConfigLocation
/WEB-INF/applicationContext.xml

<listener>
    <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
<listener>
    <listener-class>org.springframework.web.context.request.RequestContextListener</listener-class>
</listener>
<servlet>
    <servlet-name>VaadinApplicationServlet</servlet-name>
    <servlet-class>com.vaadin.server.VaadinServlet</servlet-class>
    <init-param>
        <param-name>UI</param-name>
        <param-value>com.MyUI</param-value>
    </init-param>
</servlet>
<servlet-mapping>
    <servlet-name>VaadinApplicationServlet</servlet-name>
    <url-pattern>/*</url-pattern>
</servlet-mapping>
[/color] [/b]


applicationContext.xml

[color=#0000FF]
[b]





<bean id="transactionManager"
      class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
    <property name="dataSource" ref="dataSource"/>
</bean>

<bean id="processEngineConfiguration" class="org.activiti.spring.SpringProcessEngineConfiguration">
    <property name="databaseType" value="postgres"/>
    <property name="dataSource" ref="dataSource"/>
    <property name="transactionManager" ref="transactionManager"/>
    <property name="databaseSchemaUpdate" value="true"/>
    <property name="deploymentResources"
              value="classpath* : #{Init.path_Process}"/>
    <property name="history" value="audit"/>
    <property name="jobExecutorActivate" value="false"/>
</bean>

<bean id="processEngine" class="org.activiti.spring.ProcessEngineFactoryBean">
    <property name="processEngineConfiguration" ref="processEngineConfiguration"/>
</bean>

<bean id="repositoryService" factory-bean="processEngine"
      factory-method="getRepositoryService"/>
<bean id="runtimeService" factory-bean="processEngine"
      factory-method="getRuntimeService"/>
<bean id="taskService" factory-bean="processEngine"
      factory-method="getTaskService"/>
<bean id="historyService" factory-bean="processEngine"
      factory-method="getHistoryService"/>
<bean id="managementService" factory-bean="processEngine"
      factory-method="getManagementService"/>
<bean id="formService" factory-bean="processEngine"
      factory-method="getFormService"/>
<bean id="identityService" factory-bean="processEngine"
      factory-method="getIdentityService"/>

<bean id="Init" class="util.Init"/>
<context:annotation-config/>
<context:component-scan base-package="com"/>    
<context:spring-configured/>
<bean class="org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor"/>
<bean class="org.springframework.context.annotation.CommonAnnotationBeanPostProcessor"/>

[/b]
[/color]


in MyUI class:


#java
@Component
public class MyUI extends UI {
protected void init(VaadinRequest vaadinRequest) {

@Autowired
private IdentityService identityService;

}}
this config work in junit and Ok!
but

when run in vaadin and tomcat , java.lang.NullPointerException error for identityService
where is my problem?
thanks