• 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:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

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" />

 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic