File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » Websphere
Bookmark "moving static content to a webserver" Watch "moving static content to a webserver" New topic

moving static content to a webserver

shwetank singh

Joined: Apr 02, 2007
Posts: 26
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!
I agree. Here's the link:
subject: moving static content to a webserver
Similar Threads
how to load an image without using context root
Regarding WAR & EAR
Static Content problem
Some Deployment Error. JBoss(4.2). Error code 404 displayed while running Project.
Webserver Vs Application Server