While migration of my code from WebSphere to JBoss i observed below mentioned error.
04:17:20,946 ERROR [ContainerBase] Servlet.service() for servlet jsp threw exception
org.apache.jasper.JasperException: /com/test.jsp(15,1) Expecting "jsp:param" standard action with "name" and "value" attributes
at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40)
at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:88)
at org.apache.jasper.compiler.Parser.parseParam(Parser.java:827)
at org.apache.jasper.compiler.Parser.parseBody(Parser.java:1665)
at org.apache.jasper.compiler.Parser.parseOptionalBody(Parser.java:1004)
at org.apache.jasper.compiler.Parser.parseForward(Parser.java:868)
at org.apache.jasper.compiler.Parser.parseStandardAction(Parser.java:1120)
at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1448)
at org.apache.jasper.compiler.Parser.parse(Parser.java:133)
at org.apache.jasper.compiler.ParserController.doParse(ParserController.java:216)
Solution :
Replace old code
<jsp:include flush="true" page="file.jsp">
</jsp:include>
OR
<jsp:forward page="file.jsp">
</jsp:forward>
With new code
<jsp:include flush="true" page="file.jsp"/>
OR
<jsp:forward page="file.jsp"/>
04:17:20,946 ERROR [ContainerBase] Servlet.service() for servlet jsp threw exception
org.apache.jasper.JasperException: /com/test.jsp(15,1) Expecting "jsp:param" standard action with "name" and "value" attributes
at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40)
at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:88)
at org.apache.jasper.compiler.Parser.parseParam(Parser.java:827)
at org.apache.jasper.compiler.Parser.parseBody(Parser.java:1665)
at org.apache.jasper.compiler.Parser.parseOptionalBody(Parser.java:1004)
at org.apache.jasper.compiler.Parser.parseForward(Parser.java:868)
at org.apache.jasper.compiler.Parser.parseStandardAction(Parser.java:1120)
at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1448)
at org.apache.jasper.compiler.Parser.parse(Parser.java:133)
at org.apache.jasper.compiler.ParserController.doParse(ParserController.java:216)
Solution :
Replace old code
<jsp:include flush="true" page="file.jsp">
</jsp:include>
OR
<jsp:forward page="file.jsp">
</jsp:forward>
With new code
<jsp:include flush="true" page="file.jsp"/>
OR
<jsp:forward page="file.jsp"/>