4 Replies Latest reply on May 1, 2008 10:25 AM by (Dave_Farago)

    Tutorial for creating a J2EE project with "Flex Builder 3 Beta 3 " ?

      Hi,
      I'm trying to set up a Flex environment with:
      Flex Builder 3 Beta 3 stand alone
      WTP (from eclipse update manager)
      LCDS 2.5 (with JRun)
      JBoss 4.2.2GA

      At this moment I successful installed everything (but not set up). I added WTP at Flex Builder3 (with the eclipse update manager). I copied the two flex-tomcat files in jboss.

      Then in Flex Builder 3 I created a new Flex Project. In the wizard first window, I selected J2EE, Livecycle and WTP. Then in the next window I need to configurate the J2EE server.

      I couldn't find any information/tutorial for this window? Is there a tutorial for this?

      This window ask me:
      Target Runtime: I created a new one for JBoss 4.2.2 (during this process flex builder asked me to add a project but actually I'm creating this project so I hadn't any project to add (??)).
      ContextRoot: name of the project I'm creating (default). Is it good?
      Content Folder: the default is "WebContent". Is it good?
      Flex War File: What is that? Where do I find it?

      Thanks a lot,
      Jerome
        • 1. Re: Tutorial for creating a J2EE project with "Flex Builder 3 Beta 3 " ?
          Robert Hirst Level 1
          The settings you mention all sound fine, but the I believe the Flex War file may be what you referred to as the flex-tomcat files (specifically the one should be called flex.war from the install folder).

          You don't need to deploy the flex.war file to JBoss manually, when you create a project, you just select the file in the wizard and it is extracted and used as a template for the new project. In fact, it may cause a port conflict with your project if you do deploy manually it (unless you tweak some of the config files), so it's probably worth removing it from the deploy folder if you did put it there. The other file, flex-admin.war, can stay without causing issue.

          The closest to a tutorial that I am aware of is if you search "New Flex Project" in the help system, it talks about what each of the options should be when creating LCDS projects.
          • 2. Re: Tutorial for creating a J2EE project with "Flex Builder 3 Beta 3 " ?
            A couple of questions/issues:

            1. Is Flex builder 3 supposed to set up services-config.xml with the correct server info? Or am I supposed to do it manually for each server targeted?

            2. When deploying to a server launched/controlled from the Flex builder IDE, is there some prior setup that needs to be done beforehand? I have tried deploying to JBoss 4.2 and OC4J standalone, using the process indicated in the documentation, but in each case, when Flex 3 builder is attempting to "publish" or "synchronize" the deployed (WAR) file to the server, I get a null pointer exception in the IDE but no log entry in the server. I can see that the WAR file never even gets generated in the appropriate target directory on the server. I have seen reports from others on this problem, but no indication of a resolution.
            • 3. Re: Tutorial for creating a J2EE project with "Flex Builder 3 Beta 3 " ?
              Level 1
              I did discover that this NPE issue is a WST eclipse plugin (Webtools) bug in version 2.0.2, which apparently occurs because a Flex project has no EAR file. There is apparently a patch for this at the webtools site. Working on trying the patch.

              See:

              http://download.eclipse.org/webtools/patches/

              Still looking at the services-config.xml question.
              • 4. Re: Tutorial for creating a J2EE project with "Flex Builder 3 Beta 3 " ?
                Level 1
                The patch works fine.

                And it appears the services-config file is filled in by Flex builder.