Support Article
Method getServletContext() undefined for the type __smaversion
SA-64958
Summary
Universal System Management Application (SMA) works correctly; however, an error is generated in the Weblogic server log.
Error Messages
<Info> <ServletContext-/prsysmgmt> <venglnx249> <AdminServer> <[ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'> <<anonymous>> <> <> <1536162719681> <BEA-000000> <SMAVersion.jsp:25:11: The method getServletContext() is undefined for the type __smaversion
prop.load(getServletContext().getResourceAsStream("/META-INF/MANIFEST.MF"));
^--------------^
>
<Error> <HTTP> <venglnx249> <AdminServer> <[ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1536162719684> <BEA-101020> <[ServletContext@1916823105[app:prsysmgmt module:prsysmgmt.war path:null spec-version:3.0]] Servlet failed with an Exception
java.lang.IllegalStateException: Response already committed
at weblogic.servlet.internal.ServletResponseImpl.objectIfCommitted(ServletResponseImpl
Steps to Reproduce
Deploy Universal SMA on Weblogic 12.3.1.
Root Cause
A defect in Pegasystems’ code or rules.
getServletContext() caused 'Method not found' in Weblogic.
Changed to getServletConfig().getServletContext() which works in all application servers.
Resolution
Apply HFix-47183.
Published September 21, 2018 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.