Yep, the build process for the example WAR is fucked up since a couple of
weeks.
I'll see if I can fix it...

Mathias

-----Original Message-----
From: Matt Raible [mailto:[EMAIL PROTECTED] 
Sent: vrijdag 5 december 2003 17:25
To: [EMAIL PROTECTED]
Subject: [displaytag-devel] Latest CVS war - doesn't deploy to Tomcat


I don't know if this is an OS X bug, or a bug in the current CVS HEAD.  
Please let me know if this happens to you.

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




-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
displaytag-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/displaytag-devel

Reply via email to