View Poll Results: DWR-Spring annotation Failed

Voters
0. You may not vote on this poll
  • 123

    0 0%
  • 32

    0 0%
  • 123

    0 0%
  • 123

    0 0%
Multiple Choice Poll.
Results 1 to 4 of 4

Thread: DWR-Spring annotation Failed

  1. #1
    Join Date
    May 2012
    Posts
    2

    Default DWR-Spring annotation Failed

    i'm going to intergrate dwr to spring-based project, zero-config files. all componet and controller are marked with annotation.
    here is the problem:
    if a class only annotated by dwr types like @RemoteProxy it works well
    while the class is annotated using @Controller, the @RemoteProxy seems doesn't work.(cann't see anything in localhost:8080/myApp/dwr/)

    here goes my dwr configration, is there any problems?

    -----------------------------------
    in web.xml , only add a sevlet-mapping of dwr/* to springdispatcher.

    here is spring-dwr.xml:

    <?xml version="1.0" encoding="UTF-8"?>
    <beans xmlns="http://www.springframework.org/schema/beans"
    xmlns:context="http://www.springframework.org/schema/context"
    xmlns:dwr="http://www.directwebremoting.org/schema/spring-dwr"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schem...-beans-3.0.xsd
    http://www.springframework.org/schema/context http://www.springframework.org/schem...ontext-3.0.xsd
    http://www.directwebremoting.org/schema/spring-dwr http://www.directwebremoting.org/schema/spring-dwr-3.0.xsd">

    <dwr:configuration />
    <dwr:controller id="dwrController" debug="true" />
    <bean class="org.springframework.web.servlet.handler.Sim pleUrlHandlerMapping">
    <property name="alwaysUseFullPath" value="true"/>
    <property name="mappings">
    <props>
    <prop key="/dwr/**/*">dwrController</prop>
    </props>
    </property>
    </bean>
    <dwr:annotation-scan base-package="com" scanDataTransferObject="true" scanRemoteProxy="true"/>


    </beans>

  2. #2
    Join Date
    Aug 2006
    Location
    Arequipa-Peru / South America
    Posts
    2,791

    Default

    Hello

    i'm going to intergrate dwr to spring-based project, zero-config files. all componet and controller are marked with annotation.
    I never couldn't get a successful integration about DWR with Spring Core 3 working with only annotations for both.

    I suggest you strongly move to jQuery.

    BTW: Next time use code tags
    - Manuel Jordan

    Kill Your Pride, Share Your Knowledge With All
    The Fear Of The LORD Is The Beginning Of Knowledge, But Fools Despise Wisdom And Discipline. Proverbs 1:7

    Blog


    Technical Reviewer of Apress

    • Pro SpringSource dm Server
    • Spring Enterprise Recipes: A Problem-Solution Approach
    • Spring Recipes: A Problem-Solution Approach, 2nd Edition
    • Pro Spring Integration
    • Pro Spring Batch
    • Pro Spring 3
    • Pro Spring MVC: With Web Flow
    • Pro Spring Security

  3. #3
    Join Date
    May 2012
    Posts
    2

    Default

    Quote Originally Posted by dr_pompeii View Post
    Hello


    I never couldn't get a successful integration about DWR with Spring Core 3 working with only annotations for both.

    I suggest you strongly move to jQuery.

    BTW: Next time use code tags

    thank you very much! ajax functions of jquery or Ext also does it well. i'm confused why my boss like this and without any configration files....

  4. #4
    Join Date
    Aug 2006
    Location
    Arequipa-Peru / South America
    Posts
    2,791

    Default

    thank you very much!
    You're welcome

    i'm confused why my boss like this and without any configration files....
    Time ago I used to work with DWR + Spring but for Spring 2.5.x series, there, I dont have none problems and DWR did an excellent job. In such days all was based in xml configurations, now is better work with Annotations, but sadly the integration not exists in a 100%

    I have found it an example about Spring 3 + DWR working both with annotations, but when I do the same not work, well not same in a 100% because I include SWF and Spring Security.

    Since there I left DWR and moved to work with jQuery
    - Manuel Jordan

    Kill Your Pride, Share Your Knowledge With All
    The Fear Of The LORD Is The Beginning Of Knowledge, But Fools Despise Wisdom And Discipline. Proverbs 1:7

    Blog


    Technical Reviewer of Apress

    • Pro SpringSource dm Server
    • Spring Enterprise Recipes: A Problem-Solution Approach
    • Spring Recipes: A Problem-Solution Approach, 2nd Edition
    • Pro Spring Integration
    • Pro Spring Batch
    • Pro Spring 3
    • Pro Spring MVC: With Web Flow
    • Pro Spring Security

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •