0 Replies Latest reply on May 31, 2007 3:14 PM by JoeFree999999

    Flex Builder 2 HTML wrapper will not launch MyApp.html with Tomcat

    JoeFree999999
      When http://127.0.0.1:8080/MyApp/MyApp.swf is opened in a browser,
      Tomcat launches the Flex 2.01 MyApp.swf application in a browser.

      However if http://127.0.0.1:8080/MyApp/MyApp.html or
      http://127.0.0.1:8080/MyApp are used, the MyApp.html wrapper generated
      by Flex Builder 2 does not launch MyApp.swf. Instead a white screen is
      recieved. If a view source is performed, the MyApp.html wrapper
      generated by Flex Builder 2 source code is displayed.

      Please help!

      Have reviwed the Flex documentation and discussion in the newsgroups
      and it is not clear what the issue is.

      The 'C:\Program Files\Apache Software Foundation\Tomcat
      5.5\webapps\MyApp' directory contains the following files from Flex
      Builder 2:

      Directory of C:\Program Files\Apache Software Foundation\Tomcat
      5.5\webapps\MyApp

      05/30/2007 02:10 PM <DIR> .
      05/30/2007 02:10 PM <DIR> ..
      05/30/2007 10:08 AM 1,272 history.htm
      05/30/2007 10:08 AM 1,292 history.js
      05/30/2007 10:08 AM 2,656 history.swf
      05/30/2007 10:08 AM 657 playerProductInstall.swf
      05/30/2007 10:08 AM 4,364 MyApp.html
      05/30/2007 10:08 AM 1,675,586 MyApp.swf
      05/24/2007 06:26 AM <DIR> style
      05/24/2007 06:55 AM <DIR> WEB-INF

      The WEB-INF directory contains a web.xml file. It contains:

      <?xml version="1.0" encoding="ISO-8859-1"?>
      <!DOCTYPE web-app
      PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
      " http://java.sun.com/dtd/web-app_2_3.dtd">
      <web-app>
      <display-name>MyApp</display-name>
      <description>
      MyApp 2.0
      </description>
      <context-param>
      <param-name>webmaster</param-name>
      <param-value>joe@...</param-value>
      <description>
      EMAIL address to whom questions about this application should
      be addressed.
      </description>
      </context-param>
      <session-config>
      <session-timeout>30</session-timeout>
      </session-config>
      </web-app>

      Thanks in advance.

      Joe