views:

306

answers:

2

I m new to spring and m just trying on my hands using spring MVC 2.0 and spring webflow 1.0.

but i m getting following error might be when dispatcher deligate request to flow...

Configuration problem: Cannot locate BeanDefinitionParser for element [executor]

i have spring 2.0 jar file and webflow 1.0 jar file in application build path...

A: 

OK, so it looks like the problem is with the <flow:executor> element in your webflow config. Spring is complaining that it doesn't understand what that means, and it's probably because you're missing the namespace declaration in the config file. This looks something like this:

<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"&gt;

Your root element must look something like that. See documentation here.

skaffman
Actually i was unable to post this namespace so i had posted only inner configuration part.Actually i do have same namespace in place..but it didn't work...
Yogi
@Yogi: The error message suggests otherwise, you've probably got something not quite right in there. Please edit your question and paste the whole contents of both config files.
skaffman
A: 

When eclipse deploy web application to tomcat it also deploy those jar files to lib directory which was not in build path.. so now when tomcat goes to execute.. it would probably find two jar files for web flow i.e. webflow 1.0 and webflow 2.0 And giving me the error.. i.e. when two different version jar files for webflow are in lib director.

i would also like to thank skaffman for his support..

Yogi