• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Adding Flex capabilities to an existing J2EE Enterprise Application Project

 
Ranch Hand
Posts: 183
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Bartender
Posts: 10336
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic