DWR

DWR & Spring MVC integeration

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Critical Critical
  • Resolution: Fixed
  • Affects Version/s: 2.0
  • Fix Version/s: 3.0.RC1
  • Component/s: Spring
  • Description:
    Hide
    Hi there , I am using dwr & spring in my application, here is my configurations

      <dwr:controller id="dwrController" debug="true"/>
        <dwr:config-param name="crossDomainSessionSecurity" value="false">
        </dwr:config-param>


             <bean id="dwrUrlMapping" class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">
           <property name="alwaysUseFullPath" value="true"/>
            <property name="mappings">
                <props>
                    <prop key="/dwr/**/*">dwrController</prop>
                    <prop key="/engine.js">dwrController</prop>
                    <prop key="/util.js">dwrController</prop>
                    <prop key="/interface/**">dwrController</prop>
                    <prop key="/call/**">dwrController</prop>
                </props>
            </property>
        </bean>

     <bean id="ajaxUtils" class="com.realdevelopment.project.util.AjaxUtils">
            <dwr:remote javascript="AjaxFacade">
                <dwr:include method="getStateList"/>
            </dwr:remote>
            <property name="stateDAO">
                <ref bean="stateDAO"/>
            </property>
        </bean>

    When i run the application the application server(resin 3-14) throw an exception who says it can not create dwrController bean. If i define dwrController in applicationContext like the other beans , i get this Error

    Error: java.lang.SecurityException: No class by name: AjaxFacade
    uk.ltd.getahead.dwr.DWRServlet: Sent 501

    It's so critical for me to solve this problem.

    I would appreciate if you can help me .
    Thank you so much and Good Luck
    Show
    Hi there , I am using dwr & spring in my application, here is my configurations   <dwr:controller id="dwrController" debug="true"/>     <dwr:config-param name="crossDomainSessionSecurity" value="false">     </dwr:config-param>          <bean id="dwrUrlMapping" class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">        <property name="alwaysUseFullPath" value="true"/>         <property name="mappings">             <props>                 <prop key="/dwr/**/*">dwrController</prop>                 <prop key="/engine.js">dwrController</prop>                 <prop key="/util.js">dwrController</prop>                 <prop key="/interface/**">dwrController</prop>                 <prop key="/call/**">dwrController</prop>             </props>         </property>     </bean>  <bean id="ajaxUtils" class="com.realdevelopment.project.util.AjaxUtils">         <dwr:remote javascript="AjaxFacade">             <dwr:include method="getStateList"/>         </dwr:remote>         <property name="stateDAO">             <ref bean="stateDAO"/>         </property>     </bean> When i run the application the application server(resin 3-14) throw an exception who says it can not create dwrController bean. If i define dwrController in applicationContext like the other beans , i get this Error Error: java.lang.SecurityException: No class by name: AjaxFacade uk.ltd.getahead.dwr.DWRServlet: Sent 501 It's so critical for me to solve this problem. I would appreciate if you can help me . Thank you so much and Good Luck

Activity

Joe Walker made changes - 08/Feb/08 4:24 AM
Field Original Value New Value
Fix Version/s 3.0.M1 [ 10042 ]
Joe Walker made changes - 08/Feb/08 5:25 AM
Assignee Joe Walker [ joe ] Jose Noheda [ xmaniac ]
Fix Version/s 3.0.M1 [ 10042 ]
Jose Noheda made changes - 08/Feb/08 4:52 PM
Component/s spring [ 10004 ]
Component/s dwrp [ 10010 ]
Hide
Jose Noheda added a comment - 10/Feb/08 9:37 AM

dwrController should be defined in the MVC context (not in the root context). The <dwr:controller> definition is badly formatted (the final slash shouldn't be there).

Please use the mailing lists for this kind of questions.

Show
Jose Noheda added a comment - 10/Feb/08 9:37 AM dwrController should be defined in the MVC context (not in the root context). The <dwr:controller> definition is badly formatted (the final slash shouldn't be there). Please use the mailing lists for this kind of questions.
Jose Noheda made changes - 10/Feb/08 9:37 AM
Status Open [ 1 ] Closed [ 6 ]
Resolution Won't Fix [ 2 ]
Joe Walker made changes - 31/Oct/08 3:00 PM
Resolution Won't Fix [ 2 ]
Assignee Jose Noheda [ xmaniac ] Joe Walker [ joe ]
Status Closed [ 6 ] Reopened [ 4 ]
Joe Walker made changes - 31/Oct/08 3:00 PM
Fix Version/s 3.0 [ 10025 ]
Joe Walker made changes - 31/Oct/08 3:06 PM
Resolution Fixed [ 1 ]
Status Reopened [ 4 ] Resolved [ 5 ]
Mike Wilson made changes - 29/Nov/12 3:24 PM
Fix Version/s 3.0.RC1 [ 10051 ]
Fix Version/s 3.0 [ 10025 ]

People

Dates

  • Created:
    02/Oct/07 12:04 PM
    Updated:
    29/Nov/12 3:24 PM
    Resolved:
    31/Oct/08 3:06 PM