View Full Version : Installing / configuring Flash Remoting
crucial
04-22-2005, 11:52 PM
I have been trying to get remoting installed on my local machine for several days now, with mixed luck. I finally got it to the point where I can run the samples that install with remoting running from the browser (and let me tell you, that was no small task). However I cannot seem to get it to work from Flash, no matter what I try, I eiother get a $)$ error or a gateway not found error (even if I just open an FLA of one of the installed smaples that works in the browser, it won't work in Flash).
I'm running Tomcat 5.5.9 / JDK 1_5_0_02 / and Flash remoting on a windows XP pro desktop. I finally gave up and bought the O'Reilly book, Flash Remoting - The Definitive Guide, but it just muddied the waters. I'm sure I'm making a simple mistake that if I was a half way competent server guy I could figure out...but I'm not.
Has anyone found a simple step by step set of instructions for getting this installed. This has to be the most convoluted process I've ever tried to follow. Everything I read (Macromedia.com, Oreilly, etc..) all seem to be talking about different things, as if it wasn't even the same subject... :confused:
Any help would be greatly appreciatted.
Thanks,
-Dave
djhmateer
04-23-2005, 05:47 AM
Hi
Suggest you try out CF7 / Jrun on your XP pro box.. this is fairly straighforward, and will give you the first steps in remoting.
Let me know if you've problems installing.
Dave.
crucial
04-23-2005, 02:24 PM
Thanks for the reply!. Unfortunately I need to get it setup using the same environment that the developers at my company will be using. They are all very skeptical of using Flash of any sort so I want to make sure I have everything working on my end just like their environment so I can test everything before I hand it over to them for implementation.
Thanks for the reply though.
-Dave
snapple
04-24-2005, 03:22 PM
Explain your setup in a littel more detail. What are the small examples you have running? How do you know the gateway is working? How did you install the gateway (did you actually deploy the remoting gateway as a servlet? ), what error messages are comming ip? Are the log files containing any data sent form Flash?
I have recently got into remoting with Java recently, only i use openamf, Tomcat 5.5 and Java 1.5.
Regards, snapple
crucial
04-25-2005, 09:44 PM
I have been working to get the Remoting components and server set up using Tomcat (Apache Tomcat 5.5.9 Server), Java (jre1.5.0_02) on a Windows XP Pro machine (SP1). However I have yet to get it to work (consistently). I have gotten the examples that come with the Remoting Server to run in a browser a couple times, but it fails to work consistently (mostly just sits at "Loading...." inside the parent flash file in a browser). I have yet though to get Remoting to work from inside the Flash authoring environment. I have read every article I can find on the net and bought O'Reilly's Flash-Remoting Definitive Guide book, but the process is very convoluted and confusing.
I can seem to find any GOOD documentation on how to install correctly? I keep finding the same questions I have all over the message boards with no responses.
I believe this has something to do with my install, and/or my gateway URL. According to the book, it says after the install I should be able to test the functionality of the servlet by browsing to http://localhost:8080/flashgateway/gateway . However that redirects my browser to http://localhost:8080/flashservices/index.html and gives me a '404 page not found' error. I don't have a flashservices folder anywhere.
Thanks for your time.
-Dave
snapple
04-27-2005, 09:30 AM
As far as i can see books / documentation makes far too big deal of the remoting gateway, it is, at least for openamf (i'm sure the Macromedia gateway works the same), just a servlet sitting on (in this case) Tomcat. Nothing more, nothing less.
All books go on about returning a blank page from:
http://localhost/flashservices/gateway
But that's only if you've set-up that Servlet on the server. For example, i don't even deploy any .war files or check that (in my case of openamf), the url
http://localhost/openamf/gateway
returns a blank page... i don't need to. I only want to return a blank page on the webapp i setup.
All you really need to do is copy and paste a few .jar files into the Tomcat > common > lib folder and include cetain .xml files in the actual webapp.
If i were you, i would set up a webapp on Tomcat, a really simple helloWorld class, get it to return a blank page in a browser, if this works, then you're gateway works.
I can't really go into specifics because i use openamf and have never touched any of MM's rip-off stuff.
If you switch to openamf for half an hour i can walk you through getting an application to work.
Regards, snapple
crucial
04-27-2005, 09:04 PM
Thanks for your help Snapple. Yeah I moved passed what the book said and tried getting a hello world gateway/service setup in flash. Having problems with the claspath I think.
Just to make sure I wasn't doing things wrong in Flash I installed CFMX7 and set the gateway/service up in Flash and got the Helloworld example to work first time.
Where exactly is the root classpath for Tomcat?
Thanks agan for your time and help.
-Dave
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.