Thursday, July 21, 2011

Apex Listener + WLS + Serving static files from /i/

A common thing that people ask about is setting up the images directory in weblogic. The documentation explains how to generate an i.war file then deploy it.  This work great until the need arises to also host additional files like custom javascript or css.  This is a short video of how I setup the /i/ for my servers.  This setup lets any content in the directory be served out.  The one assumption is that you already have web logic setup and running.  In my case, the http server is on port 8080.  

Here's the xml file that is in the web.xml:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://
java.sun.com/j2ee/dtds/web-app_2_3.dtd">
<web-app> 
</web-app>