Ok... I eventually solved this issue thanks to Cocoon community : I had 
forgotten to specify a filter-mapping element for my OpenSessionInViewFilter. 

But now that I have (with a url-pattern of "/*" to catch all the requests) I 
get the following exception : 



org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean 
named 'sessionFactory' is defined: 
org.springframework.beans.factory.support.DefaultListableBeanFactory defining 
beans [beanRefFactory]; root of BeanFactory hierarchy

  
 org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:365)

  
 org.springframework.beans.factory.support.AbstractBeanFactory.getMergedBeanDefinition(AbstractBeanFactory.java:583)

...





Which is true because I have specified the following init-param in web.xml :



<context-param>

&nbsp; &nbsp; &nbsp; &nbsp; <param-name>contextConfigLocation</param-name>

&nbsp; &nbsp; &nbsp; &nbsp; 
<param-value>/WEB-INF/classes/beanRefFactory.xml</param-value>

&nbsp; &nbsp; </context-param>





And of course my sessionFactory is not defined directly in beanRefFactory but 
in wrapped applicationContext.



So my question is linked with the way the spring cartridge generates spring 
configuration files : how should I configure my web.xml to initialize my 
environment properly ?



Thx in advance...
--
S�bastien Arbogast
_________________________________________________________
Reply to the post : http://galaxy.andromda.org/forum/viewtopic.php?p=62#62


-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
_______________________________________________
Andromda-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/andromda-user

Reply via email to