So I tried modifying the root url to be my live production url and it broke. I can no longer test the data services nor run the app. I did notice that the _Super_XXX.as file no longer had an endpoint so I edited that file and then was able to run the app however I cannot test any of the dataservices any more. I get an error:
InvocationTargetException: There was an error while invoking the operation. Check your server settings and try invoking the operation again. Reason: java.net.MalformedURLException: no protocol.
And then even if I try and set it back to my development server I still get this error.
How can I do development on my development server then test it on my test server then deploy it to an app on a tablet that then would point to a production server for the data all the while being able to go back to doing more development on the development server?
Please help! I'm stumped!
All those Flex Server settings in Flash Builder pertain to your local/development server. I have posted several projects to my remote server and never had any problems - in fact, I just uploaded one earlier today (http://forums.adobe.com/thread/953762. I have a little problem in this one, maybe you can even help).
If I were you, I would leave the setting just the way you had them initially and just make sure that all the paths to CFCs are the same in both servers, and that RemoteClass aliases in your AS Classes and CFCs (if any) are correct.
I hope this helps,
All the paths to CFCs are the same in my live production site. Can you be more specific as to what you mean by "RemoteClass aliases in your AS Classes and CFCs (if any) are correct."? How will the app know that the CFC is on http://myLiveSite.com instead of http://myDevSite.com? The only line of code that I have noticed that points to a URL is the endpoint in a file called _Super_XXX.as. And at the top of that file it says that the file is not meant for editting.
To clarify...I see your app/code all exists on a server access via a web browser so I can understand that everything still works when deployed. Mine is a mobile app so when I am developing and testing on my local computer the URL points to my local development machine. However when I deploy it to a mobile device like a tablet and run the app, it needs to be able to access a cfc on a remote server via a different URL ie. my http://myLiveSite.com/myCFC.cfc instead of http://localhost/myCFC.cfc
Thanks for your help! I will now take a look at your thread.
Message was edited by: ace0215
This is what i do. In Flex bin-debug folder include an application.cfc file. Inside this file onApplicationStart set a variable application.myDNS = "myDataSourceName".
myDataSourceName should be the name of the data source in your Cf production server, also dev and local.
In your app cfc's you can use this variable when you connect to queries such as:
<cfquery name="myQuery" datasource="#application.myDNS#">
Now, in your CF server under Data Sorces is an option for Flex Integration, make sure you have check Enable Flash Remoting.
The only thing that you need to copy to your web servers folder is the bin-debug folder of your Flex app.
You can find more info here http://www.adobe.com/devnet/flex/flex_cf.html
I hope this help.
@jfb00 My app is a mobile/tablet app, not a web app so I don't think what you are saying applies.
ooo, sorry, i didn't see that.
"You cannot create a datasource called testdrive_db. On some shared servers, data source names cannot contain underscores or they must include your domain name (like domainname_testdrive). In this case, create a data source with an allowed name (like testdrive
or domainname_testdrive) and then open EmployeeService.cfc, /ColdFusion/wwwroot/TestDrive/services/EmployeeService.cfc, and change all the testdrive_db references to your new data source name."
Here is an article in how to do it:
I didn't realize it was a mobile app, about which I know nothing. What I said probably does not apply here.
Sorry I couldn't help.
I am in the same boat...have you figured this out yet? I want to set it up from the get-go for testing from remote server. I can't get Flash Builder to validate my settings regardless of how I set it up...stumpted.