JMX attributes do not appear on Tomcat
I'm using Spring 1.2.2 with Tomcat 5.0.
I have the following JMX/MBean configuration in my application context file.
<bean id="exporter" class="org.springframework.jmx.export.MBeanExporte r">
<property name="beans">
<map>
<entry key="bean:name=presenceService">
<ref local="presenceService"/>
</entry>
</map>
</property>
<property name="assembler">
<bean class="org.springframework.jmx.export.assembler.Me thodNameBasedMBeanInfoAssembler">
<property name="methodMappings">
<map>
<entry key="bean:name=presenceService"><value>getJabberSe rver,getJabberServerPort,getEnable</value></entry>
</map>
</property>
</bean>
</property>
</bean>
When I deploy my app on JBoss 4.0.2 and point my browser to http://localhost:8080/web-console, I can see three attributes - getJabberServer, getJabberServerPort, getEnable - on the JMX console and the values of the attributes displayed there are correct.
However, when I deploy the same app/configuration on Tomcat 5.0, and point my browser to http://localhost:8080/manager/jmxproxy/?qry=*:*, I can only see the name of my JMX bean but not its attributes. The following two lines are all I got.
Name: bean:name=presenceService
modelerType: com.sitescape.ef.presence.impl.PresenceServiceImpl
All Tomcat JMX components themlselves are displayed correctly with their attribute values included.
Does anyone know why this discrepency? Any help would be appreciated.