Ciao Fabrizio,

Thanks for the suggestion. In fact, I learned the hard way that I had to
clean out the temp and work directories when switching libraries. So the
error messages I reported here both happened when trying to compile *after*
cleaning out those directories  and restarting JBoss.

The first set of errors using rc1 comes from a page where the tag definition
is: 

    <%@ taglib prefix="display" uri="http://displaytag.sf.net"; %>

In the only other displaytag page I tried using rc1 before reporting the
errors, the tag definition is :

    <%@ taglib prefix="display" uri="http://displaytag.sf.net/el"; %>

My non-displaytag pages compile fine. So the problem really seems to be
centered around displaytag.

Any other ideas?

Patterson

in article [EMAIL PROTECTED], Fabrizio Giustina at
[EMAIL PROTECTED] wrote on 4/10/04 9:36:

> at least for the second error it sound like your app server is using a
> jsp page compiled with a different version of displaytag...
> try deleting any generated java/class file in your appserver work
> directory before switching displaytag versions.
> 
> fabrizio
> 
> On Mon, 04 Oct 2004 03:17:36 +0200, J. Patterson Waltz III
> <[EMAIL PROTECTED]> wrote:
>> Hello,
>> 
>> I'm currently using displaytag 1.0b3 in a servlet 2.4/JSP 2.0  web
>> application which also uses JSTL and the Struts 1.1 and Tiles frameworks,
>> running on Jboss 3.2.5. I use the non-EL version of displaytag, as EL is
>> completely integrated in JSP 2.0 and thus doesn't require that version to
>> benefit from EL syntax.
>> 
>> Because of some problems I was having with dynamically generated links
>> (mentioned in my other post here today), I wanted to try out a newer build
>> of displaytag to see if that improved my situation, and strangely enough, I
>> can't get my current JSPs to compile with either the rc1-SNAPSHOT or an
>> rc2-SNAPSHOT nightly I pulled off cvs on Oct. 1 (and whose unit tests all
>> passed).
>> 
>> Here is the kind of error I got from rc1 & rc2, non-EL:
>> 
>> ===================================
>> 2004-10-04 02:38:53,029 DEBUG [org.apache.struts.taglib.tiles.InsertTag]
>> [ServletException in:/pages/contacts/list_client.jsp] Unable to compile
>> class for JSP
>> 
>> An error occurred at line: 24 in the jsp file:
>> /pages/contacts/list_client.jsp
>> Generated servlet error:
>> /Users/jpw/Documents/development/bunker/jboss-3.2.5/server/sage/work/jboss.w
>> eb/localhost/SAGE/org/apache/jsp/pages/contacts/list_005fclient_jsp.java:128
>> : setDefaultsort(int) in org.displaytag.tags.TableTag cannot be applied to
>> (java.lang.String)
>>       _jspx_th_display_table_0.setDefaultsort("3");
>>                               ^
>> 
>> <snip>
>>                              ^
>> 6 errors
>> 
>> ===================================
>> 
>> The line 24 mentioned above is:
>> 
>> <display:table name="sessionScope.searchResults" id="row" defaultsort="3"
>> defaultorder="ascending"
>>     pagesize="20" export="true"
>> requestURI="${pageContext.request.requestURL}">
>> 
>> I also tried using the EL version of rc1/2, just in case, but simply got a
>> different set of errors:
>> 
>> ===================================
>> 2004-10-04 02:46:38,915 ERROR [org.jboss.web.localhost.Engine]
>> ApplicationDispatcher[/SAGE] Servlet.service() for servlet jsp threw
>> exception
>> java.lang.NoSuchMethodError: org.displaytag.tags.TableTag.setDefaultsort(I)V
>>     at
>> org.displaytag.tags.el.ELTableTag.evaluateExpressions(ELTableTag.java:259)
>>     at org.displaytag.tags.el.ELTableTag.doStartTag(ELTableTag.java:225)
>>     at
>> org.apache.jsp.pages.contacts.list_005fperson_jsp._jspService(list_005fperso
>> n_jsp.java:141)
>>     at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
>>     at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
>>     at
>> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:3
>> 24)
>>     at
>> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
>>     at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
>>     at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
>> 
>> <snip>
>> 
>> ===================================
>> 
>> The 'org.displaytag.tags.TableTag.setDefaultsort(I)V' part is very strange
>> indeed. Can't figure out what that 'V' is doing there. Or the 'I', for that
>> matter.
>> 
>> Any suggestions as to how to get 1.0 rc1 or  rc2 working for me would be
>> most appreciated. I upgraded all dependencies as documented for rc2, and
>> these work fine with the 1.0b3 which I reinstated just to get things
>> somewhat working again.
>> 
>> Regards,
>> 
>> Patterson Waltz
>> 
>> -------------------------------------------------------
>> This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
>> Use IT products in your business? Tell us what you think of them. Give us
>> Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
>> http://productguide.itmanagersjournal.com/guidepromo.tmpl
>> _______________________________________________
>> displaytag-user mailing list
>> [EMAIL PROTECTED]
>> https://lists.sourceforge.net/lists/listinfo/displaytag-user
>> 
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
> Use IT products in your business? Tell us what you think of them. Give us
> Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
> http://productguide.itmanagersjournal.com/guidepromo.tmpl




-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
displaytag-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/displaytag-user

Reply via email to