Well, applicationContext.xml is loaded at runtime, so, doesn't matter where
is applicationContext.xml at compilation time. It's used at runtime only.
What you need to check is if applicationContext.xml is available at same
place where your SWF is.
VELO
On Mon, Dec 8, 2008 at 9:14 PM, Garry <[EMAIL PROTECTED]> wrote:
>
> Hi again,
>
> I can't seem to resolve a reference to a Prana context file:
>
> applicationContext = new XMLApplicationContext
> ("applicationContext.xml");
>
> using 2.0M9 to generate a SWF:
>
> <plugin>
> <groupId>info.flex-mojos</groupId>
> <artifactId>flex-compiler-mojo</artifactId>
> <configuration>
> <sourceFile>Main.mxml</sourceFile>
> <mergeResourceBundle>true</mergeResourceBundle>
> <excludeTestFiles>
> <param>Test*.as</param>
> </excludeTestFiles>
>
> <keepGeneratedActionscript>true</keepGeneratedActionscript>
> </configuration>
> </plugin>
>
> Just for good measure, I put 'applicationContext.xml' in not one
> but two locations: src/main/resources and right next to my MXML
> file in src/main/flex. No error is reported but the call to
> XMLApplicationContext.load() never seems to complete. In FlexBuilder,
> using the same code, the application context is loaded just fine. I
> should also mention that the FlexBuilder-generated SWF is roughly 50%
> larger than the one produced by flex-mojo.
>
> It's really frustrating that a swf can't be simply exploded to see
> what's being
> packaged. I know the plugin configuration above is pretty simple but
> am I
> making an obvious mistake?
>
> Thanks, Garry
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
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/
-~----------~----~----~----~------~----~------~--~---