DWR Request throwing error : No request handling method with name X in class Y

classic Classic list List threaded Threaded
18 messages Options
Reply | Threaded
Open this post in threaded view
|

DWR Request throwing error : No request handling method with name X in class Y

amit.sharma
Hi,
I am using from 3.2, DWR 3 rc2, JBOSS 7.

We are facing a problem while making DWR call.
Server shows log :

No request handling method with name 'loadWorkListData' in class [com.prospecta.mdo2.view.controller.dynamicDashboards.Dashboard]

com.prospecta.mdo2.view.controller.dynamicDashboards.Dashboard is Spring servlet (ie extends MultiActionController).

We added @RemoteProxy to this class and @RemoteMethod to one of its methods(loadWorkListData).

Deployment shows following DWR related logs.

12:02:12,251 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) [engine.js] mapped to dwrController
12:02:12,251 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) [util.js] mapped to dwrController
12:02:12,251 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Interface beans and calls (/interface/*, /call/*) mapped to dwrController
12:02:12,251 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) /test/* has been mapped to dwrController
12:02:12,251 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) /download/* has been mapped to dwrController
12:02:12,254 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/util.js] onto handler of type [class org.directwebremoting.spring.DwrController]
12:02:12,254 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/jsonrpc/**] onto handler of type [class org.directwebremoting.spring.DwrController]
12:02:12,254 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/download/**] onto handler of type [class org.directwebremoting.spring.DwrController]
12:02:12,254 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/data/Store.js] onto handler of type [class org.directwebremoting.spring.DwrController]
12:02:12,254 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/engine.js] onto handler of type [class org.directwebremoting.spring.DwrController]
12:02:12,255 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/test/**] onto handler of type [class org.directwebremoting.spring.DwrController]
12:02:12,255 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/interface/**] onto handler of type [class org.directwebremoting.spring.DwrController]
12:02:12,255 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/call/**] onto handler of type [class org.directwebremoting.spring.DwrController]
12:02:12,255 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/jsonp/**] onto handler of type [class org.directwebremoting.spring.DwrController]
12:02:12,259 INFO  [org.springframework.web.servlet.handler.SimpleUrlHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/interface.js] onto handler 'dwrController'
12:02:12,259 INFO  [org.springframework.web.servlet.handler.SimpleUrlHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/engine.js] onto handler 'dwrController'
12:02:12,259 INFO  [org.springframework.web.servlet.handler.SimpleUrlHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/interface/**] onto handler 'dwrController'
12:02:12,260 INFO  [org.springframework.web.servlet.handler.SimpleUrlHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/call/**] onto handler 'dwrController'

-----------------------------------------------------------------------------------------------------------------------------------------
12:01:54,054 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.Auctions.AuctionDescModel] processed by converter type [bean]
12:01:54,063 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.Auctions.AuctionHeaderModel$AuctionStatus] processed by converter type [bean]
12:01:54,065 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.Auctions.AuctionHeaderModel$AuctionViewSettings] processed by converter type [bean]
12:01:54,066 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.Auctions.AuctionHeaderModel] processed by converter type [bean]
12:01:54,068 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.Auctions.AuctionInviteesModel] processed by converter type [bean]
12:01:54,070 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.Auctions.AuctionItemBiddingsModel] processed by converter type [bean]
12:01:54,072 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.Auctions.AuctionItemsModel] processed by converter type [bean]
12:01:54,075 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.Auctions.AuctionRulesModel] processed by converter type [bean]
12:01:54,123 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.mdoNotification.MdoNotificationModel] processed by converter type [bean]
12:01:54,154 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.PublicPrivateRuleManager.RuleHandlerModel] processed by converter type [bean]
12:01:54,155 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.StatusFlow.StatusflowControllerModel$ObjectStatus] processed by converter type [bean]
12:01:54,157 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.TaskComments.TaskCommentsModel] processed by converter type [bean]
12:01:54,159 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.testModel.DwrModelTest] processed by converter type [bean]
12:01:54,160 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.USERAuthentication.USERAUthenticationModel] processed by converter type [bean]
12:01:54,162 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.Users.UserMdoModel] processed by converter type [bean]
12:01:54,164 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.ViewersTrack.CartPrdctsTrackModel] processed by converter type [bean]
12:01:54,165 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.ViewersTrack.CompanyProfileTrackModel] processed by converter type [bean]
12:01:54,167 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.WorkFlowTransaction.WorkFlowTransactionPojoTaskList] processed by converter type [bean]
12:01:55,496 INFO  [org.directwebremoting.spring.DwrAnnotationPostProcessor] (ServerService Thread Pool -- 108) Detected candidate bean [/dashBoard.do]. Remoting using Dashboard

DWR Configurations in jboss-as-spring-mvc-context.xml

    <mvc:resources mapping="/dwr/**" location="/"/>

    <dwr:annotation-config id="springdwr" />
    <dwr:annotation-scan base-package="com.prospecta.mdo2.hib.hibMODEL" scanDataTransferObject="true" scanRemoteProxy="true" />
    <dwr:url-mapping />
    <dwr:controller id="dwrController" debug="false">
        <dwr:config-param name="activeReverseAjaxEnabled" value="true" />
        <dwr:config-param name="scriptCompressed" value="true" />
        <dwr:config-param name="fileUploadMaxBytes" value="10485760" />
        <dwr:config-param name="allowScriptTagRemoting" value="true" />
    </dwr:controller>
   
    <bean id="viewMappings" class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">
        <property name="alwaysUseFullPath" value="true" />
        <property name="urlMap">
             <map>
                  <entry key="/dwr/**/*" value-ref="dwrController" />
             </map>
        </property>
    </bean>    


web.xml :

    <servlet-mapping>
        <servlet-name>jboss-as-kitchensink</servlet-name>
        <url-pattern>/dwr/*</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
        <servlet-name>jboss-as-kitchensink</servlet-name>
        <url-pattern>/</url-pattern>
    </servlet-mapping>

    <servlet>
        <servlet-name>jboss-as-kitchensink</servlet-name>
        <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
        <init-param>
            <param-name>contextConfigLocation</param-name>
            <param-value>/WEB-INF/jboss-as-spring-mvc-context.xml</param-value>
        </init-param>
        <load-on-startup>2</load-on-startup>
    </servlet>
Please suggest any changes required to be made in my application.

Regards,
Amit Sharma
Reply | Threaded
Open this post in threaded view
|

Re: DWR Request throwing error : No request handling method with name X in class Y

Mike Wilson
Administrator
I'm suspecting your configuration makes requests end up in Spring instead of in DWR. If you have any stacktraces you can verify they refer to org.directwebremoting classes. If not, you are not sending calls through DWR.
 
Make sure you have followed the instructions here:
and verify that things are working on DWR's test page:
 
Best regards
Mike Wilson
 
Amit Sharma wrote:
Hi,
I am using from 3.2, DWR 3 rc2, JBOSS 7.

We are facing a problem while making DWR call.
Server shows log :

No request handling method with name 'loadWorkListData' in class [com.prospecta.mdo2.view.controller.dynamicDashboards.Dashboard]

com.prospecta.mdo2.view.controller.dynamicDashboards.Dashboard is Spring servlet (ie extends MultiActionController).

We added @RemoteProxy to this class and @RemoteMethod to one of its methods(loadWorkListData).

Deployment shows following DWR related logs.

12:02:12,251 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) [engine.js] mapped to dwrController
12:02:12,251 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) [util.js] mapped to dwrController
12:02:12,251 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Interface beans and calls (/interface/*, /call/*) mapped to dwrController
12:02:12,251 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) /test/* has been mapped to dwrController
12:02:12,251 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) /download/* has been mapped to dwrController
12:02:12,254 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/util.js] onto handler of type [class org.directwebremoting.spring.DwrController]
12:02:12,254 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/jsonrpc/**] onto handler of type [class org.directwebremoting.spring.DwrController]
12:02:12,254 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/download/**] onto handler of type [class org.directwebremoting.spring.DwrController]
12:02:12,254 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/data/Store.js] onto handler of type [class org.directwebremoting.spring.DwrController]
12:02:12,254 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/engine.js] onto handler of type [class org.directwebremoting.spring.DwrController]
12:02:12,255 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/test/**] onto handler of type [class org.directwebremoting.spring.DwrController]
12:02:12,255 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/interface/**] onto handler of type [class org.directwebremoting.spring.DwrController]
12:02:12,255 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/call/**] onto handler of type [class org.directwebremoting.spring.DwrController]
12:02:12,255 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/jsonp/**] onto handler of type [class org.directwebremoting.spring.DwrController]
12:02:12,259 INFO  [org.springframework.web.servlet.handler.SimpleUrlHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/interface.js] onto handler 'dwrController'
12:02:12,259 INFO  [org.springframework.web.servlet.handler.SimpleUrlHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/engine.js] onto handler 'dwrController'
12:02:12,259 INFO  [org.springframework.web.servlet.handler.SimpleUrlHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/interface/**] onto handler 'dwrController'
12:02:12,260 INFO  [org.springframework.web.servlet.handler.SimpleUrlHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/call/**] onto handler 'dwrController'

-----------------------------------------------------------------------------------------------------------------------------------------
12:01:54,054 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.Auctions.AuctionDescModel] processed by converter type [bean]
12:01:54,063 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.Auctions.AuctionHeaderModel$AuctionStatus] processed by converter type [bean]
12:01:54,065 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.Auctions.AuctionHeaderModel$AuctionViewSettings] processed by converter type [bean]
12:01:54,066 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.Auctions.AuctionHeaderModel] processed by converter type [bean]
12:01:54,068 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.Auctions.AuctionInviteesModel] processed by converter type [bean]
12:01:54,070 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.Auctions.AuctionItemBiddingsModel] processed by converter type [bean]
12:01:54,072 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.Auctions.AuctionItemsModel] processed by converter type [bean]
12:01:54,075 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.Auctions.AuctionRulesModel] processed by converter type [bean]
12:01:54,123 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.mdoNotification.MdoNotificationModel] processed by converter type [bean]
12:01:54,154 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.PublicPrivateRuleManager.RuleHandlerModel] processed by converter type [bean]
12:01:54,155 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.StatusFlow.StatusflowControllerModel$ObjectStatus] processed by converter type [bean]
12:01:54,157 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.TaskComments.TaskCommentsModel] processed by converter type [bean]
12:01:54,159 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.testModel.DwrModelTest] processed by converter type [bean]
12:01:54,160 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.USERAuthentication.USERAUthenticationModel] processed by converter type [bean]
12:01:54,162 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.Users.UserMdoModel] processed by converter type [bean]
12:01:54,164 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.ViewersTrack.CartPrdctsTrackModel] processed by converter type [bean]
12:01:54,165 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.ViewersTrack.CompanyProfileTrackModel] processed by converter type [bean]
12:01:54,167 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.WorkFlowTransaction.WorkFlowTransactionPojoTaskList] processed by converter type [bean]
12:01:55,496 INFO  [org.directwebremoting.spring.DwrAnnotationPostProcessor] (ServerService Thread Pool -- 108) Detected candidate bean [/dashBoard.do]. Remoting using Dashboard

DWR Configurations in jboss-as-spring-mvc-context.xml

    <mvc:resources mapping="/dwr/**" location="/"/>

    <dwr:annotation-config id="springdwr" />
    <dwr:annotation-scan base-package="com.prospecta.mdo2.hib.hibMODEL" scanDataTransferObject="true" scanRemoteProxy="true" />
    <dwr:url-mapping />
    <dwr:controller id="dwrController" debug="false">
        <dwr:config-param name="activeReverseAjaxEnabled" value="true" />
        <dwr:config-param name="scriptCompressed" value="true" />
        <dwr:config-param name="fileUploadMaxBytes" value="10485760" />
        <dwr:config-param name="allowScriptTagRemoting" value="true" />
    </dwr:controller>
   
    <bean id="viewMappings" class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">
        <property name="alwaysUseFullPath" value="true" />
        <property name="urlMap">
             <map>
                  <entry key="/dwr/**/*" value-ref="dwrController" />
             </map>
        </property>
    </bean>    


web.xml :

    <servlet-mapping>
        <servlet-name>jboss-as-kitchensink</servlet-name>
        <url-pattern>/dwr/*</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
        <servlet-name>jboss-as-kitchensink</servlet-name>
        <url-pattern>/</url-pattern>
    </servlet-mapping>

    <servlet>
        <servlet-name>jboss-as-kitchensink</servlet-name>
        <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
        <init-param>
            <param-name>contextConfigLocation</param-name>
            <param-value>/WEB-INF/jboss-as-spring-mvc-context.xml</param-value>
        </init-param>
        <load-on-startup>2</load-on-startup>
    </servlet>
Please suggest any changes required to be made in my application.

Regards,
Amit Sharma
Reply | Threaded
Open this post in threaded view
|

Re: DWR Request throwing error : No request handling method with name X in class Y

david@butterdev.com
In reply to this post by amit.sharma
Try removing <dwr:url-mapping/>. This tag adds default mappings (/engine.js, /interface/**, etc.) but you have specified a custom SimpleUrlHandlerMapping (/dwr/**/*).

On 11/25/2013 11:49 PM, Amit Sharma wrote:
Hi,
I am using from 3.2, DWR 3 rc2, JBOSS 7.

We are facing a problem while making DWR call.
Server shows log :

No request handling method with name 'loadWorkListData' in class [com.prospecta.mdo2.view.controller.dynamicDashboards.Dashboard]

com.prospecta.mdo2.view.controller.dynamicDashboards.Dashboard is Spring servlet (ie extends MultiActionController).

We added @RemoteProxy to this class and @RemoteMethod to one of its methods(loadWorkListData).

Deployment shows following DWR related logs.

12:02:12,251 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) [engine.js] mapped to dwrController
12:02:12,251 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) [util.js] mapped to dwrController
12:02:12,251 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Interface beans and calls (/interface/*, /call/*) mapped to dwrController
12:02:12,251 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) /test/* has been mapped to dwrController
12:02:12,251 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) /download/* has been mapped to dwrController
12:02:12,254 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/util.js] onto handler of type [class org.directwebremoting.spring.DwrController]
12:02:12,254 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/jsonrpc/**] onto handler of type [class org.directwebremoting.spring.DwrController]
12:02:12,254 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/download/**] onto handler of type [class org.directwebremoting.spring.DwrController]
12:02:12,254 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/data/Store.js] onto handler of type [class org.directwebremoting.spring.DwrController]
12:02:12,254 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/engine.js] onto handler of type [class org.directwebremoting.spring.DwrController]
12:02:12,255 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/test/**] onto handler of type [class org.directwebremoting.spring.DwrController]
12:02:12,255 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/interface/**] onto handler of type [class org.directwebremoting.spring.DwrController]
12:02:12,255 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/call/**] onto handler of type [class org.directwebremoting.spring.DwrController]
12:02:12,255 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/jsonp/**] onto handler of type [class org.directwebremoting.spring.DwrController]
12:02:12,259 INFO  [org.springframework.web.servlet.handler.SimpleUrlHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/interface.js] onto handler 'dwrController'
12:02:12,259 INFO  [org.springframework.web.servlet.handler.SimpleUrlHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/engine.js] onto handler 'dwrController'
12:02:12,259 INFO  [org.springframework.web.servlet.handler.SimpleUrlHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/interface/**] onto handler 'dwrController'
12:02:12,260 INFO  [org.springframework.web.servlet.handler.SimpleUrlHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/call/**] onto handler 'dwrController'

-----------------------------------------------------------------------------------------------------------------------------------------
12:01:54,054 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.Auctions.AuctionDescModel] processed by converter type [bean]
12:01:54,063 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.Auctions.AuctionHeaderModel$AuctionStatus] processed by converter type [bean]
12:01:54,065 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.Auctions.AuctionHeaderModel$AuctionViewSettings] processed by converter type [bean]
12:01:54,066 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.Auctions.AuctionHeaderModel] processed by converter type [bean]
12:01:54,068 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.Auctions.AuctionInviteesModel] processed by converter type [bean]
12:01:54,070 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.Auctions.AuctionItemBiddingsModel] processed by converter type [bean]
12:01:54,072 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.Auctions.AuctionItemsModel] processed by converter type [bean]
12:01:54,075 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.Auctions.AuctionRulesModel] processed by converter type [bean]
12:01:54,123 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.mdoNotification.MdoNotificationModel] processed by converter type [bean]
12:01:54,154 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.PublicPrivateRuleManager.RuleHandlerModel] processed by converter type [bean]
12:01:54,155 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.StatusFlow.StatusflowControllerModel$ObjectStatus] processed by converter type [bean]
12:01:54,157 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.TaskComments.TaskCommentsModel] processed by converter type [bean]
12:01:54,159 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.testModel.DwrModelTest] processed by converter type [bean]
12:01:54,160 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.USERAuthentication.USERAUthenticationModel] processed by converter type [bean]
12:01:54,162 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.Users.UserMdoModel] processed by converter type [bean]
12:01:54,164 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.ViewersTrack.CartPrdctsTrackModel] processed by converter type [bean]
12:01:54,165 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.ViewersTrack.CompanyProfileTrackModel] processed by converter type [bean]
12:01:54,167 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.WorkFlowTransaction.WorkFlowTransactionPojoTaskList] processed by converter type [bean]
12:01:55,496 INFO  [org.directwebremoting.spring.DwrAnnotationPostProcessor] (ServerService Thread Pool -- 108) Detected candidate bean [/dashBoard.do]. Remoting using Dashboard

DWR Configurations in jboss-as-spring-mvc-context.xml

    <mvc:resources mapping="/dwr/**" location="/"/>

    <dwr:annotation-config id="springdwr" />
    <dwr:annotation-scan base-package="com.prospecta.mdo2.hib.hibMODEL" scanDataTransferObject="true" scanRemoteProxy="true" />
    <dwr:url-mapping />
    <dwr:controller id="dwrController" debug="false">
        <dwr:config-param name="activeReverseAjaxEnabled" value="true" />
        <dwr:config-param name="scriptCompressed" value="true" />
        <dwr:config-param name="fileUploadMaxBytes" value="10485760" />
        <dwr:config-param name="allowScriptTagRemoting" value="true" />
    </dwr:controller>
   
    <bean id="viewMappings" class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">
        <property name="alwaysUseFullPath" value="true" />
        <property name="urlMap">
             <map>
                  <entry key="/dwr/**/*" value-ref="dwrController" />
             </map>
        </property>
    </bean>    


web.xml :

    <servlet-mapping>
        <servlet-name>jboss-as-kitchensink</servlet-name>
        <url-pattern>/dwr/*</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
        <servlet-name>jboss-as-kitchensink</servlet-name>
        <url-pattern>/</url-pattern>
    </servlet-mapping>

    <servlet>
        <servlet-name>jboss-as-kitchensink</servlet-name>
        <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
        <init-param>
            <param-name>contextConfigLocation</param-name>
            <param-value>/WEB-INF/jboss-as-spring-mvc-context.xml</param-value>
        </init-param>
        <load-on-startup>2</load-on-startup>
    </servlet>
Please suggest any changes required to be made in my application.

Regards,
Amit Sharma

Reply | Threaded
Open this post in threaded view
|

Re: DWR Request throwing error : No request handling method with name X in class Y

david@butterdev.com
In reply to this post by amit.sharma
Also, your error is coming from Spring and not related to DWR's Spring integration.  I suggest performing a general internet search to help you with your error.

I am not sure why you added an @RemoteProxy/@RemoteMethod to a controller.  The main use of the DWR/Spring integration is to expose Spring managed beans to DWR.  If your controller returns a ModelAndView DWR will not know how to convert that. 

On 11/25/2013 11:49 PM, Amit Sharma wrote:
Hi,
I am using from 3.2, DWR 3 rc2, JBOSS 7.

We are facing a problem while making DWR call.
Server shows log :

No request handling method with name 'loadWorkListData' in class [com.prospecta.mdo2.view.controller.dynamicDashboards.Dashboard]

com.prospecta.mdo2.view.controller.dynamicDashboards.Dashboard is Spring servlet (ie extends MultiActionController).

We added @RemoteProxy to this class and @RemoteMethod to one of its methods(loadWorkListData).

Deployment shows following DWR related logs.

12:02:12,251 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) [engine.js] mapped to dwrController
12:02:12,251 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) [util.js] mapped to dwrController
12:02:12,251 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Interface beans and calls (/interface/*, /call/*) mapped to dwrController
12:02:12,251 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) /test/* has been mapped to dwrController
12:02:12,251 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) /download/* has been mapped to dwrController
12:02:12,254 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/util.js] onto handler of type [class org.directwebremoting.spring.DwrController]
12:02:12,254 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/jsonrpc/**] onto handler of type [class org.directwebremoting.spring.DwrController]
12:02:12,254 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/download/**] onto handler of type [class org.directwebremoting.spring.DwrController]
12:02:12,254 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/data/Store.js] onto handler of type [class org.directwebremoting.spring.DwrController]
12:02:12,254 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/engine.js] onto handler of type [class org.directwebremoting.spring.DwrController]
12:02:12,255 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/test/**] onto handler of type [class org.directwebremoting.spring.DwrController]
12:02:12,255 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/interface/**] onto handler of type [class org.directwebremoting.spring.DwrController]
12:02:12,255 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/call/**] onto handler of type [class org.directwebremoting.spring.DwrController]
12:02:12,255 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/jsonp/**] onto handler of type [class org.directwebremoting.spring.DwrController]
12:02:12,259 INFO  [org.springframework.web.servlet.handler.SimpleUrlHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/interface.js] onto handler 'dwrController'
12:02:12,259 INFO  [org.springframework.web.servlet.handler.SimpleUrlHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/engine.js] onto handler 'dwrController'
12:02:12,259 INFO  [org.springframework.web.servlet.handler.SimpleUrlHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/interface/**] onto handler 'dwrController'
12:02:12,260 INFO  [org.springframework.web.servlet.handler.SimpleUrlHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/call/**] onto handler 'dwrController'

-----------------------------------------------------------------------------------------------------------------------------------------
12:01:54,054 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.Auctions.AuctionDescModel] processed by converter type [bean]
12:01:54,063 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.Auctions.AuctionHeaderModel$AuctionStatus] processed by converter type [bean]
12:01:54,065 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.Auctions.AuctionHeaderModel$AuctionViewSettings] processed by converter type [bean]
12:01:54,066 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.Auctions.AuctionHeaderModel] processed by converter type [bean]
12:01:54,068 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.Auctions.AuctionInviteesModel] processed by converter type [bean]
12:01:54,070 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.Auctions.AuctionItemBiddingsModel] processed by converter type [bean]
12:01:54,072 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.Auctions.AuctionItemsModel] processed by converter type [bean]
12:01:54,075 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.Auctions.AuctionRulesModel] processed by converter type [bean]
12:01:54,123 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.mdoNotification.MdoNotificationModel] processed by converter type [bean]
12:01:54,154 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.PublicPrivateRuleManager.RuleHandlerModel] processed by converter type [bean]
12:01:54,155 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.StatusFlow.StatusflowControllerModel$ObjectStatus] processed by converter type [bean]
12:01:54,157 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.TaskComments.TaskCommentsModel] processed by converter type [bean]
12:01:54,159 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.testModel.DwrModelTest] processed by converter type [bean]
12:01:54,160 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.USERAuthentication.USERAUthenticationModel] processed by converter type [bean]
12:01:54,162 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.Users.UserMdoModel] processed by converter type [bean]
12:01:54,164 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.ViewersTrack.CartPrdctsTrackModel] processed by converter type [bean]
12:01:54,165 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.ViewersTrack.CompanyProfileTrackModel] processed by converter type [bean]
12:01:54,167 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.WorkFlowTransaction.WorkFlowTransactionPojoTaskList] processed by converter type [bean]
12:01:55,496 INFO  [org.directwebremoting.spring.DwrAnnotationPostProcessor] (ServerService Thread Pool -- 108) Detected candidate bean [/dashBoard.do]. Remoting using Dashboard

DWR Configurations in jboss-as-spring-mvc-context.xml

    <mvc:resources mapping="/dwr/**" location="/"/>

    <dwr:annotation-config id="springdwr" />
    <dwr:annotation-scan base-package="com.prospecta.mdo2.hib.hibMODEL" scanDataTransferObject="true" scanRemoteProxy="true" />
    <dwr:url-mapping />
    <dwr:controller id="dwrController" debug="false">
        <dwr:config-param name="activeReverseAjaxEnabled" value="true" />
        <dwr:config-param name="scriptCompressed" value="true" />
        <dwr:config-param name="fileUploadMaxBytes" value="10485760" />
        <dwr:config-param name="allowScriptTagRemoting" value="true" />
    </dwr:controller>
   
    <bean id="viewMappings" class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">
        <property name="alwaysUseFullPath" value="true" />
        <property name="urlMap">
             <map>
                  <entry key="/dwr/**/*" value-ref="dwrController" />
             </map>
        </property>
    </bean>    


web.xml :

    <servlet-mapping>
        <servlet-name>jboss-as-kitchensink</servlet-name>
        <url-pattern>/dwr/*</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
        <servlet-name>jboss-as-kitchensink</servlet-name>
        <url-pattern>/</url-pattern>
    </servlet-mapping>

    <servlet>
        <servlet-name>jboss-as-kitchensink</servlet-name>
        <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
        <init-param>
            <param-name>contextConfigLocation</param-name>
            <param-value>/WEB-INF/jboss-as-spring-mvc-context.xml</param-value>
        </init-param>
        <load-on-startup>2</load-on-startup>
    </servlet>
Please suggest any changes required to be made in my application.

Regards,
Amit Sharma

Reply | Threaded
Open this post in threaded view
|

Re: DWR Request throwing error : No request handling method with name X in class Y

david@butterdev.com
In reply to this post by amit.sharma
http://docs.spring.io/spring/docs/3.2.5.RELEASE/javadoc-api/org/springframework/web/servlet/mvc/multiaction/MultiActionController.html

As you can see it tells you at the very top of the Java docs what the method signature has to look like.  Since you haven't sent us your code I have no idea what your method signature looks like but my guess is that Spring made an API change that requires a certain signature, and your method doesn't not match that signature.

On 11/26/2013 07:44 AM, Amit Sharma wrote:

Hello Mike/David,

Thanks for your reply.
I apologize for the last post. As the error "No request handling method with name X in class Y " is not the valid one. I checked out the references given by you but configuration seems fine for me. As you can see that Deployment logs says all the mapping for DWR has been done successfully.

Tried removing     <dwr:url-mapping /> Deployment went smooth but had no effect. Still the same as descibed below.

I can see the following error in Firebug console.
GET http://localhost:8080/MDOSF/dwr/engine.js [HTTP/1.1 405 Method Not Allowed 10ms]

And in servlet.log it prints the following log.

18:20:25,278 DEBUG [org.springframework.security.web.util.AntPathRequestMatcher] (http-localhost/127.0.0.1:8080-5) Checking match of request : '/dwr/engine.js'; against '/'
18:20:25,278 DEBUG [org.springframework.security.web.util.AntPathRequestMatcher] (http-localhost/127.0.0.1:8080-5) Checking match of request : '/dwr/engine.js'; against '/login'
18:20:25,278 DEBUG [org.springframework.security.web.util.AntPathRequestMatcher] (http-localhost/127.0.0.1:8080-5) Checking match of request : '/dwr/engine.js'; against '/logout'
18:20:25,278 DEBUG [org.springframework.security.web.util.AntPathRequestMatcher] (http-localhost/127.0.0.1:8080-5) Checking match of request : '/dwr/engine.js'; against '/loginfailed'
18:20:25,278 DEBUG [org.springframework.security.web.util.AntPathRequestMatcher] (http-localhost/127.0.0.1:8080-5) Checking match of request : '/dwr/engine.js'; against '/dwr/**'
18:20:25,278 DEBUG [org.springframework.security.web.access.intercept.FilterSecurityInterceptor] (http-localhost/127.0.0.1:8080-5) Secure object: FilterInvocation: URL: /dwr/engine.js; Attributes: [permitAll]
18:20:25,278 DEBUG [org.springframework.security.web.access.intercept.FilterSecurityInterceptor] (http-localhost/127.0.0.1:8080-5) Previously Authenticated: [hidden email]: Principal: anonymousUser; Credentials: [PROTECTED]; Authenticated: true; Details: [hidden email]: RemoteIpAddress: 127.0.0.1; SessionId: FGYv7C6nWGfmAd4dJG2mblcp; Granted Authorities: ROLE_ANONYMOUS
18:20:25,278 DEBUG [org.springframework.security.access.vote.AffirmativeBased] (http-localhost/127.0.0.1:8080-5) Voter: [hidden email], returned: 1
18:20:25,278 DEBUG [org.springframework.security.web.access.intercept.FilterSecurityInterceptor] (http-localhost/127.0.0.1:8080-5) Authorization successful
18:20:25,278 DEBUG [org.springframework.security.web.access.intercept.FilterSecurityInterceptor] (http-localhost/127.0.0.1:8080-5) RunAsManager did not change Authentication object
18:20:25,278 DEBUG [org.springframework.security.web.FilterChainProxy] (http-localhost/127.0.0.1:8080-5) /dwr/engine.js reached end of additional filter chain; proceeding with original chain
18:20:25,278 DEBUG [org.springframework.web.servlet.DispatcherServlet] (http-localhost/127.0.0.1:8080-5) DispatcherServlet with name 'jboss-as-kitchensink' processing GET request for [/MDOSF/dwr/engine.js]
18:20:25,280 DEBUG [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping] (http-localhost/127.0.0.1:8080-5) Looking up handler method for path /engine.js
18:20:25,280 DEBUG [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping] (http-localhost/127.0.0.1:8080-5) Did not find handler method for [/engine.js]


Please suggest any request mapping that i am missing. I am using following type of handlers :
    <bean class="org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping">
        <property name="order" value="1" />
    </bean>
    <bean class="org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter"/>
    <bean class="org.springframework.web.servlet.handler.BeanNameUrlHandlerMapping">
        <property name="order" value="0" />
    </bean>
    <bean id="viewMappings" class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">
        <property name="alwaysUseFullPath" value="true" />
        <property name="urlMap">
            <map>
                  <entry key="/dwr/**/*" value-ref="dwrController" />
            </map>
        </property>
    </bean> 


Thanks and Regards,
Amit Sharma


<quote author='[hidden email]'>
Try removing <dwr:url-mapping/>. This tag adds default mappings
(/engine.js, /interface/**, etc.) but you have specified a custom
SimpleUrlHandlerMapping (/dwr/**/*).

On 11/25/2013 11:49 PM, Amit Sharma wrote:
> Hi,
> I am using from 3.2, DWR 3 rc2, JBOSS 7.
>
> We are facing a problem while making DWR call.
> Server shows log :
>
> No request handling method with name 'loadWorkListData' in class
> [com.prospecta.mdo2.view.controller.dynamicDashboards.Dashboard]
>
> com.prospecta.mdo2.view.controller.dynamicDashboards.Dashboardis
> Spring servlet(ie extends MultiActionController).
>
> We added @RemoteProxy to this class and @RemoteMethod to one of its
> methods(loadWorkListData).
>
> Deployment shows following DWR related logs.
>
> 12:02:12,251 INFO [org.directwebremoting.spring.DwrHandlerMapping]
> (ServerService Thread Pool -- 108) [engine.js] mapped to dwrController
> 12:02:12,251 INFO [org.directwebremoting.spring.DwrHandlerMapping]
> (ServerService Thread Pool -- 108) [util.js] mapped to dwrController
> 12:02:12,251 INFO [org.directwebremoting.spring.DwrHandlerMapping]
> (ServerService Thread Pool -- 108) Interface beans and calls
> (/interface/*, /call/*) mapped to dwrController
> 12:02:12,251 INFO [org.directwebremoting.spring.DwrHandlerMapping]
> (ServerService Thread Pool -- 108) /test/* has been mapped to
> dwrController
> 12:02:12,251 INFO [org.directwebremoting.spring.DwrHandlerMapping]
> (ServerService Thread Pool -- 108) /download/* has been mapped to
> dwrController
> 12:02:12,254 INFO [org.directwebremoting.spring.DwrHandlerMapping]
> (ServerService Thread Pool -- 108) Mapped URL path [/util.js] onto
> handler of type [class org.directwebremoting.spring.DwrController]
> 12:02:12,254 INFO [org.directwebremoting.spring.DwrHandlerMapping]
> (ServerService Thread Pool -- 108) Mapped URL path [/jsonrpc/**] onto
> handler of type [class org.directwebremoting.spring.DwrController]
> 12:02:12,254 INFO [org.directwebremoting.spring.DwrHandlerMapping]
> (ServerService Thread Pool -- 108) Mapped URL path [/download/**] onto
> handler of type [class org.directwebremoting.spring.DwrController]
> 12:02:12,254 INFO [org.directwebremoting.spring.DwrHandlerMapping]
> (ServerService Thread Pool -- 108) Mapped URL path [/data/Store.js]
> onto handler of type [class org.directwebremoting.spring.DwrController]
> 12:02:12,254 INFO [org.directwebremoting.spring.DwrHandlerMapping]
> (ServerService Thread Pool -- 108) Mapped URL path [/engine.js] onto
> handler of type [class org.directwebremoting.spring.DwrController]
> 12:02:12,255 INFO [org.directwebremoting.spring.DwrHandlerMapping]
> (ServerService Thread Pool -- 108) Mapped URL path [/test/**] onto
> handler of type [class org.directwebremoting.spring.DwrController]
> 12:02:12,255 INFO [org.directwebremoting.spring.DwrHandlerMapping]
> (ServerService Thread Pool -- 108) Mapped URL path [/interface/**]
> onto handler of type [class org.directwebremoting.spring.DwrController]
> 12:02:12,255 INFO [org.directwebremoting.spring.DwrHandlerMapping]
> (ServerService Thread Pool -- 108) Mapped URL path [/call/**] onto
> handler of type [class org.directwebremoting.spring.DwrController]
> 12:02:12,255 INFO [org.directwebremoting.spring.DwrHandlerMapping]
> (ServerService Thread Pool -- 108) Mapped URL path [/jsonp/**] onto
> handler of type [class org.directwebremoting.spring.DwrController]
> 12:02:12,259 INFO
> [org.springframework.web.servlet.handler.SimpleUrlHandlerMapping]
> (ServerService Thread Pool -- 108) Mapped URL path [/interface.js]
> onto handler 'dwrController'
> 12:02:12,259 INFO
> [org.springframework.web.servlet.handler.SimpleUrlHandlerMapping]
> (ServerService Thread Pool -- 108) Mapped URL path [/engine.js] onto
> handler 'dwrController'
> 12:02:12,259 INFO
> [org.springframework.web.servlet.handler.SimpleUrlHandlerMapping]
> (ServerService Thread Pool -- 108) Mapped URL path [/interface/**]
> onto handler 'dwrController'
> 12:02:12,260 INFO
> [org.springframework.web.servlet.handler.SimpleUrlHandlerMapping]
> (ServerService Thread Pool -- 108) Mapped URL path [/call/**] onto
> handler 'dwrController'
>
> -----------------------------------------------------------------------------------------------------------------------------------------
> 12:01:54,054 INFO
> [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner]
> (ServerService Thread Pool -- 108) Dwr classpath scanning detected
> candidate DTO
> [com.prospecta.mdo2.hib.hibMODEL.Auctions.AuctionDescModel] processed
> by converter type [bean]
> 12:01:54,063 INFO
> [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner]
> (ServerService Thread Pool -- 108) Dwr classpath scanning detected
> candidate DTO
> [com.prospecta.mdo2.hib.hibMODEL.Auctions.AuctionHeaderModel$AuctionStatus]
> processed by converter type [bean]
> 12:01:54,065 INFO
> [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner]
> (ServerService Thread Pool -- 108) Dwr classpath scanning detected
> candidate DTO
> [com.prospecta.mdo2.hib.hibMODEL.Auctions.AuctionHeaderModel$AuctionViewSettings]
> processed by converter type [bean]
> 12:01:54,066 INFO
> [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner]
> (ServerService Thread Pool -- 108) Dwr classpath scanning detected
> candidate DTO
> [com.prospecta.mdo2.hib.hibMODEL.Auctions.AuctionHeaderModel]
> processed by converter type [bean]
> 12:01:54,068 INFO
> [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner]
> (ServerService Thread Pool -- 108) Dwr classpath scanning detected
> candidate DTO
> [com.prospecta.mdo2.hib.hibMODEL.Auctions.AuctionInviteesModel]
> processed by converter type [bean]
> 12:01:54,070 INFO
> [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner]
> (ServerService Thread Pool -- 108) Dwr classpath scanning detected
> candidate DTO
> [com.prospecta.mdo2.hib.hibMODEL.Auctions.AuctionItemBiddingsModel]
> processed by converter type [bean]
> 12:01:54,072 INFO
> [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner]
> (ServerService Thread Pool -- 108) Dwr classpath scanning detected
> candidate DTO
> [com.prospecta.mdo2.hib.hibMODEL.Auctions.AuctionItemsModel] processed
> by converter type [bean]
> 12:01:54,075 INFO
> [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner]
> (ServerService Thread Pool -- 108) Dwr classpath scanning detected
> candidate DTO
> [com.prospecta.mdo2.hib.hibMODEL.Auctions.AuctionRulesModel] processed
> by converter type [bean]
> 12:01:54,123 INFO
> [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner]
> (ServerService Thread Pool -- 108) Dwr classpath scanning detected
> candidate DTO
> [com.prospecta.mdo2.hib.hibMODEL.mdoNotification.MdoNotificationModel]
> processed by converter type [bean]
> 12:01:54,154 INFO
> [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner]
> (ServerService Thread Pool -- 108) Dwr classpath scanning detected
> candidate DTO
> [com.prospecta.mdo2.hib.hibMODEL.PublicPrivateRuleManager.RuleHandlerModel]
> processed by converter type [bean]
> 12:01:54,155 INFO
> [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner]
> (ServerService Thread Pool -- 108) Dwr classpath scanning detected
> candidate DTO
> [com.prospecta.mdo2.hib.hibMODEL.StatusFlow.StatusflowControllerModel$ObjectStatus]
> processed by converter type [bean]
> 12:01:54,157 INFO
> [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner]
> (ServerService Thread Pool -- 108) Dwr classpath scanning detected
> candidate DTO
> [com.prospecta.mdo2.hib.hibMODEL.TaskComments.TaskCommentsModel]
> processed by converter type [bean]
> 12:01:54,159 INFO
> [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner]
> (ServerService Thread Pool -- 108) Dwr classpath scanning detected
> candidate DTO [com.prospecta.mdo2.hib.hibMODEL.testModel.DwrModelTest]
> processed by converter type [bean]
> 12:01:54,160 INFO
> [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner]
> (ServerService Thread Pool -- 108) Dwr classpath scanning detected
> candidate DTO
> [com.prospecta.mdo2.hib.hibMODEL.USERAuthentication.USERAUthenticationModel]
> processed by converter type [bean]
> 12:01:54,162 INFO
> [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner]
> (ServerService Thread Pool -- 108) Dwr classpath scanning detected
> candidate DTO [com.prospecta.mdo2.hib.hibMODEL.Users.UserMdoModel]
> processed by converter type [bean]
> 12:01:54,164 INFO
> [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner]
> (ServerService Thread Pool -- 108) Dwr classpath scanning detected
> candidate DTO
> [com.prospecta.mdo2.hib.hibMODEL.ViewersTrack.CartPrdctsTrackModel]
> processed by converter type [bean]
> 12:01:54,165 INFO
> [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner]
> (ServerService Thread Pool -- 108) Dwr classpath scanning detected
> candidate DTO
> [com.prospecta.mdo2.hib.hibMODEL.ViewersTrack.CompanyProfileTrackModel]
> processed
> by converter type [bean]
> 12:01:54,167 INFO
> [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner]
> (ServerService Thread Pool -- 108) Dwr classpath scanning detected
> candidate DTO
> [com.prospecta.mdo2.hib.hibMODEL.WorkFlowTransaction.WorkFlowTransactionPojoTaskList]
> processed by converter type [bean]
> 12:01:55,496 INFO
> [org.directwebremoting.spring.DwrAnnotationPostProcessor]
> (ServerService Thread Pool -- 108) Detected candidate bean
> [/dashBoard.do]. Remoting using Dashboard
>
> DWR Configurations in jboss-as-spring-mvc-context.xml
>
> <mvc:resources mapping="/dwr/**" location="/"/>
>
>    <dwr:annotation-config id="springdwr" />
>    <dwr:annotation-scan
> base-package="com.prospecta.mdo2.hib.hibMODEL"
> scanDataTransferObject="true" scanRemoteProxy="true" />
>    <dwr:url-mapping />
>    <dwr:controller id="dwrController" debug="false">
>        <dwr:config-param name="activeReverseAjaxEnabled" value="true" />
>        <dwr:config-param name="scriptCompressed" value="true" />
>        <dwr:config-param name="fileUploadMaxBytes" value="10485760" />
>        <dwr:config-param name="allowScriptTagRemoting" value="true" />
>    </dwr:controller>
>
>    <bean id="viewMappings"
> class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">
>        <property name="alwaysUseFullPath" value="true" />
>        <property name="urlMap">
>              <map>
>                  <entry key="/dwr/**/*" value-ref="dwrController" />
>              </map>
>        </property>
>    </bean>
>
>
> web.xml :
>
>    <servlet-mapping>
> <servlet-name>jboss-as-kitchensink</servlet-name>
>        <url-pattern>/dwr/*</url-pattern>
>    </servlet-mapping>
>    <servlet-mapping>
> <servlet-name>jboss-as-kitchensink</servlet-name>
>        <url-pattern>/</url-pattern>
>    </servlet-mapping>
>
>    <servlet>
> <servlet-name>jboss-as-kitchensink</servlet-name>
> <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
>        <init-param>
> <param-name>contextConfigLocation</param-name>
> <param-value>/WEB-INF/jboss-as-spring-mvc-context.xml</param-value>
>        </init-param>
>        <load-on-startup>2</load-on-startup>
>    </servlet>
> Please suggest any changes required to be made in my application.
>
> Regards,
> Amit Sharma


</quote>
Quoted from:
http://dwr.2114559.n2.nabble.com/DWR-Request-throwing-error-No-request-handling-method-with-name-X-in-class-Y-tp7580788p7580790.html


_____________________________________
Sent from http://dwr.2114559.n2.nabble.com




Reply | Threaded
Open this post in threaded view
|

Re: DWR Request throwing error : No request handling method with name X in class Y

amit.sharma
In reply to this post by amit.sharma
Hello Mike/David,
I checked out the references given by you but configuration seems fine for me. As you can see that Deployment logs says all the mapping for DWR has been done successfully.

I can see the following error in Firebug console.
GET http://localhost:8080/MDOSF/dwr/engine.js [HTTP/1.1 405 Method Not Allowed 10ms]

And in servlet.log it prints the following log.

18:20:25,278 DEBUG [org.springframework.security.web.util.AntPathRequestMatcher] (http-localhost/127.0.0.1:8080-5) Checking match of request : '/dwr/engine.js'; against '/'
18:20:25,278 DEBUG [org.springframework.security.web.util.AntPathRequestMatcher] (http-localhost/127.0.0.1:8080-5) Checking match of request : '/dwr/engine.js'; against '/login'
18:20:25,278 DEBUG [org.springframework.security.web.util.AntPathRequestMatcher] (http-localhost/127.0.0.1:8080-5) Checking match of request : '/dwr/engine.js'; against '/logout'
18:20:25,278 DEBUG [org.springframework.security.web.util.AntPathRequestMatcher] (http-localhost/127.0.0.1:8080-5) Checking match of request : '/dwr/engine.js'; against '/loginfailed'
18:20:25,278 DEBUG [org.springframework.security.web.util.AntPathRequestMatcher] (http-localhost/127.0.0.1:8080-5) Checking match of request : '/dwr/engine.js'; against '/dwr/**'
18:20:25,278 DEBUG [org.springframework.security.web.access.intercept.FilterSecurityInterceptor] (http-localhost/127.0.0.1:8080-5) Secure object: FilterInvocation: URL: /dwr/engine.js; Attributes: [permitAll]
18:20:25,278 DEBUG [org.springframework.security.web.access.intercept.FilterSecurityInterceptor] (http-localhost/127.0.0.1:8080-5) Previously Authenticated: org.springframework.security.authentication.AnonymousAuthenticationToken@6fa90ed4: Principal: anonymousUser; Credentials: [PROTECTED]; Authenticated: true; Details: org.springframework.security.web.authentication.WebAuthenticationDetails@fffc7f0c: RemoteIpAddress: 127.0.0.1; SessionId: FGYv7C6nWGfmAd4dJG2mblcp; Granted Authorities: ROLE_ANONYMOUS
18:20:25,278 DEBUG [org.springframework.security.access.vote.AffirmativeBased] (http-localhost/127.0.0.1:8080-5) Voter: org.springframework.security.web.access.expression.WebExpressionVoter@32d972ed, returned: 1
18:20:25,278 DEBUG [org.springframework.security.web.access.intercept.FilterSecurityInterceptor] (http-localhost/127.0.0.1:8080-5) Authorization successful
18:20:25,278 DEBUG [org.springframework.security.web.access.intercept.FilterSecurityInterceptor] (http-localhost/127.0.0.1:8080-5) RunAsManager did not change Authentication object
18:20:25,278 DEBUG [org.springframework.security.web.FilterChainProxy] (http-localhost/127.0.0.1:8080-5) /dwr/engine.js reached end of additional filter chain; proceeding with original chain
18:20:25,278 DEBUG [org.springframework.web.servlet.DispatcherServlet] (http-localhost/127.0.0.1:8080-5) DispatcherServlet with name 'jboss-as-kitchensink' processing GET request for [/MDOSF/dwr/engine.js]
18:20:25,280 DEBUG [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping] (http-localhost/127.0.0.1:8080-5) Looking up handler method for path /engine.js
18:20:25,280 DEBUG [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping] (http-localhost/127.0.0.1:8080-5) Did not find handler method for [/engine.js]



Please suggest any request mapping that i am missing. I am using following type of handlers :
    <bean class="org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping">
        <property name="order" value="1" />
    </bean>
    <bean class="org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter"/>
    <bean class="org.springframework.web.servlet.handler.BeanNameUrlHandlerMapping">
        <property name="order" value="0" />
    </bean>
    <bean id="viewMappings" class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">
        <property name="alwaysUseFullPath" value="true" />
        <property name="urlMap">
             <map>
                  <entry key="/dwr/**/*" value-ref="dwrController" />
             </map>
        </property>
    </bean> 
  


On Tuesday, 26 November 2013 8:35 PM, Amit Sharma <[hidden email]> wrote:
Sending mail to [hidden email] posted new post instead as the reply of the same post
I am sorry but i am just new to posting there.
Regards,
Amit


On Tuesday, 26 November 2013 8:19 PM, Mike Wilson <[hidden email]> wrote:
What list reader are you using?
It works fine to send mail directly to the list address.


From: Amit Sharma [mailto:[hidden email]]
Sent: den 26 november 2013 14:57
To: Mike Wilson
Subject: Re: [dwr-users] DWR Request throwing error : No request handling method with name X in class Y

Hi Mike,
I can see the post on mailing list but cant make reply on it. It show You don't have permission to perform this action.
Regards,
Amit


On Tuesday, 26 November 2013 7:11 PM, Mike Wilson <[hidden email]> wrote:
I mistakenly replied directly to you (cause by your reply-to mail header). My response will shortly be available on the mailing list, please reply there once it appears.


From: Amit Sharma [mailto:[hidden email]]
Sent: den 26 november 2013 14:10
To: Mike Wilson
Subject: Re: [dwr-users] DWR Request throwing error : No request handling method with name X in class Y

Hello Mike,

Thanks for your reply.
I apologize for the last post. As the error "No request handling method with name X in class Y " is not the valid one. I checked out the references given by you but configuration seems fine for me. As you can see that Deployment logs says all the mapping for DWR has been done successfully.

I can see the following error in Firebug console.
GET http://localhost:8080/MDOSF/dwr/engine.js [HTTP/1.1 405 Method Not Allowed 10ms]

And in servlet.log it prints the following log.

18:20:25,278 DEBUG [org.springframework.security.web.util.AntPathRequestMatcher] (http-localhost/127.0.0.1:8080-5) Checking match of request : '/dwr/engine.js'; against '/'
18:20:25,278 DEBUG [org.springframework.security.web.util.AntPathRequestMatcher] (http-localhost/127.0.0.1:8080-5) Checking match of request : '/dwr/engine.js'; against '/login'
18:20:25,278 DEBUG [org.springframework.security.web.util.AntPathRequestMatcher] (http-localhost/127.0.0.1:8080-5) Checking match of request : '/dwr/engine.js'; against '/logout'
18:20:25,278 DEBUG [org.springframework.security.web.util.AntPathRequestMatcher] (http-localhost/127.0.0.1:8080-5) Checking match of request : '/dwr/engine.js'; against '/loginfailed'
18:20:25,278 DEBUG [org.springframework.security.web.util.AntPathRequestMatcher] (http-localhost/127.0.0.1:8080-5) Checking match of request : '/dwr/engine.js'; against '/dwr/**'
18:20:25,278 DEBUG [org.springframework.security.web.access.intercept.FilterSecurityInterceptor] (http-localhost/127.0.0.1:8080-5) Secure object: FilterInvocation: URL: /dwr/engine.js; Attributes: [permitAll]
18:20:25,278 DEBUG [org.springframework.security.web.access.intercept.FilterSecurityInterceptor] (http-localhost/127.0.0.1:8080-5) Previously Authenticated: org.springframework.security.authentication.AnonymousAuthenticationToken@6fa90ed4: Principal: anonymousUser; Credentials: [PROTECTED]; Authenticated: true; Details: org.springframework.security.web.authentication.WebAuthenticationDetails@fffc7f0c: RemoteIpAddress: 127.0.0.1; SessionId: FGYv7C6nWGfmAd4dJG2mblcp; Granted Authorities: ROLE_ANONYMOUS
18:20:25,278 DEBUG [org.springframework.security.access.vote.AffirmativeBased] (http-localhost/127.0.0.1:8080-5) Voter: org.springframework.security.web.access.expression.WebExpressionVoter@32d972ed, returned: 1
18:20:25,278 DEBUG [org.springframework.security.web.access.intercept.FilterSecurityInterceptor] (http-localhost/127.0.0.1:8080-5) Authorization successful
18:20:25,278 DEBUG [org.springframework.security.web.access.intercept.FilterSecurityInterceptor] (http-localhost/127.0.0.1:8080-5) RunAsManager did not change Authentication object
18:20:25,278 DEBUG [org.springframework.security.web.FilterChainProxy] (http-localhost/127.0.0.1:8080-5) /dwr/engine.js reached end of additional filter chain; proceeding with original chain
18:20:25,278 DEBUG [org.springframework.web.servlet.DispatcherServlet] (http-localhost/127.0.0.1:8080-5) DispatcherServlet with name 'jboss-as-kitchensink' processing GET request for [/MDOSF/dwr/engine.js]
18:20:25,280 DEBUG [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping] (http-localhost/127.0.0.1:8080-5) Looking up handler method for path /engine.js
18:20:25,280 DEBUG [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping] (http-localhost/127.0.0.1:8080-5) Did not find handler method for [/engine.js]



Please suggest any request mapping that i am missing. I am using following type of handlers :
    <bean class="org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping">
        <property name="order" value="1" />
    </bean>
    <bean class="org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter"/>
    <bean class="org.springframework.web.servlet.handler.BeanNameUrlHandlerMapping">
        <property name="order" value="0" />
    </bean>
    <bean id="viewMappings" class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">
        <property name="alwaysUseFullPath" value="true" />
        <property name="urlMap">
             <map>
                  <entry key="/dwr/**/*" value-ref="dwrController" />
             </map>
        </property>
    </bean> 
  


Thanks and Regards,
Amit Sharma

On Tuesday, 26 November 2013 3:47 PM, Mike Wilson <[hidden email]> wrote:
I'm suspecting your configuration makes requests end up in Spring instead of in DWR. If you have any stacktraces you can verify they refer to org.directwebremoting classes. If not, you are not sending calls through DWR.
Make sure you have followed the instructions here:
and verify that things are working on DWR's test page:
 
Best regards
Mike Wilson
 
Amit Sharma wrote:
Hi,
I am using from 3.2, DWR 3 rc2, JBOSS 7.

We are facing a problem while making DWR call.
Server shows log :

No request handling method with name 'loadWorkListData' in class [com.prospecta.mdo2.view.controller.dynamicDashboards.Dashboard]

com.prospecta.mdo2.view.controller.dynamicDashboards.Dashboard is Spring servlet (ie extends MultiActionController).

We added @RemoteProxy to this class and @RemoteMethod to one of its methods(loadWorkListData).

Deployment shows following DWR related logs.

12:02:12,251 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) [engine.js] mapped to dwrController
12:02:12,251 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) [util.js] mapped to dwrController
12:02:12,251 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Interface beans and calls (/interface/*, /call/*) mapped to dwrController
12:02:12,251 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) /test/* has been mapped to dwrController
12:02:12,251 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) /download/* has been mapped to dwrController
12:02:12,254 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/util.js] onto handler of type [class org.directwebremoting.spring.DwrController]
12:02:12,254 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/jsonrpc/**] onto handler of type [class org.directwebremoting.spring.DwrController]
12:02:12,254 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/download/**] onto handler of type [class org.directwebremoting.spring.DwrController]
12:02:12,254 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/data/Store.js] onto handler of type [class org.directwebremoting.spring.DwrController]
12:02:12,254 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/engine.js] onto handler of type [class org.directwebremoting.spring.DwrController]
12:02:12,255 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/test/**] onto handler of type [class org.directwebremoting.spring.DwrController]
12:02:12,255 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/interface/**] onto handler of type [class org.directwebremoting.spring.DwrController]
12:02:12,255 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/call/**] onto handler of type [class org.directwebremoting.spring.DwrController]
12:02:12,255 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/jsonp/**] onto handler of type [class org.directwebremoting.spring.DwrController]
12:02:12,259 INFO  [org.springframework.web.servlet.handler.SimpleUrlHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/interface.js] onto handler 'dwrController'
12:02:12,259 INFO  [org.springframework.web.servlet.handler.SimpleUrlHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/engine.js] onto handler 'dwrController'
12:02:12,259 INFO  [org.springframework.web.servlet.handler.SimpleUrlHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/interface/**] onto handler 'dwrController'
12:02:12,260 INFO  [org.springframework.web.servlet.handler.SimpleUrlHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/call/**] onto handler 'dwrController'

-----------------------------------------------------------------------------------------------------------------------------------------
12:01:54,054 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.Auctions.AuctionDescModel] processed by converter type [bean]
12:01:54,063 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.Auctions.AuctionHeaderModel$AuctionStatus] processed by converter type [bean]
12:01:54,065 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.Auctions.AuctionHeaderModel$AuctionViewSettings] processed by converter type [bean]
12:01:54,066 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.Auctions.AuctionHeaderModel] processed by converter type [bean]
12:01:54,068 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.Auctions.AuctionInviteesModel] processed by converter type [bean]
12:01:54,070 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.Auctions.AuctionItemBiddingsModel] processed by converter type [bean]
12:01:54,072 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.Auctions.AuctionItemsModel] processed by converter type [bean]
12:01:54,075 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.Auctions.AuctionRulesModel] processed by converter type [bean]
12:01:54,123 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.mdoNotification.MdoNotificationModel] processed by converter type [bean]
12:01:54,154 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.PublicPrivateRuleManager.RuleHandlerModel] processed by converter type [bean]
12:01:54,155 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.StatusFlow.StatusflowControllerModel$ObjectStatus] processed by converter type [bean]
12:01:54,157 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.TaskComments.TaskCommentsModel] processed by converter type [bean]
12:01:54,159 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.testModel.DwrModelTest] processed by converter type [bean]
12:01:54,160 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.USERAuthentication.USERAUthenticationModel] processed by converter type [bean]
12:01:54,162 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.Users.UserMdoModel] processed by converter type [bean]
12:01:54,164 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.ViewersTrack.CartPrdctsTrackModel] processed by converter type [bean]
12:01:54,165 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.ViewersTrack.CompanyProfileTrackModel] processed by converter type [bean]
12:01:54,167 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.WorkFlowTransaction.WorkFlowTransactionPojoTaskList] processed by converter type [bean]
12:01:55,496 INFO  [org.directwebremoting.spring.DwrAnnotationPostProcessor] (ServerService Thread Pool -- 108) Detected candidate bean [/dashBoard.do]. Remoting using Dashboard

DWR Configurations in jboss-as-spring-mvc-context.xml

    <mvc:resources mapping="/dwr/**" location="/"/>

    <dwr:annotation-config id="springdwr" />
    <dwr:annotation-scan base-package="com.prospecta.mdo2.hib.hibMODEL" scanDataTransferObject="true" scanRemoteProxy="true" />
    <dwr:url-mapping />
    <dwr:controller id="dwrController" debug="false">
        <dwr:config-param name="activeReverseAjaxEnabled" value="true" />
        <dwr:config-param name="scriptCompressed" value="true" />
        <dwr:config-param name="fileUploadMaxBytes" value="10485760" />
        <dwr:config-param name="allowScriptTagRemoting" value="true" />
    </dwr:controller>
   
    <bean id="viewMappings" class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">
        <property name="alwaysUseFullPath" value="true" />
        <property name="urlMap">
             <map>
                  <entry key="/dwr/**/*" value-ref="dwrController" />
             </map>
        </property>
    </bean>    


web.xml :

    <servlet-mapping>
        <servlet-name>jboss-as-kitchensink</servlet-name>
        <url-pattern>/dwr/*</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
        <servlet-name>jboss-as-kitchensink</servlet-name>
        <url-pattern>/</url-pattern>
    </servlet-mapping>

    <servlet>
        <servlet-name>jboss-as-kitchensink</servlet-name>
        <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
        <init-param>
            <param-name>contextConfigLocation</param-name>
            <param-value>/WEB-INF/jboss-as-spring-mvc-context.xml</param-value>
        </init-param>
        <load-on-startup>2</load-on-startup>
    </servlet>
Please suggest any changes required to be made in my application.

Regards,
Amit Sharma








Reply | Threaded
Open this post in threaded view
|

Re: DWR Request throwing error : No request handling method with name X in class Y

david@butterdev.com
This has nothing to do with your DWR configuration.  If you just upgraded Spring and JBoss and it was working prior to that then my best guess is a change in Spring is causing the issue.  The error you are getting is NOT related to DWR in any way.  A simple look at the Spring API for MultiActionController likely reveals your issue:

3) http://docs.spring.io/spring/docs/3.2.5.RELEASE/javadoc-api/org/springframework/web/servlet/mvc/multiaction/MultiActionController.html

As you can see it tells you at the very top of the Java docs what the method signature has to look like.  Since you haven't sent us your code I have no idea what your method signature looks like but my guess is that Spring made an API change that requires a certain signature, and your method doesn't not match that signature.

On 11/26/2013 08:13 AM, Amit Sharma wrote:
Hello Mike/David,
I checked out the references given by you but configuration seems fine for me. As you can see that Deployment logs says all the mapping for DWR has been done successfully.

I can see the following error in Firebug console.
GET http://localhost:8080/MDOSF/dwr/engine.js [HTTP/1.1 405 Method Not Allowed 10ms]

And in servlet.log it prints the following log.

18:20:25,278 DEBUG [org.springframework.security.web.util.AntPathRequestMatcher] (http-localhost/127.0.0.1:8080-5) Checking match of request : '/dwr/engine.js'; against '/'
18:20:25,278 DEBUG [org.springframework.security.web.util.AntPathRequestMatcher] (http-localhost/127.0.0.1:8080-5) Checking match of request : '/dwr/engine.js'; against '/login'
18:20:25,278 DEBUG [org.springframework.security.web.util.AntPathRequestMatcher] (http-localhost/127.0.0.1:8080-5) Checking match of request : '/dwr/engine.js'; against '/logout'
18:20:25,278 DEBUG [org.springframework.security.web.util.AntPathRequestMatcher] (http-localhost/127.0.0.1:8080-5) Checking match of request : '/dwr/engine.js'; against '/loginfailed'
18:20:25,278 DEBUG [org.springframework.security.web.util.AntPathRequestMatcher] (http-localhost/127.0.0.1:8080-5) Checking match of request : '/dwr/engine.js'; against '/dwr/**'
18:20:25,278 DEBUG [org.springframework.security.web.access.intercept.FilterSecurityInterceptor] (http-localhost/127.0.0.1:8080-5) Secure object: FilterInvocation: URL: /dwr/engine.js; Attributes: [permitAll]
18:20:25,278 DEBUG [org.springframework.security.web.access.intercept.FilterSecurityInterceptor] (http-localhost/127.0.0.1:8080-5) Previously Authenticated: org.springframework.security.authentication.AnonymousAuthenticationToken@6fa90ed4: Principal: anonymousUser; Credentials: [PROTECTED]; Authenticated: true; Details: org.springframework.security.web.authentication.WebAuthenticationDetails@fffc7f0c: RemoteIpAddress: 127.0.0.1; SessionId: FGYv7C6nWGfmAd4dJG2mblcp; Granted Authorities: ROLE_ANONYMOUS
18:20:25,278 DEBUG [org.springframework.security.access.vote.AffirmativeBased] (http-localhost/127.0.0.1:8080-5) Voter: org.springframework.security.web.access.expression.WebExpressionVoter@32d972ed, returned: 1
18:20:25,278 DEBUG [org.springframework.security.web.access.intercept.FilterSecurityInterceptor] (http-localhost/127.0.0.1:8080-5) Authorization successful
18:20:25,278 DEBUG [org.springframework.security.web.access.intercept.FilterSecurityInterceptor] (http-localhost/127.0.0.1:8080-5) RunAsManager did not change Authentication object
18:20:25,278 DEBUG [org.springframework.security.web.FilterChainProxy] (http-localhost/127.0.0.1:8080-5) /dwr/engine.js reached end of additional filter chain; proceeding with original chain
18:20:25,278 DEBUG [org.springframework.web.servlet.DispatcherServlet] (http-localhost/127.0.0.1:8080-5) DispatcherServlet with name 'jboss-as-kitchensink' processing GET request for [/MDOSF/dwr/engine.js]
18:20:25,280 DEBUG [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping] (http-localhost/127.0.0.1:8080-5) Looking up handler method for path /engine.js
18:20:25,280 DEBUG [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping] (http-localhost/127.0.0.1:8080-5) Did not find handler method for [/engine.js]



Please suggest any request mapping that i am missing. I am using following type of handlers :
    <bean class="org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping">
        <property name="order" value="1" />
    </bean>
    <bean class="org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter"/>
    <bean class="org.springframework.web.servlet.handler.BeanNameUrlHandlerMapping">
        <property name="order" value="0" />
    </bean>
    <bean id="viewMappings" class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">
        <property name="alwaysUseFullPath" value="true" />
        <property name="urlMap">
             <map>
                  <entry key="/dwr/**/*" value-ref="dwrController" />
             </map>
        </property>
    </bean> 
  


On Tuesday, 26 November 2013 8:35 PM, Amit Sharma [hidden email] wrote:
Sending mail to [hidden email] posted new post instead as the reply of the same post
I am sorry but i am just new to posting there.
Regards,
Amit


On Tuesday, 26 November 2013 8:19 PM, Mike Wilson [hidden email] wrote:
What list reader are you using?
It works fine to send mail directly to the list address.


From: Amit Sharma [[hidden email]]
Sent: den 26 november 2013 14:57
To: Mike Wilson
Subject: Re: [dwr-users] DWR Request throwing error : No request handling method with name X in class Y

Hi Mike,
I can see the post on mailing list but cant make reply on it. It show You don't have permission to perform this action.
Regards,
Amit


On Tuesday, 26 November 2013 7:11 PM, Mike Wilson [hidden email] wrote:
I mistakenly replied directly to you (cause by your reply-to mail header). My response will shortly be available on the mailing list, please reply there once it appears.


From: Amit Sharma [[hidden email]]
Sent: den 26 november 2013 14:10
To: Mike Wilson
Subject: Re: [dwr-users] DWR Request throwing error : No request handling method with name X in class Y

Hello Mike,

Thanks for your reply.
I apologize for the last post. As the error "No request handling method with name X in class Y " is not the valid one. I checked out the references given by you but configuration seems fine for me. As you can see that Deployment logs says all the mapping for DWR has been done successfully.

I can see the following error in Firebug console.
GET http://localhost:8080/MDOSF/dwr/engine.js [HTTP/1.1 405 Method Not Allowed 10ms]

And in servlet.log it prints the following log.

18:20:25,278 DEBUG [org.springframework.security.web.util.AntPathRequestMatcher] (http-localhost/127.0.0.1:8080-5) Checking match of request : '/dwr/engine.js'; against '/'
18:20:25,278 DEBUG [org.springframework.security.web.util.AntPathRequestMatcher] (http-localhost/127.0.0.1:8080-5) Checking match of request : '/dwr/engine.js'; against '/login'
18:20:25,278 DEBUG [org.springframework.security.web.util.AntPathRequestMatcher] (http-localhost/127.0.0.1:8080-5) Checking match of request : '/dwr/engine.js'; against '/logout'
18:20:25,278 DEBUG [org.springframework.security.web.util.AntPathRequestMatcher] (http-localhost/127.0.0.1:8080-5) Checking match of request : '/dwr/engine.js'; against '/loginfailed'
18:20:25,278 DEBUG [org.springframework.security.web.util.AntPathRequestMatcher] (http-localhost/127.0.0.1:8080-5) Checking match of request : '/dwr/engine.js'; against '/dwr/**'
18:20:25,278 DEBUG [org.springframework.security.web.access.intercept.FilterSecurityInterceptor] (http-localhost/127.0.0.1:8080-5) Secure object: FilterInvocation: URL: /dwr/engine.js; Attributes: [permitAll]
18:20:25,278 DEBUG [org.springframework.security.web.access.intercept.FilterSecurityInterceptor] (http-localhost/127.0.0.1:8080-5) Previously Authenticated: org.springframework.security.authentication.AnonymousAuthenticationToken@6fa90ed4: Principal: anonymousUser; Credentials: [PROTECTED]; Authenticated: true; Details: org.springframework.security.web.authentication.WebAuthenticationDetails@fffc7f0c: RemoteIpAddress: 127.0.0.1; SessionId: FGYv7C6nWGfmAd4dJG2mblcp; Granted Authorities: ROLE_ANONYMOUS
18:20:25,278 DEBUG [org.springframework.security.access.vote.AffirmativeBased] (http-localhost/127.0.0.1:8080-5) Voter: org.springframework.security.web.access.expression.WebExpressionVoter@32d972ed, returned: 1
18:20:25,278 DEBUG [org.springframework.security.web.access.intercept.FilterSecurityInterceptor] (http-localhost/127.0.0.1:8080-5) Authorization successful
18:20:25,278 DEBUG [org.springframework.security.web.access.intercept.FilterSecurityInterceptor] (http-localhost/127.0.0.1:8080-5) RunAsManager did not change Authentication object
18:20:25,278 DEBUG [org.springframework.security.web.FilterChainProxy] (http-localhost/127.0.0.1:8080-5) /dwr/engine.js reached end of additional filter chain; proceeding with original chain
18:20:25,278 DEBUG [org.springframework.web.servlet.DispatcherServlet] (http-localhost/127.0.0.1:8080-5) DispatcherServlet with name 'jboss-as-kitchensink' processing GET request for [/MDOSF/dwr/engine.js]
18:20:25,280 DEBUG [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping] (http-localhost/127.0.0.1:8080-5) Looking up handler method for path /engine.js
18:20:25,280 DEBUG [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping] (http-localhost/127.0.0.1:8080-5) Did not find handler method for [/engine.js]



Please suggest any request mapping that i am missing. I am using following type of handlers :
    <bean class="org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping">
        <property name="order" value="1" />
    </bean>
    <bean class="org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter"/>
    <bean class="org.springframework.web.servlet.handler.BeanNameUrlHandlerMapping">
        <property name="order" value="0" />
    </bean>
    <bean id="viewMappings" class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">
        <property name="alwaysUseFullPath" value="true" />
        <property name="urlMap">
             <map>
                  <entry key="/dwr/**/*" value-ref="dwrController" />
             </map>
        </property>
    </bean> 
  


Thanks and Regards,
Amit Sharma

On Tuesday, 26 November 2013 3:47 PM, Mike Wilson [hidden email] wrote:
I'm suspecting your configuration makes requests end up in Spring instead of in DWR. If you have any stacktraces you can verify they refer to org.directwebremoting classes. If not, you are not sending calls through DWR.
Make sure you have followed the instructions here:
and verify that things are working on DWR's test page:
 
Best regards
Mike Wilson
 
Amit Sharma wrote:
Hi,
I am using from 3.2, DWR 3 rc2, JBOSS 7.

We are facing a problem while making DWR call.
Server shows log :

No request handling method with name 'loadWorkListData' in class [com.prospecta.mdo2.view.controller.dynamicDashboards.Dashboard]

com.prospecta.mdo2.view.controller.dynamicDashboards.Dashboard is Spring servlet (ie extends MultiActionController).

We added @RemoteProxy to this class and @RemoteMethod to one of its methods(loadWorkListData).

Deployment shows following DWR related logs.

12:02:12,251 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) [engine.js] mapped to dwrController
12:02:12,251 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) [util.js] mapped to dwrController
12:02:12,251 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Interface beans and calls (/interface/*, /call/*) mapped to dwrController
12:02:12,251 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) /test/* has been mapped to dwrController
12:02:12,251 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) /download/* has been mapped to dwrController
12:02:12,254 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/util.js] onto handler of type [class org.directwebremoting.spring.DwrController]
12:02:12,254 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/jsonrpc/**] onto handler of type [class org.directwebremoting.spring.DwrController]
12:02:12,254 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/download/**] onto handler of type [class org.directwebremoting.spring.DwrController]
12:02:12,254 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/data/Store.js] onto handler of type [class org.directwebremoting.spring.DwrController]
12:02:12,254 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/engine.js] onto handler of type [class org.directwebremoting.spring.DwrController]
12:02:12,255 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/test/**] onto handler of type [class org.directwebremoting.spring.DwrController]
12:02:12,255 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/interface/**] onto handler of type [class org.directwebremoting.spring.DwrController]
12:02:12,255 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/call/**] onto handler of type [class org.directwebremoting.spring.DwrController]
12:02:12,255 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/jsonp/**] onto handler of type [class org.directwebremoting.spring.DwrController]
12:02:12,259 INFO  [org.springframework.web.servlet.handler.SimpleUrlHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/interface.js] onto handler 'dwrController'
12:02:12,259 INFO  [org.springframework.web.servlet.handler.SimpleUrlHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/engine.js] onto handler 'dwrController'
12:02:12,259 INFO  [org.springframework.web.servlet.handler.SimpleUrlHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/interface/**] onto handler 'dwrController'
12:02:12,260 INFO  [org.springframework.web.servlet.handler.SimpleUrlHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/call/**] onto handler 'dwrController'

-----------------------------------------------------------------------------------------------------------------------------------------
12:01:54,054 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.Auctions.AuctionDescModel] processed by converter type [bean]
12:01:54,063 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.Auctions.AuctionHeaderModel$AuctionStatus] processed by converter type [bean]
12:01:54,065 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.Auctions.AuctionHeaderModel$AuctionViewSettings] processed by converter type [bean]
12:01:54,066 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.Auctions.AuctionHeaderModel] processed by converter type [bean]
12:01:54,068 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.Auctions.AuctionInviteesModel] processed by converter type [bean]
12:01:54,070 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.Auctions.AuctionItemBiddingsModel] processed by converter type [bean]
12:01:54,072 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.Auctions.AuctionItemsModel] processed by converter type [bean]
12:01:54,075 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.Auctions.AuctionRulesModel] processed by converter type [bean]
12:01:54,123 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.mdoNotification.MdoNotificationModel] processed by converter type [bean]
12:01:54,154 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.PublicPrivateRuleManager.RuleHandlerModel] processed by converter type [bean]
12:01:54,155 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.StatusFlow.StatusflowControllerModel$ObjectStatus] processed by converter type [bean]
12:01:54,157 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.TaskComments.TaskCommentsModel] processed by converter type [bean]
12:01:54,159 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.testModel.DwrModelTest] processed by converter type [bean]
12:01:54,160 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.USERAuthentication.USERAUthenticationModel] processed by converter type [bean]
12:01:54,162 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.Users.UserMdoModel] processed by converter type [bean]
12:01:54,164 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.ViewersTrack.CartPrdctsTrackModel] processed by converter type [bean]
12:01:54,165 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.ViewersTrack.CompanyProfileTrackModel] processed by converter type [bean]
12:01:54,167 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.WorkFlowTransaction.WorkFlowTransactionPojoTaskList] processed by converter type [bean]
12:01:55,496 INFO  [org.directwebremoting.spring.DwrAnnotationPostProcessor] (ServerService Thread Pool -- 108) Detected candidate bean [/dashBoard.do]. Remoting using Dashboard

DWR Configurations in jboss-as-spring-mvc-context.xml

    <mvc:resources mapping="/dwr/**" location="/"/>

    <dwr:annotation-config id="springdwr" />
    <dwr:annotation-scan base-package="com.prospecta.mdo2.hib.hibMODEL" scanDataTransferObject="true" scanRemoteProxy="true" />
    <dwr:url-mapping />
    <dwr:controller id="dwrController" debug="false">
        <dwr:config-param name="activeReverseAjaxEnabled" value="true" />
        <dwr:config-param name="scriptCompressed" value="true" />
        <dwr:config-param name="fileUploadMaxBytes" value="10485760" />
        <dwr:config-param name="allowScriptTagRemoting" value="true" />
    </dwr:controller>
   
    <bean id="viewMappings" class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">
        <property name="alwaysUseFullPath" value="true" />
        <property name="urlMap">
             <map>
                  <entry key="/dwr/**/*" value-ref="dwrController" />
             </map>
        </property>
    </bean>    


web.xml :

    <servlet-mapping>
        <servlet-name>jboss-as-kitchensink</servlet-name>
        <url-pattern>/dwr/*</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
        <servlet-name>jboss-as-kitchensink</servlet-name>
        <url-pattern>/</url-pattern>
    </servlet-mapping>

    <servlet>
        <servlet-name>jboss-as-kitchensink</servlet-name>
        <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
        <init-param>
            <param-name>contextConfigLocation</param-name>
            <param-value>/WEB-INF/jboss-as-spring-mvc-context.xml</param-value>
        </init-param>
        <load-on-startup>2</load-on-startup>
    </servlet>
Please suggest any changes required to be made in my application.

Regards,
Amit Sharma









Reply | Threaded
Open this post in threaded view
|

Re: DWR Request throwing error : No request handling method with name X in class Y

amit.sharma
In reply to this post by amit.sharma
Hi David,

Imports if engine.js/util.js is not working. I think, that is the main cause and dispatched servlet is not able to map handler method for dwr/** requests.






On Tuesday, 26 November 2013 8:43 PM, Amit Sharma <[hidden email]> wrote:
Hello Mike/David,
I checked out the references given by you but configuration seems fine for me. As you can see that Deployment logs says all the mapping for DWR has been done successfully.

I can see the following error in Firebug console.
GET http://localhost:8080/MDOSF/dwr/engine.js [HTTP/1.1 405 Method Not Allowed 10ms]

And in servlet.log it prints the following log.

18:20:25,278 DEBUG [org.springframework.security.web.util.AntPathRequestMatcher] (http-localhost/127.0.0.1:8080-5) Checking match of request : '/dwr/engine.js'; against '/'
18:20:25,278 DEBUG [org.springframework.security.web.util.AntPathRequestMatcher] (http-localhost/127.0.0.1:8080-5) Checking match of request : '/dwr/engine.js'; against '/login'
18:20:25,278 DEBUG [org.springframework.security.web.util.AntPathRequestMatcher] (http-localhost/127.0.0.1:8080-5) Checking match of request : '/dwr/engine.js'; against '/logout'
18:20:25,278 DEBUG [org.springframework.security.web.util.AntPathRequestMatcher] (http-localhost/127.0.0.1:8080-5) Checking match of request : '/dwr/engine.js'; against '/loginfailed'
18:20:25,278 DEBUG [org.springframework.security.web.util.AntPathRequestMatcher] (http-localhost/127.0.0.1:8080-5) Checking match of request : '/dwr/engine.js'; against '/dwr/**'
18:20:25,278 DEBUG [org.springframework.security.web.access.intercept.FilterSecurityInterceptor] (http-localhost/127.0.0.1:8080-5) Secure object: FilterInvocation: URL: /dwr/engine.js; Attributes: [permitAll]
18:20:25,278 DEBUG [org.springframework.security.web.access.intercept.FilterSecurityInterceptor] (http-localhost/127.0.0.1:8080-5) Previously Authenticated: org.springframework.security.authentication.AnonymousAuthenticationToken@6fa90ed4: Principal: anonymousUser; Credentials: [PROTECTED]; Authenticated: true; Details: org.springframework.security.web.authentication.WebAuthenticationDetails@fffc7f0c: RemoteIpAddress: 127.0.0.1; SessionId: FGYv7C6nWGfmAd4dJG2mblcp; Granted Authorities: ROLE_ANONYMOUS
18:20:25,278 DEBUG [org.springframework.security.access.vote.AffirmativeBased] (http-localhost/127.0.0.1:8080-5) Voter: org.springframework.security.web.access.expression.WebExpressionVoter@32d972ed, returned: 1
18:20:25,278 DEBUG [org.springframework.security.web.access.intercept.FilterSecurityInterceptor] (http-localhost/127.0.0.1:8080-5) Authorization successful
18:20:25,278 DEBUG [org.springframework.security.web.access.intercept.FilterSecurityInterceptor] (http-localhost/127.0.0.1:8080-5) RunAsManager did not change Authentication object
18:20:25,278 DEBUG [org.springframework.security.web.FilterChainProxy] (http-localhost/127.0.0.1:8080-5) /dwr/engine.js reached end of additional filter chain; proceeding with original chain
18:20:25,278 DEBUG [org.springframework.web.servlet.DispatcherServlet] (http-localhost/127.0.0.1:8080-5) DispatcherServlet with name 'jboss-as-kitchensink' processing GET request for [/MDOSF/dwr/engine.js]
18:20:25,280 DEBUG [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping] (http-localhost/127.0.0.1:8080-5) Looking up handler method for path /engine.js
18:20:25,280 DEBUG [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping] (http-localhost/127.0.0.1:8080-5) Did not find handler method for [/engine.js]



Please suggest any request mapping that i am missing. I am using following type of handlers :
    <bean class="org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping">
        <property name="order" value="1" />
    </bean>
    <bean class="org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter"/>
    <bean class="org.springframework.web.servlet.handler.BeanNameUrlHandlerMapping">
        <property name="order" value="0" />
    </bean>
    <bean id="viewMappings" class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">
        <property name="alwaysUseFullPath" value="true" />
        <property name="urlMap">
             <map>
                  <entry key="/dwr/**/*" value-ref="dwrController" />
             </map>
        </property>
    </bean> 
  


On Tuesday, 26 November 2013 8:35 PM, Amit Sharma <[hidden email]> wrote:
Sending mail to [hidden email] posted new post instead as the reply of the same post
I am sorry but i am just new to posting there.
Regards,
Amit


On Tuesday, 26 November 2013 8:19 PM, Mike Wilson <[hidden email]> wrote:
What list reader are you using?
It works fine to send mail directly to the list address.


From: Amit Sharma [mailto:[hidden email]]
Sent: den 26 november 2013 14:57
To: Mike Wilson
Subject: Re: [dwr-users] DWR Request throwing error : No request handling method with name X in class Y

Hi Mike,
I can see the post on mailing list but cant make reply on it. It show You don't have permission to perform this action.
Regards,
Amit


On Tuesday, 26 November 2013 7:11 PM, Mike Wilson <[hidden email]> wrote:
I mistakenly replied directly to you (cause by your reply-to mail header). My response will shortly be available on the mailing list, please reply there once it appears.


From: Amit Sharma [mailto:[hidden email]]
Sent: den 26 november 2013 14:10
To: Mike Wilson
Subject: Re: [dwr-users] DWR Request throwing error : No request handling method with name X in class Y

Hello Mike,

Thanks for your reply.
I apologize for the last post. As the error "No request handling method with name X in class Y " is not the valid one. I checked out the references given by you but configuration seems fine for me. As you can see that Deployment logs says all the mapping for DWR has been done successfully.

I can see the following error in Firebug console.
GET http://localhost:8080/MDOSF/dwr/engine.js [HTTP/1.1 405 Method Not Allowed 10ms]

And in servlet.log it prints the following log.

18:20:25,278 DEBUG [org.springframework.security.web.util.AntPathRequestMatcher] (http-localhost/127.0.0.1:8080-5) Checking match of request : '/dwr/engine.js'; against '/'
18:20:25,278 DEBUG [org.springframework.security.web.util.AntPathRequestMatcher] (http-localhost/127.0.0.1:8080-5) Checking match of request : '/dwr/engine.js'; against '/login'
18:20:25,278 DEBUG [org.springframework.security.web.util.AntPathRequestMatcher] (http-localhost/127.0.0.1:8080-5) Checking match of request : '/dwr/engine.js'; against '/logout'
18:20:25,278 DEBUG [org.springframework.security.web.util.AntPathRequestMatcher] (http-localhost/127.0.0.1:8080-5) Checking match of request : '/dwr/engine.js'; against '/loginfailed'
18:20:25,278 DEBUG [org.springframework.security.web.util.AntPathRequestMatcher] (http-localhost/127.0.0.1:8080-5) Checking match of request : '/dwr/engine.js'; against '/dwr/**'
18:20:25,278 DEBUG [org.springframework.security.web.access.intercept.FilterSecurityInterceptor] (http-localhost/127.0.0.1:8080-5) Secure object: FilterInvocation: URL: /dwr/engine.js; Attributes: [permitAll]
18:20:25,278 DEBUG [org.springframework.security.web.access.intercept.FilterSecurityInterceptor] (http-localhost/127.0.0.1:8080-5) Previously Authenticated: org.springframework.security.authentication.AnonymousAuthenticationToken@6fa90ed4: Principal: anonymousUser; Credentials: [PROTECTED]; Authenticated: true; Details: org.springframework.security.web.authentication.WebAuthenticationDetails@fffc7f0c: RemoteIpAddress: 127.0.0.1; SessionId: FGYv7C6nWGfmAd4dJG2mblcp; Granted Authorities: ROLE_ANONYMOUS
18:20:25,278 DEBUG [org.springframework.security.access.vote.AffirmativeBased] (http-localhost/127.0.0.1:8080-5) Voter: org.springframework.security.web.access.expression.WebExpressionVoter@32d972ed, returned: 1
18:20:25,278 DEBUG [org.springframework.security.web.access.intercept.FilterSecurityInterceptor] (http-localhost/127.0.0.1:8080-5) Authorization successful
18:20:25,278 DEBUG [org.springframework.security.web.access.intercept.FilterSecurityInterceptor] (http-localhost/127.0.0.1:8080-5) RunAsManager did not change Authentication object
18:20:25,278 DEBUG [org.springframework.security.web.FilterChainProxy] (http-localhost/127.0.0.1:8080-5) /dwr/engine.js reached end of additional filter chain; proceeding with original chain
18:20:25,278 DEBUG [org.springframework.web.servlet.DispatcherServlet] (http-localhost/127.0.0.1:8080-5) DispatcherServlet with name 'jboss-as-kitchensink' processing GET request for [/MDOSF/dwr/engine.js]
18:20:25,280 DEBUG [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping] (http-localhost/127.0.0.1:8080-5) Looking up handler method for path /engine.js
18:20:25,280 DEBUG [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping] (http-localhost/127.0.0.1:8080-5) Did not find handler method for [/engine.js]



Please suggest any request mapping that i am missing. I am using following type of handlers :
    <bean class="org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping">
        <property name="order" value="1" />
    </bean>
    <bean class="org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter"/>
    <bean class="org.springframework.web.servlet.handler.BeanNameUrlHandlerMapping">
        <property name="order" value="0" />
    </bean>
    <bean id="viewMappings" class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">
        <property name="alwaysUseFullPath" value="true" />
        <property name="urlMap">
             <map>
                  <entry key="/dwr/**/*" value-ref="dwrController" />
             </map>
        </property>
    </bean> 
  


Thanks and Regards,
Amit Sharma

On Tuesday, 26 November 2013 3:47 PM, Mike Wilson <[hidden email]> wrote:
I'm suspecting your configuration makes requests end up in Spring instead of in DWR. If you have any stacktraces you can verify they refer to org.directwebremoting classes. If not, you are not sending calls through DWR.
Make sure you have followed the instructions here:
and verify that things are working on DWR's test page:
 
Best regards
Mike Wilson
 
Amit Sharma wrote:
Hi,
I am using from 3.2, DWR 3 rc2, JBOSS 7.

We are facing a problem while making DWR call.
Server shows log :

No request handling method with name 'loadWorkListData' in class [com.prospecta.mdo2.view.controller.dynamicDashboards.Dashboard]

com.prospecta.mdo2.view.controller.dynamicDashboards.Dashboard is Spring servlet (ie extends MultiActionController).

We added @RemoteProxy to this class and @RemoteMethod to one of its methods(loadWorkListData).

Deployment shows following DWR related logs.

12:02:12,251 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) [engine.js] mapped to dwrController
12:02:12,251 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) [util.js] mapped to dwrController
12:02:12,251 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Interface beans and calls (/interface/*, /call/*) mapped to dwrController
12:02:12,251 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) /test/* has been mapped to dwrController
12:02:12,251 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) /download/* has been mapped to dwrController
12:02:12,254 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/util.js] onto handler of type [class org.directwebremoting.spring.DwrController]
12:02:12,254 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/jsonrpc/**] onto handler of type [class org.directwebremoting.spring.DwrController]
12:02:12,254 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/download/**] onto handler of type [class org.directwebremoting.spring.DwrController]
12:02:12,254 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/data/Store.js] onto handler of type [class org.directwebremoting.spring.DwrController]
12:02:12,254 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/engine.js] onto handler of type [class org.directwebremoting.spring.DwrController]
12:02:12,255 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/test/**] onto handler of type [class org.directwebremoting.spring.DwrController]
12:02:12,255 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/interface/**] onto handler of type [class org.directwebremoting.spring.DwrController]
12:02:12,255 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/call/**] onto handler of type [class org.directwebremoting.spring.DwrController]
12:02:12,255 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/jsonp/**] onto handler of type [class org.directwebremoting.spring.DwrController]
12:02:12,259 INFO  [org.springframework.web.servlet.handler.SimpleUrlHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/interface.js] onto handler 'dwrController'
12:02:12,259 INFO  [org.springframework.web.servlet.handler.SimpleUrlHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/engine.js] onto handler 'dwrController'
12:02:12,259 INFO  [org.springframework.web.servlet.handler.SimpleUrlHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/interface/**] onto handler 'dwrController'
12:02:12,260 INFO  [org.springframework.web.servlet.handler.SimpleUrlHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/call/**] onto handler 'dwrController'

-----------------------------------------------------------------------------------------------------------------------------------------
12:01:54,054 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.Auctions.AuctionDescModel] processed by converter type [bean]
12:01:54,063 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.Auctions.AuctionHeaderModel$AuctionStatus] processed by converter type [bean]
12:01:54,065 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.Auctions.AuctionHeaderModel$AuctionViewSettings] processed by converter type [bean]
12:01:54,066 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.Auctions.AuctionHeaderModel] processed by converter type [bean]
12:01:54,068 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.Auctions.AuctionInviteesModel] processed by converter type [bean]
12:01:54,070 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.Auctions.AuctionItemBiddingsModel] processed by converter type [bean]
12:01:54,072 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.Auctions.AuctionItemsModel] processed by converter type [bean]
12:01:54,075 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.Auctions.AuctionRulesModel] processed by converter type [bean]
12:01:54,123 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.mdoNotification.MdoNotificationModel] processed by converter type [bean]
12:01:54,154 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.PublicPrivateRuleManager.RuleHandlerModel] processed by converter type [bean]
12:01:54,155 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.StatusFlow.StatusflowControllerModel$ObjectStatus] processed by converter type [bean]
12:01:54,157 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.TaskComments.TaskCommentsModel] processed by converter type [bean]
12:01:54,159 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.testModel.DwrModelTest] processed by converter type [bean]
12:01:54,160 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.USERAuthentication.USERAUthenticationModel] processed by converter type [bean]
12:01:54,162 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.Users.UserMdoModel] processed by converter type [bean]
12:01:54,164 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.ViewersTrack.CartPrdctsTrackModel] processed by converter type [bean]
12:01:54,165 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.ViewersTrack.CompanyProfileTrackModel] processed by converter type [bean]
12:01:54,167 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.WorkFlowTransaction.WorkFlowTransactionPojoTaskList] processed by converter type [bean]
12:01:55,496 INFO  [org.directwebremoting.spring.DwrAnnotationPostProcessor] (ServerService Thread Pool -- 108) Detected candidate bean [/dashBoard.do]. Remoting using Dashboard

DWR Configurations in jboss-as-spring-mvc-context.xml

    <mvc:resources mapping="/dwr/**" location="/"/>

    <dwr:annotation-config id="springdwr" />
    <dwr:annotation-scan base-package="com.prospecta.mdo2.hib.hibMODEL" scanDataTransferObject="true" scanRemoteProxy="true" />
    <dwr:url-mapping />
    <dwr:controller id="dwrController" debug="false">
        <dwr:config-param name="activeReverseAjaxEnabled" value="true" />
        <dwr:config-param name="scriptCompressed" value="true" />
        <dwr:config-param name="fileUploadMaxBytes" value="10485760" />
        <dwr:config-param name="allowScriptTagRemoting" value="true" />
    </dwr:controller>
   
    <bean id="viewMappings" class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">
        <property name="alwaysUseFullPath" value="true" />
        <property name="urlMap">
             <map>
                  <entry key="/dwr/**/*" value-ref="dwrController" />
             </map>
        </property>
    </bean>    


web.xml :

    <servlet-mapping>
        <servlet-name>jboss-as-kitchensink</servlet-name>
        <url-pattern>/dwr/*</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
        <servlet-name>jboss-as-kitchensink</servlet-name>
        <url-pattern>/</url-pattern>
    </servlet-mapping>

    <servlet>
        <servlet-name>jboss-as-kitchensink</servlet-name>
        <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
        <init-param>
            <param-name>contextConfigLocation</param-name>
            <param-value>/WEB-INF/jboss-as-spring-mvc-context.xml</param-value>
        </init-param>
        <load-on-startup>2</load-on-startup>
    </servlet>
Please suggest any changes required to be made in my application.

Regards,
Amit Sharma










Reply | Threaded
Open this post in threaded view
|

Re: DWR Request throwing error : No request handling method with name X in class Y

david@butterdev.com
If you don't want to listen, then we can't help you.  If you said everything was working as is prior to your upgrade of Spring/JBoss, why are you messing with your configuration? 

For Spring:
You haven't shown us the signature of your @RemoteMethod so that we can verify my previous post.  My final suggestion to you is to remove your @RemoteProxy/@RemoteMethod annotations from the MultiActionController.  Move them into a new Pojo, make sure the Pojo is being scanned by Spring and I bet everything will work. 

For JBoss
The Firebug error may be a separate issue.  HTTP/1.1 405 Method Not Allowed.  It appears JBoss may be blocking GET requests.   

On 11/26/2013 08:19 AM, Amit Sharma wrote:
Hi David,

Imports if engine.js/util.js is not working. I think, that is the main cause and dispatched servlet is not able to map handler method for dwr/** requests.






On Tuesday, 26 November 2013 8:43 PM, Amit Sharma [hidden email] wrote:
Hello Mike/David,
I checked out the references given by you but configuration seems fine for me. As you can see that Deployment logs says all the mapping for DWR has been done successfully.

I can see the following error in Firebug console.
GET http://localhost:8080/MDOSF/dwr/engine.js [HTTP/1.1 405 Method Not Allowed 10ms]

And in servlet.log it prints the following log.

18:20:25,278 DEBUG [org.springframework.security.web.util.AntPathRequestMatcher] (http-localhost/127.0.0.1:8080-5) Checking match of request : '/dwr/engine.js'; against '/'
18:20:25,278 DEBUG [org.springframework.security.web.util.AntPathRequestMatcher] (http-localhost/127.0.0.1:8080-5) Checking match of request : '/dwr/engine.js'; against '/login'
18:20:25,278 DEBUG [org.springframework.security.web.util.AntPathRequestMatcher] (http-localhost/127.0.0.1:8080-5) Checking match of request : '/dwr/engine.js'; against '/logout'
18:20:25,278 DEBUG [org.springframework.security.web.util.AntPathRequestMatcher] (http-localhost/127.0.0.1:8080-5) Checking match of request : '/dwr/engine.js'; against '/loginfailed'
18:20:25,278 DEBUG [org.springframework.security.web.util.AntPathRequestMatcher] (http-localhost/127.0.0.1:8080-5) Checking match of request : '/dwr/engine.js'; against '/dwr/**'
18:20:25,278 DEBUG [org.springframework.security.web.access.intercept.FilterSecurityInterceptor] (http-localhost/127.0.0.1:8080-5) Secure object: FilterInvocation: URL: /dwr/engine.js; Attributes: [permitAll]
18:20:25,278 DEBUG [org.springframework.security.web.access.intercept.FilterSecurityInterceptor] (http-localhost/127.0.0.1:8080-5) Previously Authenticated: org.springframework.security.authentication.AnonymousAuthenticationToken@6fa90ed4: Principal: anonymousUser; Credentials: [PROTECTED]; Authenticated: true; Details: org.springframework.security.web.authentication.WebAuthenticationDetails@fffc7f0c: RemoteIpAddress: 127.0.0.1; SessionId: FGYv7C6nWGfmAd4dJG2mblcp; Granted Authorities: ROLE_ANONYMOUS
18:20:25,278 DEBUG [org.springframework.security.access.vote.AffirmativeBased] (http-localhost/127.0.0.1:8080-5) Voter: org.springframework.security.web.access.expression.WebExpressionVoter@32d972ed, returned: 1
18:20:25,278 DEBUG [org.springframework.security.web.access.intercept.FilterSecurityInterceptor] (http-localhost/127.0.0.1:8080-5) Authorization successful
18:20:25,278 DEBUG [org.springframework.security.web.access.intercept.FilterSecurityInterceptor] (http-localhost/127.0.0.1:8080-5) RunAsManager did not change Authentication object
18:20:25,278 DEBUG [org.springframework.security.web.FilterChainProxy] (http-localhost/127.0.0.1:8080-5) /dwr/engine.js reached end of additional filter chain; proceeding with original chain
18:20:25,278 DEBUG [org.springframework.web.servlet.DispatcherServlet] (http-localhost/127.0.0.1:8080-5) DispatcherServlet with name 'jboss-as-kitchensink' processing GET request for [/MDOSF/dwr/engine.js]
18:20:25,280 DEBUG [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping] (http-localhost/127.0.0.1:8080-5) Looking up handler method for path /engine.js
18:20:25,280 DEBUG [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping] (http-localhost/127.0.0.1:8080-5) Did not find handler method for [/engine.js]



Please suggest any request mapping that i am missing. I am using following type of handlers :
    <bean class="org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping">
        <property name="order" value="1" />
    </bean>
    <bean class="org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter"/>
    <bean class="org.springframework.web.servlet.handler.BeanNameUrlHandlerMapping">
        <property name="order" value="0" />
    </bean>
    <bean id="viewMappings" class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">
        <property name="alwaysUseFullPath" value="true" />
        <property name="urlMap">
             <map>
                  <entry key="/dwr/**/*" value-ref="dwrController" />
             </map>
        </property>
    </bean> 
  


On Tuesday, 26 November 2013 8:35 PM, Amit Sharma [hidden email] wrote:
Sending mail to [hidden email] posted new post instead as the reply of the same post
I am sorry but i am just new to posting there.
Regards,
Amit


On Tuesday, 26 November 2013 8:19 PM, Mike Wilson [hidden email] wrote:
What list reader are you using?
It works fine to send mail directly to the list address.


From: Amit Sharma [[hidden email]]
Sent: den 26 november 2013 14:57
To: Mike Wilson
Subject: Re: [dwr-users] DWR Request throwing error : No request handling method with name X in class Y

Hi Mike,
I can see the post on mailing list but cant make reply on it. It show You don't have permission to perform this action.
Regards,
Amit


On Tuesday, 26 November 2013 7:11 PM, Mike Wilson [hidden email] wrote:
I mistakenly replied directly to you (cause by your reply-to mail header). My response will shortly be available on the mailing list, please reply there once it appears.


From: Amit Sharma [[hidden email]]
Sent: den 26 november 2013 14:10
To: Mike Wilson
Subject: Re: [dwr-users] DWR Request throwing error : No request handling method with name X in class Y

Hello Mike,

Thanks for your reply.
I apologize for the last post. As the error "No request handling method with name X in class Y " is not the valid one. I checked out the references given by you but configuration seems fine for me. As you can see that Deployment logs says all the mapping for DWR has been done successfully.

I can see the following error in Firebug console.
GET http://localhost:8080/MDOSF/dwr/engine.js [HTTP/1.1 405 Method Not Allowed 10ms]

And in servlet.log it prints the following log.

18:20:25,278 DEBUG [org.springframework.security.web.util.AntPathRequestMatcher] (http-localhost/127.0.0.1:8080-5) Checking match of request : '/dwr/engine.js'; against '/'
18:20:25,278 DEBUG [org.springframework.security.web.util.AntPathRequestMatcher] (http-localhost/127.0.0.1:8080-5) Checking match of request : '/dwr/engine.js'; against '/login'
18:20:25,278 DEBUG [org.springframework.security.web.util.AntPathRequestMatcher] (http-localhost/127.0.0.1:8080-5) Checking match of request : '/dwr/engine.js'; against '/logout'
18:20:25,278 DEBUG [org.springframework.security.web.util.AntPathRequestMatcher] (http-localhost/127.0.0.1:8080-5) Checking match of request : '/dwr/engine.js'; against '/loginfailed'
18:20:25,278 DEBUG [org.springframework.security.web.util.AntPathRequestMatcher] (http-localhost/127.0.0.1:8080-5) Checking match of request : '/dwr/engine.js'; against '/dwr/**'
18:20:25,278 DEBUG [org.springframework.security.web.access.intercept.FilterSecurityInterceptor] (http-localhost/127.0.0.1:8080-5) Secure object: FilterInvocation: URL: /dwr/engine.js; Attributes: [permitAll]
18:20:25,278 DEBUG [org.springframework.security.web.access.intercept.FilterSecurityInterceptor] (http-localhost/127.0.0.1:8080-5) Previously Authenticated: org.springframework.security.authentication.AnonymousAuthenticationToken@6fa90ed4: Principal: anonymousUser; Credentials: [PROTECTED]; Authenticated: true; Details: org.springframework.security.web.authentication.WebAuthenticationDetails@fffc7f0c: RemoteIpAddress: 127.0.0.1; SessionId: FGYv7C6nWGfmAd4dJG2mblcp; Granted Authorities: ROLE_ANONYMOUS
18:20:25,278 DEBUG [org.springframework.security.access.vote.AffirmativeBased] (http-localhost/127.0.0.1:8080-5) Voter: org.springframework.security.web.access.expression.WebExpressionVoter@32d972ed, returned: 1
18:20:25,278 DEBUG [org.springframework.security.web.access.intercept.FilterSecurityInterceptor] (http-localhost/127.0.0.1:8080-5) Authorization successful
18:20:25,278 DEBUG [org.springframework.security.web.access.intercept.FilterSecurityInterceptor] (http-localhost/127.0.0.1:8080-5) RunAsManager did not change Authentication object
18:20:25,278 DEBUG [org.springframework.security.web.FilterChainProxy] (http-localhost/127.0.0.1:8080-5) /dwr/engine.js reached end of additional filter chain; proceeding with original chain
18:20:25,278 DEBUG [org.springframework.web.servlet.DispatcherServlet] (http-localhost/127.0.0.1:8080-5) DispatcherServlet with name 'jboss-as-kitchensink' processing GET request for [/MDOSF/dwr/engine.js]
18:20:25,280 DEBUG [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping] (http-localhost/127.0.0.1:8080-5) Looking up handler method for path /engine.js
18:20:25,280 DEBUG [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping] (http-localhost/127.0.0.1:8080-5) Did not find handler method for [/engine.js]



Please suggest any request mapping that i am missing. I am using following type of handlers :
    <bean class="org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping">
        <property name="order" value="1" />
    </bean>
    <bean class="org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter"/>
    <bean class="org.springframework.web.servlet.handler.BeanNameUrlHandlerMapping">
        <property name="order" value="0" />
    </bean>
    <bean id="viewMappings" class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">
        <property name="alwaysUseFullPath" value="true" />
        <property name="urlMap">
             <map>
                  <entry key="/dwr/**/*" value-ref="dwrController" />
             </map>
        </property>
    </bean> 
  


Thanks and Regards,
Amit Sharma

On Tuesday, 26 November 2013 3:47 PM, Mike Wilson [hidden email] wrote:
I'm suspecting your configuration makes requests end up in Spring instead of in DWR. If you have any stacktraces you can verify they refer to org.directwebremoting classes. If not, you are not sending calls through DWR.
Make sure you have followed the instructions here:
and verify that things are working on DWR's test page:
 
Best regards
Mike Wilson
 
Amit Sharma wrote:
Hi,
I am using from 3.2, DWR 3 rc2, JBOSS 7.

We are facing a problem while making DWR call.
Server shows log :

No request handling method with name 'loadWorkListData' in class [com.prospecta.mdo2.view.controller.dynamicDashboards.Dashboard]

com.prospecta.mdo2.view.controller.dynamicDashboards.Dashboard is Spring servlet (ie extends MultiActionController).

We added @RemoteProxy to this class and @RemoteMethod to one of its methods(loadWorkListData).

Deployment shows following DWR related logs.

12:02:12,251 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) [engine.js] mapped to dwrController
12:02:12,251 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) [util.js] mapped to dwrController
12:02:12,251 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Interface beans and calls (/interface/*, /call/*) mapped to dwrController
12:02:12,251 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) /test/* has been mapped to dwrController
12:02:12,251 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) /download/* has been mapped to dwrController
12:02:12,254 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/util.js] onto handler of type [class org.directwebremoting.spring.DwrController]
12:02:12,254 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/jsonrpc/**] onto handler of type [class org.directwebremoting.spring.DwrController]
12:02:12,254 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/download/**] onto handler of type [class org.directwebremoting.spring.DwrController]
12:02:12,254 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/data/Store.js] onto handler of type [class org.directwebremoting.spring.DwrController]
12:02:12,254 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/engine.js] onto handler of type [class org.directwebremoting.spring.DwrController]
12:02:12,255 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/test/**] onto handler of type [class org.directwebremoting.spring.DwrController]
12:02:12,255 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/interface/**] onto handler of type [class org.directwebremoting.spring.DwrController]
12:02:12,255 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/call/**] onto handler of type [class org.directwebremoting.spring.DwrController]
12:02:12,255 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/jsonp/**] onto handler of type [class org.directwebremoting.spring.DwrController]
12:02:12,259 INFO  [org.springframework.web.servlet.handler.SimpleUrlHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/interface.js] onto handler 'dwrController'
12:02:12,259 INFO  [org.springframework.web.servlet.handler.SimpleUrlHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/engine.js] onto handler 'dwrController'
12:02:12,259 INFO  [org.springframework.web.servlet.handler.SimpleUrlHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/interface/**] onto handler 'dwrController'
12:02:12,260 INFO  [org.springframework.web.servlet.handler.SimpleUrlHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/call/**] onto handler 'dwrController'

-----------------------------------------------------------------------------------------------------------------------------------------
12:01:54,054 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.Auctions.AuctionDescModel] processed by converter type [bean]
12:01:54,063 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.Auctions.AuctionHeaderModel$AuctionStatus] processed by converter type [bean]
12:01:54,065 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.Auctions.AuctionHeaderModel$AuctionViewSettings] processed by converter type [bean]
12:01:54,066 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.Auctions.AuctionHeaderModel] processed by converter type [bean]
12:01:54,068 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.Auctions.AuctionInviteesModel] processed by converter type [bean]
12:01:54,070 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.Auctions.AuctionItemBiddingsModel] processed by converter type [bean]
12:01:54,072 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.Auctions.AuctionItemsModel] processed by converter type [bean]
12:01:54,075 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.Auctions.AuctionRulesModel] processed by converter type [bean]
12:01:54,123 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.mdoNotification.MdoNotificationModel] processed by converter type [bean]
12:01:54,154 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.PublicPrivateRuleManager.RuleHandlerModel] processed by converter type [bean]
12:01:54,155 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.StatusFlow.StatusflowControllerModel$ObjectStatus] processed by converter type [bean]
12:01:54,157 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.TaskComments.TaskCommentsModel] processed by converter type [bean]
12:01:54,159 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.testModel.DwrModelTest] processed by converter type [bean]
12:01:54,160 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.USERAuthentication.USERAUthenticationModel] processed by converter type [bean]
12:01:54,162 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.Users.UserMdoModel] processed by converter type [bean]
12:01:54,164 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.ViewersTrack.CartPrdctsTrackModel] processed by converter type [bean]
12:01:54,165 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.ViewersTrack.CompanyProfileTrackModel] processed by converter type [bean]
12:01:54,167 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.WorkFlowTransaction.WorkFlowTransactionPojoTaskList] processed by converter type [bean]
12:01:55,496 INFO  [org.directwebremoting.spring.DwrAnnotationPostProcessor] (ServerService Thread Pool -- 108) Detected candidate bean [/dashBoard.do]. Remoting using Dashboard

DWR Configurations in jboss-as-spring-mvc-context.xml

    <mvc:resources mapping="/dwr/**" location="/"/>

    <dwr:annotation-config id="springdwr" />
    <dwr:annotation-scan base-package="com.prospecta.mdo2.hib.hibMODEL" scanDataTransferObject="true" scanRemoteProxy="true" />
    <dwr:url-mapping />
    <dwr:controller id="dwrController" debug="false">
        <dwr:config-param name="activeReverseAjaxEnabled" value="true" />
        <dwr:config-param name="scriptCompressed" value="true" />
        <dwr:config-param name="fileUploadMaxBytes" value="10485760" />
        <dwr:config-param name="allowScriptTagRemoting" value="true" />
    </dwr:controller>
   
    <bean id="viewMappings" class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">
        <property name="alwaysUseFullPath" value="true" />
        <property name="urlMap">
             <map>
                  <entry key="/dwr/**/*" value-ref="dwrController" />
             </map>
        </property>
    </bean>    


web.xml :

    <servlet-mapping>
        <servlet-name>jboss-as-kitchensink</servlet-name>
        <url-pattern>/dwr/*</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
        <servlet-name>jboss-as-kitchensink</servlet-name>
        <url-pattern>/</url-pattern>
    </servlet-mapping>

    <servlet>
        <servlet-name>jboss-as-kitchensink</servlet-name>
        <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
        <init-param>
            <param-name>contextConfigLocation</param-name>
            <param-value>/WEB-INF/jboss-as-spring-mvc-context.xml</param-value>
        </init-param>
        <load-on-startup>2</load-on-startup>
    </servlet>
Please suggest any changes required to be made in my application.

Regards,
Amit Sharma











Reply | Threaded
Open this post in threaded view
|

Re: DWR Request throwing error : No request handling method with name X in class Y

amit.sharma
Hi i sent the code of @RemoteMethod but It got posted to new thread. Anyways the method looks like:
@RemoteMethod
    public Object[] loadWorkListData(String objectToLoad,int fetchCount,String currentRecordNUMINP){
        WebContext webContext = WebContextFactory.get();
        Object returnData[]=new Object[2];
        .
        .
        ..
        return returnData;
    }

For Error 405 I am looking into why RequestMappingHandlerMapping didnt find any mapping for engine.js.

Thanks


On Tuesday, 26 November 2013 9:03 PM, David Marginian <[hidden email]> wrote:
If you don't want to listen, then we can't help you.  If you said everything was working as is prior to your upgrade of Spring/JBoss, why are you messing with your configuration? 

For Spring:
You haven't shown us the signature of your @RemoteMethod so that we can verify my previous post.  My final suggestion to you is to remove your @RemoteProxy/@RemoteMethod annotations from the MultiActionController.  Move them into a new Pojo, make sure the Pojo is being scanned by Spring and I bet everything will work. 

For JBoss
The Firebug error may be a separate issue.  HTTP/1.1 405 Method Not Allowed.  It appears JBoss may be blocking GET requests.   

On 11/26/2013 08:19 AM, Amit Sharma wrote:
Hi David,

Imports if engine.js/util.js is not working. I think, that is the main cause and dispatched servlet is not able to map handler method for dwr/** requests.






On Tuesday, 26 November 2013 8:43 PM, Amit Sharma [hidden email] wrote:
Hello Mike/David,
I checked out the references given by you but configuration seems fine for me. As you can see that Deployment logs says all the mapping for DWR has been done successfully.

I can see the following error in Firebug console.
GET http://localhost:8080/MDOSF/dwr/engine.js [HTTP/1.1 405 Method Not Allowed 10ms]

And in servlet.log it prints the following log.

18:20:25,278 DEBUG [org.springframework.security.web.util.AntPathRequestMatcher] (http-localhost/127.0.0.1:8080-5) Checking match of request : '/dwr/engine.js'; against '/'
18:20:25,278 DEBUG [org.springframework.security.web.util.AntPathRequestMatcher] (http-localhost/127.0.0.1:8080-5) Checking match of request : '/dwr/engine.js'; against '/login'
18:20:25,278 DEBUG [org.springframework.security.web.util.AntPathRequestMatcher] (http-localhost/127.0.0.1:8080-5) Checking match of request : '/dwr/engine.js'; against '/logout'
18:20:25,278 DEBUG [org.springframework.security.web.util.AntPathRequestMatcher] (http-localhost/127.0.0.1:8080-5) Checking match of request : '/dwr/engine.js'; against '/loginfailed'
18:20:25,278 DEBUG [org.springframework.security.web.util.AntPathRequestMatcher] (http-localhost/127.0.0.1:8080-5) Checking match of request : '/dwr/engine.js'; against '/dwr/**'
18:20:25,278 DEBUG [org.springframework.security.web.access.intercept.FilterSecurityInterceptor] (http-localhost/127.0.0.1:8080-5) Secure object: FilterInvocation: URL: /dwr/engine.js; Attributes: [permitAll]
18:20:25,278 DEBUG [org.springframework.security.web.access.intercept.FilterSecurityInterceptor] (http-localhost/127.0.0.1:8080-5) Previously Authenticated: org.springframework.security.authentication.AnonymousAuthenticationToken@6fa90ed4: Principal: anonymousUser; Credentials: [PROTECTED]; Authenticated: true; Details: org.springframework.security.web.authentication.WebAuthenticationDetails@fffc7f0c: RemoteIpAddress: 127.0.0.1; SessionId: FGYv7C6nWGfmAd4dJG2mblcp; Granted Authorities: ROLE_ANONYMOUS
18:20:25,278 DEBUG [org.springframework.security.access.vote.AffirmativeBased] (http-localhost/127.0.0.1:8080-5) Voter: org.springframework.security.web.access.expression.WebExpressionVoter@32d972ed, returned: 1
18:20:25,278 DEBUG [org.springframework.security.web.access.intercept.FilterSecurityInterceptor] (http-localhost/127.0.0.1:8080-5) Authorization successful
18:20:25,278 DEBUG [org.springframework.security.web.access.intercept.FilterSecurityInterceptor] (http-localhost/127.0.0.1:8080-5) RunAsManager did not change Authentication object
18:20:25,278 DEBUG [org.springframework.security.web.FilterChainProxy] (http-localhost/127.0.0.1:8080-5) /dwr/engine.js reached end of additional filter chain; proceeding with original chain
18:20:25,278 DEBUG [org.springframework.web.servlet.DispatcherServlet] (http-localhost/127.0.0.1:8080-5) DispatcherServlet with name 'jboss-as-kitchensink' processing GET request for [/MDOSF/dwr/engine.js]
18:20:25,280 DEBUG [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping] (http-localhost/127.0.0.1:8080-5) Looking up handler method for path /engine.js
18:20:25,280 DEBUG [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping] (http-localhost/127.0.0.1:8080-5) Did not find handler method for [/engine.js]



Please suggest any request mapping that i am missing. I am using following type of handlers :
    <bean class="org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping">
        <property name="order" value="1" />
    </bean>
    <bean class="org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter"/>
    <bean class="org.springframework.web.servlet.handler.BeanNameUrlHandlerMapping">
        <property name="order" value="0" />
    </bean>
    <bean id="viewMappings" class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">
        <property name="alwaysUseFullPath" value="true" />
        <property name="urlMap">
             <map>
                  <entry key="/dwr/**/*" value-ref="dwrController" />
             </map>
        </property>
    </bean> 
  


On Tuesday, 26 November 2013 8:35 PM, Amit Sharma [hidden email] wrote:
Sending mail to [hidden email] posted new post instead as the reply of the same post
I am sorry but i am just new to posting there.
Regards,
Amit


On Tuesday, 26 November 2013 8:19 PM, Mike Wilson [hidden email] wrote:
What list reader are you using?
It works fine to send mail directly to the list address.


From: Amit Sharma [[hidden email]]
Sent: den 26 november 2013 14:57
To: Mike Wilson
Subject: Re: [dwr-users] DWR Request throwing error : No request handling method with name X in class Y

Hi Mike,
I can see the post on mailing list but cant make reply on it. It show You don't have permission to perform this action.
Regards,
Amit


On Tuesday, 26 November 2013 7:11 PM, Mike Wilson [hidden email] wrote:
I mistakenly replied directly to you (cause by your reply-to mail header). My response will shortly be available on the mailing list, please reply there once it appears.


From: Amit Sharma [[hidden email]]
Sent: den 26 november 2013 14:10
To: Mike Wilson
Subject: Re: [dwr-users] DWR Request throwing error : No request handling method with name X in class Y

Hello Mike,

Thanks for your reply.
I apologize for the last post. As the error "No request handling method with name X in class Y " is not the valid one. I checked out the references given by you but configuration seems fine for me. As you can see that Deployment logs says all the mapping for DWR has been done successfully.

I can see the following error in Firebug console.
GET http://localhost:8080/MDOSF/dwr/engine.js [HTTP/1.1 405 Method Not Allowed 10ms]

And in servlet.log it prints the following log.

18:20:25,278 DEBUG [org.springframework.security.web.util.AntPathRequestMatcher] (http-localhost/127.0.0.1:8080-5) Checking match of request : '/dwr/engine.js'; against '/'
18:20:25,278 DEBUG [org.springframework.security.web.util.AntPathRequestMatcher] (http-localhost/127.0.0.1:8080-5) Checking match of request : '/dwr/engine.js'; against '/login'
18:20:25,278 DEBUG [org.springframework.security.web.util.AntPathRequestMatcher] (http-localhost/127.0.0.1:8080-5) Checking match of request : '/dwr/engine.js'; against '/logout'
18:20:25,278 DEBUG [org.springframework.security.web.util.AntPathRequestMatcher] (http-localhost/127.0.0.1:8080-5) Checking match of request : '/dwr/engine.js'; against '/loginfailed'
18:20:25,278 DEBUG [org.springframework.security.web.util.AntPathRequestMatcher] (http-localhost/127.0.0.1:8080-5) Checking match of request : '/dwr/engine.js'; against '/dwr/**'
18:20:25,278 DEBUG [org.springframework.security.web.access.intercept.FilterSecurityInterceptor] (http-localhost/127.0.0.1:8080-5) Secure object: FilterInvocation: URL: /dwr/engine.js; Attributes: [permitAll]
18:20:25,278 DEBUG [org.springframework.security.web.access.intercept.FilterSecurityInterceptor] (http-localhost/127.0.0.1:8080-5) Previously Authenticated: org.springframework.security.authentication.AnonymousAuthenticationToken@6fa90ed4: Principal: anonymousUser; Credentials: [PROTECTED]; Authenticated: true; Details: org.springframework.security.web.authentication.WebAuthenticationDetails@fffc7f0c: RemoteIpAddress: 127.0.0.1; SessionId: FGYv7C6nWGfmAd4dJG2mblcp; Granted Authorities: ROLE_ANONYMOUS
18:20:25,278 DEBUG [org.springframework.security.access.vote.AffirmativeBased] (http-localhost/127.0.0.1:8080-5) Voter: org.springframework.security.web.access.expression.WebExpressionVoter@32d972ed, returned: 1
18:20:25,278 DEBUG [org.springframework.security.web.access.intercept.FilterSecurityInterceptor] (http-localhost/127.0.0.1:8080-5) Authorization successful
18:20:25,278 DEBUG [org.springframework.security.web.access.intercept.FilterSecurityInterceptor] (http-localhost/127.0.0.1:8080-5) RunAsManager did not change Authentication object
18:20:25,278 DEBUG [org.springframework.security.web.FilterChainProxy] (http-localhost/127.0.0.1:8080-5) /dwr/engine.js reached end of additional filter chain; proceeding with original chain
18:20:25,278 DEBUG [org.springframework.web.servlet.DispatcherServlet] (http-localhost/127.0.0.1:8080-5) DispatcherServlet with name 'jboss-as-kitchensink' processing GET request for [/MDOSF/dwr/engine.js]
18:20:25,280 DEBUG [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping] (http-localhost/127.0.0.1:8080-5) Looking up handler method for path /engine.js
18:20:25,280 DEBUG [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping] (http-localhost/127.0.0.1:8080-5) Did not find handler method for [/engine.js]



Please suggest any request mapping that i am missing. I am using following type of handlers :
    <bean class="org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping">
        <property name="order" value="1" />
    </bean>
    <bean class="org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter"/>
    <bean class="org.springframework.web.servlet.handler.BeanNameUrlHandlerMapping">
        <property name="order" value="0" />
    </bean>
    <bean id="viewMappings" class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">
        <property name="alwaysUseFullPath" value="true" />
        <property name="urlMap">
             <map>
                  <entry key="/dwr/**/*" value-ref="dwrController" />
             </map>
        </property>
    </bean> 
  


Thanks and Regards,
Amit Sharma

On Tuesday, 26 November 2013 3:47 PM, Mike Wilson [hidden email] wrote:
I'm suspecting your configuration makes requests end up in Spring instead of in DWR. If you have any stacktraces you can verify they refer to org.directwebremoting classes. If not, you are not sending calls through DWR.
Make sure you have followed the instructions here:
and verify that things are working on DWR's test page:
 
Best regards
Mike Wilson
 
Amit Sharma wrote:
Hi,
I am using from 3.2, DWR 3 rc2, JBOSS 7.

We are facing a problem while making DWR call.
Server shows log :

No request handling method with name 'loadWorkListData' in class [com.prospecta.mdo2.view.controller.dynamicDashboards.Dashboard]

com.prospecta.mdo2.view.controller.dynamicDashboards.Dashboard is Spring servlet (ie extends MultiActionController).

We added @RemoteProxy to this class and @RemoteMethod to one of its methods(loadWorkListData).

Deployment shows following DWR related logs.

12:02:12,251 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) [engine.js] mapped to dwrController
12:02:12,251 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) [util.js] mapped to dwrController
12:02:12,251 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Interface beans and calls (/interface/*, /call/*) mapped to dwrController
12:02:12,251 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) /test/* has been mapped to dwrController
12:02:12,251 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) /download/* has been mapped to dwrController
12:02:12,254 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/util.js] onto handler of type [class org.directwebremoting.spring.DwrController]
12:02:12,254 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/jsonrpc/**] onto handler of type [class org.directwebremoting.spring.DwrController]
12:02:12,254 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/download/**] onto handler of type [class org.directwebremoting.spring.DwrController]
12:02:12,254 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/data/Store.js] onto handler of type [class org.directwebremoting.spring.DwrController]
12:02:12,254 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/engine.js] onto handler of type [class org.directwebremoting.spring.DwrController]
12:02:12,255 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/test/**] onto handler of type [class org.directwebremoting.spring.DwrController]
12:02:12,255 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/interface/**] onto handler of type [class org.directwebremoting.spring.DwrController]
12:02:12,255 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/call/**] onto handler of type [class org.directwebremoting.spring.DwrController]
12:02:12,255 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/jsonp/**] onto handler of type [class org.directwebremoting.spring.DwrController]
12:02:12,259 INFO  [org.springframework.web.servlet.handler.SimpleUrlHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/interface.js] onto handler 'dwrController'
12:02:12,259 INFO  [org.springframework.web.servlet.handler.SimpleUrlHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/engine.js] onto handler 'dwrController'
12:02:12,259 INFO  [org.springframework.web.servlet.handler.SimpleUrlHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/interface/**] onto handler 'dwrController'
12:02:12,260 INFO  [org.springframework.web.servlet.handler.SimpleUrlHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/call/**] onto handler 'dwrController'

-----------------------------------------------------------------------------------------------------------------------------------------
12:01:54,054 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.Auctions.AuctionDescModel] processed by converter type [bean]
12:01:54,063 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.Auctions.AuctionHeaderModel$AuctionStatus] processed by converter type [bean]
12:01:54,065 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.Auctions.AuctionHeaderModel$AuctionViewSettings] processed by converter type [bean]
12:01:54,066 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.Auctions.AuctionHeaderModel] processed by converter type [bean]
12:01:54,068 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.Auctions.AuctionInviteesModel] processed by converter type [bean]
12:01:54,070 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.Auctions.AuctionItemBiddingsModel] processed by converter type [bean]
12:01:54,072 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.Auctions.AuctionItemsModel] processed by converter type [bean]
12:01:54,075 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.Auctions.AuctionRulesModel] processed by converter type [bean]
12:01:54,123 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.mdoNotification.MdoNotificationModel] processed by converter type [bean]
12:01:54,154 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.PublicPrivateRuleManager.RuleHandlerModel] processed by converter type [bean]
12:01:54,155 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.StatusFlow.StatusflowControllerModel$ObjectStatus] processed by converter type [bean]
12:01:54,157 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.TaskComments.TaskCommentsModel] processed by converter type [bean]
12:01:54,159 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.testModel.DwrModelTest] processed by converter type [bean]
12:01:54,160 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.USERAuthentication.USERAUthenticationModel] processed by converter type [bean]
12:01:54,162 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.Users.UserMdoModel] processed by converter type [bean]
12:01:54,164 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.ViewersTrack.CartPrdctsTrackModel] processed by converter type [bean]
12:01:54,165 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.ViewersTrack.CompanyProfileTrackModel] processed by converter type [bean]
12:01:54,167 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.WorkFlowTransaction.WorkFlowTransactionPojoTaskList] processed by converter type [bean]
12:01:55,496 INFO  [org.directwebremoting.spring.DwrAnnotationPostProcessor] (ServerService Thread Pool -- 108) Detected candidate bean [/dashBoard.do]. Remoting using Dashboard

DWR Configurations in jboss-as-spring-mvc-context.xml

    <mvc:resources mapping="/dwr/**" location="/"/>

    <dwr:annotation-config id="springdwr" />
    <dwr:annotation-scan base-package="com.prospecta.mdo2.hib.hibMODEL" scanDataTransferObject="true" scanRemoteProxy="true" />
    <dwr:url-mapping />
    <dwr:controller id="dwrController" debug="false">
        <dwr:config-param name="activeReverseAjaxEnabled" value="true" />
        <dwr:config-param name="scriptCompressed" value="true" />
        <dwr:config-param name="fileUploadMaxBytes" value="10485760" />
        <dwr:config-param name="allowScriptTagRemoting" value="true" />
    </dwr:controller>
   
    <bean id="viewMappings" class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">
        <property name="alwaysUseFullPath" value="true" />
        <property name="urlMap">
             <map>
                  <entry key="/dwr/**/*" value-ref="dwrController" />
             </map>
        </property>
    </bean>    


web.xml :

    <servlet-mapping>
        <servlet-name>jboss-as-kitchensink</servlet-name>
        <url-pattern>/dwr/*</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
        <servlet-name>jboss-as-kitchensink</servlet-name>
        <url-pattern>/</url-pattern>
    </servlet-mapping>

    <servlet>
        <servlet-name>jboss-as-kitchensink</servlet-name>
        <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
        <init-param>
            <param-name>contextConfigLocation</param-name>
            <param-value>/WEB-INF/jboss-as-spring-mvc-context.xml</param-value>
        </init-param>
        <load-on-startup>2</load-on-startup>
    </servlet>
Please suggest any changes required to be made in my application.

Regards,
Amit Sharma













Reply | Threaded
Open this post in threaded view
|

Re: DWR Request throwing error : No request handling method with name X in class Y

david@butterdev.com
As I have said about 3 times now, that method signature does NOT match the signature mentioned in the Spring docs:
http://docs.spring.io/spring/docs/3.2.5.RELEASE/javadoc-api/org/springframework/web/servlet/mvc/multiaction/MultiActionController.html

I am not an expert with Spring MVC and cannot tell you if this is indeed causing the "No request handling method with name" error that you originally reported, but I suspect it is.  You can test this very easily by following my directions in a previous post (moving the DWR methods from the MultiActionController to a Pojo).

On 11/26/2013 08:41 AM, Amit Sharma wrote:
Hi i sent the code of @RemoteMethod but It got posted to new thread. Anyways the method looks like:
@RemoteMethod
    public Object[] loadWorkListData(String objectToLoad,int fetchCount,String currentRecordNUMINP){
        WebContext webContext = WebContextFactory.get();
        Object returnData[]=new Object[2];
        .
        .
        ..
        return returnData;
    }

For Error 405 I am looking into why RequestMappingHandlerMapping didnt find any mapping for engine.js.

Thanks


On Tuesday, 26 November 2013 9:03 PM, David Marginian [hidden email] wrote:
If you don't want to listen, then we can't help you.  If you said everything was working as is prior to your upgrade of Spring/JBoss, why are you messing with your configuration? 

For Spring:
You haven't shown us the signature of your @RemoteMethod so that we can verify my previous post.  My final suggestion to you is to remove your @RemoteProxy/@RemoteMethod annotations from the MultiActionController.  Move them into a new Pojo, make sure the Pojo is being scanned by Spring and I bet everything will work. 

For JBoss
The Firebug error may be a separate issue.  HTTP/1.1 405 Method Not Allowed.  It appears JBoss may be blocking GET requests.   

On 11/26/2013 08:19 AM, Amit Sharma wrote:
Hi David,

Imports if engine.js/util.js is not working. I think, that is the main cause and dispatched servlet is not able to map handler method for dwr/** requests.






On Tuesday, 26 November 2013 8:43 PM, Amit Sharma [hidden email] wrote:
Hello Mike/David,
I checked out the references given by you but configuration seems fine for me. As you can see that Deployment logs says all the mapping for DWR has been done successfully.

I can see the following error in Firebug console.
GET http://localhost:8080/MDOSF/dwr/engine.js [HTTP/1.1 405 Method Not Allowed 10ms]

And in servlet.log it prints the following log.

18:20:25,278 DEBUG [org.springframework.security.web.util.AntPathRequestMatcher] (http-localhost/127.0.0.1:8080-5) Checking match of request : '/dwr/engine.js'; against '/'
18:20:25,278 DEBUG [org.springframework.security.web.util.AntPathRequestMatcher] (http-localhost/127.0.0.1:8080-5) Checking match of request : '/dwr/engine.js'; against '/login'
18:20:25,278 DEBUG [org.springframework.security.web.util.AntPathRequestMatcher] (http-localhost/127.0.0.1:8080-5) Checking match of request : '/dwr/engine.js'; against '/logout'
18:20:25,278 DEBUG [org.springframework.security.web.util.AntPathRequestMatcher] (http-localhost/127.0.0.1:8080-5) Checking match of request : '/dwr/engine.js'; against '/loginfailed'
18:20:25,278 DEBUG [org.springframework.security.web.util.AntPathRequestMatcher] (http-localhost/127.0.0.1:8080-5) Checking match of request : '/dwr/engine.js'; against '/dwr/**'
18:20:25,278 DEBUG [org.springframework.security.web.access.intercept.FilterSecurityInterceptor] (http-localhost/127.0.0.1:8080-5) Secure object: FilterInvocation: URL: /dwr/engine.js; Attributes: [permitAll]
18:20:25,278 DEBUG [org.springframework.security.web.access.intercept.FilterSecurityInterceptor] (http-localhost/127.0.0.1:8080-5) Previously Authenticated: org.springframework.security.authentication.AnonymousAuthenticationToken@6fa90ed4: Principal: anonymousUser; Credentials: [PROTECTED]; Authenticated: true; Details: org.springframework.security.web.authentication.WebAuthenticationDetails@fffc7f0c: RemoteIpAddress: 127.0.0.1; SessionId: FGYv7C6nWGfmAd4dJG2mblcp; Granted Authorities: ROLE_ANONYMOUS
18:20:25,278 DEBUG [org.springframework.security.access.vote.AffirmativeBased] (http-localhost/127.0.0.1:8080-5) Voter: org.springframework.security.web.access.expression.WebExpressionVoter@32d972ed, returned: 1
18:20:25,278 DEBUG [org.springframework.security.web.access.intercept.FilterSecurityInterceptor] (http-localhost/127.0.0.1:8080-5) Authorization successful
18:20:25,278 DEBUG [org.springframework.security.web.access.intercept.FilterSecurityInterceptor] (http-localhost/127.0.0.1:8080-5) RunAsManager did not change Authentication object
18:20:25,278 DEBUG [org.springframework.security.web.FilterChainProxy] (http-localhost/127.0.0.1:8080-5) /dwr/engine.js reached end of additional filter chain; proceeding with original chain
18:20:25,278 DEBUG [org.springframework.web.servlet.DispatcherServlet] (http-localhost/127.0.0.1:8080-5) DispatcherServlet with name 'jboss-as-kitchensink' processing GET request for [/MDOSF/dwr/engine.js]
18:20:25,280 DEBUG [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping] (http-localhost/127.0.0.1:8080-5) Looking up handler method for path /engine.js
18:20:25,280 DEBUG [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping] (http-localhost/127.0.0.1:8080-5) Did not find handler method for [/engine.js]



Please suggest any request mapping that i am missing. I am using following type of handlers :
    <bean class="org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping">
        <property name="order" value="1" />
    </bean>
    <bean class="org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter"/>
    <bean class="org.springframework.web.servlet.handler.BeanNameUrlHandlerMapping">
        <property name="order" value="0" />
    </bean>
    <bean id="viewMappings" class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">
        <property name="alwaysUseFullPath" value="true" />
        <property name="urlMap">
             <map>
                  <entry key="/dwr/**/*" value-ref="dwrController" />
             </map>
        </property>
    </bean> 
  


On Tuesday, 26 November 2013 8:35 PM, Amit Sharma [hidden email] wrote:
Sending mail to [hidden email] posted new post instead as the reply of the same post
I am sorry but i am just new to posting there.
Regards,
Amit


On Tuesday, 26 November 2013 8:19 PM, Mike Wilson [hidden email] wrote:
What list reader are you using?
It works fine to send mail directly to the list address.


From: Amit Sharma [[hidden email]]
Sent: den 26 november 2013 14:57
To: Mike Wilson
Subject: Re: [dwr-users] DWR Request throwing error : No request handling method with name X in class Y

Hi Mike,
I can see the post on mailing list but cant make reply on it. It show You don't have permission to perform this action.
Regards,
Amit


On Tuesday, 26 November 2013 7:11 PM, Mike Wilson [hidden email] wrote:
I mistakenly replied directly to you (cause by your reply-to mail header). My response will shortly be available on the mailing list, please reply there once it appears.


From: Amit Sharma [[hidden email]]
Sent: den 26 november 2013 14:10
To: Mike Wilson
Subject: Re: [dwr-users] DWR Request throwing error : No request handling method with name X in class Y

Hello Mike,

Thanks for your reply.
I apologize for the last post. As the error "No request handling method with name X in class Y " is not the valid one. I checked out the references given by you but configuration seems fine for me. As you can see that Deployment logs says all the mapping for DWR has been done successfully.

I can see the following error in Firebug console.
GET http://localhost:8080/MDOSF/dwr/engine.js [HTTP/1.1 405 Method Not Allowed 10ms]

And in servlet.log it prints the following log.

18:20:25,278 DEBUG [org.springframework.security.web.util.AntPathRequestMatcher] (http-localhost/127.0.0.1:8080-5) Checking match of request : '/dwr/engine.js'; against '/'
18:20:25,278 DEBUG [org.springframework.security.web.util.AntPathRequestMatcher] (http-localhost/127.0.0.1:8080-5) Checking match of request : '/dwr/engine.js'; against '/login'
18:20:25,278 DEBUG [org.springframework.security.web.util.AntPathRequestMatcher] (http-localhost/127.0.0.1:8080-5) Checking match of request : '/dwr/engine.js'; against '/logout'
18:20:25,278 DEBUG [org.springframework.security.web.util.AntPathRequestMatcher] (http-localhost/127.0.0.1:8080-5) Checking match of request : '/dwr/engine.js'; against '/loginfailed'
18:20:25,278 DEBUG [org.springframework.security.web.util.AntPathRequestMatcher] (http-localhost/127.0.0.1:8080-5) Checking match of request : '/dwr/engine.js'; against '/dwr/**'
18:20:25,278 DEBUG [org.springframework.security.web.access.intercept.FilterSecurityInterceptor] (http-localhost/127.0.0.1:8080-5) Secure object: FilterInvocation: URL: /dwr/engine.js; Attributes: [permitAll]
18:20:25,278 DEBUG [org.springframework.security.web.access.intercept.FilterSecurityInterceptor] (http-localhost/127.0.0.1:8080-5) Previously Authenticated: org.springframework.security.authentication.AnonymousAuthenticationToken@6fa90ed4: Principal: anonymousUser; Credentials: [PROTECTED]; Authenticated: true; Details: org.springframework.security.web.authentication.WebAuthenticationDetails@fffc7f0c: RemoteIpAddress: 127.0.0.1; SessionId: FGYv7C6nWGfmAd4dJG2mblcp; Granted Authorities: ROLE_ANONYMOUS
18:20:25,278 DEBUG [org.springframework.security.access.vote.AffirmativeBased] (http-localhost/127.0.0.1:8080-5) Voter: org.springframework.security.web.access.expression.WebExpressionVoter@32d972ed, returned: 1
18:20:25,278 DEBUG [org.springframework.security.web.access.intercept.FilterSecurityInterceptor] (http-localhost/127.0.0.1:8080-5) Authorization successful
18:20:25,278 DEBUG [org.springframework.security.web.access.intercept.FilterSecurityInterceptor] (http-localhost/127.0.0.1:8080-5) RunAsManager did not change Authentication object
18:20:25,278 DEBUG [org.springframework.security.web.FilterChainProxy] (http-localhost/127.0.0.1:8080-5) /dwr/engine.js reached end of additional filter chain; proceeding with original chain
18:20:25,278 DEBUG [org.springframework.web.servlet.DispatcherServlet] (http-localhost/127.0.0.1:8080-5) DispatcherServlet with name 'jboss-as-kitchensink' processing GET request for [/MDOSF/dwr/engine.js]
18:20:25,280 DEBUG [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping] (http-localhost/127.0.0.1:8080-5) Looking up handler method for path /engine.js
18:20:25,280 DEBUG [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping] (http-localhost/127.0.0.1:8080-5) Did not find handler method for [/engine.js]



Please suggest any request mapping that i am missing. I am using following type of handlers :
    <bean class="org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping">
        <property name="order" value="1" />
    </bean>
    <bean class="org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter"/>
    <bean class="org.springframework.web.servlet.handler.BeanNameUrlHandlerMapping">
        <property name="order" value="0" />
    </bean>
    <bean id="viewMappings" class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">
        <property name="alwaysUseFullPath" value="true" />
        <property name="urlMap">
             <map>
                  <entry key="/dwr/**/*" value-ref="dwrController" />
             </map>
        </property>
    </bean> 
  


Thanks and Regards,
Amit Sharma

On Tuesday, 26 November 2013 3:47 PM, Mike Wilson [hidden email] wrote:
I'm suspecting your configuration makes requests end up in Spring instead of in DWR. If you have any stacktraces you can verify they refer to org.directwebremoting classes. If not, you are not sending calls through DWR.
Make sure you have followed the instructions here:
and verify that things are working on DWR's test page:
 
Best regards
Mike Wilson
 
Amit Sharma wrote:
Hi,
I am using from 3.2, DWR 3 rc2, JBOSS 7.

We are facing a problem while making DWR call.
Server shows log :

No request handling method with name 'loadWorkListData' in class [com.prospecta.mdo2.view.controller.dynamicDashboards.Dashboard]

com.prospecta.mdo2.view.controller.dynamicDashboards.Dashboard is Spring servlet (ie extends MultiActionController).

We added @RemoteProxy to this class and @RemoteMethod to one of its methods(loadWorkListData).

Deployment shows following DWR related logs.

12:02:12,251 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) [engine.js] mapped to dwrController
12:02:12,251 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) [util.js] mapped to dwrController
12:02:12,251 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Interface beans and calls (/interface/*, /call/*) mapped to dwrController
12:02:12,251 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) /test/* has been mapped to dwrController
12:02:12,251 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) /download/* has been mapped to dwrController
12:02:12,254 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/util.js] onto handler of type [class org.directwebremoting.spring.DwrController]
12:02:12,254 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/jsonrpc/**] onto handler of type [class org.directwebremoting.spring.DwrController]
12:02:12,254 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/download/**] onto handler of type [class org.directwebremoting.spring.DwrController]
12:02:12,254 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/data/Store.js] onto handler of type [class org.directwebremoting.spring.DwrController]
12:02:12,254 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/engine.js] onto handler of type [class org.directwebremoting.spring.DwrController]
12:02:12,255 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/test/**] onto handler of type [class org.directwebremoting.spring.DwrController]
12:02:12,255 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/interface/**] onto handler of type [class org.directwebremoting.spring.DwrController]
12:02:12,255 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/call/**] onto handler of type [class org.directwebremoting.spring.DwrController]
12:02:12,255 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/jsonp/**] onto handler of type [class org.directwebremoting.spring.DwrController]
12:02:12,259 INFO  [org.springframework.web.servlet.handler.SimpleUrlHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/interface.js] onto handler 'dwrController'
12:02:12,259 INFO  [org.springframework.web.servlet.handler.SimpleUrlHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/engine.js] onto handler 'dwrController'
12:02:12,259 INFO  [org.springframework.web.servlet.handler.SimpleUrlHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/interface/**] onto handler 'dwrController'
12:02:12,260 INFO  [org.springframework.web.servlet.handler.SimpleUrlHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/call/**] onto handler 'dwrController'

-----------------------------------------------------------------------------------------------------------------------------------------
12:01:54,054 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.Auctions.AuctionDescModel] processed by converter type [bean]
12:01:54,063 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.Auctions.AuctionHeaderModel$AuctionStatus] processed by converter type [bean]
12:01:54,065 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.Auctions.AuctionHeaderModel$AuctionViewSettings] processed by converter type [bean]
12:01:54,066 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.Auctions.AuctionHeaderModel] processed by converter type [bean]
12:01:54,068 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.Auctions.AuctionInviteesModel] processed by converter type [bean]
12:01:54,070 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.Auctions.AuctionItemBiddingsModel] processed by converter type [bean]
12:01:54,072 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.Auctions.AuctionItemsModel] processed by converter type [bean]
12:01:54,075 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.Auctions.AuctionRulesModel] processed by converter type [bean]
12:01:54,123 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.mdoNotification.MdoNotificationModel] processed by converter type [bean]
12:01:54,154 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.PublicPrivateRuleManager.RuleHandlerModel] processed by converter type [bean]
12:01:54,155 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.StatusFlow.StatusflowControllerModel$ObjectStatus] processed by converter type [bean]
12:01:54,157 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.TaskComments.TaskCommentsModel] processed by converter type [bean]
12:01:54,159 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.testModel.DwrModelTest] processed by converter type [bean]
12:01:54,160 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.USERAuthentication.USERAUthenticationModel] processed by converter type [bean]
12:01:54,162 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.Users.UserMdoModel] processed by converter type [bean]
12:01:54,164 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.ViewersTrack.CartPrdctsTrackModel] processed by converter type [bean]
12:01:54,165 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.ViewersTrack.CompanyProfileTrackModel] processed by converter type [bean]
12:01:54,167 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.WorkFlowTransaction.WorkFlowTransactionPojoTaskList] processed by converter type [bean]
12:01:55,496 INFO  [org.directwebremoting.spring.DwrAnnotationPostProcessor] (ServerService Thread Pool -- 108) Detected candidate bean [/dashBoard.do]. Remoting using Dashboard

DWR Configurations in jboss-as-spring-mvc-context.xml

    <mvc:resources mapping="/dwr/**" location="/"/>

    <dwr:annotation-config id="springdwr" />
    <dwr:annotation-scan base-package="com.prospecta.mdo2.hib.hibMODEL" scanDataTransferObject="true" scanRemoteProxy="true" />
    <dwr:url-mapping />
    <dwr:controller id="dwrController" debug="false">
        <dwr:config-param name="activeReverseAjaxEnabled" value="true" />
        <dwr:config-param name="scriptCompressed" value="true" />
        <dwr:config-param name="fileUploadMaxBytes" value="10485760" />
        <dwr:config-param name="allowScriptTagRemoting" value="true" />
    </dwr:controller>
   
    <bean id="viewMappings" class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">
        <property name="alwaysUseFullPath" value="true" />
        <property name="urlMap">
             <map>
                  <entry key="/dwr/**/*" value-ref="dwrController" />
             </map>
        </property>
    </bean>    


web.xml :

    <servlet-mapping>
        <servlet-name>jboss-as-kitchensink</servlet-name>
        <url-pattern>/dwr/*</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
        <servlet-name>jboss-as-kitchensink</servlet-name>
        <url-pattern>/</url-pattern>
    </servlet-mapping>

    <servlet>
        <servlet-name>jboss-as-kitchensink</servlet-name>
        <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
        <init-param>
            <param-name>contextConfigLocation</param-name>
            <param-value>/WEB-INF/jboss-as-spring-mvc-context.xml</param-value>
        </init-param>
        <load-on-startup>2</load-on-startup>
    </servlet>
Please suggest any changes required to be made in my application.

Regards,
Amit Sharma














Reply | Threaded
Open this post in threaded view
|

Re: DWR Request throwing error : No request handling method with name X in class Y

Mike Wilson
Administrator
In reply to this post by amit.sharma
If you want to keep replies within the same thread then you should either subscribe so you have mails delivered to your inbox, and reply to them there, or use the java.net web-based mailing list interface.
 
Best regards
Mike
 
On Tuesday, 26 November 2013 8:35 PM, Amit Sharma <[hidden email]> wrote:
Sending mail to [hidden email] posted new post instead as the reply of the same post
I am sorry but i am just new to posting there.
Regards,
Amit
Reply | Threaded
Open this post in threaded view
|

Re: DWR Request throwing error : No request handling method with name X in class Y

Mike Wilson
Administrator
In reply to this post by amit.sharma
Hi guys,
 
David is better versed in the Spring integration so this may be totally off, but what is the purpose of:
    <mvc:resources mapping="/dwr/**" location="/"/>
It looks like this will direct all DWR requests away to static resource handling?
 
Best regards
Mike
 
Amit Sharma wrote:
Hi,
I am using from 3.2, DWR 3 rc2, JBOSS 7.

We are facing a problem while making DWR call.
Server shows log :

No request handling method with name 'loadWorkListData' in class [com.prospecta.mdo2.view.controller.dynamicDashboards.Dashboard]

com.prospecta.mdo2.view.controller.dynamicDashboards.Dashboard is Spring servlet (ie extends MultiActionController).

We added @RemoteProxy to this class and @RemoteMethod to one of its methods(loadWorkListData).

Deployment shows following DWR related logs.

12:02:12,251 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) [engine.js] mapped to dwrController
12:02:12,251 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) [util.js] mapped to dwrController
12:02:12,251 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Interface beans and calls (/interface/*, /call/*) mapped to dwrController
12:02:12,251 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) /test/* has been mapped to dwrController
12:02:12,251 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) /download/* has been mapped to dwrController
12:02:12,254 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/util.js] onto handler of type [class org.directwebremoting.spring.DwrController]
12:02:12,254 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/jsonrpc/**] onto handler of type [class org.directwebremoting.spring.DwrController]
12:02:12,254 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/download/**] onto handler of type [class org.directwebremoting.spring.DwrController]
12:02:12,254 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/data/Store.js] onto handler of type [class org.directwebremoting.spring.DwrController]
12:02:12,254 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/engine.js] onto handler of type [class org.directwebremoting.spring.DwrController]
12:02:12,255 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/test/**] onto handler of type [class org.directwebremoting.spring.DwrController]
12:02:12,255 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/interface/**] onto handler of type [class org.directwebremoting.spring.DwrController]
12:02:12,255 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/call/**] onto handler of type [class org.directwebremoting.spring.DwrController]
12:02:12,255 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/jsonp/**] onto handler of type [class org.directwebremoting.spring.DwrController]
12:02:12,259 INFO  [org.springframework.web.servlet.handler.SimpleUrlHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/interface.js] onto handler 'dwrController'
12:02:12,259 INFO  [org.springframework.web.servlet.handler.SimpleUrlHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/engine.js] onto handler 'dwrController'
12:02:12,259 INFO  [org.springframework.web.servlet.handler.SimpleUrlHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/interface/**] onto handler 'dwrController'
12:02:12,260 INFO  [org.springframework.web.servlet.handler.SimpleUrlHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/call/**] onto handler 'dwrController'

-----------------------------------------------------------------------------------------------------------------------------------------
12:01:54,054 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.Auctions.AuctionDescModel] processed by converter type [bean]
12:01:54,063 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.Auctions.AuctionHeaderModel$AuctionStatus] processed by converter type [bean]
12:01:54,065 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.Auctions.AuctionHeaderModel$AuctionViewSettings] processed by converter type [bean]
12:01:54,066 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.Auctions.AuctionHeaderModel] processed by converter type [bean]
12:01:54,068 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.Auctions.AuctionInviteesModel] processed by converter type [bean]
12:01:54,070 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.Auctions.AuctionItemBiddingsModel] processed by converter type [bean]
12:01:54,072 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.Auctions.AuctionItemsModel] processed by converter type [bean]
12:01:54,075 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.Auctions.AuctionRulesModel] processed by converter type [bean]
12:01:54,123 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.mdoNotification.MdoNotificationModel] processed by converter type [bean]
12:01:54,154 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.PublicPrivateRuleManager.RuleHandlerModel] processed by converter type [bean]
12:01:54,155 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.StatusFlow.StatusflowControllerModel$ObjectStatus] processed by converter type [bean]
12:01:54,157 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.TaskComments.TaskCommentsModel] processed by converter type [bean]
12:01:54,159 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.testModel.DwrModelTest] processed by converter type [bean]
12:01:54,160 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.USERAuthentication.USERAUthenticationModel] processed by converter type [bean]
12:01:54,162 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.Users.UserMdoModel] processed by converter type [bean]
12:01:54,164 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.ViewersTrack.CartPrdctsTrackModel] processed by converter type [bean]
12:01:54,165 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.ViewersTrack.CompanyProfileTrackModel] processed by converter type [bean]
12:01:54,167 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.WorkFlowTransaction.WorkFlowTransactionPojoTaskList] processed by converter type [bean]
12:01:55,496 INFO  [org.directwebremoting.spring.DwrAnnotationPostProcessor] (ServerService Thread Pool -- 108) Detected candidate bean [/dashBoard.do]. Remoting using Dashboard

DWR Configurations in jboss-as-spring-mvc-context.xml

    <mvc:resources mapping="/dwr/**" location="/"/>

    <dwr:annotation-config id="springdwr" />
    <dwr:annotation-scan base-package="com.prospecta.mdo2.hib.hibMODEL" scanDataTransferObject="true" scanRemoteProxy="true" />
    <dwr:url-mapping />
    <dwr:controller id="dwrController" debug="false">
        <dwr:config-param name="activeReverseAjaxEnabled" value="true" />
        <dwr:config-param name="scriptCompressed" value="true" />
        <dwr:config-param name="fileUploadMaxBytes" value="10485760" />
        <dwr:config-param name="allowScriptTagRemoting" value="true" />
    </dwr:controller>
   
    <bean id="viewMappings" class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">
        <property name="alwaysUseFullPath" value="true" />
        <property name="urlMap">
             <map>
                  <entry key="/dwr/**/*" value-ref="dwrController" />
             </map>
        </property>
    </bean>    


web.xml :

    <servlet-mapping>
        <servlet-name>jboss-as-kitchensink</servlet-name>
        <url-pattern>/dwr/*</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
        <servlet-name>jboss-as-kitchensink</servlet-name>
        <url-pattern>/</url-pattern>
    </servlet-mapping>

    <servlet>
        <servlet-name>jboss-as-kitchensink</servlet-name>
        <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
        <init-param>
            <param-name>contextConfigLocation</param-name>
            <param-value>/WEB-INF/jboss-as-spring-mvc-context.xml</param-value>
        </init-param>
        <load-on-startup>2</load-on-startup>
    </servlet>
Please suggest any changes required to be made in my application.

Regards,
Amit Sharma
Reply | Threaded
Open this post in threaded view
|

Re: DWR Request throwing error : No request handling method with name X in class Y

amit.sharma
Yes exactly..
This is to pass it to the root directory of the application.


On Tuesday, 26 November 2013 9:54 PM, Mike Wilson [via DWR] <[hidden email]> wrote:
Hi guys,
 
David is better versed in the Spring integration so this may be totally off, but what is the purpose of:
    <mvc:resources mapping="/dwr/**" location="/"/>
It looks like this will direct all DWR requests away to static resource handling?
 
Best regards
Mike
 
Amit Sharma wrote:
Hi,
I am using from 3.2, DWR 3 rc2, JBOSS 7.

We are facing a problem while making DWR call.
Server shows log :

No request handling method with name 'loadWorkListData' in class [com.prospecta.mdo2.view.controller.dynamicDashboards.Dashboard]

com.prospecta.mdo2.view.controller.dynamicDashboards.Dashboard is Spring servlet (ie extends MultiActionController).

We added @RemoteProxy to this class and @RemoteMethod to one of its methods(loadWorkListData).

Deployment shows following DWR related logs.

12:02:12,251 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) [engine.js] mapped to dwrController
12:02:12,251 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) [util.js] mapped to dwrController
12:02:12,251 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Interface beans and calls (/interface/*, /call/*) mapped to dwrController
12:02:12,251 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) /test/* has been mapped to dwrController
12:02:12,251 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) /download/* has been mapped to dwrController
12:02:12,254 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/util.js] onto handler of type [class org.directwebremoting.spring.DwrController]
12:02:12,254 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/jsonrpc/**] onto handler of type [class org.directwebremoting.spring.DwrController]
12:02:12,254 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/download/**] onto handler of type [class org.directwebremoting.spring.DwrController]
12:02:12,254 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/data/Store.js] onto handler of type [class org.directwebremoting.spring.DwrController]
12:02:12,254 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/engine.js] onto handler of type [class org.directwebremoting.spring.DwrController]
12:02:12,255 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/test/**] onto handler of type [class org.directwebremoting.spring.DwrController]
12:02:12,255 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/interface/**] onto handler of type [class org.directwebremoting.spring.DwrController]
12:02:12,255 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/call/**] onto handler of type [class org.directwebremoting.spring.DwrController]
12:02:12,255 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/jsonp/**] onto handler of type [class org.directwebremoting.spring.DwrController]
12:02:12,259 INFO  [org.springframework.web.servlet.handler.SimpleUrlHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/interface.js] onto handler 'dwrController'
12:02:12,259 INFO  [org.springframework.web.servlet.handler.SimpleUrlHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/engine.js] onto handler 'dwrController'
12:02:12,259 INFO  [org.springframework.web.servlet.handler.SimpleUrlHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/interface/**] onto handler 'dwrController'
12:02:12,260 INFO  [org.springframework.web.servlet.handler.SimpleUrlHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/call/**] onto handler 'dwrController'

-----------------------------------------------------------------------------------------------------------------------------------------
12:01:54,054 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.Auctions.AuctionDescModel] processed by converter type [bean]
12:01:54,063 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.Auctions.AuctionHeaderModel$AuctionStatus] processed by converter type [bean]
12:01:54,065 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.Auctions.AuctionHeaderModel$AuctionViewSettings] processed by converter type [bean]
12:01:54,066 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.Auctions.AuctionHeaderModel] processed by converter type [bean]
12:01:54,068 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.Auctions.AuctionInviteesModel] processed by converter type [bean]
12:01:54,070 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.Auctions.AuctionItemBiddingsModel] processed by converter type [bean]
12:01:54,072 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.Auctions.AuctionItemsModel] processed by converter type [bean]
12:01:54,075 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.Auctions.AuctionRulesModel] processed by converter type [bean]
12:01:54,123 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.mdoNotification.MdoNotificationModel] processed by converter type [bean]
12:01:54,154 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.PublicPrivateRuleManager.RuleHandlerModel] processed by converter type [bean]
12:01:54,155 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.StatusFlow.StatusflowControllerModel$ObjectStatus] processed by converter type [bean]
12:01:54,157 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.TaskComments.TaskCommentsModel] processed by converter type [bean]
12:01:54,159 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.testModel.DwrModelTest] processed by converter type [bean]
12:01:54,160 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.USERAuthentication.USERAUthenticationModel] processed by converter type [bean]
12:01:54,162 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.Users.UserMdoModel] processed by converter type [bean]
12:01:54,164 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.ViewersTrack.CartPrdctsTrackModel] processed by converter type [bean]
12:01:54,165 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.ViewersTrack.CompanyProfileTrackModel] processed by converter type [bean]
12:01:54,167 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.WorkFlowTransaction.WorkFlowTransactionPojoTaskList] processed by converter type [bean]
12:01:55,496 INFO  [org.directwebremoting.spring.DwrAnnotationPostProcessor] (ServerService Thread Pool -- 108) Detected candidate bean [/dashBoard.do]. Remoting using Dashboard

DWR Configurations in jboss-as-spring-mvc-context.xml

    <mvc:resources mapping="/dwr/**" location="/"/>

    <dwr:annotation-config id="springdwr" />
    <dwr:annotation-scan base-package="com.prospecta.mdo2.hib.hibMODEL" scanDataTransferObject="true" scanRemoteProxy="true" />
    <dwr:url-mapping />
    <dwr:controller id="dwrController" debug="false">
        <dwr:config-param name="activeReverseAjaxEnabled" value="true" />
        <dwr:config-param name="scriptCompressed" value="true" />
        <dwr:config-param name="fileUploadMaxBytes" value="10485760" />
        <dwr:config-param name="allowScriptTagRemoting" value="true" />
    </dwr:controller>
   
    <bean id="viewMappings" class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">
        <property name="alwaysUseFullPath" value="true" />
        <property name="urlMap">
             <map>
                  <entry key="/dwr/**/*" value-ref="dwrController" />
             </map>
        </property>
    </bean>    


web.xml :

    <servlet-mapping>
        <servlet-name>jboss-as-kitchensink</servlet-name>
        <url-pattern>/dwr/*</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
        <servlet-name>jboss-as-kitchensink</servlet-name>
        <url-pattern>/</url-pattern>
    </servlet-mapping>

    <servlet>
        <servlet-name>jboss-as-kitchensink</servlet-name>
        <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
        <init-param>
            <param-name>contextConfigLocation</param-name>
            <param-value>/WEB-INF/jboss-as-spring-mvc-context.xml</param-value>
        </init-param>
        <load-on-startup>2</load-on-startup>
    </servlet>
Please suggest any changes required to be made in my application.

Regards,
Amit Sharma



To unsubscribe from DWR Request throwing error : No request handling method with name X in class Y, click here.
NAML


Reply | Threaded
Open this post in threaded view
|

Re: DWR Request throwing error : No request handling method with name X in class Y

amit.sharma
In reply to this post by david@butterdev.com
David,
Tried for what you suggested. But still engine.js include isnt working.


On Tuesday, 26 November 2013 9:21 PM, "[hidden email] [via DWR]" <[hidden email]> wrote:
As I have said about 3 times now, that method signature does NOT match the signature mentioned in the Spring docs:
http://docs.spring.io/spring/docs/3.2.5.RELEASE/javadoc-api/org/springframework/web/servlet/mvc/multiaction/MultiActionController.html

I am not an expert with Spring MVC and cannot tell you if this is indeed causing the "No request handling method with name" error that you originally reported, but I suspect it is.  You can test this very easily by following my directions in a previous post (moving the DWR methods from the MultiActionController to a Pojo).

On 11/26/2013 08:41 AM, Amit Sharma wrote:
Hi i sent the code of @RemoteMethod but It got posted to new thread. Anyways the method looks like:
@RemoteMethod
    public Object[] loadWorkListData(String objectToLoad,int fetchCount,String currentRecordNUMINP){
        WebContext webContext = WebContextFactory.get();
        Object returnData[]=new Object[2];
        .
        .
        ..
        return returnData;
    }

For Error 405 I am looking into why RequestMappingHandlerMapping didnt find any mapping for engine.js.

Thanks





To unsubscribe from DWR Request throwing error : No request handling method with name X in class Y, click here.
NAML


Reply | Threaded
Open this post in threaded view
|

Re: DWR Request throwing error : No request handling method with name X in class Y

david@butterdev.com
In reply to this post by amit.sharma
I missed this.  I don't know what your intention is with it, but I would remove it. 

On 11/26/2013 10:27 AM, Amit Sharma wrote:
Yes exactly..
This is to pass it to the root directory of the application.


On Tuesday, 26 November 2013 9:54 PM, Mike Wilson [via DWR] [hidden email] wrote:
Hi guys,
 
David is better versed in the Spring integration so this may be totally off, but what is the purpose of:
    <mvc:resources mapping="/dwr/**" location="/"/>
It looks like this will direct all DWR requests away to static resource handling?
 
Best regards
Mike
 
Amit Sharma wrote:
Hi,
I am using from 3.2, DWR 3 rc2, JBOSS 7.

We are facing a problem while making DWR call.
Server shows log :

No request handling method with name 'loadWorkListData' in class [com.prospecta.mdo2.view.controller.dynamicDashboards.Dashboard]

com.prospecta.mdo2.view.controller.dynamicDashboards.Dashboard is Spring servlet (ie extends MultiActionController).

We added @RemoteProxy to this class and @RemoteMethod to one of its methods(loadWorkListData).

Deployment shows following DWR related logs.

12:02:12,251 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) [engine.js] mapped to dwrController
12:02:12,251 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) [util.js] mapped to dwrController
12:02:12,251 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Interface beans and calls (/interface/*, /call/*) mapped to dwrController
12:02:12,251 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) /test/* has been mapped to dwrController
12:02:12,251 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) /download/* has been mapped to dwrController
12:02:12,254 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/util.js] onto handler of type [class org.directwebremoting.spring.DwrController]
12:02:12,254 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/jsonrpc/**] onto handler of type [class org.directwebremoting.spring.DwrController]
12:02:12,254 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/download/**] onto handler of type [class org.directwebremoting.spring.DwrController]
12:02:12,254 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/data/Store.js] onto handler of type [class org.directwebremoting.spring.DwrController]
12:02:12,254 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/engine.js] onto handler of type [class org.directwebremoting.spring.DwrController]
12:02:12,255 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/test/**] onto handler of type [class org.directwebremoting.spring.DwrController]
12:02:12,255 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/interface/**] onto handler of type [class org.directwebremoting.spring.DwrController]
12:02:12,255 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/call/**] onto handler of type [class org.directwebremoting.spring.DwrController]
12:02:12,255 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/jsonp/**] onto handler of type [class org.directwebremoting.spring.DwrController]
12:02:12,259 INFO  [org.springframework.web.servlet.handler.SimpleUrlHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/interface.js] onto handler 'dwrController'
12:02:12,259 INFO  [org.springframework.web.servlet.handler.SimpleUrlHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/engine.js] onto handler 'dwrController'
12:02:12,259 INFO  [org.springframework.web.servlet.handler.SimpleUrlHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/interface/**] onto handler 'dwrController'
12:02:12,260 INFO  [org.springframework.web.servlet.handler.SimpleUrlHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/call/**] onto handler 'dwrController'

-----------------------------------------------------------------------------------------------------------------------------------------
12:01:54,054 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.Auctions.AuctionDescModel] processed by converter type [bean]
12:01:54,063 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.Auctions.AuctionHeaderModel$AuctionStatus] processed by converter type [bean]
12:01:54,065 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.Auctions.AuctionHeaderModel$AuctionViewSettings] processed by converter type [bean]
12:01:54,066 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.Auctions.AuctionHeaderModel] processed by converter type [bean]
12:01:54,068 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.Auctions.AuctionInviteesModel] processed by converter type [bean]
12:01:54,070 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.Auctions.AuctionItemBiddingsModel] processed by converter type [bean]
12:01:54,072 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.Auctions.AuctionItemsModel] processed by converter type [bean]
12:01:54,075 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.Auctions.AuctionRulesModel] processed by converter type [bean]
12:01:54,123 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.mdoNotification.MdoNotificationModel] processed by converter type [bean]
12:01:54,154 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.PublicPrivateRuleManager.RuleHandlerModel] processed by converter type [bean]
12:01:54,155 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.StatusFlow.StatusflowControllerModel$ObjectStatus] processed by converter type [bean]
12:01:54,157 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.TaskComments.TaskCommentsModel] processed by converter type [bean]
12:01:54,159 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.testModel.DwrModelTest] processed by converter type [bean]
12:01:54,160 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.USERAuthentication.USERAUthenticationModel] processed by converter type [bean]
12:01:54,162 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.Users.UserMdoModel] processed by converter type [bean]
12:01:54,164 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.ViewersTrack.CartPrdctsTrackModel] processed by converter type [bean]
12:01:54,165 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.ViewersTrack.CompanyProfileTrackModel] processed by converter type [bean]
12:01:54,167 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.WorkFlowTransaction.WorkFlowTransactionPojoTaskList] processed by converter type [bean]
12:01:55,496 INFO  [org.directwebremoting.spring.DwrAnnotationPostProcessor] (ServerService Thread Pool -- 108) Detected candidate bean [/dashBoard.do]. Remoting using Dashboard

DWR Configurations in jboss-as-spring-mvc-context.xml

    <mvc:resources mapping="/dwr/**" location="/"/>

    <dwr:annotation-config id="springdwr" />
    <dwr:annotation-scan base-package="com.prospecta.mdo2.hib.hibMODEL" scanDataTransferObject="true" scanRemoteProxy="true" />
    <dwr:url-mapping />
    <dwr:controller id="dwrController" debug="false">
        <dwr:config-param name="activeReverseAjaxEnabled" value="true" />
        <dwr:config-param name="scriptCompressed" value="true" />
        <dwr:config-param name="fileUploadMaxBytes" value="10485760" />
        <dwr:config-param name="allowScriptTagRemoting" value="true" />
    </dwr:controller>
   
    <bean id="viewMappings" class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">
        <property name="alwaysUseFullPath" value="true" />
        <property name="urlMap">
             <map>
                  <entry key="/dwr/**/*" value-ref="dwrController" />
             </map>
        </property>
    </bean>    


web.xml :

    <servlet-mapping>
        <servlet-name>jboss-as-kitchensink</servlet-name>
        <url-pattern>/dwr/*</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
        <servlet-name>jboss-as-kitchensink</servlet-name>
        <url-pattern>/</url-pattern>
    </servlet-mapping>

    <servlet>
        <servlet-name>jboss-as-kitchensink</servlet-name>
        <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
        <init-param>
            <param-name>contextConfigLocation</param-name>
            <param-value>/WEB-INF/jboss-as-spring-mvc-context.xml</param-value>
        </init-param>
        <load-on-startup>2</load-on-startup>
    </servlet>
Please suggest any changes required to be made in my application.

Regards,
Amit Sharma



To unsubscribe from DWR Request throwing error : No request handling method with name X in class Y, click here.
NAML



Reply | Threaded
Open this post in threaded view
|

Re: DWR Request throwing error : No request handling method with name X in class Y

amit.sharma
In reply to this post by amit.sharma
Hi,

Sorry for the delayed response I wasnt well so couldn't work for last few days.

David, I was building a war for you and found that with the exact same configuration and same project structure I was able to call DWR methods successfully. 
Then I realized that the is something wrong with my application.
So I opted for debugging the spring jar and guess what!! Got the solution.

Actually dispatcher servlet was not able to send the request to DWR Controller. This was due to the incomplete mapping done in spring controllers ie. missing @requestmapping annotation and its parameters.

Once i added the required params It starts working like a charm.

Thank you guys for your patience and guidance.



On Wednesday, 27 November 2013 7:29 PM, Amit Sharma <[hidden email]> wrote:
Yes exactly..
This is to pass it to the root directory of the application.


On Tuesday, 26 November 2013 9:54 PM, Mike Wilson [via DWR] <[hidden email]> wrote:
Hi guys,
 
David is better versed in the Spring integration so this may be totally off, but what is the purpose of:
    <mvc:resources mapping="/dwr/**" location="/"/>
It looks like this will direct all DWR requests away to static resource handling?
 
Best regards
Mike
 
Amit Sharma wrote:
Hi,
I am using from 3.2, DWR 3 rc2, JBOSS 7.

We are facing a problem while making DWR call.
Server shows log :

No request handling method with name 'loadWorkListData' in class [com.prospecta.mdo2.view.controller.dynamicDashboards.Dashboard]

com.prospecta.mdo2.view.controller.dynamicDashboards.Dashboard is Spring servlet (ie extends MultiActionController).

We added @RemoteProxy to this class and @RemoteMethod to one of its methods(loadWorkListData).

Deployment shows following DWR related logs.

12:02:12,251 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) [engine.js] mapped to dwrController
12:02:12,251 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) [util.js] mapped to dwrController
12:02:12,251 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Interface beans and calls (/interface/*, /call/*) mapped to dwrController
12:02:12,251 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) /test/* has been mapped to dwrController
12:02:12,251 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) /download/* has been mapped to dwrController
12:02:12,254 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/util.js] onto handler of type [class org.directwebremoting.spring.DwrController]
12:02:12,254 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/jsonrpc/**] onto handler of type [class org.directwebremoting.spring.DwrController]
12:02:12,254 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/download/**] onto handler of type [class org.directwebremoting.spring.DwrController]
12:02:12,254 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/data/Store.js] onto handler of type [class org.directwebremoting.spring.DwrController]
12:02:12,254 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/engine.js] onto handler of type [class org.directwebremoting.spring.DwrController]
12:02:12,255 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/test/**] onto handler of type [class org.directwebremoting.spring.DwrController]
12:02:12,255 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/interface/**] onto handler of type [class org.directwebremoting.spring.DwrController]
12:02:12,255 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/call/**] onto handler of type [class org.directwebremoting.spring.DwrController]
12:02:12,255 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/jsonp/**] onto handler of type [class org.directwebremoting.spring.DwrController]
12:02:12,259 INFO  [org.springframework.web.servlet.handler.SimpleUrlHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/interface.js] onto handler 'dwrController'
12:02:12,259 INFO  [org.springframework.web.servlet.handler.SimpleUrlHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/engine.js] onto handler 'dwrController'
12:02:12,259 INFO  [org.springframework.web.servlet.handler.SimpleUrlHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/interface/**] onto handler 'dwrController'
12:02:12,260 INFO  [org.springframework.web.servlet.handler.SimpleUrlHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/call/**] onto handler 'dwrController'

-----------------------------------------------------------------------------------------------------------------------------------------
12:01:54,054 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.Auctions.AuctionDescModel] processed by converter type [bean]
12:01:54,063 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.Auctions.AuctionHeaderModel$AuctionStatus] processed by converter type [bean]
12:01:54,065 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.Auctions.AuctionHeaderModel$AuctionViewSettings] processed by converter type [bean]
12:01:54,066 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.Auctions.AuctionHeaderModel] processed by converter type [bean]
12:01:54,068 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.Auctions.AuctionInviteesModel] processed by converter type [bean]
12:01:54,070 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.Auctions.AuctionItemBiddingsModel] processed by converter type [bean]
12:01:54,072 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.Auctions.AuctionItemsModel] processed by converter type [bean]
12:01:54,075 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.Auctions.AuctionRulesModel] processed by converter type [bean]
12:01:54,123 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.mdoNotification.MdoNotificationModel] processed by converter type [bean]
12:01:54,154 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.PublicPrivateRuleManager.RuleHandlerModel] processed by converter type [bean]
12:01:54,155 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.StatusFlow.StatusflowControllerModel$ObjectStatus] processed by converter type [bean]
12:01:54,157 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.TaskComments.TaskCommentsModel] processed by converter type [bean]
12:01:54,159 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.testModel.DwrModelTest] processed by converter type [bean]
12:01:54,160 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.USERAuthentication.USERAUthenticationModel] processed by converter type [bean]
12:01:54,162 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.Users.UserMdoModel] processed by converter type [bean]
12:01:54,164 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.ViewersTrack.CartPrdctsTrackModel] processed by converter type [bean]
12:01:54,165 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.ViewersTrack.CompanyProfileTrackModel] processed by converter type [bean]
12:01:54,167 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.WorkFlowTransaction.WorkFlowTransactionPojoTaskList] processed by converter type [bean]
12:01:55,496 INFO  [org.directwebremoting.spring.DwrAnnotationPostProcessor] (ServerService Thread Pool -- 108) Detected candidate bean [/dashBoard.do]. Remoting using Dashboard

DWR Configurations in jboss-as-spring-mvc-context.xml

    <mvc:resources mapping="/dwr/**" location="/"/>

    <dwr:annotation-config id="springdwr" />
    <dwr:annotation-scan base-package="com.prospecta.mdo2.hib.hibMODEL" scanDataTransferObject="true" scanRemoteProxy="true" />
    <dwr:url-mapping />
    <dwr:controller id="dwrController" debug="false">
        <dwr:config-param name="activeReverseAjaxEnabled" value="true" />
        <dwr:config-param name="scriptCompressed" value="true" />
        <dwr:config-param name="fileUploadMaxBytes" value="10485760" />
        <dwr:config-param name="allowScriptTagRemoting" value="true" />
    </dwr:controller>
   
    <bean id="viewMappings" class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">
        <property name="alwaysUseFullPath" value="true" />
        <property name="urlMap">
             <map>
                  <entry key="/dwr/**/*" value-ref="dwrController" />
             </map>
        </property>
    </bean>    


web.xml :

    <servlet-mapping>
        <servlet-name>jboss-as-kitchensink</servlet-name>
        <url-pattern>/dwr/*</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
        <servlet-name>jboss-as-kitchensink</servlet-name>
        <url-pattern>/</url-pattern>
    </servlet-mapping>

    <servlet>
        <servlet-name>jboss-as-kitchensink</servlet-name>
        <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
        <init-param>
            <param-name>contextConfigLocation</param-name>
            <param-value>/WEB-INF/jboss-as-spring-mvc-context.xml</param-value>
        </init-param>
        <load-on-startup>2</load-on-startup>
    </servlet>
Please suggest any changes required to be made in my application.

Regards,
Amit Sharma



To unsubscribe from DWR Request throwing error : No request handling method with name X in class Y, click here.
NAML




Reply | Threaded
Open this post in threaded view
|

Re: DWR Request throwing error : No request handling method with name X in class Y

Mike Wilson
Administrator
I'm glad you sorted it out and thanks for reporting back.
 
Best regards
Mike
 
Amit Sharma wrote:
Hi,

Sorry for the delayed response I wasnt well so couldn't work for last few days.

David, I was building a war for you and found that with the exact same configuration and same project structure I was able to call DWR methods successfully. 
Then I realized that the is something wrong with my application.
So I opted for debugging the spring jar and guess what!! Got the solution.

Actually dispatcher servlet was not able to send the request to DWR Controller. This was due to the incomplete mapping done in spring controllers ie. missing @requestmapping annotation and its parameters.

Once i added the required params It starts working like a charm.

Thank you guys for your patience and guidance.



On Wednesday, 27 November 2013 7:29 PM, Amit Sharma <[hidden email]> wrote:
Yes exactly..
This is to pass it to the root directory of the application.


On Tuesday, 26 November 2013 9:54 PM, Mike Wilson [via DWR] <[hidden email]> wrote:
Hi guys,
 
David is better versed in the Spring integration so this may be totally off, but what is the purpose of:
    <mvc:resources mapping="/dwr/**" location="/"/>
It looks like this will direct all DWR requests away to static resource handling?
 
Best regards
Mike
 
Amit Sharma wrote:
Hi,
I am using from 3.2, DWR 3 rc2, JBOSS 7.

We are facing a problem while making DWR call.
Server shows log :

No request handling method with name 'loadWorkListData' in class [com.prospecta.mdo2.view.controller.dynamicDashboards.Dashboard]

com.prospecta.mdo2.view.controller.dynamicDashboards.Dashboard is Spring servlet (ie extends MultiActionController).

We added @RemoteProxy to this class and @RemoteMethod to one of its methods(loadWorkListData).

Deployment shows following DWR related logs.

12:02:12,251 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) [engine.js] mapped to dwrController
12:02:12,251 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) [util.js] mapped to dwrController
12:02:12,251 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Interface beans and calls (/interface/*, /call/*) mapped to dwrController
12:02:12,251 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) /test/* has been mapped to dwrController
12:02:12,251 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) /download/* has been mapped to dwrController
12:02:12,254 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/util.js] onto handler of type [class org.directwebremoting.spring.DwrController]
12:02:12,254 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/jsonrpc/**] onto handler of type [class org.directwebremoting.spring.DwrController]
12:02:12,254 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/download/**] onto handler of type [class org.directwebremoting.spring.DwrController]
12:02:12,254 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/data/Store.js] onto handler of type [class org.directwebremoting.spring.DwrController]
12:02:12,254 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/engine.js] onto handler of type [class org.directwebremoting.spring.DwrController]
12:02:12,255 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/test/**] onto handler of type [class org.directwebremoting.spring.DwrController]
12:02:12,255 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/interface/**] onto handler of type [class org.directwebremoting.spring.DwrController]
12:02:12,255 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/call/**] onto handler of type [class org.directwebremoting.spring.DwrController]
12:02:12,255 INFO  [org.directwebremoting.spring.DwrHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/jsonp/**] onto handler of type [class org.directwebremoting.spring.DwrController]
12:02:12,259 INFO  [org.springframework.web.servlet.handler.SimpleUrlHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/interface.js] onto handler 'dwrController'
12:02:12,259 INFO  [org.springframework.web.servlet.handler.SimpleUrlHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/engine.js] onto handler 'dwrController'
12:02:12,259 INFO  [org.springframework.web.servlet.handler.SimpleUrlHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/interface/**] onto handler 'dwrController'
12:02:12,260 INFO  [org.springframework.web.servlet.handler.SimpleUrlHandlerMapping] (ServerService Thread Pool -- 108) Mapped URL path [/call/**] onto handler 'dwrController'

-----------------------------------------------------------------------------------------------------------------------------------------
12:01:54,054 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.Auctions.AuctionDescModel] processed by converter type [bean]
12:01:54,063 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.Auctions.AuctionHeaderModel$AuctionStatus] processed by converter type [bean]
12:01:54,065 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.Auctions.AuctionHeaderModel$AuctionViewSettings] processed by converter type [bean]
12:01:54,066 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.Auctions.AuctionHeaderModel] processed by converter type [bean]
12:01:54,068 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.Auctions.AuctionInviteesModel] processed by converter type [bean]
12:01:54,070 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.Auctions.AuctionItemBiddingsModel] processed by converter type [bean]
12:01:54,072 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.Auctions.AuctionItemsModel] processed by converter type [bean]
12:01:54,075 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.Auctions.AuctionRulesModel] processed by converter type [bean]
12:01:54,123 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.mdoNotification.MdoNotificationModel] processed by converter type [bean]
12:01:54,154 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.PublicPrivateRuleManager.RuleHandlerModel] processed by converter type [bean]
12:01:54,155 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.StatusFlow.StatusflowControllerModel$ObjectStatus] processed by converter type [bean]
12:01:54,157 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.TaskComments.TaskCommentsModel] processed by converter type [bean]
12:01:54,159 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.testModel.DwrModelTest] processed by converter type [bean]
12:01:54,160 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.USERAuthentication.USERAUthenticationModel] processed by converter type [bean]
12:01:54,162 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.Users.UserMdoModel] processed by converter type [bean]
12:01:54,164 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.ViewersTrack.CartPrdctsTrackModel] processed by converter type [bean]
12:01:54,165 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.ViewersTrack.CompanyProfileTrackModel] processed by converter type [bean]
12:01:54,167 INFO  [org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner] (ServerService Thread Pool -- 108) Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.WorkFlowTransaction.WorkFlowTransactionPojoTaskList] processed by converter type [bean]
12:01:55,496 INFO  [org.directwebremoting.spring.DwrAnnotationPostProcessor] (ServerService Thread Pool -- 108) Detected candidate bean [/dashBoard.do]. Remoting using Dashboard

DWR Configurations in jboss-as-spring-mvc-context.xml

    <mvc:resources mapping="/dwr/**" location="/"/>

    <dwr:annotation-config id="springdwr" />
    <dwr:annotation-scan base-package="com.prospecta.mdo2.hib.hibMODEL" scanDataTransferObject="true" scanRemoteProxy="true" />
    <dwr:url-mapping />
    <dwr:controller id="dwrController" debug="false">
        <dwr:config-param name="activeReverseAjaxEnabled" value="true" />
        <dwr:config-param name="scriptCompressed" value="true" />
        <dwr:config-param name="fileUploadMaxBytes" value="10485760" />
        <dwr:config-param name="allowScriptTagRemoting" value="true" />
    </dwr:controller>
   
    <bean id="viewMappings" class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">
        <property name="alwaysUseFullPath" value="true" />
        <property name="urlMap">
             <map>
                  <entry key="/dwr/**/*" value-ref="dwrController" />
             </map>
        </property>
    </bean>    


web.xml :

    <servlet-mapping>
        <servlet-name>jboss-as-kitchensink</servlet-name>
        <url-pattern>/dwr/*</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
        <servlet-name>jboss-as-kitchensink</servlet-name>
        <url-pattern>/</url-pattern>
    </servlet-mapping>

    <servlet>
        <servlet-name>jboss-as-kitchensink</servlet-name>
        <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
        <init-param>
            <param-name>contextConfigLocation</param-name>
            <param-value>/WEB-INF/jboss-as-spring-mvc-context.xml</param-value>
        </init-param>
        <load-on-startup>2</load-on-startup>
    </servlet>
Please suggest any changes required to be made in my application.

Regards,
Amit Sharma



To unsubscribe from DWR Request throwing error : No request handling method with name X in class Y, click here.
NAML