https://issues.apache.org/bugzilla/show_bug.cgi?id=48414
Summary: Use of Class.forName may not work well in osgi environment Product: Tomcat 7 Version: trunk Platform: PC OS/Version: Mac OS X 10.4 Status: NEW Severity: normal Priority: P2 Component: Catalina AssignedTo: dev@tomcat.apache.org ReportedBy: djen...@apache.org Created an attachment (id=24737) --> (https://issues.apache.org/bugzilla/attachment.cgi?id=24737) Simple use of InstanceManager to create listener objects. In the geronimo-tomcat7/osgi integration we're experiencing a problem with the use of Class.forName to load listener classes in StandardContext.createWrapper(). Geronimo has some listener classes that are not in the tomcat bundle and aren't available to Class.forName. Using the instanceManager seems to work fine. If you don't like allowing application classes to be loaded for these listeners or don't expect the instance manager to be able to load tomcat classes then perhaps adding another method to instanceManager to create system objects would be a good solution. The attached patch just uses the existing InstanceManager methods. -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org