reset password
Author Message
kjadhav
Posts: 12
Posted 12:02 Jun 05, 2009 |

I have written controller that will display the rss xml in console but I get this error and it never reaches to the controller. I get this error,

2009-06-05 11:57:01,351 ERROR ExceptionResolver: Exception caused by user i0001
2009-06-05 11:57:01,351 ERROR ExceptionResolver: No adapter for handler [csns.spring.controller.blog.BlogFeedCreatorController@1f55cae]: Does your handler implement a supported interface like Controller?
2009-06-05 11:57:01,352 ERROR ExceptionResolver: javax.servlet.ServletException: No adapter for handler [csns.spring.controller.blog.BlogFeedCreatorController@1f55cae]: Does your handler implement a supported interface like Controller?

    at org.springframework.web.servlet.DispatcherServlet.getHandlerAdapter(DispatcherServlet.java:1091)
    at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:874)
    at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:809)
    at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:571)

I have done mapping in the spring-servlet.xml as

    <bean name="/blog/viewFeed.html"
        class="csns.spring.controller.blog.BlogFeedCreatorController">
        <property name="blogDao" ref="blogDao" />
        <property name="blogEntryDao" ref="blogEntryDao" />
    </bean>

Does anyone know why this problem arises?

 

 

kjadhav
Posts: 12
Posted 14:20 Jun 05, 2009 |

thank you got it. Problem was I had not extended abstractcontroller.