In an osgi environment it is certainly not appropriate to tell the web
server the file system location of a war. The location is used to
find web resources. To get jetty to work, I used bundle.getEntry.
I'll look into fixing it for tomcat.
thanks
david jencks
On Dec 16, 2009, at 2:00 AM, Ivan wrote:
Hi,
After changing some Tomcat codes, I got a NullPointerException
about the ConfigurationBaseUrl. It seems that in OSGI environment,
we have no way know where the bundle is. But IIRC, both Tomcat and
Jetty need to set docbase, so that they could load resource from the
specified locations. So, how is it handlered currently ? I
remembered that Jetty could be run for a while in the past, but I
did not find any codes related to it.
--
Ivan