JSP pre-compile problem (Struts application)

D

dima.kroshkin

Hello.
I use web application based on struts framework.
When i deploy war file and check option Pre-Compile JSP my application
dosn't insall. Then i uncheck this option, the application install
successfully.

In SystemErr.out i catch the following
[10/17/05 20:03:42:933 MSD] 3aaabf5 SystemErr R
/MyWar.war/WEB-INF/classes/WEB-INF/jsp/myJsp/FisrtJSP.java:442: cannot
resolve symbol
symbol : method setBodyContent (javax.servlet.jsp.tagext.BodyContent)
location: class org.apache.struts.taglib.bean.DefineTag

_jspx_th_bean_define_2.setBodyContent((javax.servlet.jsp.tagext.BodyContent)
out);

WebSpere generate the following FirstJSP.java file (i paste only part
of file):
/* ------ bean:define ------ */
org.apache.struts.taglib.bean.DefineTag _jspx_th_bean_define_2 = new
org.apache.struts.taglib.bean.DefineTag();
_jspx_th_bean_define_2.setPageContext(pageContext);
_jspx_th_bean_define_2.setParent(null);
_jspx_th_bean_define_2.setId("maxNumber");
_jspx_th_bean_define_2.setType("String");
{ // begin scope of tag variables
_jspxTagObjects.push(_jspx_th_bean_define_2);
int _jspx_eval_bean_define_2 = _jspx_th_bean_define_2.doStartTag();
if (_jspx_eval_bean_define_2 !=
javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
try {
if (_jspx_eval_bean_define_2 !=
javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
out = pageContext.pushBody();

_jspx_th_bean_define_2.setBodyContent((javax.servlet.jsp.tagext.BodyContent)
out);
_jspx_th_bean_define_2.doInitBody();
}
do {
// end
out.write("\r\n ");
// end
/* ------ bean:message ------ */
org.apache.struts.taglib.bean.MessageTag
_jspx_th_bean_message_0 = new
org.apache.struts.taglib.bean.MessageTag();
_jspx_th_bean_message_0.setPageContext(pageContext);
_jspx_th_bean_message_0.setParent(_jspx_th_bean_define_2);
_jspx_th_bean_message_0.setKey("MyKey.maxNumber");
_jspxTagObjects.push(_jspx_th_bean_message_0);
int _jspx_eval_bean_message_0 =
_jspx_th_bean_message_0.doStartTag();
// end
if (_jspx_th_bean_message_0.doEndTag() ==
javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
return;

((javax.servlet.jsp.tagext.Tag)_jspxTagObjects.pop()).release();
// end
out.write("\r\n ");
// end
} while (_jspx_th_bean_define_2.doAfterBody() ==
javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);
} finally {
if (_jspx_eval_bean_define_2 !=
javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE)
out = pageContext.popBody();
}
}
if (_jspx_th_bean_define_2.doEndTag() ==
javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
return;
((javax.servlet.jsp.tagext.Tag)_jspxTagObjects.pop()).release();
} // end scope of tag variables

I use WebSphere 5.1
The questions are,
Why this exception may occurs?
How to correct them?
What do i need do?
Which place can i mistake in?

Great thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,904
Latest member
HealthyVisionsCBDPrice

Latest Threads

Top