I have gone head with it, currently it works well. Only two more changes are added, override two setDocBase/getBasePath methods to avoid NullPointerException. IMO, those parameters should be of no use in the bundle environment. Anyway, I added the TODO tags in the codes, and will check them later.
2010/4/16 Jarek Gawor <[email protected]> > Not that I know of. This should also make our implementation much > smaller and nicer. +1. > > Jarek > > On Thu, Apr 15, 2010 at 11:35 PM, Ivan <[email protected]> wrote: > > While using Geronimo-Tomcat assembly, I got the error of "ERROR > > [Registry] Null component > Catalina:type=Cache,host=localhost,path=/plugin" > > The reason is that Geronimo use a customized BundleDirContext which > > implements DirContext directly, however, in the constructor of > > ProxyDirContext, it would check whether the dirContext is an instance of > > BaseDirContext, if not, it would not process those cache related > operations, > > also, I found the simliar checking in StandardContext. > > I am thinking that shall we make our BundleDirContext extends > > BaseDirContext, I compared those two files, it should be OK. So do we > have > > other reasons that prevent doing it in the beginning ? > > Thanks ! > > -- > > Ivan > > > -- Ivan
