Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Tomcat Users »

Taglib error

Ivan Venuti

2004-05-17

Replies:

Hi,

I'm trying to use cache taglib.

I did the following steps :

1. Copy the tag library descriptor file to the /WEB-INF subdirectory of my
web application.

2. Copy the tag library JAR file to the /WEB-INF/lib subdirectory of my web
application.

3. Add a <taglib> element to your web application deployment descriptor in
/WEB-INF/web.xml like this:

 <taglib>
   <taglib-uri>http://jakarta.apache.org/taglibs/cache-1.0</taglib-uri>
   <taglib-location>/WEB-INF/cache.tld</taglib-location>
 </taglib>

but when tomcat(4.1.29) starts, I've this error:

17-mag-2004 10.36.05 org.apache.commons.digester.Digester error
GRAVE: Parse Error at line 7 column 50: Attribute "xmlns:xalan" must be
declared
for element type "taglib".
org.xml.sax.SAXParseException: Attribute "xmlns:xalan" must be declared for
elem
ent type "taglib".
    at
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Un
known Source)
    at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source)
    at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
Source)
    at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
Source)
    at
org.apache.xerces.impl.dtd.XMLDTDValidator.addDTDDefaultAttrsAndValid
ate(Unknown Source)


In my lib I've
 xalan-2.5.1.jar
 xercesImpl.jar
 xercesSamples.jar
 xml-apis.jar
 xmlParserAPIs.jar

Any idea?

thankx



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.