Actually this problem is a real PITA. With Maven 3.1 they have fixed a "bug" in 
Maven that we have been relying on.
Initially when having an atypical dependency scope such as "rsl" or "caching" 
all transitive dependencies were included.
We were using this for automatically adding the resource bundles. Since Maven 
3.1 transitive dependencies are no longer resolved if the scope is unknown. I 
have already found the extension point for this, but if I want to resolve this 
issue I will have to extends Maven and not fix anything in Flex or Flexmojos.

My current solution was to add the compile time deps to the resource bundles 
manually for each referenced RSL.

Chris

-----Ursprüngliche Nachricht-----
Von: Alex Harui [mailto:[email protected]] 
Gesendet: Freitag, 29. Mai 2015 17:26
An: [email protected]
Betreff: Re: Deployed application: runtime: VerifyError: Error #1014: Class 
mx.core::UIComponent could not be found.

Don’t know much about Maven, but essentially this means that the locale/en_US 
folder is not in the library-path or the _rb.swc files are missing in those 
folders.

-Alex

On 5/29/15, 12:08 AM, "L'Hommelet Filip"
<Filip.L'[email protected]> wrote:

>I managed to get a bit further now.
>
>Added the framework swfs dependency separately in the pom so that now 
>in my -configs.xml I have them nicely added to 
><runtime-shared-library-path>
>
>In the output when running maven clean install, I now get Required 
>RSLs:
>    ./rsls/advancedgrids_4.14.1.swf
>    ./rsls/charts_4.14.1.swf
>    ./rsls/core_4.14.1.swf
>    ./rsls/framework_4.14.1.swf
>    ./rsls/rpc_4.14.1.swf
>    ./rsls/spark_4.14.1.swf
>    ./rsls/sparkskins_4.14.1.swf
>    ./rsls/textLayout_4.14.1.swf
>    ./rsls/mx_4.14.1.swf
>    ./rsls/FlexAppeal3rdPartyLib_branch-SDK4.6-B63.swf
>    ./rsls/FlexAppealFrameworkSharedLib_branch-SDK4.6-B63.swf
>    ./rsls/BuildingBlocks_2_branch-SDK4.6-B63.swf
>
>Which seems like an ok thing now :D
>However, now I'm getting the dreaded
>Error: Unable to resolve resource bundle "core" for locale "en_US".
>
>Error: Unable to resolve resource bundle "core" for locale "en_US".
>
>Error: Unable to resolve resource bundle "core" for locale "en_US".
>
>Error: Unable to resolve resource bundle "skins" for locale "en_US".
>
>Error: Unable to resolve resource bundle "messaging" for locale "en_US".
>
>Error: Unable to resolve resource bundle "collections" for locale "en_US".
>
>Error: Unable to resolve resource bundle "messaging" for locale "en_US".
>
>Error: Unable to resolve resource bundle "messaging" for locale "en_US".
>
>Error: Unable to resolve resource bundle "modules" for locale "en_US".
>
>Error: Unable to resolve resource bundle "containers" for locale "en_US".
>
>Error: Unable to resolve resource bundle "collections" for locale "en_US".
>
>Error: Unable to resolve resource bundle "messaging" for locale "en_US".
>
>Error: Unable to resolve resource bundle "messaging" for locale "en_US".
>
>Error: Unable to resolve resource bundle "messaging" for locale "en_US".
>
>Error: Unable to resolve resource bundle "logging" for locale "en_US".
>
>Error: Unable to resolve resource bundle "collections" for locale "en_US".
>
>Error: Unable to resolve resource bundle "messaging" for locale "en_US".
>
>Error: Unable to resolve resource bundle "rpc" for locale "en_US".
>
>Error: Unable to resolve resource bundle "collections" for locale "en_US".
>
>Error: Unable to resolve resource bundle "logging" for locale "en_US".
>
>Error: Unable to resolve resource bundle "rpc" for locale "en_US".
>
>Error: Unable to resolve resource bundle "core" for locale "en_US".
>
>
>And the list goes on for a while...
>Grrrrrrr!!
>:)
>_______________________________________
>
>Filip L'Hommelet
>Software Development
>
>Direct         +32 (0)2 708 81 68
>Mobile         +32(0)479 37 67 59
>
>ILIAS Solutions
>Raketstraat 60 Rue de la Fusée
>B-1130 Brussels, BELGIUM       
>Reception      +32 (0)2 708 81 50
>Web            www.ilias-solutions.com
>-----Original Message-----
>From: L'Hommelet Filip [mailto:Filip.L'[email protected]]
>Sent: vrijdag 29 mei 2015 8:20
>To: [email protected]
>Subject: RE: Deployed application: runtime: VerifyError: Error #1014:
>Class mx.core::UIComponent could not be found.
>
>Could this be because I'm missing the swz-files for the framework?
>We used to have them for SDK4.1 and as I've been reading up on 
>swc/swf/swz, swz are needed if you want to include your library at 
>runtime?
>Any light-shedding on this is welcome because I'm really at a loss now...
>
>-----Original Message-----
>From: L'Hommelet Filip [mailto:Filip.L'[email protected]]
>Sent: donderdag 28 mei 2015 17:02
>To: [email protected]
>Subject: Deployed application: runtime: VerifyError: Error #1014: Class 
>mx.core::UIComponent could not be found.
>
>There I was, thinking all was well...
>Application builds in FB, runs locally.
>Application builds completely in Maven (thank you Chris).
>
>Application gets deployed to server after being packaged (just like we 
>did before when on SDK4.1) and when I run the application I get this 
>error:
>
>VerifyError: Error #1014: Class mx.core::UIComponent could not be found.
>
>Followed by a bunch of other errors in the same genre.
>We deploy on a weblogic.
>I checked our EAR file and in the war that contains our app, there is a 
>rsls-subfolder that contains all apache-framework related stuff so in 
>that regard, the file we upload looks pretty identical to the one we 
>uploaded when still on SDK4.1 and FlexMojo3.8.
>
>So I'm getting a feeling something is going wrong during compilation by 
>maven.
>
>Any ideas where I should start look first?
>
>Kr,
>Filip

Reply via email to