Hi

I just finished upgrading an app from Flex 3.2 to Flex 4.5.1. I'm
pretty sure I've made all changes necessary.

I'm using Flex Mojos 3.7.1 (because that's the one the app was using
from before)

I could easily move to Flex Mojos 3.9 (which works fine with Flex 4.5)
but I want to get it working right first, unless I should change.

            <plugin>
                <groupId>org.sonatype.flexmojos</groupId>
                <artifactId>flexmojos-maven-plugin</artifactId>
                <version>${flexmojos-maven-plugin.version}</version>
                <extensions>true</extensions>
                <configuration>
                    <sourceFile>FundsFlexApp.mxml</sourceFile>
                    <targetPlayer>${target.flash.player.version}</
targetPlayer>
                    <themes>
                        <theme>
                            ${settings.localRepository}/com/adobe/flex/
framework/framework/${flex.sdk.version}/framework-${flex.sdk.version}-
configs/themes/halo/halo.swc
                        </theme>
                    </themes>
                    <generateHtmlWrapper>true</generateHtmlWrapper>
                    <definesDeclaration>
                        <property>
                            <name>CONFIG::debugging</name>
                            <value>true</value>
                        </property>
                        <property>
                            <name>CONFIG::buildTimeStamp</name>
                            <value>'${maven.build.timestamp}'</value>
                        </property>
                        <property>
                            <name>CONFIG::versionNumber</name>
                            <value>'${project.build.version}'</value>
                        </property>
                        <property>
                            <name>CONFIG::fundsModuleUrl</name>
                            <value>'${funds.module.url}'</value>
                        </property>
                        <property>
                            <name>CONFIG::fundsEndpointUrl</name>
                            <value>'${funds.endpoint.url}'</value>
                        </property>
                        <property>
                            <name>CONFIG::excelExportEndpointUrl</
name>
                            <value>'${funds.excelexport.url}'</value>
                        </property>
                    </definesDeclaration>
                    <debug>${flex.debug}</debug>
                    <storepass/>
                    <configurationReport>true</configurationReport>
                    <optimize>true</optimize>
                    <allowSourcePathOverlap>true</
allowSourcePathOverlap>
                    <headlessServer>true</headlessServer>
                    <compiledLocales>
                        <locale>en_US</locale>
                    </compiledLocales>
                    <warnings>
                        <noConstructor>false</noConstructor>
                    </warnings>
                    <keepGeneratedActionscript>true</
keepGeneratedActionscript>
                    <mergeResourceBundle>true</mergeResourceBundle>
                    <includeSources>
                        <source>${basedir}/src/main/flex</source>
                    </includeSources>
                    <staticLinkRuntimeSharedLibraries>true</
staticLinkRuntimeSharedLibraries>
                    <as3>true</as3>
                    <flashPlayerCommand>flashplayer</
flashPlayerCommand>
                </configuration>
                <executions>
                    <execution>
                        <id>default-generate</id>
                        <goals>
                            <goal>generate</goal>
                        </goals>
                        <configuration>
                            <generatorToUse>graniteds21</
generatorToUse>
                            <templates>
                                <base-enum-template>${basedir}/src/
main/templates/enumBlaze.gsp</base-enum-template>
                                <base-bean-template>${basedir}/src/
main/templates/beanBaseBlaze.gsp</base-bean-template>
                            </templates>
                            <includeJavaClasses>
                                <includeClass>.....</includeClass>
                            </includeJavaClasses>
                        </configuration>
                    </execution>
                    <!--  We build the modules -->
                    <execution>
                        <id>build-modules</id>
                        <goals>
                            <goal>compile-swf</goal>
                        </goals>
                        <configuration>
                            <staticLinkRuntimeSharedLibraries>true</
staticLinkRuntimeSharedLibraries>
 
<sourceFile>CounterpartyMaintenanceModule.mxml</sourceFile>
                            <moduleFiles>
 
<module>CounterpartyMaintenanceModule.mxml</module>
 
<module>ManageProposedLimitsModule.mxml</module>
                                <module>NavUploadModule.mxml</module>
                            </moduleFiles>
                        </configuration>
                    </execution>
                    <!-- We build the app which is ovewriting the app
file generated by the modules -->
                    <execution>
                        <id>build-app</id>
                        <goals>
                            <goal>compile-swf</goal>
                        </goals>
                        <configuration>
                            <staticLinkRuntimeSharedLibraries>true</
staticLinkRuntimeSharedLibraries>
                            <sourceFile>FundsFlexApp.mxml</sourceFile>
                            <additionalApplications>
                                <param>FundsApplicationRig.mxml</
param>
                            </additionalApplications>
                            <moduleFiles/>
                            <services>${basedir}/target/generated-
resources/services-config.xml</services>
                            <contextRoot>/funds</contextRoot>
                        </configuration>
                    </execution>
                </executions>
                <dependencies>
                    <dependency>
                        <groupId>com.adobe.flex</groupId>
                        <artifactId>compiler</artifactId>
                        <version>${flex.sdk.version}</version>
                        <type>pom</type>
                    </dependency>
                    <dependency>
                        <groupId>com.adobe.flex.framework</groupId>
                        <artifactId>playerglobal</artifactId>
                        <version>${flex.sdk.version}</version>
                        <type>swc</type>
                        <classifier>${flash.player.classifier}</
classifier>
                    </dependency>
                    <dependency>
                        <groupId>${flex.sdk.license.groupid}</groupId>
                        <artifactId>license</artifactId>
                        <version>${flex.sdk.version}</version>
                    </dependency>
                </dependencies>
            </plugin>


The compilation is successful with almost no significant warnings at
all. However during runtime, I get the following runtime error:

Verify Error #1014: mx.controls.List could not be found  followed by a
couple more saying that basic AS classes could not be found.

I've searched quite a lot online and the only point of direction I get
is something to do with RSLs.

Given that the mojo configuration was working fine for 3.2, what might
have changed in the way modules are handled?

Modules are loaded using the cairngorm library and I've made all
necessary changes to work with 4.5.1. ( I did this in one more project
and had no problems running the app).

The project is not using any major Flex dependencies apart from
com.adobe.flex.flex-framework and
com.adobe.flex.framework.datavisualization

Any help will be highly appreciated!

Thanks

-- 
You received this message because you are subscribed to the Google
Groups "Flex Mojos" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/flex-mojos

http://flexmojos.sonatype.org/

Reply via email to