Hi

I'm a bit confused with the Struts and Spring configuration. I read that I only have to configure the Struts PlugIn:

<plug-in className="org.springframework.web.struts.ContextL oaderPlugIn">
<set-property property="contextConfigLocation" value="/WEB-INF/spring.xml"/>
</plug-in>

But I get the following error:

java.lang.IllegalStateException: No WebApplicationContext found: no ContextLoaderListener registered

So I read that I can configure the ContextLoaderListener in the web.xml

<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>/WEB-INF/spring.xml</param-value>
</context-param>

<listener>
<listener-class>org.springframework.web.context.ContextLoade rListener</listener-class>
</listener>

If I put this, and remove the Struts PlugIn I still get:

java.lang.IllegalStateException: No WebApplicationContext found: no ContextLoaderListener registered

It seems that I have to configure the plugin and the ContextLoaderListener to make it work. What's bothering me is that I think is loading the spring.xml two times.

Regards,

Néstor Boscán