It's not a secret anymore!*
The moose likes Flex and the fly likes Adding Flex capabilities to an existing J2EE Enterprise Application Project Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Flex
Bookmark "Adding Flex capabilities to an existing J2EE Enterprise Application Project" Watch "Adding Flex capabilities to an existing J2EE Enterprise Application Project" New topic
Author

Adding Flex capabilities to an existing J2EE Enterprise Application Project

Jay Abrahm
Ranch Hand

Joined: May 28, 2008
Posts: 183
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: 183
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: 183
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.
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

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?


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Jay Abrahm
Ranch Hand

Joined: May 28, 2008
Posts: 183
Sorry, I didn't see this post coming in.

I am using Flex Builder 3 Plugin for RAD 7.5 (which is build on top of Eclipse 3.4). It only works with Flex SDK 3.4 and higher.

I haven't tried this with Flash Builder but plan to. Will update this post once I have.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Adding Flex capabilities to an existing J2EE Enterprise Application Project