Hi,
I am ussing latest 1.5.x version of spring-flex, and I have came accross this issue:
when I include <flex:exception-translator ref="giviExceptionTranslator"/> inside message-broker tag I get XSD error durring deployment :
here is the spring config:Invalid content was found starting with element 'flex:exception-translator'. No child element is expected at this point.
I tried all options, the only way its working if I create a new second </flex:message-broker> tag,HTML Code:<bean id="giviExceptionTranslator" class="xxx.xxx.MyExceptionTranslator"/> <flex:message-broker mapping-order="1" > <flex:mapping pattern="/messagebroker/*" /> <flex:message-service default-channels="my-secure-amf,my-amf" /> <flex:secured > <flex:secured-channel channel="my-secure-amf" access="ROLE_USER" /> </flex:secured> <flex:exception-translator ref="giviExceptionTranslator"/> </flex:message-broker>
this way:
HTML Code:<bean id="giviExceptionTranslator" class="xxx.xxx.MyExceptionTranslator"/> <flex:message-broker mapping-order="1" > <flex:mapping pattern="/messagebroker/*" /> <flex:message-service default-channels="my-secure-amf,my-amf" /> ...... </flex:message-broker> <flex:message-broker> <flex:exception-translator ref="giviExceptionTranslator"/> </flex:message-broker>
in this way everything works but then my regular my-amf channel does not work only my-secure-amf
bTW:
in web.xml I have url-mappings done following way:
the reason I did with two url mappings was because it would not work withHTML Code:<servlet> <servlet-name>flex</servlet-name> <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class> <load-on-startup>0</load-on-startup> </servlet> <servlet-mapping> <servlet-name>flex</servlet-name> <url-pattern>/messagebroker/amf</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>flex</servlet-name> <url-pattern>/messagebroker/amfsecure</url-pattern> </servlet-mapping>
at all, for some reason.<url-pattern>/messagebroker/*</url-pattern>
so now I have a puzzling question, why can not include flex:exception-translator inside flex:message-broker when I have other tags in it, I looked in schema, and looks like there is a option of either have secure tag or flex:exception-translator tag, what is the reason for the limitation and how can i overcome this?


Reply With Quote