1 Reply Latest reply on Apr 20, 2007 1:03 PM by

    Need help on publishing Flex, JSP application


      I'm using Flex for last over one year and have flex 2.0 developer edition configured on 5 PC's in our office. I am able to use Flex with JSP backend in all my projects and don't have any problem in accessing all my work on :8700 port.

      I now have to publish my first flex application for real time deployment BUT it somehow is not getting through. I have structured my entire project as per instructions in Flex Builder 2.0-Developers Guide but it still won't access .JSP files from within published .SWF file.

      Both SWF files and .JSP files are working perfectly. I get following error, while trying to load default page of published project:

      RPC Fault faultString="Error #2148: SWF file file:///C:/fds2/jrun4/servers/default/firstoption-version2/admin/index.swf cannot access local resource file:///C:/fds2/jrun4/servers/default/firstoption-version2/admin/admin-jsp/view_comp_repo rt.jsp?fromdate=&todate=&txtsortstatus=. Only local-with-filesystem and trusted local SWF files may access local resources." faultCode="InvokeFailed" faultDetail="null"]
      at mx.rpc::AbstractInvoker/ http://www.adobe.com/2006/flex/mx/internal::invoke()
      at mx.rpc.http.mxml::HTTPService/ http://www.adobe.com/2006/flex/mx/internal::invoke()
      at mx.rpc.http::HTTPService/send()
      at mx.rpc.http.mxml::HTTPService/send()
      at conversionration/sendclient()
      at conversionration/___VBox1_creationComplete()
      at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
      at flash.events::EventDispatcher/dispatchEvent()
      at mx.core::UIComponent/set initialized()
      at mx.managers::LayoutManager/::doPhasedInstantiation()
      at Function/ http://adobe.com/AS3/2006/builtin::apply()
      at mx.core::UIComponent/::callLaterDispatcher2()
      at mx.core::UIComponent/::callLaterDispatcher()

      I would highly appreciate any immediate help on this.

      Kind Regards
      Manoj K. Garg
      CEO, NetCreativeMind Solutions Private Limited