23 Replies Latest reply on Apr 21, 2008 11:53 PM by Stuart Mail

    Deploying compiled Workspace ES for testing

    Level 1
      Hello,
      Looking at the document customizeworkspaceui.pdf, I have created a Flex project using WS source. Do configurations and build the project. "bin" folder is regenerated with new items. After that "Deploying the compiled Workspace ES application for testing" part, I have put the bin folder's content under testWorkspace directory inside jboss-webtomcat../ROOT.war. When I tried to refer from the explorer as localhost:8080/testWorkspace/Main.htm, nothing displays except a blank page. The "initializing" progress bar do not display. What can be the problem. Do I need any configuration to create new custom workspace? How can I package them as a client "war" and "ear"?
      Thanks

      Asiye
        • 1. Re: Deploying compiled Workspace ES for testing
          Level 1
          1) Is the HTML wrapper called Main.htm or Main.html?
          2) Is the url correct? The document has testworkspace not testWorkspace, as long as your consistent it should be ok.

          There is a simpler approach you can take though. When you create your project, or modify your existing one, you can set the Output folder to your [JBossPath]/jboss-webtomcat../ROOT.war/testworkspace, therefore you don't need to copy the bin directory to the testworkspace directory as it will automatically compile it to that location. The second thing you can setup is the Output folder URL to: http://localhost:8080/testworkspace. Both of these settings can be configured on your project via, Right Click your Project -> Properties -> Flex Builder Path.

          When you have configured these options you can simply click Debug Flex Application or Run Flex Application from Flex Builder.
          • 2. Re: Deploying compiled Workspace ES for testing
            Level 1
            One other thing to check is that in your testworkspace output directory on your JBoss server is that it contains the locale folder with the localization resource swf files, if you don't have these files deployed you will get a white screen, then after a few seconds you'll get an error.
            • 3. Re: Deploying compiled Workspace ES for testing
              Level 1
              Hi again,
              When I import the WSSource as a flex project, it had no "locale" folder. So I created a locale folder under "html-template" and create the localized workspace_rb_[lang].swf under the locale folder. I also configured the output folder and URL to testWorkspace. When I tried to debug, it shows blank page with no errors.
              I have extracted the adobe-workspace-client.war file content and compare them with my testWorkspace folder. Some files are missing in testWorkspace. These are:
              Main-auto.html, Main-debug-auto.html, workspace-auto.swf, workspace-debug-auto.swf, workspace-debug.swf, workspace-runtime.swc, workspace-toast-debug.swf, workspace.swf.
              Why are they missing, how can I create these files?
              Also Main.html files are different. testWorkspace's Main.html file initialize <body onload="init('Main')">, but adobe-workspace's Main.html includes "<body onload="init('workspace')">". Can it be the problem?

              When I have changed the sources like WelcomePane.mxml and build the project, how changes are reflected to my output folder?

              Thanks a lot.
              Asiye
              • 4. Re: Deploying compiled Workspace ES for testing
                Level 1
                Hi again,
                I also applied the steps "Creating the application logic for a simplified Workspace ES" in customizeworkspaceui.pdf. But I could not achieve, same blank page appears? Can the Flex SDK or Builder versions be problem?
                Flex SDK: Version 2.0.1 build 155542
                Flex Builder: 2.0.1

                Thanks,
                Asiye
                • 5. Re: Deploying compiled Workspace ES for testing
                  Level 1
                  Asiye, what version of LiveCycle are you using?

                  There's probably nothing wrong with the Flex SDK just a configuration issue with Workspace.
                  • 6. Re: Deploying compiled Workspace ES for testing
                    Level 1
                    I am using LiveCycle ES 8.0.1 trial with jboss turnkey installation, downloaded from Adobe's site. Can you mail me a working (in your site) workspace flex project? So that I can check if it is the problem of my LiveCycle.

                    asiye.aydin@gmail.com
                    • 7. Re: Deploying compiled Workspace ES for testing
                      Hi Asiye,

                      For your Flex version, does it include hotfix 2, but I would agree with Workspace User that it is more likely a configuration error. Before you compiled, I assume that you copied the newer version of the fds.swc file and have your Library Path to point to the new version? When you compile, are you getting any warnings at all?

                      To confirm, you didn't install LiveCycle Data services did you? I vaguely remember doing that by accident which gave me strange behavior.

                      Can you provide the path that you copied your bin files to on ..\jboss-tomcat55.sar\ROOT.war\ folder?
                      • 8. Re: Deploying compiled Workspace ES for testing
                        Level 1
                        I dont know is it the new version but I copied the fds.swc file from C:\Adobe\LiveCycle8\jboss\server\all\tmp\deploy\tmp58517adobe-livecycle-jboss.ear-content s\adobe-workspace-runtime-exp.war\WEB-INF\flex\libs folder. I point this version from Workspace project. I am not getting any warnings in problems tab after building. I have removed LiveCycle Data services but that does not help. I put my testWorkspace folder and SWC files under SWCS.rar inside testWorkspace.rar. You can download it from www.karakaya.com/testWorkspace.rar or www.karakaya.com.tr/testWorkspace.rar .
                        I tried the adobe share to put the document but give error, "add document failed!".

                        Thanks for your help.

                        Asiye
                        • 9. Re: Deploying compiled Workspace ES for testing
                          Level 1
                          http://www.karakaya.com.tr/testWorkspace.rar gave me a file not found
                          and http://www.karakaya.com/testWorkspace.rar doesn't resolve.
                          • 10. Re: Deploying compiled Workspace ES for testing
                            Level 1
                            Asiye, see if this helps http://my.adobe.acrobat.com/p76703616/ There's no audio, but you should be able to see the steps which are taken to setup the development environment.

                            The video shows the user using Flex/Builder 3.0 SDK, but then rolls it back to use the 2.0.1 Hotfix 3. Which is probably what your using. The key is to get the fds.swc, fds_rb.swc, workspac_rb.swc, and workspace-runtime.swc file in your build path.

                            Modify the Flex compiler options to specify the locale and services options.

                            Organize the html-template directory to include the files as show in the demo.
                            • 11. Re: Deploying compiled Workspace ES for testing
                              Level 1
                              After the usage of Flex Builder 3 beta version, my problem disappears. I have imported the same project and deploy to same server, everyting works fine.
                              Thanks all for your help.

                              Asiye
                              • 13. Re: Deploying compiled Workspace ES for testing
                                Hi,
                                I also have this issue, but I have to use flex builder 2.0.1.
                                I applied all the steps described in customizeworkspaceui.pdf.
                                The project is compiled without any errors or warnings , but the blank page appears in the browser.
                                any ideas?????
                                thanks, Oliver
                                • 14. Re: Deploying compiled Workspace ES for testing
                                  Level 1
                                  Hi Oliver,
                                  I have also tried on Flex Builder 2 (with no errors), but same white page appears to me. When I tred in Flex Builder 3, same project worked. Try Flex Builder 3.

                                  Asiye
                                  • 15. Re: Deploying compiled Workspace ES for testing
                                    Level 1
                                    Hi, Asiye.
                                    I managed to compile it on Flex Builder 2, and everything works fine now. The solution was to install hotFix 2.
                                    thanks
                                    Oliver
                                    • 16. Re: Deploying compiled Workspace ES for testing
                                      Level 1
                                      Hi Again,
                                      I have tried the Flex Builder 2 with hotfix 2. At this time no compilation errros, but the displayed page is without the images(pngs) and gives and error in firefox as
                                      VerifyError: Error #1053: Illegal override of resourcesChanged in mx.core.Application.
                                      at flash.display::MovieClip/nextFrame()
                                      at mx.core::FlexModuleFactory/::deferredNextFrame()
                                      at mx.core::FlexModuleFactory/::update()
                                      at mx.core::FlexModuleFactory/::moduleCompleteHandler()
                                      ReferenceError: Error #1065: Variable lc__embed_css_images_LC_DirectShare_Sm_NG_png_1526843370 is not defined.
                                      at flash.display::MovieClip/nextFrame()
                                      at mx.core::FlexModuleFactory/::deferredNextFrame()
                                      at mx.core::FlexModuleFactory/::update()
                                      at mx.core::FlexModuleFactory/::moduleCompleteHandler()
                                      ..
                                      same errors are given for all images in the page.

                                      What can be the problem?
                                      Thanks.
                                      Asiye
                                      • 17. Re: Deploying compiled Workspace ES for testing
                                        Stuart Mail
                                        Hi

                                        I have exactly the same problem as Asiye with the 'VerifyError: Error #1053: Illegal override of resourcesChanged in mx.core.Application'.

                                        I have Flex Builder 3 because I can't find a copy of the old V2 to download.

                                        I've tried using both the SDKS 2.0.1 and SDKS 3.0.0 with Flex Builder 3 to compile the .swf but get the same error with both when deployed back into LC ES.

                                        Does anyone know if the Flex Builder 3 SDKS is compatible with LC ES ?

                                        Or if not does anyone know if the Hot Fix 2 is included in the Flex Builder 3 SDKS 2.0.1 build, and if not how I can install it please ?

                                        Or finally, is the above error likely to be related to the Hot Fix 2 and if not what else should I be looking to fix ?

                                        Thanks - Stuart
                                        • 18. Re: Deploying compiled Workspace ES for testing
                                          Are you using the debug version of Flash player? When you ignore the errors, does it work?
                                          • 19. Re: Deploying compiled Workspace ES for testing
                                            Level 1
                                            In Flex 3, you can compile with Flex 2 hotfix 2. To do so, follow these steps:<br />1. Right-click your project and then select Properties.<br />2. In the Properties for <your project name>, select Flex Compiler in the left menu.<br />3. In the Flex SDK Version, select Use a specific SDK, then, in the dropdown, select Flex 2.0.1 hotfix 3. (hotfix 3 includes hotfix 2).<br /><br />I'm using the Flex 3 released version. If you have an eariler beta version, the steps may differ....<br /><br />Hope that helps!
                                            • 20. Re: Deploying compiled Workspace ES for testing
                                              Stuart Mail Level 1
                                              Hi flexairlr

                                              Thanks for the feed-back. I'm busy trying to get ES SP2 to work at the moment but I'll give your suggestion a try next week

                                              Best Regards - Stuart
                                              • 21. Re: Deploying compiled Workspace ES for testing
                                                Stuart Mail Level 1
                                                Hi flexair

                                                Thank you for the advice but I still could not get Flex Builder 3 to compile my .swf correctly - I'm new to Flex Builder so it is probably entirely my fault.

                                                However I found a download of the original Flex SDK 2 Hotfix 2 (which to lc-customisation instructions refer to) so I De-installed Flex Builder 3, installed Flex 2 Hotfix 2, and used the Flex 2 command line to compile the new workspace-theme.swf file.

                                                This then worked correctly when re-built into my customworkspace-client.ear file.

                                                I'm happy to find a solution, but it is a shame that Adobe do not provide instructions to customise LC ES Workspace using Flex Builder 3 as that is now seems the only version available to download or purchase.

                                                Stuart
                                                • 22. Re: Deploying compiled Workspace ES for testing
                                                  Level 1
                                                  At the time the documentation was written, only Flex Builder 2 was available. Agreed, that instructions should include Flex Builder 3 as that is what is available now. We'll raise a bug to get that resolved.

                                                  YOu can compile using Flex Builder 3 by changing the compile version in Flex Builder 3 (which uses Flex 2 SDK (hotfix 3, which includes hotfix 2).

                                                  To compile using Flex 2 SDK in Flex Builder 3:
                                                  1. Right-click your project and select Properties.
                                                  2. Select Flex Compiler.
                                                  3. In the Flex SDK version pane, select Use a specific SDK and select Flex 2.0.1 Hotfix 3 from the dropdown list.
                                                  4. Click Apply and then OK.
                                                  5. Compile as you would normally. Now it will use the Flex 2.0.1 (hotfix 3) SDK for that project.

                                                  Hope that helps!
                                                  • 23. Re: Deploying compiled Workspace ES for testing
                                                    Stuart Mail Level 1
                                                    Hi flexairlr

                                                    As I'm only using Flex to compile changes to the Workspace Theam .ear I've written a .bat that automates rebuilding it from my manually edited .css file and images using the Flex 2 SDK which only takes 2 minutes to run.

                                                    I spent some time playing with Flex Builder 3 but it did not seem to offer much advantage over doing this as the above method.

                                                    What I'd really like is a way to edit the whole Workspace Visually using a graphical type desigener tool as the way I'm doing it now involves a lot of trail and error in terms of getting changs to graphics and colours to line up correctly. Ideally I'd like to be able to alter the size and layout of some of the containers as well.

                                                    It did not seem to me that Flex Builder was able to offer this, although as I said I'm very new to it. Do you know if there is any tool which can edit the whole Workspace 'off line' in a visual way ?

                                                    Stuart