You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Tal Yaari <ya...@trivnet.com> on 2007/09/11 20:32:13 UTC
Struts 1.1, Tomcat and Eclipse - Please help
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.
Re: Struts 1.1, Tomcat and Eclipse - Please help
Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Tal,
Tal Yaari wrote:
> 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.
[snip]
> :\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
That is /awesome/! It looks like Tomcat totally blew its brains out.
You might want to cross-post this question to the support list for the
Tomcat plug-in. Note that it's an /alpha/ and might not work at all.
> 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.
Not true. Struts doesn't have to support any specific version of JSP; as
long as your server supports /at least/ what Struts needs, you should be
fine.
> 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.
The API is backward-compatible. This isn't a struts issue.
> I didn't find how to set Tomcat to build the JSPs in the old
> specification.
You can't. The new compiler supports JSP 2.0 and previous specs.
Sorry I can't help too much.
- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFG5vM59CaO5/Lv0PARAvUPAJ9fzuEhRcesnJstPskgJrQ2KyQ/cACfaYrh
EY2c4+2FK2mf13bAhpUo8/Y=
=q/Ht
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org