macromedia flash flash remoting:
Hi.
I'm amazed why i'm having this problem, but whatever, here it is...
I'm doing flash remoting with J2EE. I want to use Carbonfive's
"FlashGatekeeper v0.4" webapp filter to secure the middle-tier. I
configure my app exactly according to the Carbonfive's documentation.
But when my flash-app makes a method call to my server-side Java bean,
the Flash-GatewayServlet throws an exception, like this...
<SNIP>
00:58:46,993 ERROR [Engine] StandardWrapperValve[FlashGatewayServlet]:
Servlet.s
ervice() for servlet FlashGatewayServlet threw exception
java.lang.NoSuchMethodError:
flashgateway.io.MessageDeserializer.<init>(Ljava/la
ng/String;)V
at com.carbonfive.flashgateway.security.GatekeeperFilter.doFilter(Gateke
eperFilter.java:67)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:186)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:157)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:214) ...
</SNIP>
....
I looked at Carbonfive's source code. I looks as though the
FlashGatekeeper-filter is parsing the incoming AMF data (using the
same macromedia class that's failing in the above stack-trace) to see
what services & methods are getting invoked. I wonder if this is
interfering with FlashGatewayServlet from doing it's job? It would
seem so because if i disable the FlashGatekeeper-filter, by removing
the <filter> tag from web.xml, everything works fine!!
I'm very confused. I've tried this on Tomcat 4.x using J2SE1.4.2 and
Servlet2.3. I've tried it on Tomcat 5.x too. Same problems, no
difference.
Hmmm, as i said, it's wierd, and i wonder why nobody else has found
this problem before. Perhaps it's a bug, but that's hard to imagine.