Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java and JDK > JSP Basics
|
JSP Basics Beginning-level questions on JSP. More advanced coders should post to Pro JSP.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the JSP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 19th, 2003, 08:35 AM
Registered User
 
Join Date: Aug 2003
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Tomcat 5.0.7 custom tags problem

Hello All,

I'm using Beginning JSP 2.0 book and tomcat 5.0.7 on Linux. Custom tags are not working for me.

I realized that problem exists trying example from Chapter 4 (page 116). Every time when I access that page, I get error message like this:


----------- start error message ---------------
exception

javax.servlet.ServletException
    org.apache.jasper.runtime.PageContextImpl.handlePa geException(PageContextImpl.java:679)
    org.apache.jsp.index_jsp._jspService(index_jsp.jav a:77)
    org.apache.jasper.runtime.HttpJspBase.service(Http JspBase.java:136)
    javax.servlet.http.HttpServlet.service(HttpServlet .java:856)
    org.apache.jasper.servlet.JspServletWrapper.servic e(JspServletWrapper.java:320)
    org.apache.jasper.servlet.JspServlet.serviceJspFil e(JspServlet.java:293)
    org.apache.jasper.servlet.JspServlet.service(JspSe rvlet.java:240)
    javax.servlet.http.HttpServlet.service(HttpServlet .java:856)

root cause

java.lang.IncompatibleClassChangeError

org.apache.jsp.tag.web.display_tag.doTag(display_t ag.java:97)
    org.apache.jsp.index_jsp._jspx_meth_tags_display_0 (index_jsp.java:94)
    org.apache.jsp.index_jsp._jspService(index_jsp.jav a:64)
    org.apache.jasper.runtime.HttpJspBase.service(Http JspBase.java:136)
    javax.servlet.http.HttpServlet.service(HttpServlet .java:856)
    org.apache.jasper.servlet.JspServletWrapper.servic e(JspServletWrapper.java:320)
    org.apache.jasper.servlet.JspServlet.serviceJspFil e(JspServlet.java:293)
    org.apache.jasper.servlet.JspServlet.service(JspSe rvlet.java:240)
    javax.servlet.http.HttpServlet.service(HttpServlet .java:856)

--------- end error message ----------

I was trying to write my own example using custom tags, and I had the same problem unless I move my example from /webapps to /webapps/jsp-examples subdirectory in Tomcat tree. Be ware that my application is working without custom tags!

Any idea how to solve this?

Kind Regards,

Alex
 
Old August 21st, 2003, 04:22 PM
Registered User
 
Join Date: Aug 2003
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

There is solution for this problem: upgrade to Tomcat 5.0.9!






Similar Threads
Thread Thread Starter Forum Replies Last Post
Tags closing problem igna36 XSLT 5 May 14th, 2008 07:02 AM
browser version and JSP-custom tags neetukk JSP Basics 1 December 6th, 2006 03:29 AM
Can custom tags be useful to an AJAX application decyclone BOOK: Professional Ajax ISBN: 978-0-471-77778-6 2 September 20th, 2006 01:53 AM
Parsing custom tags? shenku C# 0 September 27th, 2005 04:58 AM
Need help regarding Custom Tags yamijala Dreamweaver (all versions) 0 December 27th, 2004 01:51 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.