1 Reply Latest reply on Oct 18, 2010 3:20 PM by Rasa Here

    NoSuchBeanDefinitionException: No bean named

    Rasa Here Novice

      Hi,

       

      I don't know whether this is a classpath issue but i am getting an error while calling bean using SPRING Framework. The same files is working fine in jboss 4.0.x version and it is giving error in 5.1.1. The main diff of the package is  I removed the classpath entry which was there in the *.jar/META-INF/manifest.mf files. Please let me know your thoughts

       

       

      Unexpected error in the HttpMRServlet of MR org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'MR' is defined            at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:340)            at org.springframework.beans.factory.support.AbstractBeanFactory.getMergedBeanDefinition(AbstractBeanFactory.java:906)            at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:242)            at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:161)            at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:642)            at com.sdsj.src.mr.util.SpringBeanFactory.getBean(SpringBeanFactory.java:31)            at com.sdsj.src.mr.transport.http.HttpMRServlet.doPost(HttpMRServlet.java:56)            at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)            at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)            at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)            at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)            at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)            at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)            at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)            at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)            at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)            at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)            at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)            at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)            at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)            at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)            at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)            at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)            at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)            at java.lang.Thread.run(Thread.java:619)