Dec 12th, 2009, 03:51 PM
Sub-App Loading Error
The project I am working on has just started to use SpringAS for configuring the channels for RemoteObject -- and looking forward to implementing Spring for configuration of the Cairngorm objects.
The project is made up of a main framework that loads in five seperate mxml apps using SWFLoader. Everything works well, with Spring except for an error that A class with the name '<application file name>' could not be found.
I know that this error is returned when a class that is not compiled into the app is not available, but how would you get around this error when the class ClassUtils.as is not found because it is a seperate .swf file that is loaded?
With the structure of the project, we are building each "module" as a seperate project using maven and then collecting all files module swf files into the war for deployment.
Right now the project compiles and runs fine and normal "Run as", but the error comes up in the debugger as an unhandled exception/error.
So my question is:
1. How would I include the definition of the 'module' in the framework to remove the error, or 2. How would you effectively handle this error, because ultimately, the sub-module will be configured with its own app context and is not going to really on the application context defined at the framework level.
Thanks for you help.