Need to upgrade embedded Tomcat in 4.0.5 GA
gwolfjdc Jun 2, 2010 9:38 AMHello all.
I've got customer's screaming about all the security holes in tomcat 5.5 so I need to upgrade to 6.0 I've built a new .sar file for the tomcat deplymoent with the 6.0 bits in it, and change everything up to point at the new tomcat but i keep hitting a wall.
I get this exception at startup:
2010-06-02 08:16:04,409 DEBUG [org.jboss.web.tomcat.tc6.Tomcat6] Starting jboss.web:service=WebServer
2010-06-02 08:16:05,737 ERROR [org.apache.commons.modeler.modules.MbeansDescriptorsIntrospectionSource] Error reading descriptors
java.lang.NullPointerException
at org.apache.commons.modeler.modules.MbeansDescriptorsIntrospectionSource.createManagedBean(MbeansDescriptorsIntrospectionSource.java:306)
at org.apache.commons.modeler.modules.MbeansDescriptorsIntrospectionSource.execute(MbeansDescriptorsIntrospectionSource.java:86)
at org.apache.commons.modeler.modules.MbeansDescriptorsIntrospectionSource.loadDescriptors(MbeansDescriptorsIntrospectionSource.java:79)
at org.apache.commons.modeler.Registry.load(Registry.java:792)
at org.apache.commons.modeler.Registry.loadDescriptors(Registry.java:901)
at org.apache.commons.modeler.Registry.findManagedBean(Registry.java:689)
at org.apache.commons.modeler.Registry.findManagedBean(Registry.java:1015)
at org.apache.commons.modeler.BaseModelMBean.initModelInfo(BaseModelMBean.java:1258)
at org.apache.commons.modeler.BaseModelMBean.setModeledType(BaseModelMBean.java:1231)
at org.apache.commons.modeler.BaseModelMBean.<init>(BaseModelMBean.java:158)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:1233)
at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:254)
at org.jboss.mx.server.MBeanServerImpl.createMBean(MBeanServerImpl.java:316)
at org.jboss.web.tomcat.tc6.Tomcat6.startService(Tomcat6.java:332)
which traces back to this line of code:
String objectNameS = catalinaDomain + ":type=server"; ObjectName objectName = new ObjectName(objectNameS); // Set the modeler Registry MBeanServer to the that of the tomcat service Registry.getRegistry().setMBeanServer( server); server.createMBean("org.apache.commons.modeler.BaseModelMBean", objectName, new Object[]{"org.apache.catalina.startup.Catalina"}, new String[]{"java.lang.String"});
I think the class is failing to instanciate as the Null pointer exception traces back to a call to
realclass.getMethods in the createManagedBean method of the MbeansDescriptorsIntrospectionSource class
do anyone have any clue as to why ths might be happening?
thanks
John