• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

javax.servlet.ServletException: No adapter for handler

 
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi ,

I am suvendu , I am facing difficulty while executing the problem saying javax.servlet.ServletException: No adapter for handler in the following code.

My login controller class



I made 2 spring config files like applicationContext-dao-jdbc.xml,applicationContext-web.xml and they are as follows

applicationContext-dao-jdbc.xml--->


applicationContext-web.xml--->



but while executing it raises exception saying javax.servlet.ServletException: No adapter for handler

I am showing piece of code of the exception



and my servlet config file is




Anyone can make me understand about this issue. I am confusing about the HandlerAdapter issue. why we need HandlerAdapter in this case (i.e while using annotation) .
 
Ranch Hand
Posts: 645
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
since you are using annotation mapping you dont need following lines, try removing those from config file.


<bean class="org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter"/>

<bean id="/login.spring" class="com.jitun.login.web.Login" />

 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic