- 
    
Bug
 - 
    Resolution: Done-Errata
 - 
    
Major
 - 
    None
 - 
    None
 
- 
        Quality / Stability / Reliability
 - 
        False
 - 
        
 - 
        False
 - 
        
 - 
        
 
- 
        None
 
Description of problem:
RuleID: javax-to-jakarta-servlet-00040
Method getServlet in javax.servlet.ServletContext has been removed.
Version-Release number of selected component (if applicable):
mta-operator-bundle-container-7.1.0-24
How reproducible:
100%
Steps to Reproduce:
1. Start analysis using uploaded binary file: acmeair-webapp-1.0-SNAPSHOT.war 
2. Set targets: Jakarta EE 9
3. Submit analysis
Actual results:
False positive examples:
String path = request.getServletPath() + request.getPathInfo(); 
Attachments:
analysis-report-app-upgrade-uploadBinaryApp.yaml![]()
Additional info:
Same behavior is reproducible with RuleID: javax-to-jakarta-servlet-00070
 
- is related to
 - 
                    
MTA-3194 [Parent ticket] Validate if rules ID shown in reports are showing rules relevant to source.
-         
 - In Progress
 
 -         
 
- links to
 - 
                    
        
        RHBA-2024:132861
        Migration Toolkit for Applications bug fix and enhancement update