Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    File Assembly

    Hi Isomorphic,

    While evaluating the enterprise version for file assembly, I'm facing a problem in recognizing the fileassembly.xml ( i have placed this file under newly created isomorphicConfig folder in isomorphic)

    I have followed the steps as given in Smartclient Reference material, is there any param-name, param-value need to be mapped under web.xml.
    If yes pls let me know the same.

    If im going wrong somewhere, please let me know the alternative way.

    Thanks in Advance.

    #2
    The filename is case sensitive. fileAssembly.xml

    Comment


      #3
      oops !! sorry that was a typo error.

      I have used the file name as given in the reference material, fileAssembly.xml

      Comment


        #4
        Then please post all relevant error information: exactly what is happening and what you can see with client and server side logs (always post this information whenever you report a problem).

        Comment


          #5
          No error is shown as such in the logs.

          Let me explain in detail, i have included smartclient/load_skin.js inside fileAssembly.xml.
          The XML file is placed inside a newly created folder 'isomorphicConfig' i.e. isomorphic/isomorphicConfig/fileAssembly.xml

          Code:
          <FileAssembly>
               <assemblies>
                   <FileAssemblyEntry uri="/myAssembly.js">
                       <compress>true</compress>
                       <components>
                           <component>
                               <type>file</type>
                               <fileName>../isomorphic/skins/SmartClient/load_skin.js</fileName>
                           </component>                
                       </components>
                   </FileAssemblyEntry>
               </assemblies>
           </FileAssembly>
          
          
          // mapping inside web.xml
          
          <servlet>
                 <servlet-name>FileAssembly</servlet-name>
                 <servlet-class>com.isomorphic.servlet.FileAssembly</servlet-class>
          </servlet>
               
          <servlet-mapping>
                 <servlet-name>FileAssembly</servlet-name>
                 <url-pattern>/myAssembly.js</url-pattern>    
          </servlet-mapping>
          
          //code in my sample.jsp
          
          // Commented the load_skin.js as it is included in the fileAssembly.xml
          <!--<script src=../isomorphic/skins/SmartClient/load_skin.js></script>-->
          <script src="/myAssembly.js"></script>

          when try to run the sample.jsp, the page is getting loaded without the skin properties.
          Please correct me if im going wrong somewhere.
          Also i need to know when exactly the HTTP request happens, can i find the same in logs ??

          Logs:

          14:15:59.265:INFO:Log:initialized
          14:15:59.265:INFO:Page:app dir is http://localhost:9080/PrototypeCreation/jsp/
          14:15:59.265:DEBUG:Page:setEvent(load): action => if(this.width==null||this.height==null)isc.EH.$hr()isc.Page.$hj=true;isc.Log.logInfo("isc.Page is loaded");isc.EH.startIdleTimer();if(isc.Browser.isSafari)isc.Canvas.clearCSSCaches();if(!window.suppressAutoLogWindow){var _1=isc.LogViewer.getLogCookie();if(_1!=null&&_1.keepOpen){isc.Timer.setTimeout("isc.Log.show(true)",1000)}}if(isc.Page.pollPageSize)isc.EH.$hr()
          14:15:59.281:INFO:Page:SmartClient Core (6.5.1/EVAL Deployment 2008-06-30) initialized: 32ms
          14:15:59.281:INFO:Page:document.compatMode: BackCompat
          14:15:59.281:INFO:loadTime:Core module init time: 32ms
          14:15:59.296:DEBUG:loadTime:Foundation load/parse time: 15ms
          14:15:59.296:DEBUG:Page:setEvent(load): action => var _1=isc.Page._eT;isc.Timer.setTimeout(function(){if(isc.licenseType=="Eval")_1.src+="&licence="+isc.licenseSerialNumber;if(isc.Browser.isMoz){_1.extraStuff="onload='if(isc.Page._eT.extraStuff)isc.Page._eT.setSrc(isc.Page._eT.fsrc);isc.Page._eT.extraStuff=null;'"}_1.draw()},150)
          14:15:59.296:INFO:loadTime:Foundation module init time: 0ms
          14:15:59.296:DEBUG:loadTime:Containers load/parse time: 0ms
          14:15:59.312:INFO:loadTime:Containers module init time: 16ms
          14:15:59.343:DEBUG:loadTime:Grids load/parse time: 31ms
          14:15:59.359:INFO:loadTime:Grids module init time: 16ms
          14:15:59.390:DEBUG:loadTime:Forms load/parse time: 31ms
          14:15:59.406:INFO:loadTime:Forms module init time: 16ms
          14:15:59.437:DEBUG:loadTime:DataBinding load/parse time: 31ms
          14:15:59.437:DEBUG:DataSource:isc.DataSource 'Object' not present
          14:15:59.437:INFO:DataSource:Registered new isc.DataSource 'Object'
          14:15:59.437:DEBUG:DataSource:isc.DataSource 'ValueMap' not present
          14:15:59.437:INFO:DataSource:Registered new isc.DataSource 'ValueMap'
          14:15:59.437:DEBUG:DataSource:isc.DataSource 'DataSource' not present
          14:15:59.437:INFO:DataSource:Registered new isc.DataSource 'DataSource'
          14:15:59.437:DEBUG:DataSource:isc.DataSource 'DataSourceField' not present
          14:15:59.437:INFO:DataSource:Registered new isc.DataSource 'DataSourceField'
          14:15:59.437:DEBUG:DataSource:isc.DataSource 'Validator' not present
          14:15:59.437:INFO:DataSource:Registered new isc.DataSource 'Validator'
          14:15:59.437:DEBUG:DataSource:isc.DataSource 'SimpleType' not present
          14:15:59.437:INFO:DataSource:Registered new isc.DataSource 'SimpleType'
          14:15:59.437:DEBUG:DataSource:isc.DataSource 'XSComplexType' not present
          14:15:59.437:INFO:DataSource:Registered new isc.DataSource 'XSComplexType'
          14:15:59.437:DEBUG:DataSource:isc.DataSource 'XSElement' not present
          14:15:59.437:INFO:DataSource:Registered new isc.DataSource 'XSElement'
          14:15:59.437:DEBUG:DataSource:isc.DataSource 'SchemaSet' not present
          14:15:59.437:INFO:DataSource:Registered new isc.DataSource 'SchemaSet'
          14:15:59.437:DEBUG:DataSource:isc.DataSource 'WSDLMessage' not present
          14:15:59.437:INFO:DataSource:Registered new isc.DataSource 'WSDLMessage'
          14:15:59.437:DEBUG:DataSource:isc.DataSource 'WebService' not present
          14:15:59.437:INFO:DataSource:Registered new isc.DataSource 'WebService'
          14:15:59.437:DEBUG:DataSource:isc.DataSource 'WebServiceOperation' not present
          14:15:59.437:INFO:DataSource:Registered new isc.DataSource 'WebServiceOperation'
          14:15:59.437:DEBUG:DataSource:isc.DataSource 'WSOperationHeader' not present
          14:15:59.453:INFO:DataSource:Registered new isc.DataSource 'WSOperationHeader'
          14:15:59.453:INFO:loadTime:DataBinding module init time: 16ms
          14:15:59.453:DEBUG:loadTime:FileLoader load/parse time: 0ms
          14:15:59.453:INFO:loadTime:FileLoader module init time: 0ms
          14:15:59.656:DEBUG:Page:setEvent(idle): action => if(isc.Log.logViewer){var _3=isc.Log.logViewer._logWindow;if(_3&&!_3.closed)_3.focus()}
          14:15:59.687:INFO:draws:Content:draw(): drawing DynamicForm before page load
          14:15:59.703:DEBUG:DynamicForm:Content:Drawing FormItem: [NativeSelectItem ID:isc_NativeSelectItem_1 name:content]
          14:15:59.703:INFO:sizing:Content:Specified size: 100x20, drawn scroll size: 250x79, border: 0x0, margin: 0x0, reason: draw
          14:15:59.703:DEBUG:sizing:Content:handle sizes: {scrollLeft: 0,
          14:15:59.749:INFO:tablePolicy:simpleForm5:totalWidth: 300, generated colWidths: 100,200
          14:15:59.765:DEBUG:tablePlacement:at: row0,col0, item: Retail Format, required cols:2
          14:15:59.765:DEBUG:tablePlacement:item: Retail Format placed at: row0,col0, marked startRow , rowTable: [
          14:15:59.765:WARN:Canvas:item at: 0,0 has height: 23, item is: [SelectItem ID:isc_SelectItem_2 name:Retail Format]
          14:15:59.765:WARN:Canvas:item: [SelectItem ID:isc_SelectItem_2 name:Retail Format] has pixel size: 23
          14:15:59.765:WARN:Canvas:item at: 0,1 has height: 23, item is: [SelectItem ID:isc_SelectItem_2 name:Retail Format]
          14:15:59.765:WARN:Canvas:item: [SelectItem ID:isc_SelectItem_2 name:Retail Format] has pixel size: 23
          14:15:59.765:INFO:tablePolicy:
          14:15:59.765:DEBUG:DynamicForm:simpleForm5:Drawing FormItem: [SelectItem ID:isc_SelectItem_2 name:Retail Format]
          14:15:59.781:DEBUG:overflow:simpleForm5:browser not done drawing, deferring overflow.
          14:15:59.781:DEBUG:overflow:simpleForm5:handle sizes: {scrollLeft: 0,
          14:15:59.812:DEBUG:Page:setEvent(idle): action => [DynamicForm ID:simpleForm5]
          14:15:59.812:DEBUG:Page:setEvent(load): action => [DynamicForm ID:simpleForm5]
          14:15:59.828:INFO:FileLoader:FileLoader initialized
          14:15:59.828:DEBUG:Page:handleEvent(load): firing action => if(this.width==null||this.height==null)isc.EH.$hr()isc.Page.$hj=true;isc.Log.logInfo("isc.Page is loaded");isc.EH.startIdleTimer();if(isc.Browser.isSafari)isc.Canvas.clearCSSCaches();if(!window.suppressAutoLogWindow){var _1=isc.LogViewer.getLogCookie();if(_1!=null&&_1.keepOpen){isc.Timer.setTimeout("isc.Log.show(true)",1000)}}if(isc.Page.pollPageSize)isc.EH.$hr()
          14:15:59.828:DEBUG:Page:handleEvent(resize): firing action =>
          14:15:59.828:DEBUG:Page:setEvent(resize): action => [DynamicForm ID:simpleForm5]
          14:15:59.828:INFO:Log:isc.Page is loaded
          14:15:59.828:DEBUG:Page:handleEvent(load): firing action => var _1=isc.Page._eT;isc.Timer.setTimeout(function(){if(isc.licenseType=="Eval")_1.src+="&licence="+isc.licenseSerialNumber;if(isc.Browser.isMoz){_1.extraStuff="onload='if(isc.Page._eT.extraStuff)isc.Page._eT.setSrc(isc.Page._eT.fsrc);isc.Page._eT.extraStuff=null;'"}_1.draw()},150)
          14:15:59.828:DEBUG:Page:handleEvent(load): firing action =>
          14:15:59.828:TMR0:INFO:sizing:simpleForm5:Specified size: 300x48, drawn scroll size: 300x23, border: 0x0, margin: 0x0, reason: undefined
          14:15:59.843:TMR0:DEBUG:sizing:simpleForm5:handle sizes: {scrollLeft: 0,
          14:15:59.921:TMR1:DEBUG:Page:handleEvent(idle): firing action => if(isc.Log.logViewer){var _3=isc.Log.logViewer._logWindow;if(_3&&!_3.closed)_3.focus()}
          14:15:59.921:TMR1:DEBUG:Page:handleEvent(idle): firing action =>
          14:15:59.921:TMR1:DEBUG:Page:handleEvent(idle): firing action =>
          14:16:00.046:TMR3:INFO:draws:isc_Img_0:draw(): drawing Img
          14:16:00.046:TMR3:DEBUG:drawing:isc_Img_0:inserting HTML at top level
          14:16:00.046:TMR3:INFO:sizing:isc_Img_0:Specified size: 1x1, drawn scroll size: 1x1, border: 0x0, margin: 0x0, reason: draw
          14:16:00.046:TMR3:DEBUG:sizing:isc_Img_0:handle sizes: {scrollLeft: 0,
          Last edited by kiranv; 30 Jun 2009, 00:50.

          Comment


            #6
            See the docs - the directory isomorphicConfig is expected under webroot, not under the isomorphic/ directory.

            It's not a good idea to load the skin file or any of the core modules via FileAssembly. Stick to using it for your own application code only.

            Comment


              #7
              Even after placing the isomorphic folder under webroot, the problem continues.. any other alternative way ??

              Comment


                #8
                Problem with FileAssembler

                Hi,
                am also facing the same problem, configured as per document, but not working.i want to know when exactly call will be made to fetch these files.

                Comment

                Working...
                X