WebSphere Application Server & Liberty

WebSphere Application Server & Liberty

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  Mapping modules to Webservers

    Posted 09/16/13 07:04 PM
    I have a simple cell with one JVM and one webserver, the webserver node has been added into the cell and is configured inside the websphere console.

    When I deploy an application and map it to the webserver and the JVM  during map modules to servers, generate/propagate plugin,  will the static content is served by the webserver? If yes, how can I verify that? 

    I have worked with other configurations like  totally isolating the webserver and app server and just copying the static data to the the Document Root for webserver. Just not sure about this one. Can anyone suggest.


  • 2.  Mapping modules to Webservers

    Posted 09/17/13 06:57 AM
    Hi WASUser,

     You can verify if in your plugin you have entries for applications like

     /APPLICATION_CONTEXT_ROOT/*

      instead of

     /APPLICATION_CONTEXT_ROOT/servlets/YOURSERVLETS
     /APPLICATION_CONTEXT_ROOT/*.jsp
     /APPLICATION_CONTEXT_ROOT/*.jsp"/

     if file server enabling propertie is true then plugin generate in that way

       /APPLICATION_CONTEXT_ROOT/*

     if not generate an entry for all servlets and java based contents.

     To check if the properties is enabled you need to see inside your Application Web Module (.war) in     ibm-web-ext.xmi file

       fileServingEnabled="false"
        
     if fileServingEnabled="false" then you need to move static content to your Web Server and generate an Alias to serve the content in your configuration file (httpd.conf f.e) an example:
     
       Alias /APPLICATION_CONTEXT_ROOT/ "C:/IBMHttpServer/htdocs/APPLICATION_CONTEXT_ROOT"
     
      Some examples:
       
       WebSphere Application Server V5: Separating Static and Dynamic Web Content
       www.redbooks.ibm.com/abstracts/tips0223....
       
       IBM WebSphere Developer Technical Journal: Handling Static Content in WebSphere Application Server
       www.ibm.com/developerworks/websphere/tec...
       
      Hope this helps.
     
     regards


  • 3.  Mapping modules to Webservers

    Posted 09/17/13 02:52 PM
    Thanks Gabriel.

    I verified the context roots in the plugin and  all of them have the /APPLICATION_CONTEXT_ROOT/*, so I believe it  is the application server that is serving the static content. I only found this property  in one of the applications( vendor application) fileServingEnabled="true", all of our custom developed applications does not have this property in the ibm-web-ext.xmi file inside the war file (Nor anywhere in the ear if it matters).

    Also I verified this in the WebContainer Custom properties and is not defined there. So if this property   is not present, is it defaulted to "true" i.e. . the app server will be serving the static content?

    Also extracting the static/content from war/ear seems challenging, is this a developer's job or the administrator's?  Can you please suggest me some tools/ efficient way to do this?





  • 4.  Mapping modules to Webservers

    Posted 09/18/13 11:01 AM
    to simplify the complexity .. consider this option as well


    • talk to the developers and check what content can be externalized (like images, CSS, java scripts etc..).

    • Move these to web server

    • use rewrite rules in IHS to serve this content from web server.



  • 5.  Mapping modules to Webservers

    Posted 09/18/13 01:26 PM
    How do  Igo about vendor applications.  How can I extract  static from there ear/war files?