No, the static content does not need to be on the classpath to be served, well 
except where there are bugs in a web app container impl, which would make it 
not compliant with the spec.

Alasdair Nottingham

On 21 Jan 2011, at 10:49, "Nick Wilson" <[email protected]> wrote:

> Should the Bundle-Classpath be ".,WEB-INF/classes"?
> 
> Nick
> 
> 
> -----Original Message-----
> From: Charles Moulliard [mailto:[email protected]] 
> Sent: 21 January 2011 10:43
> To: [email protected]; user
> Subject: Aries Blog Sample JPA - EBA on Apache Karaf
> 
> Hi,
> 
> I have been able to deploy successfully on Karaf the Aries Blog Sample
> JPA eba archive but I see that the images/ or style/blog.css directory
> present in the bundle are not accessible from the browser.
> 
> For info, here is the MANIFEST generated :
> 
> Manifest-Version: 1.0
> Implementation-Title: Apache Aries
> Implementation-Version: 0.3-SNAPSHOT
> Bundle-ClassPath: WEB-INF/classes
> Built-By: charlesmoulliard
> Tool: Bnd-1.15.0
> Bundle-Name: Apache Aries blog sample web component
> Created-By: Apache Maven Bundle Plugin
> Web-ContextPath: /blog
> Bundle-Vendor: The Apache Software Foundation
> Build-Jdk: 1.6.0_22
> Bundle-Version: 0.3.0.SNAPSHOT
> Bnd-LastModified: 1295601008095
> Bundle-ManifestVersion: 2
> Bundle-License: http://www.apache.org/licenses/LICENSE-2.0.txt
> Bundle-Description: Aries top-level parent pom
> Bundle-DocURL: http://www.apache.org
> Bundle-SymbolicName: org.apache.aries.samples.blog.web
> Import-Package: javax.naming,javax.servlet;version="2.5",javax.servlet
> .http;version="2.5",org.apache.aries.samples.blog.api;version="[0.3,1
> )"
> 
> So my question is : How can PAX-WEB and/or JETTY have access to the
> web resources located in the root of the bundle like images, styles,
> ... directories ?
> 
> Regards,
> 
> Charles Moulliard
> 
> Sr. Principal Solution Architect - FuseSource
> Apache Committer
> 
> Blog : http://cmoulliard.blogspot.com
> Twitter : http://twitter.com/cmoulliard
> Linkedin : http://www.linkedin.com/in/charlesmoulliard
> Skype: cmoulliard

Reply via email to