Just making your servlet implement MBeanRegistration doesn't register an instance of it as an mbean with the mbean server, so I'm pretty sure your preRegister etc methods aren't getting called.
Unless you need to access your servlet instance[s] as an mbean, in which case you may have interesting issues figuring out which instance to register, I suggest you simply find the (single) mbean server in the vm using MBeanServerFactory static methods and call it. david jencks On 2002.09.06 19:27:40 -0400 Jon Brisbin wrote: > I'm probably just doing something wrong here, but I've tried to deploy > a servlet into JBoss that accesses my other MBean components. My > servlet implements MBeanRegistration so I can grab the MBeanServer > object. > > I made a directory inside the "all/deploy" directory called "apps.war" > and in that WEB-INF folder put my web.xml file. When I access the > servlet, I get a null pointer exception trying to "invoke" a method on > my MBeanServer. > > Am I hitting a ClassLoader issues here? Maybe I missed the answer in > the archives or the AppDev PDF? > > Any help could be appreciated. > > ===== > Thanks! > > Jon Brisbin > > [EMAIL PROTECTED] > 417.682.6157 (h/w) > 417.825.3995 (c) > > __________________________________________________ > Do You Yahoo!? > Yahoo! Finance - Get real-time stock quotes > http://finance.yahoo.com > > > ------------------------------------------------------- > This sf.net email is sponsored by: OSDN - Tired of that same old > cell phone? Get a new here for FREE! > https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390 > _______________________________________________ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user > > ------------------------------------------------------- This sf.net email is sponsored by: OSDN - Tired of that same old cell phone? Get a new here for FREE! https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390 _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
