In your code in the jsp page,how do you have the value of the h:graphicImage?
What i mean is do you have like this <h:graphicImage value="
or do you have smothing like this
If you have like in the first example, i think you have it wrong. You should not put the whole http://blabla . Maybe the application thinks that you want to access somethign outside of your application. Since, this image is in your code, (in a folder in your web applciation) and not somewhere in the internet in another server you should put the relative url of the image.
so something like the second example
have a look at these web pages
make sure you set the value correct. (the relative path)
aslo leave the setting
to server as it was before and do not wrire any rewrite rule in aapche web server.
Hope it helps
I have <h:graphicImage value="/static-files/images/MyImage.jpg"> in my code. Its a relative URL.
But, the image is lying in Apache web server and not in my war file. I dont want to put the image in my war file, because tomorrow if requirement changes
and if I need to change the image then I cant redeploy my war in server. I just want to update the image on the fly in web server.
Keeping this in my mind, I am retrieving the image from web server using a relative url like "/static-files/images/MyImage.jpg". So, how to solve this?
In the conf folder
ie for the default configuration server\default\conf there is a file called jboss-service.xml.
In this one there is a section
the comments above these help you a lot.
I think this is where you have to put the relative url of the file.
i.e something like this
have it a try
for jboss 5 have a look at this page
so you should put in this file under the