hi david thanks for reply, my web.xml include the following declaration:
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd"> refer to your advice "guess you need to declare the jsp taglib" i'm not sure which declaration is needed if any ? thanks On 11/12/07, David Smith <[EMAIL PROTECTED]> wrote: > > I'm going to venture a guess you need to declare the jsp taglib at the > top of your jsp file. Also you don't need all the html to execute a > forward. Only the <jsp:forward.../> tag is required w/o all the <html> > ... </html> stuff. The client won't see the html anyway. > > Lastly, you webapp will continue to use servlet spec 2.3/jsp 1.2 as long > as your web.xml declares servlet spec 2.3. Upgrade to the web.xml to > enable all the servlet spec 2.4/jsp 2.0 features. > > --David > > itay sahar wrote: > > hi all, > > > > The tomcat version is 5.5.25 with the default version (binary). > > contain (jsp-api,jar and servlet-api.jar). Servlet 2.4 support jsp 2.0. > > > > My application worked (before) on tomcat 4.1 with jsp 1.2. > > Now i'm working on tomcat 5.5 as mention. > > > > I'm not sure what i need to change!!! > > > > my index.jsp contain the code below: (that's it) > > > > <html> > > <head> > > </head> > > <body> > > <jsp:forward page="main.jsf"/> > > </body> > > </html> > > > > I get the error: > > > > org.apache.jasper.JasperException: Exception in JSP: /index.jsp:5 > > > > 2: <head> > > 3: </head> > > 4: <body> > > 5: <jsp:forward page="main.jsf"/> > > 6: </body> > > 7: </html> > > > > > > Stacktrace: > > org.apache.jasper.servlet.JspServletWrapper.handleJspException( > > JspServletWrapper.java:451) > > org.apache.jasper.servlet.JspServletWrapper.service( > JspServletWrapper.java > > :355) > > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329) > > org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265) > > javax.servlet.http.HttpServlet.service(HttpServlet.java:803) > > > > root cause > > > > javax.servlet.ServletException: java.lang.NoSuchMethodError: > > javax.servlet.jsp.tagext.TagAttributeInfo > > .<init>(Ljava/lang/String;ZLjava/lang/String;ZZ)V > > org.apache.jasper.servlet.JspServlet.service(JspServlet.java:273) > > javax.servlet.http.HttpServlet.service(HttpServlet.java:803) > > com.sun.faces.context.ExternalContextImpl.dispatch( > ExternalContextImpl.java > > :322) > > com.sun.faces.application.ViewHandlerImpl.renderView( > ViewHandlerImpl.java > > :142) > > com.sun.faces.lifecycle.RenderResponsePhase.execute( > RenderResponsePhase.java > > :87) > > com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200) > > com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117) > > javax.faces.webapp.FacesServlet.service(FacesServlet.java:198) > > org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java > > :686) > > org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java > :656) > > org.apache.jsp.index_jsp._jspService(index_jsp.java:48) > > org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98) > > javax.servlet.http.HttpServlet.service(HttpServlet.java:803) > > org.apache.jasper.servlet.JspServletWrapper.service( > JspServletWrapper.java > > :331) > > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329) > > org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265) > > javax.servlet.http.HttpServlet.service(HttpServlet.java:803) > > root cause > > > > java.lang.NoSuchMethodError: javax.servlet.jsp.tagext.TagAttributeInfo > > .<init>(Ljava/lang/String;ZLjava/lang/String;ZZ)V > > org.apache.jasper.compiler.TagLibraryInfoImpl.createAttribute( > > TagLibraryInfoImpl.java:581) > > org.apache.jasper.compiler.TagLibraryInfoImpl.createTagInfo( > > TagLibraryInfoImpl.java:402) > > org.apache.jasper.compiler.TagLibraryInfoImpl.parseTLD( > > TagLibraryInfoImpl.java:249) > > org.apache.jasper.compiler.TagLibraryInfoImpl.<init>( > TagLibraryInfoImpl.java > > :180) > > org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:424) > > org.apache.jasper.compiler.Parser.parseDirective(Parser.java:493) > > org.apache.jasper.compiler.Parser.parseElements(Parser.java:1557) > > org.apache.jasper.compiler.Parser.parse(Parser.java:127) > > org.apache.jasper.compiler.ParserController.doParse( > ParserController.java > > :212) > > org.apache.jasper.compiler.ParserController.parse(ParserController.java > :101) > > org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:156) > > org.apache.jasper.compiler.Compiler.compile(Compiler.java:296) > > org.apache.jasper.compiler.Compiler.compile(Compiler.java:277) > > org.apache.jasper.compiler.Compiler.compile(Compiler.java:265) > > org.apache.jasper.JspCompilationContext.compile( > JspCompilationContext.java > > :564) > > org.apache.jasper.servlet.JspServletWrapper.service( > JspServletWrapper.java > > :302) > > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329) > > org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265) > > javax.servlet.http.HttpServlet.service(HttpServlet.java:803) > > com.sun.faces.context.ExternalContextImpl.dispatch( > ExternalContextImpl.java > > :322) > > com.sun.faces.application.ViewHandlerImpl.renderView( > ViewHandlerImpl.java > > :142) > > com.sun.faces.lifecycle.RenderResponsePhase.execute( > RenderResponsePhase.java > > :87) > > com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200) > > com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117) > > javax.faces.webapp.FacesServlet.service(FacesServlet.java:198) > > org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java > > :686) > > org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java > :656) > > org.apache.jsp.index_jsp._jspService(index_jsp.java:48) > > org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98) > > javax.servlet.http.HttpServlet.service(HttpServlet.java:803) > > org.apache.jasper.servlet.JspServletWrapper.service( > JspServletWrapper.java > > :331) > > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329) > > org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265) > > javax.servlet.http.HttpServlet.service(HttpServlet.java:803) > > > > Note: The probelm is tomcat doesn't recognize "<jsp:forward" > > this works fine on tomcat 4.1. > > > > thanks for your answers... > > > > > > here is the list of my classpath: > > > > aopalliance.jar > > cglib-2.0-rc2.jar > > commons-beanutils.jar > > commons-dbcp-1.1.jar > > commons-digester-1.8.jar > > commons-logging-api-1.1.jar > > dom4j-1.4.jar > > hibernate2.jar > > jsf-api.jar > > jsf-impl.jar > > jstl.jar > > standard.jar > > jta.jar > > log4j.jar > > mysql-connector-java-3.0.9-stable-bin.jar > > odmg-3.0.jar > > spring.jar > > tiles-api-2.0.5.jar > > tiles-core-2.0.5.jar > > tiles-jsp-2.0.5.jar > > > > > > > --------------------------------------------------------------------- > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >