25 Replies Latest reply on Nov 6, 2007 7:00 PM by geroldo

    Issues and bugs

    Ivascu Cristian
      If you encounter an issue when installing or using the Flex Module for Apache and IIS please reply to this post and describe the issue following the template below. This will help us duplicate the issue and environment faster, so we can find a solution and help you get it going.

      Thank you for helping us!

      Please provide the following information when encountering an issue with the program:
      Operating System (platform and version)

      Version of installer used (basic/full)

      WebServer type and version (e.g. IIS 5.1)

      For Apache - relevant contents in httpd.conf (additional modules, changes to the default configuration)

      For IIS: Any additional ISAPI filters installed

      Errors or warnings during webserver startup

      Errors or warnings displayed in the browser when requesting a mxml

      WebServer document root and port

      Security restrictions concerning the webserver


      Thanks,
      Cristian
        • 1. Re: Issues and bugs
          Level 7
          >
          Operating System (platform and version)


          Win XP Pro, SP2.

          >
          Version of installer used (basic/full)


          basic

          >
          WebServer type and version (e.g. IIS 5.1)


          IIS 5.1

          >
          For IIS: Any additional ISAPI filters installed


          none other.

          >
          Errors or warnings during webserver startup


          none

          >
          Errors or warnings displayed in the browser when requesting a
          > mxml


          The connection has timed out

          The server at www.localhost.com is taking too long to respond.

          * The site could be temporarily unavailable or too busy. Try again in
          a few
          moments.

          * If you are unable to load any pages, check your computer's network
          connection.

          * If your computer or network is protected by a firewall or proxy,
          make sure
          that Firefox is permitted to access the Web.

          My URL was http://localhost/mypanel.mxml .. notice how the browser changed
          it to http://www.localhost.com



          >
          WebServer document root and port


          C:\Inetpub\wwwroot\
          Port 80

          >
          Security restrictions concerning the webserver


          I don't think this is it. I made sure the IUSR account is allowed .. same
          with the samples folder, which also does not work.

          Thanks,

          --
          Nancy Gill
          Adobe Community Expert
          Author: Dreamweaver 8 e-book for the DMX Zone
          Co-Author: Dreamweaver MX: Instant Troubleshooter (August, 2003)
          Technical Editor: DMX 2004: The Complete Reference, DMX 2004: A Beginner''s
          Guide, Mastering Macromedia Contribute
          Technical Reviewer: Dynamic Dreamweaver MX/DMX: Advanced PHP Web Development



          • 2. Re: Issues and bugs
            feiy
            Ubuntu Feisty 7.04, kernel 2.6.20-13
            Apache 2.2.3
            Flex 2.01 _hotfix1_159086

            start apache get error:

            apache2: Syntax error on line 189 of /etc/apache2/apache2.conf: Syntax error on line 1 of /etc/apache2/httpd.conf: API module structure `flex_module' in file /home/feiy/Programs/Flex2/SDK/modules/mod_flex.so is garbled - perhaps this is not an Apache module DSO?

            is Flex Module for Apache compatible with apache 2.2?
            • 3. Re: Issues and bugs
              Ivascu Cristian Level 1
              Hi feiy,
              There are two possible causes for this error:
              1. The installer did not detect the right version of Apache you have installed and unpacked the 2.0 version instead
              2. The so we have built is not working properly for this specific combination (distribution/apache version). We will try to duplicate the environment and find a solution in time for the next update.

              Thanks,
              Cristian
              • 4. Re: Issues and bugs
                feiy Level 1
                hi Cristian,thanks your replay,the first cause,how can i unpacked the 2.0 version .so file,maybe is the detected apache fail,is the install shell check the $apache/conf/httpd.conf?

                in the Ubuntu,apache2's main config file is apache2.conf,default the httpd.conf file is empty?

                Thanks!!!!
                • 5. Re: Issues and bugs
                  feiy Level 1
                  i got the file,i'll try it again,thanks:

                  /tmp/install.dir.12960/InstallerData/Disk1/InstData/Resource.zip
                  • 6. Re: Issues and bugs
                    feiy Level 1
                    everything is work good!just extrat the Resource.zip:$IA_PROJECT_DIR$/data/mods/linux_zg_ia_sf.jar_FILES/22/mod_flex.so to installDir
                    • 7. Re: Issues and bugs
                      Ivascu Cristian Level 1
                      Great!
                      You've just found the bug we need to fix - the installer didn't detect the right version and copied the 2.0 so.
                      We've added it on the list of things to fix and check.

                      Thanks,
                      Cristian
                      • 8. Re: Issues and bugs
                        feiy Level 1
                        another bug:if u access a file is not exist,the flexc 'll compile it for a long time! and not throws a error!

                        the default install do not install a Main.mxml to wwwroot
                        • 9. Re: Issues and bugs
                          russel.gauthier
                          Operating System: Debian 2.6.8-2-686-smp #1 SMP i686-GNU/Linux Etch
                          Version of Installer used: Manual.zip
                          WebServer type and version: Apache/2.2.3 (Debian)

                          Apache: b/c Debian uses a different setup slightly, i.e. /etc/apache2/mods-available for where the mods are to be listed and then it is linked in /etc/apache2/mods-enabled. I did that, using the manual instructions. I made sure that the permissions were the same for mods-available & mods-enabled as I have for other mods.
                          I didn't need to touch httpd.conf, because it just loads stuff that is found in the mods-enabled folder.
                          If I load without the mod_flex.so then I don't get any errors during startup.
                          If I do, I get the error (from /var/log/apache2/error.log): caught SIGTERM, shutting down

                          Two processes are started:
                          root -- /bin/sh /usr/bin/compiler.sh start
                          root -- java -Djava.awt.headless=true -ms128M -mx256M -jar /usr/local/lib/flex_sdk_2/flexc.jar start

                          I ran:
                          ldd /usr/local/lib/flex_sdk_2/modules/linux/apache/linux/22/mod_flex.so
                          and got:
                          linux-gate.so.1 => (0xffffe000)
                          libc.so.6 => /lib/libc.so.6 (0x40014000)
                          /lib/ld-linux.so.2 (0x80000000)

                          Errors or warnings displayed in the browser when requesting a mxml
                          Compilation results
                          Errors, warnings or exceptions were found while compiling null.
                          Visit the online Flex documentation or API reference for further information.
                          An error occured on the server. Server error is: 'Connection refused to host:
                          192.168.0.1; nested exception is: java.net.ConnectException: Connection
                          refused'

                          WebServer document root and port
                          /var/www/
                          port 80

                          Security restrictions concerning the webserver
                          none that I know of
                          • 10. Re: Issues and bugs
                            oskarvikman
                            OS: Debian Sarge
                            Installer: Manual.zip
                            Webserver: Apache 2.2
                            Changes: No changes, i made mod_flex.load and mod_flex.conf, and used a2enmod to enable the module.


                            Errors:
                            # apache2ctl -t
                            Syntax error on line 1 of /etc/apache2/mods-enabled/mod_flex.load:
                            Cannot load /usr/lib/apache2/modules/mod_flex.so into server: /lib/tls/libc.so.6: version `GLIBC_2.4' not found (required by /usr/lib/apache2/modules/mod_flex.so)


                            Conclusion: Flex requires glibc 2.4, but not many stable versions of dists have this. Is there some way around this?
                            • 11. Re: Issues and bugs
                              fredyfar
                              Dear friend, can you help me to find Flex module for IIS, trial version, (some link for download)
                              Thank you, for your great attention

                              Fredy A

                              quote:

                              Originally posted by: Ivascu Cristian
                              If you encounter an issue when installing or using the Flex Module for Apache and IIS please reply to this post and describe the issue following the template below. This will help us duplicate the issue and environment faster, so we can find a solution and help you get it going.

                              Thank you for helping us!

                              Please provide the following information when encountering an issue with the program:
                              Operating System (platform and version)

                              Version of installer used (basic/full)

                              WebServer type and version (e.g. IIS 5.1)

                              For Apache - relevant contents in httpd.conf (additional modules, changes to the default configuration)

                              For IIS: Any additional ISAPI filters installed

                              Errors or warnings during webserver startup

                              Errors or warnings displayed in the browser when requesting a mxml

                              WebServer document root and port

                              Security restrictions concerning the webserver


                              Thanks,
                              Cristian


                              • 12. Re: Issues and bugs
                                Ivascu Cristian Level 1
                                Hi,

                                You can find the latest version as part of the Flex 3 SDK and you can download it here.

                                Regards,
                                Cristian
                                • 13. Re: Issues and bugs
                                  DemandDigiEbr
                                  > Operating System (platform and version)
                                  Win XP

                                  > Version of installer used (basic/full)
                                  used the full installation

                                  > WebServer type and version (e.g. IIS 5.1)
                                  Apache 2.0.59

                                  > For Apache - relevant contents in httpd.conf (additional modules, changes to the default configuration)

                                  These additions have been made to the configuration file.

                                  #BEGIN FLEX INSTALLER EDITS - REMOVE ONLY ON UNINSTALL
                                  LoadModule flex_module "C:/Program Files/FlexModule/modules/mod_flex.dll"
                                  AddHandler flex .mxml
                                  #END FLEX INSTALLER EDITS - REMOVE ONLY ON UNINSTALL



                                  # JRun Settings
                                  LoadModule jrun_module "C:/CFusionMX7/runtime/lib/wsconfig/1/mod_jrun20.so"
                                  <IfModule mod_jrun20.c>
                                  JRunConfig Verbose false
                                  JRunConfig Apialloc false
                                  JRunConfig Ssl false
                                  JRunConfig Ignoresuffixmap false
                                  JRunConfig Serverstore "C:/CFusionMX7/runtime/lib/wsconfig/1/jrunserver.store"
                                  JRunConfig Bootstrap 127.0.0.1:51011
                                  #JRunConfig Errorurl <optionally redirect to this URL on errors>
                                  #JRunConfig ProxyRetryInterval 600
                                  #JRunConfig ConnectTimeout 15
                                  #JRunConfig RecvTimeout 300
                                  #JRunConfig SendTimeout 15
                                  AddHandler jrun-handler .jsp .jws .cfm .cfml .cfc .cfr .cfswf
                                  </IfModule>


                                  > Errors or warnings during webserver startup

                                  There is an error when the the flex module is not commented.

                                  > WebServer document root and port

                                  "C:/Program Files/Apache Group/Apache2/"

                                  --------------------------------------------------------
                                  I need flex apache module to run correctly with my Coldfusion MX7 installation configured with an apache web server.
                                  After installation of flex apache module, the web server will only start up with the flex module commented in the configuration file and the coldfusion code will not compile (apposed to it compiling fine before the flex module installation). Is there something that is being installed during the flex apache module that is preventing coldfusion from operating correctly.

                                  I have tried configuring a webserver without coldfusion for the flex apache module and it works fine.
                                  Is there a recommended setup that you can suggest for what I am trying to accomplish, a coldfusion back end using apache for flex applications.

                                  I am a novice, there is no question about this, and help is unbelievable appreciated. If you have time, maybe you can suggest a different setup or how the flex sdk can be added to this setup. Thank you very very much.
                                  • 14. Re: Issues and bugs
                                    mark@websidestory.co
                                    Can you provide the source for mod_flex.so so I can compile it on my system? (Glibc-2.3.2)

                                    # ./apachectl configtest
                                    httpd: Syntax error on line 54 of /usr/local/apache-2.2.4/conf/httpd.conf: Cannot load /usr/local/flex-sdk-3/modules/apache/linux/22/mod_flex.so into server: /lib/tls/libc.so.6: version `GLIBC_2.4' not found (required by /usr/local/flex-sdk-3/modules/apache/linux/22/mod_flex.so)

                                    > Operating System (platform and version)
                                    # uname -a
                                    Linux ******** 2.4.20-31.9bigmem #1 SMP Tue Apr 13 17:11:51 EDT 2004 i686 i686 i386 GNU/Linux

                                    > Version of installer
                                    basic

                                    >WebServer
                                    # ./httpd -V
                                    Server version: Apache/2.2.4 (Unix)
                                    Server built: Apr 19 2007 17:21:20
                                    Server's Module Magic Number: ****1115:4
                                    Server loaded: APR 1.2.8, APR-Util 1.2.8
                                    Compiled using: APR 1.2.8, APR-Util 1.2.8
                                    Architecture: 32-bit
                                    Server MPM: Prefork
                                    threaded: no
                                    forked: yes (variable process count)
                                    Server compiled with....
                                    -D APACHE_MPM_DIR="server/mpm/prefork"
                                    -D APR_HAS_SENDFILE
                                    -D APR_HAS_MMAP
                                    -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
                                    -D APR_USE_SYSVSEM_SERIALIZE
                                    -D APR_USE_PTHREAD_SERIALIZE
                                    -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
                                    -D APR_HAS_OTHER_CHILD
                                    -D AP_HAVE_RELIABLE_PIPED_LOGS
                                    -D DYNAMIC_MODULE_LIMIT=128
                                    -D HTTPD_ROOT="/usr/local/apache-2.2.4"
                                    -D SUEXEC_BIN="/usr/local/apache-2.2.4/bin/suexec"
                                    -D DEFAULT_PIDLOG="logs/httpd.pid"
                                    -D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
                                    -D DEFAULT_LOCKFILE="logs/accept.lock"
                                    -D DEFAULT_ERRORLOG="logs/error_log"
                                    -D AP_TYPES_CONFIG_FILE="conf/mime.types"
                                    -D SERVER_CONFIG_FILE="conf/httpd.conf"

                                    • 15. Issues and bugs
                                      Operating System (platform and version): Mac OS X 10.4.9, Intel
                                      Version of installer used (basic/full): flex_mod_full_mac_050107.dmg
                                      WebServer type and version (e.g. IIS 5.1): Apache/1.3.33 (Darwin) PHP/4.4.4
                                      For Apache - relevant contents in httpd.conf (additional modules, changes to the default configuration):
                                      #BEGIN FLEX INSTALLER EDITS - REMOVE ONLY ON UNINSTALL
                                      LoadModule flex_module "/Users/stephena/Flex/modules/mod_flex.so"
                                      AddHandler flex .mxml
                                      #END FLEX INSTALLER EDITS - REMOVE ONLY ON UNINSTALL

                                      Errors or warnings during webserver startup: none
                                      Errors or warnings displayed in the browser when requesting a mxml: (Between stars)
                                      **
                                      Compilation results

                                      Errors, warnings or exceptions were found while compiling /samples/photoviewer/PhotoViewer.mxml.swf.Visit the online Flex documentation or API reference for further information.



                                      4 errors found
                                      0
                                      ERROR : Unable to resolve a class for ResourceBundle: strings.

                                      0
                                      ERROR : Unable to resolve a class for ResourceBundle: strings.

                                      0
                                      ERROR : Unable to resolve a class for ResourceBundle: strings.

                                      0
                                      ERROR : Unable to resolve a class for ResourceBundle: strings.
                                      **
                                      WebServer document root and port: /Users/stephena/Sites on port 80
                                      Security restrictions concerning the webserver: none

                                      Will also error on different file with the message: ERROR : Type was not found or was not a compile-time constant: CategoryAxis on the line
                                      **
                                      private function displayPropertyName(value:Object, previousValue:Object, axis:CategoryAxis, item:Object):String {
                                      **


                                      EDIT: Found out that I didn't have the charting portion of the SDK installed in the right location. Everything works fine now.
                                      • 16. Re: Issues and bugs
                                        I have been describing to Adobe sales that i need something to compile dynamic content on the server side - after a lot of discussion they most likely they will sell me DataServices or the charting pieces for server side dynamic content creation for big bucks - since it is available now - but the Flexmodule for Apache/IIS - is the real thing I need!

                                        Looking at the licensing info in detail, I seem to get the feeling that I definitely need a commercial license to host this on my website once the BETA is over. Where can I get details on the commercial availability of this product - date, price etc?

                                        In the meantime if someone could point me to what could be happenning with my install, I'd appreciate it... I do see some screens from http://localhost/samples/explorer/explorer.mxml

                                        - But after the install if i go to the link - http://localhost/samples/photoviewer/PhotoViewer.mxml
                                        I get the following errors on my browser

                                        4 errors found
                                        0
                                        ERROR : Unable to resolve a class for ResourceBundle: strings.
                                        0
                                        ERROR : Unable to resolve a class for ResourceBundle: strings.
                                        0
                                        ERROR : Unable to resolve a class for ResourceBundle: strings.
                                        0
                                        ERROR : Unable to resolve a class for ResourceBundle: strings.
                                        Operating System (platform and version) - windows xp pro sp2
                                        Version of installer used (basic/full) - flex3compiler_b1_apache_win_061107.exe
                                        WebServer type and version (e.g. IIS 5.1) Apache 2.0.59
                                        For Apache - relevant contents in httpd.conf (additional modules, changes to the default configuration)
                                        #BEGIN FLEX INSTALLER EDITS - REMOVE ONLY ON UNINSTALL
                                        LoadModule flex_module "C:/Program Files/flex_sdk/modules/mod_flex.dll"
                                        AddHandler flex .mxml
                                        #END FLEX INSTALLER EDITS - REMOVE ONLY ON UNINSTALL

                                        For IIS: Any additional ISAPI filters installed

                                        Errors or warnings during webserver startup - none
                                        Errors or warnings displayed in the browser when requesting a mxml

                                        4 errors found
                                        0
                                        ERROR : Unable to resolve a class for ResourceBundle: strings.
                                        0
                                        ERROR : Unable to resolve a class for ResourceBundle: strings.
                                        0
                                        ERROR : Unable to resolve a class for ResourceBundle: strings.
                                        0
                                        ERROR : Unable to resolve a class for ResourceBundle: strings.

                                        WebServer document root and port - C:\test\phpserver\www port 80

                                        Security restrictions concerning the webserver - none
                                        • 17. Re: Issues and bugs
                                          Ivascu Cristian Level 1
                                          Hi,

                                          The errors that you are seeing are thrown by the Flex compiler. Because the installer bundles the SDK and its samples, each one has some different requirements. For this particular example, the sample was showing localization and as such needs to specify the path to the locales in the photoviewer-config.xml, like this:
                                          <source-path>
                                          <path-element>locale/{locale}</path-element>
                                          </source-path>

                                          Hope this helps,
                                          Cristian
                                          • 18. Re: Issues and bugs
                                            FlexMcGee6000
                                            Operating System (platform and version)
                                            Linux - CentOS5

                                            Version of installer used (basic/full)
                                            Manual Installer - flex_module_manual_install_050107.zip

                                            WebServer type and version (e.g. IIS 5.1)
                                            Apache 2.2.6

                                            For Apache - relevant contents in httpd.conf (additional modules, changes to the default configuration)
                                            LoadModule flex_module /flex_sdk_2/modules/apache/linux/22/mod_flex.so
                                            AddHandler flex .mxml
                                            (Is definitely finding the module, I've tried changing the location to something bogus and it displays and error on restart)

                                            For IIS: Any additional ISAPI filters installed


                                            Errors or warnings during webserver startup
                                            Upon Restart
                                            ================================
                                            SIGHUP received. Attempting to restart
                                            [Tue Sep 18 12:38:49 2007] [notice] Apache/2.2.6 (Unix) configured -- resuming normal operations
                                            ================================
                                            Errors or warnings displayed in the browser when requesting a mxml


                                            WebServer document root and port
                                            /usr/local/apache2/htdocs port 80

                                            Security restrictions concerning the webserver
                                            none

                                            When requesting a .mxml document it returns an empty file. Any help would be appreciated.
                                            Does the flex sdk have any logs?
                                            • 19. Re: Issues and bugs
                                              FlexMcGee6000 Level 1
                                              Also, I am able to run build.sh manually and it works well, but not when accessing a .mxml through a browser.
                                              • 20. Re: Issues and bugs
                                                tshealy
                                                Hello,

                                                Does the "libs" directory need to located in the same directory as the .mxml file, or is there a way to tell the apache module to look in another location ("../libs")?

                                                The new FlexBuilder 3 beta places the main .mxml file inside the "src" directory. When I view the project using the the apache module it doesn't compile because it can't find "../libs"

                                                Thanks,
                                                -Tom
                                                • 21. Re: Issues and bugs
                                                  LomaxFairchild
                                                  I'm running the apache module on OS X using MAMP. I get the following error when I try to embed a PNG for use in a stylesheet.

                                                  An error occured on the server. Server error is: 'Error occurred in server thread; nested exception is: java.lang.InternalError: An error occurred because there is no graphics environment available. Please set the headless-server setting in the Flex configuration file to true.'

                                                  I've tried adding <headless-server>true</headless-server> to the compiler node of flex-config.xml but I get the same error.

                                                  Any ideas what to try next?
                                                  • 22. Re: Issues and bugs
                                                    Ivascu Cristian Level 1
                                                    Hi,

                                                    You can try editing the sh script that the compiler uses to start up, and which has this as argument

                                                    -Djava.awt.headless=true

                                                    To change this, follow these steps:
                                                    1. Stop Apache completly. This should also kill the server. Make sure there is no more java or compiler process active, using the Activity Monitor.
                                                    2. Browse to /usr/bin and open the compiler.sh file with a text editor.
                                                    3. Remove the -Djava.awt.headless=true section.
                                                    4. Save and start Apache.

                                                    This will however add an annoying java icon to your dock when the compiling server starts.

                                                    Hope this helps,
                                                    Cristian
                                                    • 23. Re: Issues and bugs
                                                      Ivascu Cristian Level 1
                                                      Hi,

                                                      Yes, you can adjust where the compiler looks for the libs folder by adding an application specific flex-config.xml file. Name it <myapplicationName>-config.xml and place it in the same folder as the mxml file. Inside it add something like this:
                                                      <library-path>
                                                      <path-element>actual_path_to_libs</path-element>
                                                      </library-path>

                                                      The compiler should now know how to get to the libs folder. Make sure you replace myApplicationName with the actual name of the mxml file you are compiling and also substitute the actual path.

                                                      Hope this helps,
                                                      Cristian
                                                      • 24. Re: Issues and bugs
                                                        LomaxFairchild Level 1
                                                        quote:

                                                        Originally posted by: Ivascu Cristian
                                                        Hi,

                                                        You can try editing the sh script that the compiler uses to start up, and which has this as argument

                                                        -Djava.awt.headless=true

                                                        To change this, follow these steps:
                                                        1. Stop Apache completly. This should also kill the server. Make sure there is no more java or compiler process active, using the Activity Monitor.
                                                        2. Browse to /usr/bin and open the compiler.sh file with a text editor.
                                                        3. Remove the -Djava.awt.headless=true section.
                                                        4. Save and start Apache.

                                                        This will however add an annoying java icon to your dock when the compiling server starts.

                                                        Hope this helps,
                                                        Cristian


                                                        Hi Christian

                                                        Still the same error, unfortunately. I've tried removing -Djava.awt.headless=true from compiler.sh and <headless-server>true</headless-server> from flex-config.xml and putting back one or both but to no avail.

                                                        Any more ideas?

                                                        Thanks

                                                        Diccon
                                                        • 25. Re: Issues and bugs
                                                          geroldo
                                                          Mac OS X 10.5

                                                          used the manual install (flex_module_manual_install_050107.zip) since the
                                                          installer (flex_mod_basic_mac_050107.dmg) crashes on leopard

                                                          Apache/2.2.6 (Unix)

                                                          changes in httpd.conf:
                                                          LoadModule flex_module /Users/geroldboehler/work/bin/flex2_sdk_hf1/modules/apache/macos/22/mod_flex.so
                                                          AddHandler flex .mxml

                                                          webserver doesn't start, i'm getting:

                                                          sudo apachectl configtest
                                                          httpd: Syntax error on line 54 of /private/etc/apache2/httpd.conf: Cannot load /Users/geroldboehler/work/bin/flex2_sdk_hf1/modules/apache/macos/22/mod_flex.so into server: dlopen(/Users/geroldboehler/work/bin/flex2_sdk_hf1/modules/apache/macos/22/mod_flex.so, 10): no suitable image found. Did find:\n\t/Users/geroldboehler/work/bin/flex2_sdk_hf1/modules/apache/macos/22/mod_flex.so: mach-o, but wrong architecture

                                                          thanks - gerold