Integrating DWR3 and Spring3

Exceptions while integrating DWR3 and Spring3.X annotation based MVC:

Following are the solutions for the Exception commonly occur while integration:

  1. “org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Cannot locate BeanDefinitionParser for element [annotation-scan]“.

Solution:

  • Don’t use  DWR with version number  DWR 3.0M1(available in Maven Repository)

Content of this website has been moved to new location please Clicke Here…  to continue reading in the new location.

Sorry for the inconvenience. Please click the above link to continue to read.This is all because the content has been moved to the new website www.dailypaper.in/technical/.

Please follow me in the new website www.dailypaper.in/technical for more technical stuff.

 2.If you are trying to keep DWR and Spring Configuration in the same xml file there may be a chance to occur duplicate name found Exception.
 
org.springframework.beans.factory.BeanCreationException:
Error creating bean with name ‘DwrAnnotationURLMapper’:
Initialization of bean failed;
nested exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name ‘dwrController’:
Invocation of init method failed;
nested exception is java.lang.IllegalArgumentException:
java.lang.IllegalArgumentException:
Duplicate name found

 Solution: keep separate dwr.xml and don’t import into spring-config.xml file instead configure in web.xml as shown below

Content of this website has been moved to new location please Clicke Here…  to continue reading in the new location.

Sorry for the inconvenience. Please click the above link to continue to read.This is all because the content has been moved to the new website www.dailypaper.in/technical/.

Please follow me in the new website www.dailypaper.in/technical for more technical stuff.

 
3. No adapter for handler [org.directwebremoting.spring.DwrController@1b3f577]: Does your handler implement a supported interface like Controller?

Solution: keep the following line of code in dwr.xml file

Content of this website has been moved to new location please Clicke Here…  to continue reading in the new location.

Sorry for the inconvenience. Please click the above link to continue to read.This is all because the content has been moved to the new website www.dailypaper.in/technical/.

Please follow me in the new website www.dailypaper.in/technical for more technical stuff.

About these ads

8 comments on “Integrating DWR3 and Spring3

  1. Sri says:

    great artical u saved lots of time.

  2. Ryan says:

    Can’t download DWR 3.0.0-rc3-SNAPSHOT from sonatype.

    Error:
    Missing artifact org.directwebremoting:dwr:jar:3.0.0-rc3-SNAPSHOT:compile

    • This is the error your getting right,
      Missing artifact

      then,Your not using the repository. Please keep the below code in your pom file

      repository code

      If still having the problems post your pom file content.

      • ryanlsaplan says:

        Hi Mohan,

        Sorry I forgot to thank you on your post. And thanks for the reply.

        I’ve put both, the dependency and the repositories tags but I’m still getting the missing artifact error. I can’t get you the pom right now since it is holiday in our country and weekend is coming after. I’ll post the pom when I get back to office.

        But as a workaround, I downloaded the jar and put it in my .m2 directory. When I verified that my error was gone for annotation-scan, I contacted our admin to put the jar in our sonatype.

        Thanks,
        Ryan

  3. Sravan Kumar says:

    thanx fro info

  4. Sravan Kumar says:

    thanx for info

  5. Please refer the below post if your still trying to integrate DWR and SPRING MVC

    Ajax request processing using Spring MVC 3.X

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s