• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Static Content problem

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I am using HTTPServer 2.0.4.2, WAS(Websphere Application Server) 5.0.2.10 on AIX 5.2

For performance issue, I set fileservingenabled=false, so my static content is served by HTTPServer.

But when I need to test application by accessing directly to application server via using HTTPTransportPort at URL(I bypass httpserver), since WAS do not serve static content(js, css,html,jpeg,etc.), application login page crushes.

Is there a way or setting to handle this problem?

I mean if I use virtual host,and access application using httpserver, http server will serve static content, but when I use appication server port, was server should serve static content.

Waiting for your suggestions.

Kind regards,
 
author
Posts: 4335
39
jQuery Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Maybe I'm misunderstanding your situation, but since when does WAS not server static content? You can put the files you speak of (js,css,html,jpeg,etc.) inside a WAR file an access it once it is deployed in an EAR on the server.

Maybe I'm missing something.
 
Burcu Atalan
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

Sorry for replying late.

I put static files in war file.

As far as I know(actually I test and see) in ibm-web-ext.xmi if you set

fileServingEnabled="false"

This setting prevents WAS from serving static content, and if you access your application using application server port which means bypassing web server(like http://10.5.6.12:9083/mysite/images/button.gif), application server cannot display images.

Thanks,
 
Ranch Hand
Posts: 179
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"fileservingenabled=false" prevents WAS from serving static content. It should be set to true.

So for example:

http://10.5.6.12:80/images/button.gif - served by Apache from the doc root specified in the Apache virtual host definition.

http://10.5.6.12:80/mysite/images/button.gif - served by WAS through plugin redirection. "/images/button.gif" must exist in the WAS doc root for the app with the context root "mysite" i.e in the war file. Useful for apps where some of the static content is served by WAS and some by Apache.


So "http://10.5.6.12:9083/mysite/images/button.gif" should also work with "fileservingenabled=true"
 
reply
    Bookmark Topic Watch Topic
  • New Topic