Expand my Community achievements bar.

Difference between compiling locally and on the server with FDS

Avatar

Level 1
Hi,



I am doing soming very basic testing with remote Java objects
and I am finding that if I create a FDS project and compile on the
server the code runs, if I create a FDS project and compile locally
it gives me the following error :



[RPC Fault faultString="Send failed"
faultCode="Client.Error.MessageSend"
faultDetail="Channel.Connect.Failed error
NetConnection.Call.Failed: HTTP: Failed"]



what gives?



The compiler in Flex Builder string is :



-services "C:\Archivos de programa\Apache Software
Foundation\Tomcat
5.5\webapps\flex\WEB-INF\flex\services-config.xml" -locale en_US



Any insights?



David
4 Replies

Avatar

Employee
Hi David,



The FDS server automatically knows the context root of your
application



For FlexBuilder, you need to provide the context root as a
compiler argument



-context-root /flex (or whatever your context root is)



peter



Avatar

Former Community Member
Hi,

I am also facing an issue regarding compiling mxml using
remote objects using flex sdk. The error I am getting is



[RPC Fault faultString="Send failed"
faultCode="Client.Error.MessageSend"
faultDetail="Channel.Security.Error error Error #2048: Security
sandbox violation:
http://localhost:9080/iReports/flexFiles/mxml/AdminServices.swf
cannot load data from
http://localhost:9080iReports/messagebroker/amf."



Can u help me?



Thanks,

Cheree

Avatar

Level 1
Hi Cheree,



You really should post this as a new qustion.

I noticed that you error message has
http://localhost:9080iReports/..."
instead of
http://localhost:9080/iReports/...
You are missing a / in the address location of the service after
9080 (ie should be 9080/iReports not 9080iReports. If this sitll
doesn´t work you should repost your message as a new question.



Regards



David

Avatar

Former Community Member
Hi David,

Thanks for replying... What you suggested was absolutely
correct. Actually, I was giving

-context-root=\iReports, but what was needed was
-context-root=/iReports.

Thanks again,

Cheree