1 Reply Latest reply on Jul 8, 2011 5:26 AM by Jean-Frederic Clere

    PLEASE HELP ME FRIENDS TO SOLVE THIS ERROR.? ? ?

    Priyanka Kulathilaka Newbie
       
      2011-07-08 01:24:13.020:INFO::jetty-6.1.24
      2011-07-08 01:24:13.245:INFO::No Transaction manager found - if your webapp requires one, please configure one.
      2011-07-08 01:24:13.632:INFO:/Spring3HibernateMaven:Initializing Spring FrameworkServlet 'spring'
      ERROR  initServletBean, Context initialization failed
      org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping': Initialization of bean failed; nested exception is java.lang.IllegalStateException: Cannot map handler [contactController] to URL path [/add]: There is already handler [net.viralpatel.contact.controller.ContactController@911fb5] mapped.
      
            at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:527)
            at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
            at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
      Caused by: java.lang.IllegalStateException: Cannot map handler [contactController] to URL path [/add]: There is already handler [net.viralpatel.contact.controller.ContactController@911fb5] mapped.
            at org.springframework.web.servlet.handler.AbstractUrlHandlerMapping.registerHandler(AbstractUrlHandlerMapping.java:389)
            at org.springframework.web.servlet.handler.AbstractUrlHandlerMapping.registerHandler(AbstractUrlHandlerMapping.java:361)
            at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:394)
            at org.springframework.bean2011-07-08 01:24:16.063:WARN:/Spring3HibernateMaven:unavailable
      org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping': Initialization of bean failed; nested exception is java.lang.IllegalStateException: Cannot map handler [contactController] to URL path [/add]: There is already handler [net.viralpatel.contact.controller.ContactController@911fb5] mapped.
      
            at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:527)
            at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
            at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:286)
            at org.springframework.web.servlet.DispatcherServlet.createDefaultStrategy(DispatcherServlet.java:679)
            
            ... 65 more
      2011-07-08 01:24:16.091:INFO::Started SelectChannelConnector@0.0.0.0:8080
      [INFO] Started Jetty Server