When I run the aplication without internet I see the folllowing error
org.xml.sax.SAXParseException: schema_reference.4: Failed to read schema document 'http://www.springframework.org/schema/flex/spring-flex-1.0.xsd', because
1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>.
at org.apache.xerces.util.ErrorHandlerWrapper.createS AXParseException(Unknown Source)
at org.apache.xerces.util.ErrorHandlerWrapper.warning (Unknown Source)
Which means that locally you don't have the .xsd file in your classpath of your war. Typically that comes in the jar file of the project. So in the Spring-flex jar file. Are you sure this jar file is being included?
Even though it is in the maven pom file, there might have been some other issue with it downloading, only in your classpath for compile. etc
Or the fact that your POM says you are using the 1.5.2 jar file, but your xml is using the flex 1.0 xsd file. That could very well be the problem. Make sure version numbers match, or don't include version numbers in your xml for the xsd and Spring will just take the latest version of the xsd that is in your classpath when running.
Tried adding the jar locally doesnot make any difference(spring-flex-1.5.2).
When I added spring-flex-1.0.0 locally I get
org.springframework.beans.factory.BeanCreationException: Error creating bean with name '_flexRemotingAnnotationPostProcessor': Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.flex.config.json.JsonConfigMapPropertyEditor]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: org/codehaus/jackson/JsonFactory
When I removed the version or making same as in pom in xml,I get following compilation error at
Multiple annotations found at this line:
- schema_reference.4: Failed to read schema document 'http://www.springframework.org/schema/flex/spring-flex.xsd', because 1) could not find the document; 2) the document could not be
read; 3) the root element of the document is not <xsd:schema>.
- cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'flex:message-broker'.