Hey,
I really need your help!
I am using Eclipse 3.2.2 and Tomcat 5.0.28.
In addition I am using Struts 1.1.
I have a project in Eclipse, which I want to run on Tomcat using Tomcat
plugin (com.sysdeo.eclipse.tomcat_3.0.0.alpha1). I set the project as a
Tomcat project and run the Tomcat.
I am trying to access my web application and then i get the following
errors:
69234 [http-8090-Processor25] ERROR org.apache.jasper.compiler.Compiler
- Javac exception
Compile failed; see the compiler error output for details.
at
org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:944)
at
org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:764)
at
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:382)
at
org.apache.jasper.compiler.Compiler.compile(Compiler.java:472).....
and it continues:
:\ccm_wa\TICP-core-yaari_3.0.0\TICP\ui.occ\work\org\apache\jsp\Login_jsp
.java:8: org.apache.jsp.Login_jsp is not abstract and does not override
abstract method getIncludes() in org.apache.jasper.runtime.HttpJspBase
public final class Login_jsp extends
org.apache.jasper.runtime.HttpJspBase
^
C:\ccm_wa\TICP-core-yaari_3.0.0\TICP\ui.occ\work\org\apache\jsp\Login_js
p.java:35: cannot resolve symbol
symbol : method getTagHandlerPool (javax.servlet.ServletConfig)
location: class org.apache.jasper.runtime.TagHandlerPool
_jspx_tagPool_uif_out_key_nobody =
org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletCon
fig());<br><br><br><br>
and, of course, it continues:
C:\ccm_wa\TICP-core-yaari_3.0.0\TICP\ui.occ\work\org\apache\jsp\Login_js
p.java:170:
_jspx_meth_uif_out_1(javax.servlet.jsp.tagext.JspTag,javax.servlet.jsp.P
ageContext) in org.apache.jsp.Login_jsp cannot be applied to
(trivnet.common.uif.taglib.form.FormTag,javax.servlet.jsp.PageContext)
if (_jspx_meth_uif_out_1(_jspx_th_uif_form_0,
_jspx_page_context))
^
C:\ccm_wa\TICP-core-yaari_3.0.0\TICP\ui.occ\work\org\apache\jsp\Login_js
p.java:188:
_jspx_meth_uif_info_0(javax.servlet.jsp.tagext.JspTag,javax.servlet.jsp.
PageContext) in org.apache.jsp.Login_jsp cannot be applied to
(trivnet.common.uif.taglib.form.FormTag,javax.servlet.jsp.PageContext)
if (_jspx_meth_uif_info_0(_jspx_th_uif_form_0,
_jspx_page_context))
I think that part of the problem is that Tomcat 5.x is using a newer
Jasper and when it compiles my JSPs, it "expects" to "deal" with JSP 2.0
specification, while the struts which I am using doesn't support it.
Struts 1.1 tags extends: javax.servlet.jsp.tagext.Tag while the generate
Servlet (as a result of my JSP) expects to get
javax.servlet.jsp.tagext.JSPTag.
I didn't find how to set Tomcat to build the JSPs in the old
specification.
Maybe there are other problems (please refer the exceptions above) which
I didn't see.
is there a way I can solve this issue?
thanks in advance,
Tal.