I have a server api wirtten in Java and client side written in flex and I am trying to configure them together using GraniteDS. However, when trying to add this line:
<graniteds:flex-filter url-pattern="/*"/>
to the ApplicationContext.xml - then when trying to deploy my webapp (via glassfish) to a server i get this error:
org.apache.catalina.LifecycleException: org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 86 in XML document from ServletContext resource [/WEB-INF/commonContext.xml] is invalid; nested exception is org.xml.sax.SAXParseException: cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'graniteds:flex-filter'.
Any ideas what might be the problem?
In your
commonContext.xml
file, you should define thexmlns:graniteds
namespace and its correspondingxsi:schemaLocation
.As specified in the documentation: