Bonjour, j'ai suivi un tuto sur votre site http://baptiste-meurant.developpez.c...ing-hibernate/.

Je précise que au lieu d'eclipse j'utilise Netbeans.
Je suis coincé à trois niveaux:
1-
définition du proxy général OK, pas de problème
<bean id="transactionManager" class="org.springframework.orm.hibernate3.HibernateTransactionManager">
<property name="sessionFactory" ref="sessionFactory"/>
</bean>
<bean id="transactionProxy" abstract="true"
class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean">
<property name="transactionManager">
<ref bean="transactionManager"/>
</property>
<property name="transactionAttributes">
<props>
<prop key="insert*">PROPAGATION_REQUIRED</prop>
<prop key="update*">PROPAGATION_REQUIRED</prop>
<prop key="save*">PROPAGATION_REQUIRED</prop>
<prop key="*">PROPAGATION_REQUIRED, readOnly</prop>
</props>
</property>
</bean>
Configuration proxy spécifique Là ça coince
<bean id="userManagerTarget" class="tuto.webssh.service.impl.UserManagerImpl">
<property name="userDao">
<ref bean="userDao" />
</property>
</bean>
<bean id="userManager" parent="transactionProxy">
<property name="target">
<ref bean="userManagerTarget"/>
</property>
<property name="transactionAttributeSource">
<bean class="org.springframework.transaction.annotation.AnnotationTransactionAttributeSource"/>
</property>
</bean>
Après la configuration du proxy spécifique, erreur de déploiement mais quand je modifie en :
<bean id="userManagerTarget" class="tuto.webssh.service.impl.UserManagerImpl">
<property name="userDao">
<ref bean="userDao" />
</property>
</bean>
<bean id="userManager" abstract="true" parent="transactionProxy">
<property name="target">
<ref bean="userManagerTarget"/>
</property>
<property name="transactionAttributeSource">
<bean class="org.springframework.transaction.annotation.AnnotationTransactionAttributeSource"/>
</property>
</bean>
Là ça passe mais le problème est que la bean userManager est abstrait.

2 - Le deuxième problème est dans le web.xml
Initialement j'ai:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
 
<context-param>
	  <param-name>contextConfigLocation</param-name>
	  <param-value>/WEB-INF/applicationContext.xml </param-value>
	</context-param>
et quand je modifie en:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
 
<context-param>
	  <param-name>contextConfigLocation</param-name>
	  <param-value>/WEB-INF/applicationContext.xml /WEB-INF/applicationContextDao.xml</param-value>
	</context-param>
en ajoutant /WEB-INF/applicationContextDao.xml ça ne passe plus

3- Le troisième problème c'est au niveau des filtres, quand j'ajoute
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
 
<filter>
	    <filter-name>app</filter-name>
	    <filter-class>org.apache.tapestry.TapestryFilter</filter-class>
        </filter>
 
        <filter-mapping>
		<filter-name>app</filter-name>
		<url-pattern>/*</url-pattern>
	</filter-mapping>
au web.xml, le déploiement n'est plus possible mais quand je retire ça marche.
Merci pour votre aide