000034448 - "Unable to write to JspWriter" error deploying backoffice webapp on JBoss 5.2 in RSA Adaptive Authentication (on Premise) 7.1

Document created by RSA Customer Support Employee on Dec 21, 2016Last modified by RSA Customer Support Employee on Apr 21, 2017
Version 2Show Document
  • View in full screen mode

Article Content

Article Number000034448
Applies ToRSA Product Set: Adaptive Authentication (OnPrem)
RSA Version/Condition: 7.x
 
IssueCustomer reported that they are not able to start BackOffice on JBoss Application Server 5.2 and the following error was observed in JBoss server.log
 
Caused by: java.io.IOException: Stream closed
        at org.apache.jasper.runtime.JspWriterImpl.ensureOpen(JspWriterImpl.java:204)
        at org.apache.jasper.runtime.JspWriterImpl.write(JspWriterImpl.java:312)
        at org.apache.jasper.runtime.JspWriterImpl.write(JspWriterImpl.java:342)
        at com.rsa.web.framework.jsp.tags.common.HTMLWriter$SafeWriter.append(HTMLWriter.java:363)
        ... 140 more
2016-11-19 09:27:32,759 INFO  [STDOUT]
(http-10.70.17.45-8180-6) 2016-11-19 09:27:32,757
ERROR [http-10.70.17.45-8180-6] [] [] [com.rsa.web.framework.jsp.tags.standard.LabelTag] -
<exception: >
javax.servlet.jsp.JspException: Unable to write to JspWriter
        at com.rsa.web.framework.jsp.tags.common.HTMLWriter$SafeWriter.append(HTMLWriter.java:367)
        at com.rsa.web.framework.jsp.tags.common.HTMLWriter.append(HTMLWriter.java:193)
        at com.rsa.web.framework.engine.DefaultHTMLGenerator.renderLabelTagPostContent(DefaultHTMLGenerator.java:2943)
        at com.rsa.web.framework.jsp.tags.standard.LabelTag.doEndTagInternal(LabelTag.java:86)
        at com.rsa.web.framework.jsp.tags.AbstractBaseHandlerTag.doEndTag(AbstractBaseHandlerTag.java:520)
        at org.apache.jsp.framework.templates.common.footer_jsp._jspx_meth_webui_005flabel_005f2(footer_jsp.java:167)
        at org.apache.jsp.framework.templates.common.footer_jsp._jspService(footer_jsp.java:106)
      at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)


 
ResolutionOn further investigation found that one of the prerequisite for JBoss (disable JSP) pooling was missed.
 
To disable JSP pooling:
1. Navigate to JBOSS_HOME\server\default\deployers\jbossweb.deployer:
2. Open the web.xml file, add an “enablePooling” init parameter, and set it to false,
as shown in the following snippet.
<init-param>
<param-name>enablePooling</param-name>
<param-value>false</param-value>
</init-param>
Note: This change is mandatory for the JBoss server that hosts the Back
Office applications.
Do a clean restart of the servers after making this change


 

Attachments

    Outcomes