aspose file tools*
The moose likes Websphere and the fly likes moving static content to a webserver Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Websphere
Bookmark "moving static content to a webserver" Watch "moving static content to a webserver" New topic
Author

moving static content to a webserver

shwetank singh
Greenhorn

Joined: Apr 02, 2007
Posts: 26
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!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: moving static content to a webserver