Do not use WebLogic startup or shutdown classes

This rule detects the use of classes that implement the WebLogic T3StartupDef interface or the T3ShutdownDef interface. These classes do not run on WebSphere traditional or Liberty, and must be replaced by an equivalent ServletContextListener implementation, session startup bean, or a servlet that is configured to load at startup time.

An automated fix will be provided for this rule converts the class so that the class implements the ServletContextListener interface. Review the resulting class for completeness because parameters that are passed on the startup() or shutdown() method are not present in the new class, which causes compile errors. Additionally, the setServices() method in the original class is removed by the automated fix only if it has no body. Therefore, if the method is not removed by the automated fix, there might be code that must be converted and moved into the appropriate ServletContextListener method.

After the automated fix is applied: the j2ee.jar file from the target WebSphere Application Server installation must be included in the build path of your application for the application to compile successfully.