In your remote call set the endpoint property as follows
fault="Alert.show(event.fault.faultString + '\n' + event.fault.faultDetail)"
and make sure in browser http://localhost:8888/messagebroker/amf will give you white screen..
Thanks for the reply. Unfortunately the amf link gives me
404 Not Found
Resource /messagebroker/amf not found on this server
So something in the config must have changed. But I have not changed them, so I don't know why it's not working. Here is the relevant definition of the method I'm calling from remoting-config.xml
<?xml version="1.0" encoding="UTF-8"?>
<adapter-definition id="java-object" class="flex.messaging.services.remoting.adapters.JavaAdapter" default="true"/>
<!-- java class I'm calling -->
By the way, as this is old code, I'm still using Flex 3.5. Also, the failure is occurring with the following remote object:
<mx:RemoteObject id="reportRetrieval" destination="reportLoad" showBusyCursor="true" fault="faultHandler(event)">
<mx:method name="getReportData" result="getReportResults(event)"/>
<mx:method name="getReportReload" result="getReloadResults(event)"/>
<mx:method name="saveAllImages" result="showAllImages(event)"/>
<mx:method name="getChartReload" result="getChartReloadResults(event)"/>
<mx:method name="getFilePath" result="filePathResult(event)"/>
I have this code working on an old machine and I have run diff on the config files and everything is the same. The directory structure is the same as well. I even tried to bring up http://localhost:8888/messagebroker/amf on the one where the code is working and it also gave me the 404 error. Unfortunately, the code on the old machine is an old version and there are so many files that have been changed it would be really painful to try and pull the new files back onto the old machine so I really need to figure out why remoting is not working.
Well, I found out something interesting in the Properties for this project. Under Flex Compiler > Additional Arguments, I noticed that it had:
-services "/Dev/tomcat/ver/webapps/plan/myproj/WEB-INF/flex/services-config.xml" -locale en_US
And this was the wrong path! So I switched it back to the right path but it still doesn't work. So what happened I think is that this app was originally developed for the oc4j (oracle) java server but I later did some development on this machine with tomcat and installed tomcat as a server in Flashbuilder so I'll bet that Flashbuilder is compiling it for tomcat somehow. Could that be the problem? If so, does anyone know how I get it to point to the oc4j server? Or if not, what am I doing wrong?
Ok, I got it!
In the Properties panel under Flex Server, it was set to tomcat there as well! So I had to go in and change Root folder, Root URL, and Context root as well.
Phew! I'm glad that's fixed!