Expand my Community achievements bar.

July 31st AEM Gems Webinar: Elevate your AEM development to master the integration of private GitHub repositories within AEM Cloud Manager.

RPC call failure flex to J2EE container


Level 1
I am a flex newby so I am sure this is a 'dumb' problem. I
have installed flex.war (FDS) on my J2EE server and successfully
started it. I changed the remoting-config.xml file and added the

<destination id="portfolio">





and the java code exists and has successfully compiled within
the flex profject under src folder.

I then exported a 'release build' which produced a bunch of
files including the .html and .swf. I then copied these files to a
directory I created on the web server. I then invoked the .html
file and the app popped up but when it tried to make the RPC call I
got the error...

Portfolio feed failure...

Invoke failed

Couldn't establish a connection to 'portfolio'

I am assuming I have incorrectly deployed the app but I have
no idea what to do.

Help !!!!!!

1 Reply


Level 2

Firstly you should not be compiling your your Java classes
with Flex project. Java classes have to be in the classes folder of
the web application, which has BlazeDS/LCDS jar files deployed.

Please visit the URL below for details on how to use
RemoteObject to invoke methods on Java classes on the server.


Hope this helps.