Visit the Below Website to access unlimited exam questions for all IT vendors and Get Oracle Certifications for FREE
http://www.free-online-exams.com
http://www.free-online-exams.com
Problem:
After upgrading from 10.1.3.1 to 10.1.3.4 OAS ,
an application (working fine in 10.1.3.1 ) is deployed into 10.1.3.4 oc4j .
The application is working well .
But when invoking the DLLFileMonitor.jsp page ;
Then the following error occurs :
JspServlet: unable to dispatch to requested page: Exception:oracle.jsp.parse.JspParseException: /jsp/dischargeloadlist/DLLFileMonitor.jsp: Line # 21, var url = '<html:rewrite action="/getFileErr"/>' Error: Attribute: action is not a valid attribute name
an application (working fine in 10.1.3.1 ) is deployed into 10.1.3.4 oc4j .
The application is working well .
But when invoking the DLLFileMonitor.jsp page ;
Then the following error occurs :
JspServlet: unable to dispatch to requested page: Exception:oracle.jsp.parse.JspParseException: /jsp/dischargeloadlist/DLLFileMonitor.jsp: Line # 21, var url = '<html:rewrite action="/getFileErr"/>' Error: Attribute: action is not a valid attribute name
Symptoms:
As you can see the openFileErrs
in the DLLFileMonitor.jsp file is called in :
at line 214 :
<c:choose>
<c:when test="${file.processStatus == 'R'}">
<display:column titleKey="dischargeloadlist.amend.fileErr" sortable="false" headerClass="tableHeader"
class="tableRowDisplay" style="text-align:center">
<a href="javascript:openFileErrs('<bean:write name="file" property="fileRef"/>','<bean:write name="file" property="portCode"/>')"> ${file.fileErrCode}</a>
</display:column>
</c:when>
<c:otherwise>
<display:column property="fileErrCode" titleKey="dischargeloadlist.amend.fileErr" sortable="false" headerClass="tableHeader"
class="tableRowDisplay" style="text-align:center"/>
</c:otherwise>
</c:choose>
Looking for this patern in the knowledge base , i have found :
Bug 9349903 OJSPC FAILS TO TRANSLATE JSP CUSTOM TAGS
where there is a rediscovery information
Rediscovery Information:
Problem 1
- Set req_time_introspection to init-param for JSP Servlet.
- Use name-from-attribute in a result.
- Use tag like this:
<c:choose>
<c:when test="${choosetest}">
<mo:FragmentTest resultName="result"/>
</c:when>
<c:otherwise>
<mo:FragmentTest2 resultName="result"/>
</c:otherwise>
</c:choose>
- 'result' may not be declared correctly and it fails to compile
generated java code.
in the DLLFileMonitor.jsp file is called in :
at line 214 :
<c:choose>
<c:when test="${file.processStatus == 'R'}">
<display:column titleKey="dischargeloadlist.amend.fileErr" sortable="false" headerClass="tableHeader"
class="tableRowDisplay" style="text-align:center">
<a href="javascript:openFileErrs('<bean:write name="file" property="fileRef"/>','<bean:write name="file" property="portCode"/>')"> ${file.fileErrCode}</a>
</display:column>
</c:when>
<c:otherwise>
<display:column property="fileErrCode" titleKey="dischargeloadlist.amend.fileErr" sortable="false" headerClass="tableHeader"
class="tableRowDisplay" style="text-align:center"/>
</c:otherwise>
</c:choose>
Looking for this patern in the knowledge base , i have found :
Bug 9349903 OJSPC FAILS TO TRANSLATE JSP CUSTOM TAGS
where there is a rediscovery information
Rediscovery Information:
Problem 1
- Set req_time_introspection to init-param for JSP Servlet.
- Use name-from-attribute in a result.
- Use tag like this:
<c:choose>
<c:when test="${choosetest}">
<mo:FragmentTest resultName="result"/>
</c:when>
<c:otherwise>
<mo:FragmentTest2 resultName="result"/>
</c:otherwise>
</c:choose>
- 'result' may not be declared correctly and it fails to compile
generated java code.
Solution:
Bug 9349903 OJSPC FAILS TO TRANSLATE JSP CUSTOM TAGS
which occurs on 10.1.3.4 oc4j.
One of the symptom of the bug is :
- Use tag like this:
<c:choose>
<c:when test="${choosetest}">
<mo:FragmentTest resultName="result"/>
</c:when>
<c:otherwise>
<mo:FragmentTest2 resultName="result"/>
</c:otherwise>
</c:choose>
- 'result' may not be declared correctly and it fails to compile
generated java code.
.
Which looks similar to the code in DLLFileMonitor.jsp .
which occurs on 10.1.3.4 oc4j.
One of the symptom of the bug is :
- Use tag like this:
<c:choose>
<c:when test="${choosetest}">
<mo:FragmentTest resultName="result"/>
</c:when>
<c:otherwise>
<mo:FragmentTest2 resultName="result"/>
</c:otherwise>
</c:choose>
- 'result' may not be declared correctly and it fails to compile
generated java code.
.
Which looks similar to the code in DLLFileMonitor.jsp .
1. Apply the patch 9349903
2. Undeploy the application ports.ear
3. Confirm there NO application folder for ports under ../j2ee/<OC4J_NAME>/application-deployments/ , if there please delete it.
4. Deploy the application again.
5. Retest the issue
2. Undeploy the application ports.ear
3. Confirm there NO application folder for ports under ../j2ee/<OC4J_NAME>/application-deployments/ , if there please delete it.
4. Deploy the application again.
5. Retest the issue
2. Remove Tags libraries which are deprecated.
used the following parameters which are depreciated
Old:
<%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-logic" prefix="logic"%>
Replace these lines with the following
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
Old:
<%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-logic" prefix="logic"%>
Replace these lines with the following
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
No comments:
Post a Comment