Unable to use flex:exception-translator inside flex:message-broker
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 :
Quote:
Invalid content was found starting with element 'flex:exception-translator'. No child element is expected at this point.
here is the spring config:
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>
I tried all options, the only way its working if I create a new second </flex:message-broker> tag,
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:
HTML 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>
the reason I did with two url mappings was because it would not work with
Quote:
<url-pattern>/messagebroker/*</url-pattern>
at all, for some reason.
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?
New generation of legal stimulants for cns
New generation of legal stimulants for cns
Our days exist a lot of problems associated with regular heavy loads and the necessity to make a lot of things at once. Bad
environment just enhances the harmful effects of external factors. Of course we take vitamins, but is it really help relax? As for me, No!
Every day when I go to home, I feel myself broken, I can't feel happines and joyfulness, those I should feel, when play with my kid and when I spending time with my wife. If we talk about my startups, I can't find time for these. My life is like in the movie "Groundhog Day".
This note I wrote two month ago, before I started taking "Nootropil". This pills took only a day to I could feel the effect. In just one day, I was able to finish the work by 3 hours earlier, went with my son to the zoo and developed startup with my friend (now this startup brings profit as much, as my job in office).
May be it looks like an advertisement, but it's absolutely true and I just want told to you about this pills.
Causes no addiction and depression, already two month I feel myself exelent!
P.S. Nootropil is expensive drug if you wants to buy it in pharmacy near with your home. But at our age of Internet we can buy pills using just a computer and it will be really cheap! I can recommend for you shop, where I buy it. medshoponline.net. Ofcourse you can buy Nootropil in another pharmacy, but trust me and my experience :) Free worldwide shipping, 100% delivery and a lot of positive comments from doctors (my friends) and, who purchased here.
Oh, right! Link:
Nootropil:
<a rel="nofollow" href=http://tinyurl.com/nootropil>http://tinyurl.com/nootropil</a>