Announcement Announcement Module
Collapse
No announcement yet.
Configuration problem: Unable to locate NamespaceHandler Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Configuration problem: Unable to locate NamespaceHandler

    Apache/tomcat is complaining about my Web Flow configuration file:

    Code:
    INFO: Initializing Spring FrameworkServlet 'onlineEndr'
    Jan 25, 2008 2:25:21 PM org.apache.catalina.core.ApplicationContext log
    SEVERE: StandardWrapper.Throwable
    org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Unable to locate NamespaceHandler for namespace [http://www.springframework.org/schema/webflow-config]
    Offending resource: ServletContext resource [/WEB-INF/webflow-config.xml]
    I'm using spring-webflow-2.0-m3.zip

    the /WEB-INF/webflow-config.xml is:

    Code:
    <?xml version="1.0" encoding="UTF-8"?>
    <beans xmlns="http://www.springframework.org/schema/beans"
    	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    	xmlns:flow="http://www.springframework.org/schema/webflow-config"
    	xsi:schemaLocation="
               http://www.springframework.org/schema/beans
               http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
               http://www.springframework.org/schema/webflow-config
               http://www.springframework.org/schema/webflow-config/spring-webflow-config-1.0.xsd">
               
               
    	<!-- Launches new flow executions and resumes existing executions. -->
    	<flow:executor id="flowExecutor" registry-ref="flowDefinitionRegistry" />
    
    	<!-- Creates the registry of flow definitions for this application -->
    	<flow:registry id="flowDefinitionRegistry">
    		<flow:location path="/WEB-INF/flows/**-flow.xml" />
    	</flow:registry>
    	
    
    </beans>
    I'm not familiar with namespace resolution, but this doesn't look like a Spring related problem - or is it?

    Thanks for any help.

  • #2
    Hi,

    you should check if you have the spring-webflow jars inside your classpath. Spring has a extension point for namespaces handlers. You can plug-in your own namespaces handler, to allow custom elements inside the spring applicationcontext configuration.
    Spring Web Flow provides namespace handlers for the configuration of the Spring Web Flow subsystem. They are located inside spring-webflow.jar and must be available inside the classpath.

    Best rgds
    Agim

    Comment


    • #3
      Thanks.

      I added spring-webflow-2.0-m3.jar into my war file and I don't get that error. Now I get:

      Code:
      SEVERE: Servlet /onlineEndr threw load() exception
      org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Cannot locate BeanDefinitionParser for element [executor]
      Offending resource: ServletContext resource [/WEB-INF/webflow-config.xml]
      Thanks again.

      webflow-config.xml:

      Code:
      <?xml version="1.0" encoding="UTF-8"?>
      <beans xmlns="http://www.springframework.org/schema/beans"
      	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      	xmlns:flow="http://www.springframework.org/schema/webflow-config"
      	xsi:schemaLocation="
                 http://www.springframework.org/schema/beans
                 http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
                 http://www.springframework.org/schema/webflow-config
                 http://www.springframework.org/schema/webflow-config/spring-webflow-config-1.0.xsd">
                 
                 
      	<!-- Launches new flow executions and resumes existing executions. -->
      	<flow:executor id="flowExecutor" registry-ref="flowDefinitionRegistry" />
      
      	<!-- Creates the registry of flow definitions for this application -->
      	<flow:registry id="flowDefinitionRegistry">
      		<flow:location path="/WEB-INF/flows/**-flow.xml" />
      	</flow:registry>
      	
      </beans>

      Comment


      • #4
        jar files needed

        I went back to the older version of web flow and now I can access the start page of my web app.

        for newbies like me here are the jar files you need:

        spring-webflow-1.0.5.jar needs to be on your classpath when you compile and build. It also needs to be in your WAR file - your web app needs it at runtime.

        spring-binding-1.0.5.jar needs to be in your WAR file - your web app needs it at runtime. (It doesn't seem to be needed at compile and build time - I could be wrong about this.)

        I'm using Spring 2.5.1 so I also need spring.jar and spring-webmvc.jar at compile, build, and in your WAR file. (I thought spring.jar contained everything but it seems to be missing a package.)
        Last edited by redcayuga; Jan 30th, 2008, 11:19 AM.

        Comment


        • #5
          Name space problem

          I get the same error:

          Caused by:
          org.springframework.beans.factory.parsing.BeanDefi nitionParsingException: Configuration problem: Unable to locate NamespaceHandler for namespace [http://www.springframework.org/schema/jee]
          Offending resource: class path resource [sources.cfg.xml]

          I have the following in my war file.

          spring-context-2.0.5.jar
          spring-beans-2.0.5.jar
          spring-web-2.0.5.jar
          spring-core-2.0.5.jar

          Comment


          • #6
            unique namespae problem

            I am replying to an old thread, hopefully someone will find this useful.

            I had the same namespace problem. It is true that the spring webflow jar, redirects the XSD uri to the local XSD file within the jar. the location of this XSD is specified in the META-INF\spring.schemas fille and the actual location of the XSD should be org.springframework.webflow.config as mapped in the spring.schemas file. However, I discovered that the spring-webflow 2.0.5 jar file DID NOT have the XSD in the org.springframework.webflow.config location. I downloaded the XSD spring-webflow-config-2.0.xsd and spliced the jar file to solve this problem.

            Comment


            • #7
              http://www.springframework.org/schem...config-2.0.xsd

              should this be the correct schema since you are using web flow 2.0 ??

              Comment

              Working...
              X