It's not a secret anymore!
The moose likes JBoss/WildFly and the fly likes JBOSS and tiles Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "JBOSS and tiles" Watch "JBOSS and tiles" New topic

JBOSS and tiles

B Rook

Joined: Dec 27, 2003
Posts: 13
I'm getting a tiles error when upgrading from 3.0.8 to 3.2.5. On 3.0.8, this would only cause a warning, but on 3.2.5 this causes a full error that stops the application. It looks like the problem is with the tiles:include tag. Whenever this tag is used, we get an error like this:

(On the actual page in the browser)
[ServletException in:/WEB-INF/jsp/LoggedUserLayout.jsp] org.apache.struts.taglib.EnumerateTei'

(From the stack trace)
15:09:11,218 ERROR [Engine] ApplicationDispatcher[/siteuser] Servlet.service() for servlet jsp threw exception
java.lang.ClassNotFoundException: org.apache.struts.taglib.EnumerateTei
at Method)
(further down...)
at org.apache.struts.taglib.tiles.InsertTag.doInclude(
at org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag(
at org.apache.struts.taglib.tiles.InsertTag.doEndTag(
at org.apache.jsp.WEB_002dINF.jsp.overview.CSEWorkerIndex_jsp._jspx_meth_tiles_insert_0(
at org.apache.jsp.WEB_002dINF.jsp.overview.CSEWorkerIndex_jsp._jspService(

Struts.jar (version 1.1) is in the WEB-INF/lib directory and not in the container lib directory. Here is the code from the .jsp:

<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<td valign="top">
<tiles:insert attribute="body"/>
<!-- End Main Content Here -->

Does anyone have a suggestion as to what is the cause?


I agree. Here's the link:
subject: JBOSS and tiles
jQuery in Action, 3rd edition