Hi,

Note sure if it's Pax-web related, but I think I'll post here first.

Using Pax web 0.8.0 with Apache Karaf. I want to make a war which
serves only static resources - i.e. Javascript files, CSS, images,
etc, and it's intended to be shared between web contexts. However, I
found resources served by this war (which is actually a directory with
name ended with .war) are sometimes inaccessible, i.e. returned with a
404 error.

However, if the resources are included with the war containing my web
applications, they will serve fine. I then tried jar the directory as
war, but the result is the same.

I'm using a web.xml with no listeners/filters/servlets declared; and
my MANIFEST.MF looks like this:

Bundle-ManifestVersion: 2
Bundle-Name: my.static.resources
Bundle-SymbolicName: my.static.resources
Webapp-Context: resources
Bundle-Classpath: .,WEB-INF/classes
Import-Package: javax.servlet,javax.servlet.http

While including the static resources to the war is a stable solution,
I still hope I can make static resources a standalone war for easier
maintenance. Is there anything I missed?

TIA,
Raymond

_______________________________________________
general mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/general

Reply via email to