struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Josh Rayls <jra...@crunchtime.com>
Subject RE: forEach loader constraints violated when linking
Date Mon, 21 Apr 2003 19:22:21 GMT
Could you post the exception?

-----Original Message-----
From: otisg [mailto:otisg@ureach.com]
Sent: Monday, April 21, 2003 3:20 PM
To: struts-user@jakarta.apache.org
Subject: c:forEach loader constraints violated when linking


Hello,

This is not a Struts question per se, but rather a JSTL one.
I asked on taglibs-user, but that is a very low traffic list.

I am using 1.0.3 release of Core taglibs and I am trying to
replace this:

<%
List classes = (List) request.getAttribute("classesList");
for (int i = 0; classes != null && i < classes.size(); i++)
{
  ClassesListRow classe = (ClassesListRow) classes.get(i);
  Long classeSID = classe.getClasseSid();
%>

with this:

<c:forEach>
  <c:out>
</c:forEach>

That doesn't seem to work and actually throws a nasty looking
exception (beginning of the stack trace below).

The two classes referenced in the original scriptlet are
imported like this:

<%@ page import="java.util.List" %>
<%@ page import="net.wgen.amp.model.ClassesListRow" %>
<jsp:useBean>


Am I missing something?
Shouldn't the above work?
Who/what deals with casting?  All transparent?

Thank you,
Otis

[ServletException
in:/WEB-INF/view/ampng/class/AdminClassesListView.jsp] loader
constraints violated when linking
org/apache/taglibs/standard/tag/common/core/ForEachSupport
class' java.lang.LinkageError: loader constraints violated when
linking
org/apache/taglibs/standard/tag/common/core/ForEachSupport
class
at
org.apache.taglibs.standard.tag.common.core.ForEachSupport.toForEachIterator
(ForEachSupport.java:360)
at
org.apache.taglibs.standard.tag.common.core.ForEachSupport.supportedTypeForE
achIterator(ForEachSupport.java:238)
at
org.apache.taglibs.standard.tag.common.core.ForEachSupport.prepare(ForEachSu
pport.java:172)
at
javax.servlet.jsp.jstl.core.LoopTagSupport.doStartTag(LoopTagSupport.java:26
2)
at
org.apache.taglibs.standard.tag.el.core.ForEachTag.doStartTag(ForEachTag.jav
a:105)
at
org.apache.jsp.AdminClassesListView$jsp._jspService(AdminClassesListView$jsp
.java:781)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:201)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:360)
at
org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandl
er.java:280)
at
org.mortbay.jetty.servlet.Dispatcher.dispatch(Dispatcher.java:194)
at
org.mortbay.jetty.servlet.Dispatcher.include(Dispatcher.java:121)
at
org.apache.struts.tiles.TilesUtilImpl.doInclude(TilesUtilImpl.java:118)
at
org.apache.struts.tiles.TilesUtil.doInclude(TilesUtil.java:161)
at
org.apache.struts.taglib.tiles.InsertTag.doInclude(InsertTag.java:702)
at
org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag(InsertTag.ja
va:817)
at
org.apache.struts.taglib.tiles.InsertTag.doEndTag(InsertTag.java:466)
at
org.apache.jsp.AdminShell$jsp._jspService(AdminShell$jsp.java:308)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:201)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:360)
at
org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandl
er.java:280)
at
org.mortbay.jetty.servlet.Dispatcher.dispatch(Dispatcher.java:194)
at
org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:129)
at
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:10
58)
at
org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcesso
r.java:269)
at
...
..
.



________________________________________________
Get your own "800" number
Voicemail, fax, email, and a lot more
http://www.ureach.com/reg/tag

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message