Plugins (1083)


Training and Consulting (44)



EPIC Poll

What is your favourite developer portal?

[ Results | Polls ]

Votes: 540
Comments: 0

Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
lesner
Post subject: Struts 1.1, Tomcat and Eclipse - Please help  PostPosted: Sep 12, 2007 - 12:49 AM



Joined: Sep 12, 2007
Posts: 1

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 really don't understand what is going on with my Ecplise / Tomcat...

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_jsp.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(getServletConfig());


and, of course, it continues:
C:\ccm_wa\TICP-core-yaari_3.0.0\TICP\ui.occ\work\org\apache\jsp\Login_jsp.java:170: _jspx_meth_uif_out_1(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_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_jsp.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.

The thing is that it all WORKS with the same code, same plugin using Tomcat 4.1.x!

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.
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits