tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Jencks <david_jen...@yahoo.com>
Subject Problem loading classes with Class.forName() in StandardContext.createWrapper()
Date Sun, 20 Dec 2009 01:12:48 GMT
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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message