Flex: HTML file not getting generated - apache-flex

The project I am working on uses Cairngorm Architecture of flex. I am able to build and run the application perfectly on my local host. But, When I am deploying this code in my server "Main.html" is not being generated.
I am moving the code to some location in my server. Executing Build file and then trying to run the application.
I am using Flex 3.5 version of SDK and 10.0.0 version of Flash Player.
I did refer to the following link but it didn't help.
Flex builder3 is not generating html wrapper when targeting flex 4 sdk
I am unable to identify the cause. Kindly help me in resolving the issue.
Thank you,
Pri

The main.html file is generated by flash builder during the compilation of your application. It is not generated by your application itself.
So you you have to generate it locally, then copy both your swf and you main.html file on your server.

Related

'System.ServiceProcess.ServiceController version issue with Wix Installer and .Net Core 3.1

I get an exception "Could not load file or assembly 'System.ServiceProcess.ServiceController, Version=4.2.3.0" when trying to install a Windows Service written in .Net Core 3.1 using Wix 3.11.2. The version of System.ServiceProcess.ServiceController.dll on my system is 4.7.19.56404. I've added the ..\netcoreapp3.1\runtimes\win\lib\netstandard2.0 directory per one suggestion and also enabled AutoGenerateBindingRedirects and GenerateBindingRedirectsOutputType in the project file. How to work around this binding issue?
I resolved the problem by first using publish to generate the output files, and then added them as components to my Product.wxs file. Then the service installed and ran fine. It was a lot of files so I wrote a small console app to generate the component XML to a file and pasted that into the Product.wxs file.
Initially, I was taking the files from the folder upstream from the publish folder. I may also have overlooked a file as well because I was adding them manually.

deploy flex application on tomcat server (not localhost) with blazeDS starting in eclipse

I have a locally developed flex application which i would now deploy on a live server. Those are the constraints:
Using blazeDS with java code
Code depends on other project in eclipse
the other project has several dependencies on 3rd party libs.
Using some external flash .swc libs
some web.xml settings are custom
In another post the structure for the exported folder is explained:
What needs to be in a .war file to deploy a Flex application?
In the default usage of Flash Builder i can create a release build and store it somewhere. This will create the release version of all the flex content.
I now want to export the .war file within the export function of eclipse and here comes the problem:
How can i exclude the files not needed in the war file. There is a debug build of the flex app and some other files i do not need.
How can i automatically insert the dependend libs of the imported eclipse project to the web-inf lib folder. When i try to export the release the function sais that the imported eclispe project cannot be created by the release process but it is within the lib folder of web-inf on .war export except the dependencies.
Can somebody point me to the documententation of flashbuilder regarding exportinmg and deployment.
Maybe i need an ANT process to optimize that. What do you think?
Thank you
For everything you just said, there are 2 ways of doing it:
1) Create it manually by copy pasting what you need in your war file into a folder, removing what isn't needed then create said war file using command line.
2) Create an automation script that does it all for you. This could be ANT or Maven (I personally prefer Maven for it's dependency management).
The latter is the enterprise way of doing it because it's easy to run ("mvn clean install war") and you can attach the script to an automation engine (like hudson, bamboo, teamcity, etc) which can then compile/test/deploy everything something is committed to your source control.

Create different version of swf file for each release build in flash builder

Recently, i have faced an issue of caching of my flex swf file on client's ie-explorer machine and i could not tell him every time, delete all your cache data and reopen the browser.
so, finally, i have think to make the different version of swf file for each release build and give it to client while production release.
Could you please have any idea about handling/maintain version of release swf file in flash builder.
i am using the flash builder 4.0 and using flex 4 in my application.
I think you should do this versioning in the deployment process, ie when you upload the new SWF to your webserver, as the HTML / JS embedding needs to be updated too anyway.

How can I make Flash Builder 4 launch browser on run?

I recently installed Adobe Flash Builder 4 in standalone mode on a new installation of Windows 7 x64.
I can load and build an existing Flex 4.1 project I have been working on, but when I go to run the project in the browser (Firefox 3.6.15), I get:
'Launching BensApp' has encountered a problem.
An internal error occurred during: 'Launching BensApp'
Clicking the Details >> button reveals:
java.lang.NullPointerException
My project is creating the SWF and container HTML page as expected, but fails to load the browser.
Ok. Finally nutted this out.
The problem was that Flash Builder was trying to run the ASP.NET web server at:
c:\Program Files (x86)\Microsoft
Shared\9.0\WebDevServer.exe
This is the default location if you have VS2008 installed.
I only have VS2010 installed, which places these files at ...\Shared\10.0. The solution was to copy WebDevServer20.exe to the above location.
The other solution that would work is to change Flex Server \ Application Server type to "None\Other".
Check the launch configurations located in Project>Properties>Run/Debug Settings.
To open a browser when you run the project you will need to modify the 'URL or path to launch' parameter.
See the Adobe Flex help for more info: Managing Launch Configurations.
Select "Run As" in Green Debug Button. It Fixed My Problem.

Flex/Java application

I want to build a website that uses Flex/Flash as the GUI, and Java for the business tier, all to be deployed on Glassfish.
Not having done this before, I am wondering how the overall development/build process works.
Flex has an IDE, and I am wondering would I also develop the Java part of the application in the same IDE? Or, do I make the Flex part in the Flex IDE, and the Java part elsewhere, and somehow make them work together?
And, regarding deployment, what are the general pieces involved in this type of application.
I am used to a java website being an EAR or WAR, does the Flex part get built into the EAR/WAR, or is it a separate thing that is deployed independently from the Java artifact?
For the build process, does one build the Flex part separately from the Java part, or can they be built together, i know this is close to the previous question about what pieces are deployed in a Flex/Java application.
Just looking for big picture type answers to get an idea of the development and build process when building a web application.
For our project, we have our Java and Flex code separated by project. When building and deploying our project, our Flex code builds and puts the swf into the web directory of our Java code. The Java code is Warred and deployed through Tomcat.
Many developers use Eclipse with the Flex Eclipse plugin for Flex-Java projects.

Resources