In the tomcat-7 geronimo/osgi integration we've run into a problem when tomcat loads listener classes using Class.forName. Using the InstanceManager to just create the objects works fine for us.

In geronimo at the moment the InstanceManager has access to both application and system classes, so it can load just about anything that is supplied as a listener class. If listeners are supposed to only be system classes, perhaps adding another method to InstanceManager to create system objects would be appropriate.

If changing this is unacceptable for some reason we do have a couple of other solutions available such as overriding the method or adding the geronimo listener classes in a fragment bundle, but I think using the InstanceManager would be a more elegant solution.

See https://issues.apache.org/bugzilla/show_bug.cgi?id=48414 (patch included) and https://issues.apache.org/jira/browse/GERONIMO-4992

Many thanks!
david jencks


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to