Bugs item #915522, was opened at 2004-03-13 11:03 Message generated for change (Comment added) made by fgiust You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=536613&aid=915522&group_id=73068
Category: main tag library Group: None >Status: Closed >Resolution: Works For Me Priority: 5 Submitted By: Ralf Hauser (ralfhauser) Assigned to: fabrizio giustina (fgiust) Summary: JasperException: Unable to load MyDecorator.class Initial Comment: - Tried to adapt the org.displaytag.sample.TotalWrapper and got the below stack trace. - checked my war - the .class file is in there! - Even added test method public static void isClassThere() { log.debug("class is there!"); System.out.println("sys: class is there!"); } and called it in my jsp one line before my display tags start: << <% com.privasphere.privalope.util.BillTotals.isClassThere(); %> >> As to be expected, nicely got <<DEBUG [Thread-5] (BillTotals.java:30) - class is there! sys: class is there!>> in my catalina.out What am I doing wrong? http://sourceforge.net/mailarchive/message.php?msg_id=7054216 doesn't really seem to be the same. If there is the need to tell displaytag to add to the path, please document this in http://displaytag.sourceforge.net/tagreference.html. Any help would be highly appreciated! Ralf <<org.apache.jasper.JasperException: Unable to load com.privasphere.privalope.util.BillTotals at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:254) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) ... root cause javax.servlet.ServletException: Unable to load com.privasphere.privalope.util.BillTotals at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:533) at org.apache.jsp.showBillingLog_en_jsp._jspService(showBillingLog_en_jsp.java:556) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) >> Excerpt out of my jsp /usr/local/tomcat/work/myapp-Standalone/mydom.com/_/showBillingLog_en_jsp.java : <<... _jspx_th_display_table_0.setRequestURI(response.encodeURL("showBillingLog_en.jsp")); _jspx_th_display_table_0.setSort("list"); _jspx_th_display_table_0.setDecorator("com.privasphere.privalope.util.BillTotals"); int _jspx_eval_display_table_0 = _jspx_th_display_table_0.doStartTag(); if (_jspx_eval_display_table_0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY)...>> ---------------------------------------------------------------------- >Comment By: fabrizio giustina (fgiust) Date: 2004-09-21 22:02 Message: Logged In: YES user_id=798060 no details have been added since the bug was opened: now the root exception is added to the error message and should help in solving the issue. I'm closing the bug as a "cannot duplicate": please submit a new bug with more details if you still get this problem. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2004-07-03 20:27 Message: Logged In: NO Got the same problem... I had to move my decorator to the displaytag-XXX.jar file and restart Tomcat to get it to work ---------------------------------------------------------------------- Comment By: fabrizio giustina (fgiust) Date: 2004-04-25 18:10 Message: Logged In: YES user_id=798060 I can't reproduce this. Can you please check the log for the previous exception? Displaytag should also log the cause for this, which can be a ClassNotFoundException, InstantiationException, IllegalAccessException, or ClassCastException. Please add an addictional comment here with this information and I will try to fix is as soon as possible. ---------------------------------------------------------------------- Comment By: Ralf Hauser (ralfhauser) Date: 2004-03-24 08:07 Message: Logged In: YES user_id=266141 see also RFE for a path amending property https://sourceforge.net/tracker/index.php?func=detail&aid=922253&group_id=73068&atid=536616 ---------------------------------------------------------------------- Comment By: Ralf Hauser (ralfhauser) Date: 2004-03-24 08:00 Message: Logged In: YES user_id=266141 copying the com.privasphere.privalope.util.BillTotals to tomcat/shared/lib/com/privasphere/privalope/util/BillTotals.class as per http://sourceforge.net/mailarchive/message.php?msg_id=6732242 didn't solve it either. Probably, it would be good to be able set a classpath-amending display-tag property such that I wouldn't have to bother about this! ---------------------------------------------------------------------- Comment By: Ralf Hauser (ralfhauser) Date: 2004-03-24 07:15 Message: Logged In: YES user_id=266141 others seem to have the same problem http://sourceforge.net/mailarchive/message.php?msg_id=6732244 ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=536613&aid=915522&group_id=73068 ------------------------------------------------------- This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM. Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php _______________________________________________ displaytag-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/displaytag-devel