Announcement Announcement Module
Collapse
No announcement yet.
BeanDefinitionParsingException: by GreenBeans Example Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • BeanDefinitionParsingException: by GreenBeans Example

    Hello,

    I'm new to Spring and I tried the example

    Green Beans: Getting Started with Spring MVC
    http://blog.springsource.org/2011/01...ng-mvc/http://

    At the moment I'm at the point where I set up the basic project and I was trying to run it. But I get the following error


    type Exception report

    message

    description The server encountered an internal error () that prevented it from fulfilling this request.

    exception

    javax.servlet.ServletException: Servlet.init() for servlet appServlet threw exception
    org.apache.catalina.authenticator.AuthenticatorBas e.invoke(AuthenticatorBase.java:472)
    org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:98)
    org.apache.catalina.valves.AccessLogValve.invoke(A ccessLogValve.java:927)
    com.springsource.insight.collection.tcserver.reque st.HttpRequestOperationCollectionValve.traceNextVa lve(HttpRequestOperationCollectionValve.java:116)
    com.springsource.insight.collection.tcserver.reque st.HttpRequestOperationCollectionValve.invoke(Http RequestOperationCollectionValve.java:98)
    org.apache.catalina.connector.CoyoteAdapter.servic e(CoyoteAdapter.java:407)
    org.apache.coyote.http11.AbstractHttp11Processor.p rocess(AbstractHttp11Processor.java:999)
    org.apache.coyote.AbstractProtocol$AbstractConnect ionHandler.process(AbstractProtocol.java:565)
    org.apache.tomcat.util.net.JIoEndpoint$SocketProce ssor.run(JIoEndpoint.java:307)
    java.util.concurrent.ThreadPoolExecutor.runWorker( ThreadPoolExecutor.java:1145)
    java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:615)
    java.lang.Thread.run(Thread.java:722)
    root cause

    org.springframework.beans.factory.parsing.BeanDefi nitionParsingException: Configuration problem: Unable to locate Spring NamespaceHandler for XML schema namespace [http://www.springframework.org/schema/mvc]
    Offending resource: ServletContext resource [/WEB-INF/spring/appServlet/servlet-context.xml]

    ....
    I have been locking for this exception but couldn't find something realy helpful.
    Mybe someone has a idear where the problem could be.

  • #2
    HI, i think you missed "spring-webmvc-<version>.jar" file in classpath..

    Comment


    • #3
      I have the jar spring-webmvc-2.5.2-20080220-410.jar in the folder
      WebContent/WEB-INF/lib

      I think this should be the correct one

      Comment

      Working...
      X