30th Sep2011

Flash Builder 4.5 and Deploying to Tomcat 6

by David

When using Flash Builder 4.5.x with Eclipse Helios, if you try and deploy your integrated Flex and Data Services project to Tomcat 6, you get the following error being reported:

The server does not support version 3.0 of the J2EE Module

The quickest and easiest way to allow for deloyment onto Tomcat, is to:

  1. Find your Project folder on the file system
  2. Open up “project_loc/.settings/org.eclipse.wst.common.project.facet.core.xml”
  3. Change the value for <installed facet=”jst.web” version=”3.0″/>, to <installed facet=”jst.web” version=”2.5″/>
  4. Save the file, refresh your Eclipse project, and you are good to go.

You can then deploy your project onto Tomcat 6

30th Sep2011

Changing location of WebContent folder of Flash Builder/WTP Project

by David

You can change the location of the default Web Application folder from <project>/WebContent to (i.e.) /src/main/webapp by making the following changes in Eclipse Project Properties.

Change the Web Deployment Assembly

Update build paths for:

  • Flex SWCs Paths linked in Project Properties > Flex Build Path  (Class libraries and Locale Bundles)
  • Any compiler paths that might have referenced the old WebContent (ie services-config.xml)
Eclipse took care of the rest.