Bugs item #915522, was opened at 2004-03-13 02:03
Message generated for change (Comment added) made by nobody
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: Open
Resolution: None
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: Nobody/Anonymous (nobody)
Date: 2004-07-03 11: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 09: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-23 23: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-23 23: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-23 22: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 sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
displaytag-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/displaytag-devel

Reply via email to