Adding Flex capabilities to an existing J2EE Enterprise Application Project
Jay Abrahm
Ranch Hand
Joined: May 28, 2008
Posts: 182
posted
0
I have a J2EE Enterprise Application Project in which I would like to add a few Flex screens. How do I go about adding Flex capabilities.
I have build Flex/J2EE applications from scratch but can't think of the best way to do this.
I am currently using Flex Builder Plugin for IBM Rational Application Developer 7.5. Any idea on how to proceed.
J D
Jay Abrahm
Ranch Hand
Joined: May 28, 2008
Posts: 182
posted
0
Got a way to do this. I am using Rational Application Developer. Right click on the web project and select Flex Project Nature->Add Flex Project Nature.
For this I got an error
Server SDK: Directory does not contain a Flex SDK.
Right clicking on the Project to select the Flex Compiler and pointing it to the Flex SDK in my machine resolved this error.
I am able to right click on the html file in the bin-debug folder and get it to run on the server. This "Run on Server" shows the default Flex screen.
So Flex seems to be up but now my existing application fails giving the following error
Error 404: SRVE0190E: File not found: {0}
Jay Abrahm
Ranch Hand
Joined: May 28, 2008
Posts: 182
posted
0
Hope this helps someone....
Adding the Flex project nature basically changes some configuration files in RAD.
.project
org.eclipse.wst.common.component
web.xml
In order to get the Flex to work along with J2EE we need to fix web.xml. Reordering the definitions and removing unwanted Flex enteries in web.xml fixed the issue. I also had to clean build my application a bunch of times.
This is interesting - thanks for posting. One question, is it the FlexBuilder 3.2 plug-in you have integrated, or can you get this to work with FlashBuilder?