PDA

View Full Version : Spring BlazeDS Integration Template Application



russell42
Mar 9th, 2009, 10:14 AM
I've been playing about with the Spring BlazeDS Integration framework but am having immense trouble even getting the samples (from Christophe Coenraets etc.) to run. Are there any minimal template applications that has everything set-up (config files, Ant build scripts etc.) that I can use to figure out where I was going wrong and as a basis for other applications?

I'm new to Spring and BlazeDS so my problems could be the way that I'm deploying it e.g. do I need to deploy the BlazeDS war to Tomcat or do I just copy the configuration files and jars from the expanded war into my project?

I've included my code so if anyone would be kind enough to have a quick glance over it then I would be very grateful.

My Flex debugger error message is:


[RPC Fault faultString="Send failed" faultCode="Client.Error.MessageSend" faultDetail="Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Failed: url: 'http://localhost:2097/cashflow/spring/messagebroker/amf'"]
at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::faultHandler()
at mx.rpc::Responder/fault()
at mx.rpc::AsyncRequest/fault()
at mx.messaging::ChannelSet/faultPendingSends()
at mx.messaging::ChannelSet/channelFaultHandler()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.messaging::Channel/connectFailed()
at mx.messaging.channels::PollingChannel/connectFailed()
at mx.messaging.channels::AMFChannel/statusHandler()


I've also got the following JARs in /WEB-INF/lib but they're fairly large so I didn't include them in the zip:


antlr-3.0.1.jar
backport-util-concurrent.jar
cfgatewayadapter.jar
commons-codec-1.3.jar
commons-httpclient-3.0.1.jar
commons-logging.jar
concurrent.jar
flex-messaging-common.jar
flex-messaging-core.jar
flex-messaging-opt.jar
flex-messaging-proxy.jar
flex-messaging-remoting.jar
h2.jar
org.springframework.beans-3.0.0.M1.jar
org.springframework.context-3.0.0.M1.jar
org.springframework.context.support-3.0.0.M1.jar
org.springframework.core-3.0.0.M1.jar
org.springframework.expression-3.0.0.M1.jar
org.springframework.flex-1.0.0.M2.jar
org.springframework.jdbc-3.0.0.M1.jar
org.springframework.transaction-3.0.0.M1.jar
org.springframework.web-3.0.0.M1.jar
org.springframework.web.servlet-3.0.0.M1.jar
xalan.jar


Thanks!

mmansari
Mar 16th, 2009, 11:32 AM
Hi Russell42,
I hope that you got it work by now :-)
If you are using Eclipse IDE, I would just suggest that you use WTP feature when you create your Flex project. There you can point out to your blazeds.war. There also you don't need to write your own Ant build script.

HTH
Peace!
Mohammed