Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

moving static content to a webserver

 
shwetank singh
Greenhorn
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 rock..so any help is much appreciated..
i've an ear file and have split the ear into two..one 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:
https://<ip>:<port>/a/xhtml/large/basicxhtml.css

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:
com.ibm.ws.webcontainer.servlet.exception.NoTargetForURIException\: 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!
thanks!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic