Is there a way in geronimo 1.0 to make it use one classloader throughout. My problem is this:
As theSpring was not beign identified I manually set the classloader to be the one used by the Login Module class using Thread.setContextClassLoader(). Now when I try to retrieve the principals at the ServletFilter end I get a null, even though in the commit method of the login module i can see that the principals are loaded? I am assuming that againa here, the classloader is theproblem. So is there a way in geronimo 1.0 to solve my problem? Thanks in advance for your advice. --- Aaron Mulder <[EMAIL PROTECTED]> wrote: > Probably there are two classes with the same name > loaded from > different class loaders -- can you print > Foo.class.getClassLoader() > and then the instance of > foo.getClass().getClassLoader() and see what > you get for the two? > > Thanks, > Aaron > > On 11/15/06, sreepriya ramakrishnan > <[EMAIL PROTECTED]> wrote: > > Hi all, > > > > I am workign in geronimo 1.0. Because of the known > > problem with Logim Modules not available in the > War, I > > created a dummy ejb project and put my login > modules > > in there. My login module internally uses Spring > to > > talk to the delegate. > > > > Now the login modules are identified, but at the > poitn > > where I try to cast the class returned by the > getBean > > method of ClassPathXmlApplicationContext, I get a > > BeanNotofrequiredTypeException like this: > > > > com.test.testdelegate is not of type > > [com.test.testdelegate] > > > > This delegate class is within another jar file > which > > is added as part of the manifest classpath of the > EJB > > project. I am able to do the same thing from > within > > say an action class,but from login module I get > this > > exception. > > > > Your input will be appreciated. > > > > Thanks, > > Priya > > > > > > > > > ____________________________________________________________________________________ > > Sponsored Link > > > > Rates near historic lows - > > $200,000 mortgage for $660/ month - > > http://yahoo.ratemarketplace.com > > > ____________________________________________________________________________________ Sponsored Link $420k for $1,399/mo. Think You Pay Too Much For Your Mortgage? Find Out! www.LowerMyBills.com/lre