I'm using spring MVC (spring version 1.2.1) , i want to use dwr(1.4.1) in my application. I've just configured my application as :
web.xml
<servlet>
<servlet-name>dwr-invoker</servlet-name>
<display-name>DWR Servlet</display-name>
<servlet-class>uk.ltd.getahead.dwr.DWRServlet</servlet-class>
<init-param>
<param-name>debug</param-name>
<param-value>true</param-value>
</init-param>
</servlet>
<servlet>
<servlet-name>mainServlet</servlet-name>
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>mainServlet</servlet-name>
<url-pattern>dwr/*</url-pattern>
</servlet-mapping>
------------------------------------------------------------------------------------------
applicationContext.xml
<bean id="stateDAO" class="com.realdevelopment.videonary.dao.specific.StateDAO">
<property name="sessionFactory">
<ref bean="TECSSessionFactory"/>
</property>
</bean>
<bean id="ajaxUtils" class="com.realdevelopment.videonary.web.utils.AjaxUtils">
<property name="stateDAO">
<ref bean="stateDAO"/>
</property>
</bean>
------------------------------------------------------------------------------------------
application_servlet.xml
<bean id="dwrController" class="org.springframework.web.servlet.mvc.ServletWrappingController">
<property name="servletClass">
<value>uk.ltd.getahead.dwr.DWRServlet</value>
<!--<value>org.directwebremoting.servlet.DwrServlet</value>-->
</property>
<property name="initParameters">
<props>
<prop key="debug">true</prop>
</props>
</property>
</bean>
<bean id="mainUrlHandler" class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">
<property name="alwaysUseFullPath" value="true"/>
<property name="mappings">
<props>
..............
..............
..............
<prop key="dwr/**/*">dwrController</prop>
<prop key="dwr/**/*">dwrController</prop>
<prop key="**/*.js">dwrController</prop>
<prop key="exec/*">dwrController</prop>
</props>
</property>
<property name="interceptors">
<list>
<ref bean="clickStreamInterceptor"/>
<ref bean="openSessionInViewInterceptor"/>
<ref bean="mainMenuHighlighterInterceptor"/>
<ref bean="userMenuHighlighterInterceptor"/>
<ref bean="adminMenuHighlighterInterceptor"/>
</list>
</property>
</bean>
------------------------------------------------------------------------------------------
dwr.xml
<?xml version="1.0" encoding="UTF-8"?>
http://www.getahead.ltd.uk/dwr/dwr10.dtd">
<dwr>
<allow>
<convert
converter="bean"
match="com.realdevelopment.videonary.web.utils.AjaxUtils"/>
<create
creator="spring"
javascript="ajaxUtils" class = "uk.ltd.getahead.dwr.create.SpringCreator" >
<include method="getStateList"/>
<param name="beanName" value="ajaxUtils"/>
<!-- nothing's going to change if i comment this line-->
<param name="location" value="/WEB-INF/applicationContext.xml"/>
</create>
</allow>
</dwr>
But when i tun it i get an error like this
missing spring creator while creating ajaxUtils.js
When I debug dwr source it encounter this error
org/springframework/beans/factory/BeanFactory does not exist.
I would appreciate if someone could help me and tell me how can fix this problem.