org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from file [D:/ProjectItrack4.0/iTrack/src/main/webapp/WEB-INF/spring/webmvc-config.xml]; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'org.springframework.web.servlet.handler.SimpleUrlHandlerMapping#iTrack#src/main/webapp/WEB-INF/spring/webmvc-config.xml#20' is defined

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Spring JIRA by Palam Garg, 1 year ago
Unexpected exception parsing XML document from file [D:/ProjectItrack4.0/iTrack/src/main/webapp/WEB-INF/spring/webmvc-config.xml]; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'org.springframework.web.servlet.handler.SimpleUrlHandlerMapping#iTrack#src/main/webapp/WEB-INF/spring/webmvc-config.xml#20' is defined
via Spring JIRA by Palam Garg, 1 year ago
Unexpected exception parsing XML document from file [D:/ProjectItrack4.0/iTrack/src/main/webapp/WEB-INF/spring/webmvc-config.xml]; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'org.springframework.web.servlet.handler.SimpleUrlHandlerMapping#iTrack#src/main/webapp/WEB-INF/spring/webmvc-config.xml#20' is defined
via Spring JIRA by Mike Youngstrom, 1 year ago
Unexpected exception parsing XML document from file [C:/temp/tempworkspace/test-handler2/src/main/webapp/WEB-INF/spring/app-config.xml]; nested exception is java.lang.RuntimeException: Failed to load class from classpath
via Spring JIRA by Mike Youngstrom, 1 year ago
Unexpected exception parsing XML document from file [C:/temp/tempworkspace/test-handler2/src/main/webapp/WEB-INF/spring/app-config.xml]; nested exception is java.lang.RuntimeException: Failed to load class from classpath
via Spring JIRA by Mike Youngstrom, 1 year ago
Unexpected exception parsing XML document from file [C:/temp/temp-stack-workspace-3/test-parse-error/src/main/webapp/WEB-INF/spring/app-config.xml]; nested exception is java.lang.ClassCastException: org.springframework.context.annotation.ScopedProxyMode cannot be cast to org.springframework.context.annotation.ScopedProxyMode
via Spring JIRA by Mike Youngstrom, 1 year ago
Unexpected exception parsing XML document from file [C:/temp/temp-stack-workspace-3/test-parse-error/src/main/webapp/WEB-INF/spring/app-config.xml]; nested exception is java.lang.ClassCastException: org.springframework.context.annotation.ScopedProxyMode cannot be cast to org.springframework.context.annotation.ScopedProxyMode
org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from file [D:/ProjectItrack4.0/iTrack/src/main/webapp/WEB-INF/spring/webmvc-config.xml]; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'org.springframework.web.servlet.handler.SimpleUrlHandlerMapping#iTrack#src/main/webapp/WEB-INF/spring/webmvc-config.xml#20' is defined
at org.springframework.beans.factory.xml.NamespaceHandlerSupport.parse(NamespaceHandlerSupport.java:73)
at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1335)
at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1325)
at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:136)
at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:93)
at org.springframework.ide.eclipse.beans.core.internal.model.BeansConfig$2.registerBeanDefinitions(BeansConfig.java:351)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:390)
at org.springframework.ide.eclipse.beans.core.internal.model.BeansConfig$2.loadBeanDefinitions(BeansConfig.java:338)
at org.springframework.ide.eclipse.beans.core.internal.model.BeansConfig$3.call(BeansConfig.java:380)
at org.springframework.ide.eclipse.beans.core.internal.model.BeansConfig$3.call(BeansConfig.java:1)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Know the solutions? Share your knowledge to help other developers to debug faster.