Back Forum Reply New

booking example deployment problem

Hello

I have just started with Spring Webflow , and downloaded 2.0.0 RC1 . The Spring version is 2.5.1 .
Now trying to build and deploy booking-mvc example to Tomcat.
Upon deployment, the following exception occurs (root cause):

java.lang.NoSuchMethodError: org..beans.factory.support.BeanDefi  nitionBuilder.genericBeanDefinition(Ljava/lang/Class;)Lorg//beans/factory/support/BeanDefinitionBuilder;
at org..webflow.config.FlowBuilderServ  icesBeanDefinitionParser.registerDefaultFlowBuilde  rServicesBeanDefinition(FlowBuilderServicesBeanDef  initionParser.java:116)
Indeed, line 116 of FlowBuilderServicesBeanDefinitionParser.java is a call to
BeanDefinitionBuilder.genericBeanDefinition with FlowBuilderServices.class as a parameter . But, BeanDefinitionBuilder.genericBeanDefinition is parameterless method only.

Looks like some version incompatibility of WebFlow and Spring core.
Any ideas ?

Thank you .

Move to Spring 2.5.3 solved the problem above, but deployment is still unsuccessful.

Now the exception is :
org..beans.factory.parsing.BeanDefi  nitionParsingException: Configuration problem: Failed to import bean definitions from relative location [security-config.xml]
Offending resource: ServletContext resource [/WEB-INF/config/web-application-config.xml]; nested exception is org..beans.factory.parsing.BeanDefi  nitionParsingException: Configuration problem: Unable to locate Spring NamespaceHandler for XML schema namespace [schema/security]
Offending resource: ServletContext resource [/WEB-INF/config/security-config.xml]

I have downloaded Spring security 2.0.0 RC1.
spring-security-core-2.0.0-RC1.jar is in WEB-INF/lib of my war.
Any other jars missing ?

Thank you

Well, for some reason it's not finding the namespace handler in that security-core jar.  Perhaps its not being picked up due to some environmental issue.  You might want to confirm the handler is in the jar as well as the XSD.  You might want to try using our build system to build the sample application just so you don't have to manage the jars yourself.

Keith


Originally Posted by Keith DonaldYou might want to try using our build system to build the sample application just so you don't have to manage the jars yourself.
Keith

I tried , as said in readme.txt :
To build an individual sample:
---------------------
1. cd to the sample root directory

2. run 'ant dist' to produce a deployable .war file within target/artifacts

The result :
D:\Develop\Spring\spring-webflow-2.0.0.RC1\projects\spring-webflow-samples\booki
ng-mvcgt;ant dist
Buildfile: build.xml
Trying to override old definition of task dist-jar

BUILD FAILED
Target `dist' does not exist in this project.

What's wrong ?

Unfortunately that particular readme is the only readme out of date pertaining to the samples.  This has been fixed in trunk.  A better readme is the main readme.txt in the root directory of the distribution archive, or in the projects/build-spring-webflow master build directory.

Anyway, to build the samples you need to follow these instructions:
webflow-samples

What you tried didn't work because of two issues.  First, the rest of SWF hadn't been built locally first.   The samples work off a local integration repo built locally for SWF development purposes.  Second, quot;distquot; is an old target (our build system was updated in RC1 and the readme wasnt).

Keith

lt;security:form-login login-page=quot;/spring/loginquot; default-target-ucl=quot;/spring/flows/mainquot;
authentication-failure-ucl=quot;/spring/login?login_error=1quot; login-processing-ucl=quot;/spring/login-processquot; /gt;

in springIDE there many errors! IDE need update now!

Yes, we are aware Spring IDE does not support Web Flow 2 yet and we are working with the IDE team on making support available as soon as possible.

Thanks

Keith


Originally Posted by Keith DonaldAnyway, to build the samples you need to follow these instructions: webflow-samples

Ok, got it, thanks.

However, application does not work as expected in some points.

If I click quot;Loginquot; link from the very first page, enter name and password and click quot;loginquot; button, I see 404 page :
The requested resource (/swf-booking-mvc/WEB-INF/flows/main.jsp) is not available

Interesting note - when login page is reached by another path, login does not produce this error :
if guest runs Hotel search, then sees Hotel results, then clicks View Hotel and then Book Hotel , he is forwarded to login page (Login required). Enters name and password, clicks quot;loginquot; button, quot;Book hotelquot; opens - no error happens.


Originally Posted by dkane
If I click quot;Loginquot; link from the very first page, enter name and password and click quot;loginquot; button, I see 404 page

This is due to a mistake in configuration as reported here: showthread.php?t=52639
¥
Back Forum Reply New