-
Feb 24th, 2012, 09:37 PM
#1
XML schema namespace [http://www.springframework.org/schema/webflow]
Hey guys,
I am (rather clearly) completely new to Spring. I'm working on an application now, but when I build this out, I am running into the following error:
Caused by: org.springframework.beans.factory.parsing.BeanDefi nitionParsingException: Configuration problem: Unable to locate Spring NamespaceHandler for XML schema namespace [http://www.springframework.org/schema/webflow]
Offending resource: ServletContext resource [/WEB-INF/projectFlow.xml]
at org.springframework.beans.factory.parsing.FailFast ProblemReporter.error(FailFastProblemReporter.java :68)
at org.springframework.beans.factory.parsing.ReaderCo ntext.error(ReaderContext.java:85)
at org.springframework.beans.factory.parsing.ReaderCo ntext.error(ReaderContext.java:80)
So I went through and verified that I have the spring-webflow-2.0.8.RELEASE.jar included. I scoured the internet, and I can't quite figure out why this isn't working even when I have the (supposedly) correct jar file included. Below is my code:
<flow xmlns="http://www.springframework.org/schema/webflow"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/webflow
http://www.springframework.org/schema/webflow/spring-webflow-2.0.xsd">
<view-state id="welcome">
<transition on="display" to="viewUsers"></transition>
<transition on="insert" to="insertForm"></transition>
</view-state>
<view-state id="viewUsers">
<transition on="insert" to="insertForm"></transition>
</view-state>
</flow>
Any help would be much appreciated. Thanks in advance!
-Dustin
-
Feb 25th, 2012, 10:18 AM
#2
Hi Dustin,
It looks like it's not finding your spring-webflow-2.0.8.RELEASE.jar file. Make sure it's on your build path. Did you put the WebFlow JARs in the same "lib" directory as the rest of your Spring JARs? That's what I'd recommend, rather than placing them in a nested directory. That's a simple way to make sure all of your Spring JARs are in one place.
Thanks,
Travis
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules