Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Adding Flex capabilities to an existing J2EE Enterprise Application Project

 
Jay Abrahm
Ranch Hand
Posts: 183
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 183
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 183
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 10336
Eclipse IDE Hibernate Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Jay Abrahm
Ranch Hand
Posts: 183
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic