<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	>

<channel>
	<title>Web App Solution Blog &#187; eclipse</title>
	<atom:link href="http://www.webappsolution.com/wordpress/category/eclipse/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.webappsolution.com/wordpress</link>
	<description>When you're in need of an appsolution</description>
	<pubDate>Thu, 05 Apr 2012 19:39:33 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Some Helpful Settings For Maven Builds</title>
		<link>http://www.webappsolution.com/wordpress/2010/12/20/some-helpful-settings-for-maven-builds/</link>
		<comments>http://www.webappsolution.com/wordpress/2010/12/20/some-helpful-settings-for-maven-builds/#comments</comments>
		<pubDate>Tue, 21 Dec 2010 02:36:57 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[actionscript]]></category>

		<category><![CDATA[air]]></category>

		<category><![CDATA[eclipse]]></category>

		<category><![CDATA[flash builder]]></category>

		<category><![CDATA[flex]]></category>

		<category><![CDATA[flex builder]]></category>

		<category><![CDATA[maven]]></category>

		<category><![CDATA[builder]]></category>

		<category><![CDATA[flash]]></category>

		<guid isPermaLink="false">http://www.webappsolution.com/wordpress/?p=924</guid>
		<description><![CDATA[When running Maven builds, there are typically a few settings that are useful to have in your ~/.bash_profile (for Mac or similar, depending on your shell) to help get things off on the right foot.
Set memory usage to 1024M minimum.
export MAVEN_OPTS=-Xmx1024m
Set the path to the appropriate SDK for Flash Builder
FLASH4_SDK=&#8217;/Applications/Adobe Flash Builder 4 Plug-in/sdks/3.5.0&#8242;
Set the [...]]]></description>
			<content:encoded><![CDATA[<p>When running Maven builds, there are typically a few settings that are useful to have in your ~/.bash_profile (for Mac or similar, depending on your shell) to help get things off on the right foot.</p>
<p>Set memory usage to 1024M minimum.<br />
<em>export MAVEN_OPTS=-Xmx1024m</em></p>
<p>Set the path to the appropriate SDK for Flash Builder<br />
<em>FLASH4_SDK=&#8217;/Applications/Adobe Flash Builder 4 Plug-in/sdks/3.5.0&#8242;</em></p>
<p>Set the path for ADL if building AIR applications<br />
<em>ADL_PATH=${FLASH4_SDK}/bin</em></p>
<p>Set the path to the Flash Player for launching FlexUnit tests<br />
<em>FLASH_PLAYER_PATH=&#8217;/Applications/Adobe Flash Builder 4 Plug-in/Player/mac/Flash Player.app/Contents/MacOS&#8217;</em></p>
<p>Append these to the current path<br />
<em>export PATH=${PATH}:${ADL_PATH}<br />
export PATH=${PATH}:${FLASH_PLAYER_PATH}</em></p>
<p align="left"><a class="tt" href="http://twitter.com/home/?status=Some+Helpful+Settings+For+Maven+Builds+http://58ikg.th8.us" title="Post to Twitter"><img class="nothumb" src="http://www.webappsolution.com/wordpress/wp-content/plugins/tweet-this/icons/tt-twitter.png" alt="Post to Twitter" /></a> <a class="tt" href="http://twitter.com/home/?status=Some+Helpful+Settings+For+Maven+Builds+http://58ikg.th8.us" title="Post to Twitter">Tweet This Post</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.webappsolution.com/wordpress/2010/12/20/some-helpful-settings-for-maven-builds/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Mac Flash Builder Plugin Install Error 6 + FIX</title>
		<link>http://www.webappsolution.com/wordpress/2010/10/08/mac-flash-builder-plugin-install-error-6-fix/</link>
		<comments>http://www.webappsolution.com/wordpress/2010/10/08/mac-flash-builder-plugin-install-error-6-fix/#comments</comments>
		<pubDate>Fri, 08 Oct 2010 15:45:50 +0000</pubDate>
		<dc:creator>brianr</dc:creator>
		
		<category><![CDATA[eclipse]]></category>

		<category><![CDATA[flash builder]]></category>

		<category><![CDATA[mac]]></category>

		<category><![CDATA[error]]></category>

		<category><![CDATA[fix]]></category>

		<category><![CDATA[install]]></category>

		<category><![CDATA[issue]]></category>

		<category><![CDATA[plugin]]></category>

		<guid isPermaLink="false">http://www.webappsolution.com/wordpress/?p=861</guid>
		<description><![CDATA[I just received my new 17in MBP so I pulled down a new version of Eclipse&#8217;s J2EE IDE and installed Flash Builder Plugin. 
NOTE: You need to use the Eclipse Galileo Packages and the Carbon Install in order for this to work since FB is not compatible with the latets Eclipse build called Helio &#8212; [...]]]></description>
			<content:encoded><![CDATA[<p>I just received my new 17in MBP so I pulled down a new version of Eclipse&#8217;s J2EE IDE and installed Flash Builder Plugin. </p>
<p><strong>NOTE</strong>: You need to use the <a href="http://eclipse.org/downloads/packages/release/galileo/r" target="_blank">Eclipse Galileo Packages and the Carbon</a> Install in order for this to work since FB is not compatible with the latets Eclipse build called Helio &#8212; <a href="http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/galileo/R/eclipse-jee-galileo-macosx-carbon.tar.gz" target="_blank">here&#8217;s a link to the exact version of Eclipse that I used</a>.</p>
<p>After a seemingly successful installation I received the following error code when starting up Eclipse: Error 6. I googled around a bit and found this <a href="http://forums.adobe.com/thread/716299?tstart=0">link</a> with this important tid-bit that fixed my issue:</p>
<ul>
<li>Reboot your Mac</li>
<li><font color="#336633"><strong>Navigate to your installation folder under /Adobe Flash Builder 4 Plug-in/install.support/AdobeFlashBuilderPluginSTIWrapperMac/</strong></font></li>
<li><font color="#336633"><strong>Run Install.app from that location, to make sure all the required runtimes are installed successfully.</strong></font></li>
</ul>
<p>The restart seemed to do nothing, but running the installer did the trick. Good luck!</p>
<p align="left"><a class="tt" href="http://twitter.com/home/?status=Mac+Flash+Builder+Plugin+Install+Error+6+%2B+FIX+http://bk96t.th8.us" title="Post to Twitter"><img class="nothumb" src="http://www.webappsolution.com/wordpress/wp-content/plugins/tweet-this/icons/tt-twitter.png" alt="Post to Twitter" /></a> <a class="tt" href="http://twitter.com/home/?status=Mac+Flash+Builder+Plugin+Install+Error+6+%2B+FIX+http://bk96t.th8.us" title="Post to Twitter">Tweet This Post</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.webappsolution.com/wordpress/2010/10/08/mac-flash-builder-plugin-install-error-6-fix/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Flex + Cairngorm + Spring ActionScript + Tomcat + WebORB/BlazeDS + Spring Java + Hibernate + MySQL Tutorial Part 4</title>
		<link>http://www.webappsolution.com/wordpress/2009/06/11/flex-cairngorm-spring-actionscript-tomcat-weborbblazeds-spring-java-hibernate-mysql-tutorial-part-4/</link>
		<comments>http://www.webappsolution.com/wordpress/2009/06/11/flex-cairngorm-spring-actionscript-tomcat-weborbblazeds-spring-java-hibernate-mysql-tutorial-part-4/#comments</comments>
		<pubDate>Thu, 11 Jun 2009 14:51:25 +0000</pubDate>
		<dc:creator>brianr</dc:creator>
		
		<category><![CDATA[blazeds]]></category>

		<category><![CDATA[eclipse]]></category>

		<category><![CDATA[flex]]></category>

		<category><![CDATA[java]]></category>

		<category><![CDATA[tomcat]]></category>

		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://www.webappsolution.com/wordpress/?p=289</guid>
		<description><![CDATA[Introduction
I&#8217;ve been playing around with a stack of Flex/ActionScript and Java frameworks and finally came up with one that I&#8217;m really pleased with &#8212; since I&#8217;m reusing these terms throughout the series, please review the acronyms after each, as that&#8217;s how I&#8217;ll be referring to them in the tutorial:

Flex
Cairngorm (&#8221;CG&#8221;)

Spring ActionScript (&#8221;SAS&#8221;), formerly Prana
Tomcat (&#8221;TC&#8221;)

WebORB [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Introduction</strong></p>
<p>I&#8217;ve been playing around with a stack of Flex/ActionScript and Java frameworks and finally came up with one that I&#8217;m really pleased with &#8212; since I&#8217;m reusing these terms throughout the series, please review the acronyms after each, as that&#8217;s how I&#8217;ll be referring to them in the tutorial:</p>
<ul>
<li><a title="Flex" href="http://www.adobe.com/products/flex/" target="_blank">Flex</a></li>
<li><a title="Cairngorm" href="http://opensource.adobe.com/wiki/display/cairngorm/Cairngorm" target="_blank">Cairngorm</a> (&#8221;CG&#8221;)<a title="Cairngorm" href="http://opensource.adobe.com/wiki/display/cairngorm/Cairngorm" target="_blank"><br />
</a></li>
<li><a title="Spring ActionScript Framework" href="http://www.springsource.org/extensions/se-springactionscript-as" target="_blank">Spring ActionScript</a> (&#8221;SAS&#8221;), formerly <a title="Prana" href="http://www.pranaframework.org/" target="_blank">Prana</a></li>
<li><a title="Tomcat" href="http://tomcat.apache.org/" target="_blank">Tomcat</a> (&#8221;TC&#8221;)<a title="Tomcat" href="http://tomcat.apache.org/" target="_blank"><br />
</a></li>
<li><a title="WebORB for Java" href="http://www.themidnightcoders.com/products/weborb-for-java" target="_blank">WebORB</a> (&#8221;WORB&#8221;) /<a title="BlazeDS" href="http://opensource.adobe.com/wiki/display/blazeds/BlazeDS/" target="_blank"> BlazeDS</a> (&#8221;BDS&#8221;)<a title="BlazeDS" href="http://opensource.adobe.com/wiki/display/blazeds/BlazeDS/" target="_blank"><br />
</a></li>
<li><a title="Spring" href="http://www.springsource.com" target="_blank">Spring</a>, Server-side Java version</li>
<li><a title="Hibernate" href="https://www.hibernate.org/" target="_blank">Hibernate</a> (&#8221;HB&#8221;)<a title="Hibernate" href="https://www.hibernate.org/" target="_blank"><br />
</a></li>
<li><a title="MySQL" href="http://www.mysql.com/" target="_blank">MySQL</a></li>
</ul>
<p>To that, I&#8217;m planing on writing a series of tutorials where each one builds on the previous one. The final tutorial will cover: <strong>Flex + Cairngorm + Spring ActionScript + Tomcat + WebORB/BlazeDS + Spring Java + Spring Security + Hibernate + MySQL</strong></p>
<ul>
<li><a href="http://www.webappsolution.com/wordpress/2009/05/01/flex-spring-actionscript-cairngorm-tomact-blazeds-spring-hibernate-mysql-pt1/" target="_blank">Part 1: Basic Flex + CG Application</a></li>
<li><a href="http://www.webappsolution.com/wordpress/2009/05/08/flex-spring-actionscript-cairngorm-tomact-blazeds-spring-hibernate-mysql-pt2/" target="_blank">Part 2: Flex + CG + SAS</a></li>
<li><a href="http://www.webappsolution.com/wordpress/2009/05/14/flex-cairngorm-spring-actionscript-tomcat-blazeds-spring-java-hibernate-mysql-tutorial-part-3/" target="_blank">Part 3: Flex + CG + SAS + Injecting Services into Business Delegates</a></li>
<li><a href="http://www.webappsolution.com/wordpress/2009/06/11/flex-cairngorm-spring-actionscript-tomcat-weborbblazeds-spring-java-hibernate-mysql-tutorial-part-4/" target="_blank">Part 4: Integrated Flex Project + Java Project with Tomcat</a></li>
</ul>
<p>Part 4 in our series is really just a setup post that lays the groundwork for hooking in <a title="BlazeDS" href="http://opensource.adobe.com/wiki/display/blazeds/BlazeDS/" target="_blank">BlazeDS</a> (&#8221;BDS&#8221;) or <a title="WebORB for Java" href="http://www.themidnightcoders.com/products/weborb-for-java" target="_blank">WebORB</a> to our existing app which we&#8217;ll do in Part 5 &#8212; I started to put Flex + Tomcat + BDS/WebORB integration all in one post, but it started getting really long &#8212; instead we&#8217;ll just focus on creating a  Java-based Dynamic Web Project with <a title="Eclipse WTP" href="http://www.eclipse.org/webtools/" target="_blank">Eclipse Web Tools Platform</a> (&#8221;WTP&#8221;) and then modifying our existing Flex project to build and deploy to our new Java project.</p>
<p><strong><span style="color: #008000;">Tutorial Goal</span></strong><strong>: Create a new Dynamic Web Project integrated with Tomcat &amp; modify our previous Flex Project to build and deploy to it.<br />
</strong></p>
<p><strong></strong></p>
<p>This is extremely basic for seasoned Java developers, but I thought it would be necessary for those that wished to learn how to integrate a Flex project with a Java project inside one Eclipse IDE.</p>
<p><strong>Assets</strong><strong></strong>:</p>
<ul>
<li><a title="Project View Source (Flex)" href="http://www.webappsolution.com/flex/blog/examples/emp-mgmt-console-4/flex/srcview/index.html" target="_blank">Project View Source (Flex)</a><a title="Project View Source" href="http://www.webappsolution.com/flex/blog/examples/emp-mgmt-console-3/srcview/index.html" target="_blank"><br />
</a></li>
<li><a title="Project Source Files (Flex)" href="http://www.webappsolution.com/flex/blog/examples/emp-mgmt-console-4/flex/srcview/EmployeeManagementConsole4.zip" target="_blank">Project Source Files (Flex)</a></li>
<li><a title="Project Source Files (Java)" href="http://www.webappsolution.com/flex/blog/examples/emp-mgmt-console-4/java/EmployeeManagementConsoleJava4.zip" target="_blank">Project Source Files (Java)</a></li>
</ul>
<p><strong>NOTE</strong>: Usually I provide a working demo, but since it&#8217;s not really any different than <a title="Part 3" href="http://www.webappsolution.com/wordpress/2009/05/14/flex-cairngorm-spring-actionscript-tomcat-blazeds-spring-java-hibernate-mysql-tutorial-part-3/" target="_blank">Part 3</a> and I didn&#8217;t have time to deploy to our <a title="Amazon EC2" href="http://aws.amazon.com/ec2/" target="_blank">Amazon EC2</a> Tomcat box, I&#8217;ll come back to it at a later date.</p>
<p><strong>Prerequisites &amp; Assumptions</strong></p>
<ul>
<li>Already have Eclipse WTP (or a similar Eclipse based Java IDE) that allows you to create Dynamic Web Projects that integrate with Tomcat.</li>
<li>Basic understanding of Java development and deployment into a web container.</li>
</ul>
<p><strong>What This Tutorial is Not</strong></p>
<p>This tutorial will not provide details on installing Eclipse WTP or other Eclipse based Java IDEs &#8212; <a title="Download WTP" href="http://download.eclipse.org/webtools/downloads/" target="_blank">go here to get a copy of WTP</a>. In addition, it will not focus on Java best-practices, but rather get the developer up to speed quickly on the integration of Flex, WTP, and Tomcat.</p>
<p><strong>NOTE</strong>: Most of the code snippets are truncated to be concise and only highlight the lines of code that truly deserve the readers attention, so it&#8217;s highly recommended that readers download the accompanying project source files in order to follow along.</p>
<p><strong>Download Tomcat Server<br />
</strong></p>
<p>To start things off we&#8217;ll simply download Tomcat so we have our application server ready to rock when we start creating our Java project. <a title="Tomcat 6.x" href="http://tomcat.apache.org/download-60.cgi" target="_blank">Go here and download the latest version of the Tomcat server as a zip</a>. At the time of writing this Tomcat 6.0.18 was the latest release.</p>
<p>As a side note, I usually stick all of my servers and app server frameworks on my local hard drive in something like this (just in case you&#8217;re trying to stay organized like me):</p>
<div class="wp-caption alignnone" style="width: 552px"><img title="Finder Tomcat Location" src="http://www.webappsolution.com/images/blog/finder-tomcat.png" alt="Location of Tomcat on Local HD" width="542" height="322" /><p class="wp-caption-text">Location of Tomcat on Local HD</p></div>
<p>Once it&#8217;s finished downloading unzip that sucker and we&#8217;ll move on to creating the Java project.</p>
<p><strong>Create a Dynamic Web Project (Java)<br />
</strong></p>
<p>Start by changing your perspective to the Java EE Development perspective and then create a new Dynamic Web Project called <strong>EmployeeManagementConsoleJava4</strong> in the same workspace as the Flex projects from the earlier tutorials (<a title="Part 1" href="http://www.webappsolution.com/wordpress/2009/05/01/flex-spring-actionscript-cairngorm-tomact-blazeds-spring-hibernate-mysql-pt1/" target="_blank">Part 1</a>, <a title="Part 2" href="http://www.webappsolution.com/wordpress/2009/05/08/flex-spring-actionscript-cairngorm-tomact-blazeds-spring-hibernate-mysql-pt2/" target="_blank">Part 2</a>, <a title="Part 3" href="http://www.webappsolution.com/wordpress/2009/05/14/flex-cairngorm-spring-actionscript-tomcat-blazeds-spring-java-hibernate-mysql-tutorial-part-3/" target="_blank">Part 3</a>)  &#8212; you can combine your Flex and Java project into one project (it&#8217;s an option when you first create your Flex project), but since we started with a plain old Flex project we&#8217;ll keep them separate for the remainder of this tutorial.</p>
<p>The <strong>Java4</strong> suffix will just help us indicate that it&#8217;s mapped to the EmployeeManagementConsole4 Flex project we&#8217;re going to create, as well as the new projects we&#8217;ll create in subsequent tutorials.</p>
<p>When you create your new Java project, you&#8217;ll be presented with the option to add a server to this project, so here we&#8217;ll select the &#8220;New&#8221; button and browse to our recently downloaded Tomcat server installation &#8212; choose Apache Tomcat v6.0 and browse to the tomcat directory we unzipped above:</p>
<div class="wp-caption alignnone" style="width: 558px"><img title="Dynamic Web Project Tomcat Setup" src="http://www.webappsolution.com/images/blog/dyn-web-proj-tomcat-setup.png" alt="Dynamic Web Project Tomcat Setup" width="548" height="605" /><p class="wp-caption-text">Dynamic Web Project Tomcat Setup</p></div>
<p>Click Finish and close out the creation of your Java project &#8212; we&#8217;ll just keep all the defaults to make things uber simple.</p>
<p><strong>Test Java Project with Tomcat Integration</strong></p>
<p>Start by creating a new index.html file in the WebContent folder in your new Project and toss in &#8220;Test&#8221; for both the title and the only node value in the &lt;body&gt; tag:</p>
<div class="wp-caption alignnone" style="width: 502px"><img title="index.html in WebContent" src="http://www.webappsolution.com/images/blog/index-html.png" alt="index.html in WebContent" width="492" height="346" /><p class="wp-caption-text">index.html in WebContent</p></div>
<p>And even though we haven&#8217;t written any Java, let&#8217;s test deploy our application to the server and start her up.</p>
<p>Down in your Server View of Eclipse (if you don&#8217;t see the server view, just goto Window -&gt; Show View -&gt; Servers), right-click on the new server we just created and and select &#8220;Add and Remove Projects&#8230;&#8221; and select your new <strong>EmployeeManagementConsoleJava4</strong> and click the Add button &#8212; you should see the project show up on the right column, indicating it&#8217;s been added to the server:</p>
<div class="wp-caption alignnone" style="width: 543px"><img title="Add Project to Tomcat" src="http://www.webappsolution.com/images/blog/tomcat-add-project.png" alt="Add Project to Tomcat" width="533" height="589" /><p class="wp-caption-text">Add Project to Tomcat</p></div>
<p>Now start your server by right-clicking on it and selecting Start &#8212; you should see the console start to fill up with logging info from the server and hopefully no errors. If you do, try going through the console&#8217;s list of errors and fixing them.</p>
<p>At this point I&#8217;ll assume you don&#8217;t have any errors and you&#8217;re ready to test your simple Java project &#8212; right-click on index.html and select Run As -&gt; Run on Server and you should see your index page open up in Eclipse&#8217;s default browser. The other option is to open up your favorite browser and entering in the following URL:</p>
<p>http://localhost:8080/EmployeeManagementConsoleJava4/index.html.</p>
<p>At this point you should see a white page with the sole word &#8220;Test&#8221; that we added to our index.html page.</p>
<p>Next we&#8217;ll move back to the Flex side and change our Flex Project&#8217;s settings to build and deploy to our new Java project.</p>
<p><strong>Create a Server-Based Flex Builder Project</strong></p>
<p>If you don&#8217;t already have the project from <a title="Part 3" href="http://www.webappsolution.com/wordpress/2009/05/14/flex-cairngorm-spring-actionscript-tomcat-blazeds-spring-java-hibernate-mysql-tutorial-part-3/" target="_blank">Part 3</a> of this series, please <a title="Download Part 3" href="http://www.webappsolution.com/flex/blog/examples/emp-mgmt-console-3/srcview/EmployeeManagementConsole3.zip" target="_blank">download it</a> and import it into Flex Builder (&#8221;FB&#8221;). Once in FB, copy and paste it into the same workspace as <strong>EmployeeManagementConsoleJava4</strong>.</p>
<p><strong>NOTE</strong>: If you don&#8217;t feel like writing all this from scratch, just download my project for Part 4 &#8212; listed above.</p>
<p><strong>Modify the Project Property Files<br />
</strong></p>
<p>Since we started our Flex project as a non-server based project, we&#8217;ll need to make some modifications to our .project, .actionScriptProperties, and .flexProperties files in order to convert the project to a server-based application. These files all exist under the root of the Flex Project&#8217;s directory &#8212; if you can&#8217;t see them, make sure you&#8217;re in either the Flex or Flex Debugging Perspective.</p>
<p>As a side note, under the covers we&#8217;re modifying the Flex Project&#8217;s Properties as if we right-clicked on the project and selected Properties.</p>
<p><strong>.actionScriptProperties</strong></p>
<p>Open up .actionScriptProperties and locate the <strong>&lt;compiler&gt;</strong> node and add or change the following attributes to look like this:</p>
<ul>
<li>outputFolderLocation=&#8221;DOCUMENTS/EmployeeManagementConsoleJava4/WebContent/flex&#8221;</li>
<li>rootURL=&#8221;http://localhost:8080/EmployeeManagementConsoleJava4/flex&#8221;</li>
</ul>
<p>Your .actionScriptProperties should look like this:</p>
<pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;actionScriptProperties
	mainApplicationPath="EmployeeManagementConsole4.mxml"
	version="3"&gt;

&lt;compiler
	additionalCompilerArguments="-locale en_US
	-use-network=false"
	copyDependentFiles="true"
	enableModuleDebug="true"
	generateAccessible="false"
	htmlExpressInstall="true"
	htmlGenerate="true"
	htmlHistoryManagement="true"
	htmlPlayerVersion="9.0.124"
	htmlPlayerVersionCheck="true"
	outputFolderLocation=
		"DOCUMENTS/EmployeeManagementConsoleJava4/WebContent/flex"
	outputFolderPath="bin-debug"
	rootURL="http://localhost:8080/EmployeeManagementConsoleJava4/flex"
	sourceFolderPath="src"
	strict="true"
	useApolloConfig="false"
	verifyDigests="true"
	warn="true"&gt;

&lt;compilerSourcePath/&gt;
&lt;libraryPath defaultLinkType="1"&gt;
&lt;libraryPathEntry kind="4" path=""/&gt;
&lt;libraryPathEntry kind="1" linkType="1" path="libs"/&gt;
&lt;/libraryPath&gt;
&lt;sourceAttachmentPath/&gt;
&lt;/compiler&gt;
&lt;applications&gt;
&lt;application path="EmployeeManagementConsole4.mxml"/&gt;
&lt;/applications&gt;
&lt;modules/&gt;
&lt;buildCSSFiles/&gt;
&lt;/actionScriptProperties&gt;
</code></pre>
<p><strong>.flexProperties</strong></p>
<p>Open up .flexProperties and locate the <strong>&lt;flexProperties&gt;</strong> node and add or change the following attributes to look like this:</p>
<ul>
<li>flexServerType=&#8221;2&#8243;</li>
<li>serverContextRoot=&#8221;/EmployeeManagementConsoleJava4&#8243;</li>
<li>serverRoot=&#8221;${DOCUMENTS}/EmployeeManagementConsoleJava4/WebContent&#8221;</li>
<li>serverRootURL=&#8221;http://localhost:8080/EmployeeManagementConsoleJava4/&#8221;</li>
</ul>
<p>Your .flexProperties should look like this:</p>
<pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;flexProperties
	flexServerType="2"
	serverContextRoot="/EmployeeManagementConsoleJava4"
	serverRoot="${DOCUMENTS}/EmployeeManagementConsoleJava4/WebContent"
	serverRootURL="http://localhost:8080/EmployeeManagementConsoleJava4/"
	toolCompile="true"
	useServerFlexSDK="false"
	version="1"/&gt;
</code></pre>
<p><strong>.project</strong></p>
<p>Open up .project and locate the <strong>&lt;projectDescription&gt;</strong> node and add the node <strong>&lt;linkedResources&gt;</strong> after the <strong>&lt;natures&gt;</strong> node inside <strong>&lt;projectDescription&gt;</strong> &#8212; simply copy and paste the &lt;linkedResources&gt; node from my code snippet below; your .project file should look like this:</p>
<p><strong>NOTE</strong>: You need to put the full, absolute path on your machine to your Java Web Project in place of the <strong>@@FULL_PATH@@</strong> key I subsituted down below for the path on my machine.</p>
<pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;projectDescription&gt;
	&lt;name&gt;EmployeeManagementConsole4&lt;/name&gt;
	&lt;comment&gt;&lt;/comment&gt;
	&lt;projects&gt;
	&lt;/projects&gt;
	&lt;buildSpec&gt;
		&lt;buildCommand&gt;
			&lt;name&gt;com.adobe.flexbuilder.project.flexbuilder&lt;/name&gt;
			&lt;arguments&gt;
			&lt;/arguments&gt;
		&lt;/buildCommand&gt;
	&lt;/buildSpec&gt;
	&lt;natures&gt;
		&lt;nature&gt;com.adobe.flexbuilder.project.flexnature&lt;/nature&gt;
		&lt;nature&gt;com.adobe.flexbuilder.project.actionscriptnature&lt;/nature&gt;
	&lt;/natures&gt;
	&lt;linkedResources&gt;
		&lt;link&gt;
			&lt;name&gt;bin-debug&lt;/name&gt;
			&lt;type&gt;2&lt;/type&gt;
			&lt;location&gt;
		@@FULL_PATH@@/EmployeeManagementConsoleJava4/WebContent/flex
			&lt;/location&gt;
		&lt;/link&gt;
	&lt;/linkedResources&gt;
&lt;/projectDescription&gt;
</code></pre>
<p><strong>Check Flex Project Properties<br />
</strong></p>
<p>Just to make sure we did everything correctly, let&#8217;s check the project properties by right-click on our Flex Project and selecting Properties -&gt; Flex Build Path. It should look like this:</p>
<ul>
<li>Main source folder: src</li>
<li>Output folder: ${DOCUMENTS}/EmployeeManagementConsoleJava4/WebContent/flex</li>
<li>Output folder URL: http://localhost:8080/EmployeeManagementConsoleJava4/flex</li>
</ul>
<div class="wp-caption alignnone" style="width: 680px"><img title="Build Path Properties" src="http://www.webappsolution.com/images/blog/emp-mgmt-console-build-path-props.png" alt="Build Path Properties" width="670" height="550" /><p class="wp-caption-text">Build Path Properties</p></div>
<p>Next let&#8217;s check the Flex Server Settings: Project Properties -&gt; Flex Server:</p>
<ul>
<li>Root folder: ${DOCUMENTS}/EmployeeManagementConsoleJava4/WebContent</li>
<li>Root URL: http://localhost:8080/EmployeeManagementConsoleJava4/</li>
<li>Context root: /EmployeeManagementConsoleJava4</li>
</ul>
<div class="wp-caption alignnone" style="width: 680px"><img title="Server Properties" src="http://www.webappsolution.com/images/blog/emp-mgmt-console-server-props.png" alt="Server Properties" width="670" height="551" /><p class="wp-caption-text">Server Properties</p></div>
<p><strong>Move Assets Under Source</strong></p>
<p>Something we&#8217;re going to change here is the location of the assets directory &#8212; we&#8217;re going to move it from the root of the Flex project to the Flex src directory &#8212; this ensures that our assets are deployed with our Flex app everytime we build the application. If you run a build, you&#8217;ll now see that the assets directory is in the bin-debug directory at the same level as the actual Flex application:</p>
<div class="wp-caption alignnone" style="width: 346px"><img title="Assets Directory New Location" src="http://www.webappsolution.com/images/blog/java-proj-assets-moved.png" alt="Assets Directory New Location" width="336" height="392" /><p class="wp-caption-text">Assets Directory New Location</p></div>
<p>This also means we&#8217;ll need to make 2 quick changes in in our Flex app that point to the location of the assets directory:</p>
<p>1. Open up <strong>EmployeeManagementConsole4.mxml</strong> and locate the line where we&#8217;re loading up the Spring Application Context XML config file and modify it&#8217;s path such that it&#8217;s relative to the Flex application.</p>
<pre><code>private function loadSpringAppContext():void
{
	trace("Application loadSpringAppContext");

	var applicationContextURL:String;

	<strong>applicationContextURL = "assets/springactionscript/applicationContext.xml";</strong>

	// Initializes the <code>applicationContext</code> instance and adds listeners for the context file loading events.
	this.applicationContext = new FlexXMLApplicationContext(applicationContextURL);
	this.applicationContext.addEventListener(Event.COMPLETE, applicationContextLoadResult);
	this.applicationContext.addEventListener(IOErrorEvent.IO_ERROR, applicationContextLoadFault);
	this.applicationContext.load();
}</code></pre>
<p>2. Open up <strong>applicationContext.xml</strong> and locate the line where we set the URL to the XML data and modify it&#8217;s path such that it&#8217;s relative to the Flex application.</p>
<pre><code>&lt;property name="httpService"&gt;
	&lt;object class="mx.rpc.http.HTTPService"&gt;
		<strong>&lt;property name="url" value="assets/xml/employee_list.xml" /&gt;</strong>
		&lt;property name="resultFormat" value="e4x" /&gt;
		&lt;property name="method" value="GET" /&gt;
	&lt;/object&gt;
&lt;/property&gt;</code></pre>
<p><strong>Build and Run the Application</strong></p>
<p>Couple last things to get this thing up and running:</p>
<ol>
<li>Run a clean on the Flex project: Project -&gt; Clean</li>
<li>If you expand your Java project, you&#8217;ll see a <strong>WebContent</strong> directory and a new <strong>flex</strong> directory that was generated for us when we built our Flex project. Copy the <strong>assets</strong> directory from the root of our Flex project into WebContent</li>
<li>If your Server is already started, Stop it.</li>
<li>Right-click on the server and select Clean&#8230;</li>
<li>Restart your sever.</li>
<li>Right-click on your Flex project and select Debug As -&gt; Flex Application</li>
<li>The Flex app should show up in the browser.</li>
<li>Click the &#8220;Refresh List&#8221; bottom to make sure it still loads the list of employees.</li>
</ol>
<p>Your Flex app should show up in your browser and look just like Step 3&#8217;s finished tutorial, except that it&#8217;s running on the Tomcat application server.</p>
<div class="wp-caption alignnone" style="width: 610px"><img title="Completed Step 4 Flex App" src="http://www.webappsolution.com/images/blog/step-4-finished-app.png" alt="Completed Step 4 Flex App" width="600" height="561" /><p class="wp-caption-text">Completed Step 4 Flex App</p></div>
<p>Stay tuned for Part 5 where we integrate Flex and BlazeDS using the RemoteObject.</p>
<p align="left"><a class="tt" href="http://twitter.com/home/?status=Flex+%2B+Cairngorm+%2B+Spring+ActionScript+%2B+Tomcat+%2B+WebORB%2FBlazeDS+%2B+Spring+Java+%2B+Hibernate+%2B+MySQL+Tutorial+Part+4+http://wwtza.th8.us" title="Post to Twitter"><img class="nothumb" src="http://www.webappsolution.com/wordpress/wp-content/plugins/tweet-this/icons/tt-twitter.png" alt="Post to Twitter" /></a> <a class="tt" href="http://twitter.com/home/?status=Flex+%2B+Cairngorm+%2B+Spring+ActionScript+%2B+Tomcat+%2B+WebORB%2FBlazeDS+%2B+Spring+Java+%2B+Hibernate+%2B+MySQL+Tutorial+Part+4+http://wwtza.th8.us" title="Post to Twitter">Tweet This Post</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.webappsolution.com/wordpress/2009/06/11/flex-cairngorm-spring-actionscript-tomcat-weborbblazeds-spring-java-hibernate-mysql-tutorial-part-4/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Convert Plain-Old Flex Project to Java Server Based Project</title>
		<link>http://www.webappsolution.com/wordpress/2009/05/28/convert-plain-old-flex-project-to-java-server-based-project/</link>
		<comments>http://www.webappsolution.com/wordpress/2009/05/28/convert-plain-old-flex-project-to-java-server-based-project/#comments</comments>
		<pubDate>Thu, 28 May 2009 22:16:43 +0000</pubDate>
		<dc:creator>brianr</dc:creator>
		
		<category><![CDATA[eclipse]]></category>

		<category><![CDATA[flex builder]]></category>

		<category><![CDATA[java]]></category>

		<category><![CDATA[flex]]></category>

		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://www.webappsolution.com/wordpress/?p=322</guid>
		<description><![CDATA[Ever start a project as a plain-old Flex project that doesn&#8217;t use a Java server and then later want to convert it? You&#8217;d think you could do this simply by examing the project&#8217;s server properties (Project -&#62; Properties -&#62; Flex Server) and adding a server&#8230;but no&#8230;you can&#8217;t&#8230;ehhh&#8230;not to fret, there&#8217;s still hope&#8230;don&#8217;t create a new [...]]]></description>
			<content:encoded><![CDATA[<p>Ever start a project as a plain-old Flex project that doesn&#8217;t use a Java server and then later want to convert it? You&#8217;d think you could do this simply by examing the project&#8217;s server properties (Project -&gt; Properties -&gt; Flex Server) and adding a server&#8230;but no&#8230;you can&#8217;t&#8230;ehhh&#8230;not to fret, there&#8217;s still hope&#8230;don&#8217;t create a new project from scratch just yet and copy all your old projects files into your new project. We just need to modify a couple of the project&#8217;s .files and we&#8217;re good to go.</p>
<p><strong>Modify the Project Property Files<br />
</strong></p>
<p>Since we started our Flex project as a non-server based project, we&#8217;ll need to make some modifications to our .<strong>project</strong>, .<strong>actionScriptProperties</strong>, and .<strong>flexProperties</strong> files in order to convert the project to a server-based application. These files all exist under the root of the Flex Project&#8217;s directory &#8212; if you can&#8217;t see them, make sure you&#8217;re in either the Flex or Flex Debugging Perspective.</p>
<p>As a side note, under the covers we&#8217;re modifying the Flex Project&#8217;s Properties as if we right-clicked on the project and selected Properties.</p>
<p><strong>NOTE</strong>: The following examples use a @@key@@ to indicate where you should substitute your own project, workspace, and server settings.</p>
<p><strong>NOTE</strong>: This also assumes that you&#8217;re building your flex project to a directory in your Java project called <em>flex</em> &#8212; you don&#8217;t need to create it in WebContent on the Java side, as it&#8217;s generated by Flex Builder when you do a build or clean.</p>
<p><strong>.actionScriptProperties</strong></p>
<p>Open up .actionScriptProperties and locate the <strong>&lt;compiler&gt;</strong> node and add or change the following attributes to look like this:</p>
<ul>
<li>outputFolderLocation=&#8221;DOCUMENTS/@@JavaProjectName@@/WebContent/flex&#8221;</li>
<li>rootURL=&#8221;http://@@Host@@:@@Port@@/@@JavaAppContext@@/flex&#8221;</li>
</ul>
<p>Your .actionScriptProperties should look like this:</p>
<pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;actionScriptProperties
	mainApplicationPath="@@MyFlexApp@@.mxml"
	version="3"&gt;

&lt;compiler
	additionalCompilerArguments="-locale en_US
	-use-network=false"
	copyDependentFiles="true"
	enableModuleDebug="true"
	generateAccessible="false"
	htmlExpressInstall="true"
	htmlGenerate="true"
	htmlHistoryManagement="true"
	htmlPlayerVersion="9.0.124"
	htmlPlayerVersionCheck="true"
	outputFolderLocation=
		"DOCUMENTS/@@JavaProjectName@@/WebContent/flex"
	outputFolderPath="bin-debug"
	rootURL="http://@@Host@@:@@Port@@/@@JavaAppContext@@/flex"
	sourceFolderPath="src"
	strict="true"
	useApolloConfig="false"
	verifyDigests="true"
	warn="true"&gt;

&lt;compilerSourcePath/&gt;
&lt;libraryPath defaultLinkType="1"&gt;
&lt;libraryPathEntry kind="4" path=""/&gt;
&lt;libraryPathEntry kind="1" linkType="1" path="libs"/&gt;
&lt;/libraryPath&gt;
&lt;sourceAttachmentPath/&gt;
&lt;/compiler&gt;
&lt;applications&gt;
&lt;application path="@@MyFlexApp@@.mxml"/&gt;
&lt;/applications&gt;
&lt;modules/&gt;
&lt;buildCSSFiles/&gt;
&lt;/actionScriptProperties&gt;
</code></pre>
<p><strong>.flexProperties</strong></p>
<p>Open up .flexProperties and locate the <strong>&lt;flexProperties&gt;</strong> node and add or change the following attributes to look like this:</p>
<ul>
<li>flexServerType=&#8221;2&#8243;</li>
<li>serverContextRoot=&#8221;/@@JavaAppContext@@&#8221;</li>
<li>serverRoot=&#8221;${DOCUMENTS}/@@JavaProjectName@@/WebContent&#8221;</li>
<li>serverRootURL=&#8221;http://@@Host@@:@@Port@@/@@JavaAppContext@@/&#8221;</li>
</ul>
<p>Your .flexProperties should look like this:</p>
<pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;flexProperties
	flexServerType="2"
	serverContextRoot="/@@JavaAppContext@@"
	serverRoot="${DOCUMENTS}/@@JavaProjectName@@/WebContent"
	serverRootURL="http://@@Host@@:@@Port@@/@@JavaAppContext@@/"
	toolCompile="true"
	useServerFlexSDK="false"
	version="1"/&gt;
</code></pre>
<p><strong>.project</strong></p>
<p>Open up .project and locate the <strong>&lt;projectDescription&gt;</strong> node and add the node <strong>&lt;linkedResources&gt;</strong> after the <strong>&lt;natures&gt;</strong> node inside <strong>&lt;projectDescription&gt;</strong> &#8212; simply copy and paste the &lt;linkedResources&gt; node from my code snippet below; your .project file should look like this:</p>
<p><strong>NOTE</strong>: You need to put the full, absolute path on your machine to your Java Web Project in place of the <strong>@@FULL_PATH@@</strong> key I subsituted down below for the path on my machine.</p>
<pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;projectDescription&gt;
	&lt;name&gt;EmployeeManagementConsole4&lt;/name&gt;
	&lt;comment&gt;&lt;/comment&gt;
	&lt;projects&gt;
	&lt;/projects&gt;
	&lt;buildSpec&gt;
		&lt;buildCommand&gt;
			&lt;name&gt;com.adobe.flexbuilder.project.flexbuilder&lt;/name&gt;
			&lt;arguments&gt;
			&lt;/arguments&gt;
		&lt;/buildCommand&gt;
	&lt;/buildSpec&gt;
	&lt;natures&gt;
		&lt;nature&gt;com.adobe.flexbuilder.project.flexnature&lt;/nature&gt;
		&lt;nature&gt;com.adobe.flexbuilder.project.actionscriptnature&lt;/nature&gt;
	&lt;/natures&gt;
	&lt;linkedResources&gt;
		&lt;link&gt;
			&lt;name&gt;bin-debug&lt;/name&gt;
			&lt;type&gt;2&lt;/type&gt;
			&lt;location&gt;
		@@FULL_PATH@@/@@JavaProjectName@@/WebContent/flex
			&lt;/location&gt;
		&lt;/link&gt;
	&lt;/linkedResources&gt;
&lt;/projectDescription&gt;
</code></pre>
<p><strong>Check Flex Project Properties<br />
</strong></p>
<p>Just to make sure we did everything correctly, let&#8217;s check the project properties by right-click on our Flex Project and selecting Properties -&gt; Flex Build Path. It should look like this:</p>
<p><strong>NOTE</strong>: The screen shots have my actual project, workspace, and server settings &#8212; these should help solidify the entire tutorial. They are from Part 4 of my Stack Tutorial Series.</p>
<ul>
<li>Main source folder: src</li>
<li>Output folder: ${DOCUMENTS}/@@JavaProjectName@@/WebContent/flex</li>
<li>Output folder URL: http://@@Host@@:@@Port@@/@@JavaAppContext@@/flex</li>
</ul>
<div class="wp-caption alignnone" style="width: 680px"><img title="Build Path Properties" src="http://www.webappsolution.com/images/blog/emp-mgmt-console-build-path-props.png" alt="Build Path Properties" width="670" height="550" /><p class="wp-caption-text">Build Path Properties</p></div>
<p>Next let&#8217;s check the Flex Server Settings: Project Properties -&gt; Flex Server:</p>
<ul>
<li>Root folder: ${DOCUMENTS}/@@JavaProjectName@@/WebContent</li>
<li>Root URL: http://@@Host@@:@@Port@@/@@JavaAppContext@@/</li>
<li>Context root: /@@JavaAppContext@@</li>
</ul>
<div class="wp-caption alignnone" style="width: 680px"><img title="Server Properties" src="http://www.webappsolution.com/images/blog/emp-mgmt-console-server-props.png" alt="Server Properties" width="670" height="551" /><p class="wp-caption-text">Server Properties</p></div>
<p>Finished!</p>
<p align="left"><a class="tt" href="http://twitter.com/home/?status=Convert+Plain-Old+Flex+Project+to+Java+Server+Based+Project+http://8irx8.th8.us" title="Post to Twitter"><img class="nothumb" src="http://www.webappsolution.com/wordpress/wp-content/plugins/tweet-this/icons/tt-twitter.png" alt="Post to Twitter" /></a> <a class="tt" href="http://twitter.com/home/?status=Convert+Plain-Old+Flex+Project+to+Java+Server+Based+Project+http://8irx8.th8.us" title="Post to Twitter">Tweet This Post</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.webappsolution.com/wordpress/2009/05/28/convert-plain-old-flex-project-to-java-server-based-project/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Configuring Eclipse/Flex for Building Resource Bundles</title>
		<link>http://www.webappsolution.com/wordpress/2009/03/17/configuring-eclipseflex-for-building-resource-bundles/</link>
		<comments>http://www.webappsolution.com/wordpress/2009/03/17/configuring-eclipseflex-for-building-resource-bundles/#comments</comments>
		<pubDate>Wed, 18 Mar 2009 00:55:17 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[eclipse]]></category>

		<category><![CDATA[flex]]></category>

		<category><![CDATA[flex builder]]></category>

		<category><![CDATA[resource bundle]]></category>

		<guid isPermaLink="false">http://www.webappsolution.com/wordpress/?p=3</guid>
		<description><![CDATA[o	Determine which sdk FB is using by looking through the compiler in properties
o	Go to the root of the sdk
o	Note: if you have dataviz, you’d need to copy fbpro from older rev to new rev
o	Go into fbpro/projects you’ll see three folders, copy all three
•	Copy them to sdk/frameworks/projects
o	Go into the datavisualization folder you just dropped
•	/bundles/en_US and create [...]]]></description>
			<content:encoded><![CDATA[<p>o	Determine which sdk FB is using by looking through the compiler in properties<br />
o	Go to the root of the sdk<br />
o	Note: if you have dataviz, you’d need to copy fbpro from older rev to new rev<br />
o	Go into fbpro/projects you’ll see three folders, copy all three<br />
•	Copy them to sdk/frameworks/projects<br />
o	Go into the datavisualization folder you just dropped<br />
•	/bundles/en_US and create a folder called src<br />
•	copy the three .properties files from /bundles/en_US into src to source folder you just created<br />
o	Then run copylocale</p>
<p>-resource-bundle-list=resources.txt</p>
<p>bundles = containers core effects skins styles</p>
<p>mxmlc -locale=fr_FR,en_US -source-path=locale/{locale} -include-resource-bundles=containers,core,effects,skins,styles,charts,datamanagement -output fr_FR_ResourcMod.swf</p>
<p align="left"><a class="tt" href="http://twitter.com/home/?status=Configuring+Eclipse%2FFlex+for+Building+Resource+Bundles+http://ionnk.th8.us" title="Post to Twitter"><img class="nothumb" src="http://www.webappsolution.com/wordpress/wp-content/plugins/tweet-this/icons/tt-twitter.png" alt="Post to Twitter" /></a> <a class="tt" href="http://twitter.com/home/?status=Configuring+Eclipse%2FFlex+for+Building+Resource+Bundles+http://ionnk.th8.us" title="Post to Twitter">Tweet This Post</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.webappsolution.com/wordpress/2009/03/17/configuring-eclipseflex-for-building-resource-bundles/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>

