I am using JBoss to upload photos and present them back as a part of users' profiles. I did in WebLogic by defining virtual directory in weblogic.xml using the next:
<virtual-directory-mapping>
<local-path>d:/WebProjects/MeetSerbsWL</local-path>
<url-pattern>photos/*</url-pattern>
</virtual-directory-mapping>
http://community.jboss.org/message/496598#496598