I just did a CVS update, ran "maven war" (Maven 1.0 RC1) and copied target/displaytag.war to $CATALINA_HOME/webapps. On startup, Tomcat (4.1.29) pukes with the following error:
----- Root Cause -----
java.lang.IllegalArgumentException: Invalid TLD resource path /WEB-INF/displaytag.tld
This is because WEB-INF/displaytag.tld doesn't exist, but displaytag-12.tld does exist. I renamed this to displaytag.tld and now the following error shows up in the logs:
Dec 5, 2003 9:13:54 AM org.apache.commons.digester.Digester error
SEVERE: Parse Error at line 5 column 51: Attribute "xmlns:html" must be declared for element type "taglib".
org.xml.sax.SAXParseException: Attribute "xmlns:html" must be declared for element type "taglib".
This is because in displaytag.tld, the following line exists:
<taglib xmlns:html="http://www.w3.org/1999/xhtml">
I changed it to just <taglib> and now the app loads, but when i try to access index.jsp, I get:
org.apache.jasper.JasperException: /index.jsp(0,0) /inc/header.jsp(1,0) variable subelement defined in tld when TagExtraInfo class org.displaytag.tags.TableTagExtraInfo is non-null
Finally, I tried copying target/tld/displaytag-11.tld to $CATALINA_HOME/webapps/displaytag/WEB-INF/displaytag with no luck:
SEVERE: Parse Error at line 2 column 136: Document root element "taglib", must match DOCTYPE root "null".
org.xml.sax.SAXParseException: Document root element "taglib", must match DOCTYPE root "null".
Caused by:
<taglib xmlns:tld11="http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd" xmlns:tld="http://java.sun.com/JSP/TagLibraryDescriptor">
In the tld.
I finally tried to use the URI (and removing the reference from web.xml), but it says that:
org.apache.jasper.JasperException: /index.jsp(0,0) /inc/header.jsp(1,0) This absolute uri (http://jakarta.apache.org/taglibs/display) cannot be resolved in either web.xml or the jar files deployed with this application
What a pain in the ass to try to get this thing working...
Matt
smime.p7s
Description: S/MIME cryptographic signature