aspose file tools*
The moose likes Other Open Source Projects and the fly likes Pagination using display tag library Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "Pagination using display tag library" Watch "Pagination using display tag library" New topic
Author

Pagination using display tag library

Kunal Lakhani
Ranch Hand

Joined: Jun 05, 2010
Posts: 622
I have created a simple project using display tag library. But, it gives the following exception :


org.apache.jasper.JasperException: javax.servlet.ServletException: javax.servlet.jsp.JspTagException:
You appear to have an INCOMPATIBLE VERSION of the commons-lang library.
Displaytag requires version 2.1 of this library, and you appear to have a prior version in
your classpath. You must remove this prior version and ensure that only version 2.1 is in
your classpath.
If commons-lang-x.jar is in your classpath, be sure to remove it.
Be sure to delete all cached or temporary jar files from your application server; Tomcat
users should be sure to also check the CATALINA_HOME/shared folder; you may need to
restart the server.
commons-lang-2.1.jar is available in the displaytag distribution, or from the commons-lang
website at http://jakarta.apache.org/commons/lang



org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:541)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:417)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.nit.EmpServlet.doPost(EmpServlet.java:25)
javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)


root cause

javax.servlet.ServletException: javax.servlet.jsp.JspTagException:
You appear to have an INCOMPATIBLE VERSION of the commons-lang library.
Displaytag requires version 2.1 of this library, and you appear to have a prior version in
your classpath. You must remove this prior version and ensure that only version 2.1 is in
your classpath.
If commons-lang-x.jar is in your classpath, be sure to remove it.
Be sure to delete all cached or temporary jar files from your application server; Tomcat
users should be sure to also check the CATALINA_HOME/shared folder; you may need to
restart the server.
commons-lang-2.1.jar is available in the displaytag distribution, or from the commons-lang
website at http://jakarta.apache.org/commons/lang



org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:850)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:779)
org.apache.jsp.pagingEmp_jsp._jspService(pagingEmp_jsp.java:71)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.nit.EmpServlet.doPost(EmpServlet.java:25)
javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)


root cause

javax.servlet.jsp.JspTagException:
You appear to have an INCOMPATIBLE VERSION of the commons-lang library.
Displaytag requires version 2.1 of this library, and you appear to have a prior version in
your classpath. You must remove this prior version and ensure that only version 2.1 is in
your classpath.
If commons-lang-x.jar is in your classpath, be sure to remove it.
Be sure to delete all cached or temporary jar files from your application server; Tomcat
users should be sure to also check the CATALINA_HOME/shared folder; you may need to
restart the server.
commons-lang-2.1.jar is available in the displaytag distribution, or from the commons-lang
website at http://jakarta.apache.org/commons/lang



org.displaytag.util.DependencyChecker.check(DependencyChecker.java:62)
org.displaytag.tags.TableTag.doStartTag(TableTag.java:750)
org.apache.jsp.pagingEmp_jsp._jspx_meth_display_005ftable_005f0(pagingEmp_jsp.java:90)
org.apache.jsp.pagingEmp_jsp._jspService(pagingEmp_jsp.java:64)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.nit.EmpServlet.doPost(EmpServlet.java:25)
javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

You appear to have an INCOMPATIBLE VERSION of the commons-lang library.
Displaytag requires version 2.1 of this library, and you appear to have a prior version in
your classpath. You must remove this prior version and ensure that only version 2.1 is in
your classpath.


Dont know why it says incompatible version of commons-lang library.

I have added commons-lang-2.1.jar in WEB-INF/lib


kunal
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Pagination using display tag library