Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

moving static content to a webserver

shwetank singh
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ranchers

this has gone above me and am unable to move past this any help is much appreciated..
i've an ear file and have split the ear into part is a war file having only static resources (like images, html, etc.), the other part contains dynamic content.
i've deployed dynamic content (ear) onto a websphere instance and have moved the static-content war to a Sun One webserver installed on same machine.

i've, after this, created an Alias in httpd.conf file and have restarted the httpd service and the webserver too.

now to the problem:
a jsp refers to following URL:

and my Alias is :
Alias /a/xhtml/large "/opt/webserver/docs/a/xhtml/large/"

the application has been deployed with context "/a" i.e. "<server ip>:<port>/a"

the page is unable to access the stated css file and error is:\: No target servlet configured for uri\: /xhtml/large/basicxhtml.css

which detail am i missing?..i've tried with all different Alias say, /a/xhtml/large and /xhtml/large/ etc.
i am able to directly hit the webserver and can view the css file by doing so, it is only so that the application server is unable to either redirect or find the resource!

please suggest!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic