I come from the Open source world where I’m used to having Apache serve up my images, css, javascript, etc., while Tomcat or an app server of its ilk handles all the Java EE lifting.
But now I’m doing a project with Weblogic 8.1, and I can’t seem to figure out how to get it to work. For example, the concept of a document root. How can I configure this?
You might want to take a look here and here:
Here’s the short version of what BEA says:
Basically, what I had to do get this type of thing to work was to configure my set of static pages as an application, and deploy it as such. In whatever directory or .war you deploy, you’ll need a WEB-INF directory and probably a web.xml file within that points at your static files.
We’re running WL 10, but the concept should be the same:
here’s snip of our config.xml that we use to serve some static content:
And then in the directory ‘myStaticContentDir’ we have the static files and then a WEB-INF directory with this as the web.xml within it: