Java Mailing List Archive

http://www.junlu.com/

Google
Google
Mailing List
Home
Forum Home
JBoss - Java Application Server
Tomcat - JSP/Servlet container
Struts - A MVC web framework
iText - An open source PDF Java Library
JDOM - JDOM XML Parser
JSP - A mailing list about Java Server Pages specification and reference
J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition
J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog
Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology
Struts & Hibernate
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Servlet : Session invalidate
Oracle Connection Pooling in 3 2 2
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Running a Simple JMS Example
Tomcat and webapplication specific java library path
Mapping in workers2 properties
org apache jasper JasperException
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action
   MESSAGE
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
Value attribute of <html:checkbox
url string for connecting jboss to oracle
javax servlet ServletException: BeanUtils populate
5 0 18: Windows XP Pro vs Windows 2000
HTTP Status 404 The requested resource is not available
 
Struts 1.1, Tomcat and Eclipse - A problem working all together

Struts 1.1, Tomcat and Eclipse - A problem working all together

2007-08-13       - By Tal Yaari

 Back
Hey,

I hope i've reached the right forum, if not, please let me know...



I am using Eclispe 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 (See http://ttp-8090.ora-code.com)-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.


©2008 junlu.com - Jax Systems, LLC, U.S.A.