Hi , I am getting error similar to above when I run my app after building with Flex ant.It works fine when I compile it with web-tier compiler or flex builder. Please see my ant script given below.Am I missing anything ? Note: I am using flex2 with fds and app server is jboss4.2.
<taskdef resource="flexTasks.tasks" classpath="${flexTasks}/flexTasks.jar" /> <target name="compile"> <mxmlc file="${basedir}\ui\Main.mxml" keep-generated-actionscript="true" services="${APP_ROOT}\WEB-INF\flex\services-config.xml" context-root="/Main" output="${APP_ROOT}\Main.swf"> <load-config filename="${FLEX_HOME}/frameworks/flex-config.xml"/> <source-path path-element="${FLEX_HOME}/frameworks"/> </mxmlc> </target>