>
> Error #2046: The loaded file did not have a valid signature.

Well, this error happens when a SWF/SWZ file is corrupted or is not the same
used on compilation....

You can try this SWF (
http://repository.sonatype.org/content/groups/public/com/adobe/flex/framework/framework/3.2.0.3958/framework-3.2.0.3958.swf)
to be sure if works.


VELO


On Wed, Apr 1, 2009 at 8:19 AM, crilbit <[email protected]> wrote:

>
> Hello,
>
> I plan to use the framwork and rpc RSL with the flex-mojo plugin.
>
> I think i missunderstood something because after many try i always get
> the following error
>
> Error #2046: The loaded file did not have a valid signature.
>
> I put the Adobe RSL in the same directory as my flex application.
> Does the RSL have to be in my maven repository ?
> Another information is that when i use the RSL configuration in flex
> builder  (http://labs.adobe.com/wiki/index.php/
> Flex_3:Feature_Introductions:Flex_3_RSLs) I got the following error
> message at startup
>
> Failed to load RSL framework_3.2.0.3958.swz
> Failing over to RSL framework_3.2.0.3958.swf
>
> But the application start with the failing over....
>
> As far i can't see i can't set a fail over swf with fleax-mojo....
>
> Here is my maven configuration
>
> Any help will be appreciate...
>
> Thanks a lot
>
> <project xmlns="http://maven.apache.org/POM/4.0.0";
>        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>        xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> http://maven.apache.org/maven-v4_0_0.xsd";>
>        <modelVersion>4.0.0</modelVersion>
>        <parent>
>                <groupId>
>                        myproject
>                </groupId>
>                <artifactId>myproject</artifactId>
>                <version>1.0-SNAPSHOT</version>
>        </parent>
>        <groupId>myproject</groupId>
>        <artifactId>myproject-flex</artifactId>
>        <version>1.0-SNAPSHOT</version>
>        <packaging>swf</packaging>
>        <build>
>                <sourceDirectory>src/main/flex</sourceDirectory>
>                <outputDirectory>target</outputDirectory>
>                <plugins>
>                        <plugin>
>                                <groupId>info.flex-mojos</groupId>
>                                <artifactId>flex-compiler-mojo</artifactId>
>                                <configuration>
>                                        <debug>true</debug>
>                                        <rslUrls>
>
>  <rsl>{artifactId}_{version}.{extension}</rsl>
>                                </rslUrls>
>                                        <locales>
>                                                <locale>en_US</locale>
>                                        </locales>
>                                        <sourcePaths>
>                                                <path>src/main/flex</path>
>                                        </sourcePaths>
>                                        <services>
>
>  ${basedir}/path-to-my-services-config.xml
>                                        </services>
>                                        <targetPlayer>9.0.124</targetPlayer>
>                                        <contextRoot>/</contextRoot>
>                                </configuration>
>                        </plugin>
>                </plugins>
>        </build>
>
>        <dependencies>
>                <dependency>
>                        <groupId>com.adobe.flex.framework</groupId>
>                        <artifactId>framework</artifactId>
>                        <version>${flex.version}</version>
>                        <type>swc</type>
>                        <scope>caching</scope>
>                </dependency>
>                <dependency>
>                        <groupId>com.adobe.flex.framework</groupId>
>                        <artifactId>framework</artifactId>
>                        <version>${flex.version}</version>
>                        <type>rb.swc</type>
>                        <classifier>en_US</classifier>
>                </dependency>
>                <dependency>
>                        <groupId>com.adobe.flex.framework</groupId>
>                        <artifactId>rpc</artifactId>
>                        <version>${flex.version}</version>
>                        <scope>caching</scope>
>                        <type>swc</type>
>                </dependency>
>                <dependency>
>                        <groupId>com.adobe.flex.framework</groupId>
>                        <artifactId>rpc</artifactId>
>                        <version>${flex.version}</version>
>                        <type>rb.swc</type>
>                        <classifier>en_US</classifier>
>                </dependency>
>                <dependency>
>                        <groupId>com.adobe.flex.framework</groupId>
>                        <artifactId>playerglobal</artifactId>
>                        <version>${player.version}</version>
>                        <type>swc</type>
>                        <scope>external</scope>
>                </dependency>
>                <dependency>
>                        <groupId>com.adobe.flex.framework</groupId>
>                        <artifactId>flex</artifactId>
>                        <version>${flex.version}</version>
>                        <type>swc</type>
>                </dependency>
>                <dependency>
>                        <groupId>com.adobe.flex.framework</groupId>
>                        <artifactId>utilities</artifactId>
>                        <version>${flex.version}</version>
>                        <type>swc</type>
>                </dependency>
>        </dependencies>
>
>
>        <properties>
>                <flex.version>3.2.0.3958</flex.version>
>                <player.version>9-3.2.0.3958</player.version>
>        </properties>
> </project>
>
>
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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?hl=en?hl=en

http://blog.flex-mojos.info/
-~----------~----~----~----~------~----~------~--~---

Reply via email to