0 Replies Latest reply on Jun 8, 2011 2:08 AM by amol bhandwale

    Flex 4.5 webtier settings

    amol bhandwale Level 1

      Hi All,

       

      I am migrating from flex 3.2 to flex 4.5.

      My flex project contains the flex webtier to compile the project on server.

      I have resolve all the comiler errors of flex 4 but when i deploy a war on Jboss server it's not get compiled.

       

      Is their any way to generate the webtier in Flash builder 4.5.I am using flah builder 4.5 as a plugin in eclipse.

       

      I tried to update flex webtier manually by replacing the flex 4 sdk jars and swc.

      Updated flex-config.xml accorfing to the flex 4 sdk.


      I didn't find the latest flex-bootstrap.jar according to flex 4.5 which will validate the flex 4 flex-config file for new tags.

      when i tried to deploy on server i get errors for folloting tags which are not supported

       

      <omit-trace-statements>

      <runtime-shared-library-path>

      <remove-unused-rsls>

       

       

      My web.xml contains follwing entries

       

      <servlet>
                  <servlet-name>MessageBrokerServlet</servlet-name>
                  <display-name>MessageBrokerServlet</display-name>
                  <servlet-class>flex.messaging.MessageBrokerServlet</servlet-class>
                  <init-param>
                      <param-name>services.configuration.file</param-name>
                      <param-value>/WEB-INF/flex/services-config.xml</param-value>
                  </init-param>
                  <init-param>
                      <param-name>flex.write.path</param-name>
                      <param-value>/WEB-INF/flex</param-value>
                  </init-param>
                  <load-on-startup>1</load-on-startup>
              </servlet>
             
           <servlet>
              <servlet-name>FlexMxmlServlet</servlet-name>
              <display-name>MXML Processor</display-name>
              <description>Servlet wrapper for the Mxml Compiler</description>
              <servlet-class>flex.bootstrap.BootstrapServlet</servlet-class>
              <init-param>
                  <param-name>servlet.class</param-name>
                  <param-value>flex.webtier.server.j2ee.MxmlServlet</param-value>
              </init-param>
              <init-param>
                  <param-name>webtier.configuration.file</param-name>
                  <param-value>/WEB-INF/flex/flex-webtier-config.xml</param-value>
              </init-param>
             <load-on-startup>1</load-on-startup>
          </servlet>

       

          <servlet>
              <servlet-name>FlexSwfServlet</servlet-name>
              <display-name>SWF Retriever</display-name>
              <servlet-class>flex.bootstrap.BootstrapServlet</servlet-class>
              <init-param>
                  <param-name>servlet.class</param-name>
                  <param-value>flex.webtier.server.j2ee.SwfServlet</param-value>
              </init-param>
              <!-- SwfServlet must be initialized after MxmlServlet -->
              <load-on-startup>2</load-on-startup>
          </servlet>

       

          <servlet>
              <servlet-name>FlexForbiddenServlet</servlet-name>
              <display-name>Prevents access to *.as/*.swc files</display-name>
              <servlet-class>flex.bootstrap.BootstrapServlet</servlet-class>
              <init-param>
                  <param-name>servlet.class</param-name>
                  <param-value>flex.webtier.server.j2ee.ForbiddenServlet</param-value>
              </init-param>
          </servlet>

       

          <servlet>
              <servlet-name>FlexInternalServlet</servlet-name>
              <servlet-class>flex.bootstrap.BootstrapServlet</servlet-class>
              <init-param>
                  <param-name>servlet.class</param-name>
                  <param-value>flex.webtier.server.j2ee.filemanager.FileManagerServlet</param-value>
              </init-param>
              <load-on-startup>10</load-on-startup>
          </servlet>

       

       

      Thanks,

      Amol.