tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mufaddal Khumri <mufad...@wmotion.com>
Subject Re: tomcat throws exception while parsing taglib descriptor ????
Date Mon, 03 Mar 2003 08:52:10 GMT
Hi ...

 From the error i get ... it seems that it accepts the hyphenated  
version .... but it throws an error when it parses the tag element  
......

The error i get is :

Mar 3, 2003 2:19:21 PM org.apache.commons.digester.Digester error
SEVERE: Parse Error at line 26 column 9: The content of element type  
"tag" must match  
"(name,tag-class,tei-class?,body-content?,display-name?,small- 
icon?,large-icon?,description?,variable*,attribute*,example?)".
org.xml.sax.SAXParseException: The content of element type "tag" must  
match  
"(name,tag-class,tei-class?,body-content?,display-name?,small- 
icon?,large-icon?,description?,variable*,attribute*,example?)".
	at  
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Error 
HandlerWrapper.java:232)
	at  
org.apache.xerces.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.jav 
a:173)
	at  
org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.jav 
a:371)
	at  
org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.jav 
a:305)
	at  
org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(XMLDTDValida 
tor.java:1918)
	at  
org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(XMLDTDValidator.ja 
va:851)
	at  
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XML 
DocumentFragmentScannerImpl.java:1008)
	at  
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDis 
patcher.dispatch(XMLDocumentFragmentScannerImpl.java:1469)
	at  
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDo 
cumentFragmentScannerImpl.java:329)
	at  
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:5 
25)
	at  
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:5 
81)
	at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
	at  
org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java 
:1175)
	at org.apache.commons.digester.Digester.parse(Digester.java:1514)
	at  
org.apache.catalina.startup.ContextConfig.tldScanStream(ContextConfig.ja 
va:977)
	at  
org.apache.catalina.startup.ContextConfig.tldScanTld(ContextConfig.java: 
1006)
	at  
org.apache.catalina.startup.ContextConfig.tldScan(ContextConfig.java:870 
)
	at  
org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:647)
	at  
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.j 
ava:243)
	at  
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu 
pport.java:166)
	at  
org.apache.catalina.core.StandardContext.start(StandardContext.java:3567 
)
	at  
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
	at org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
	at  
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
	at  
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
	at  
org.apache.catalina.core.StandardService.start(StandardService.java:497)
	at  
org.apache.catalina.core.StandardServer.start(StandardServer.java:2189)
	at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
	at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
	at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at  
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav 
a:39)
	at  
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor 
Impl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:324)
	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
Mar 3, 2003 2:19:28 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on port 8080
Mar 3, 2003 2:19:28 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on port 8443
Mar 3, 2003 2:19:28 PM org.apache.jk.common.ChannelSocket init
INFO: JK2: ajp13 listening on /0.0.0.0:8009
Mar 3, 2003 2:19:28 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=2/134   
config=/Library/Tomcat/conf/jk2.properties

Contents of my taglib . tld file are :

<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE taglib
         PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN"
	"http://java.sun.com/j2ee/dtd/web-jsptaglibrary_1_2.dtd">

<taglib>

   <tlib-version>1.0</tlib-version>
   <jsp-version>1.2</jsp-version>
   <short-name>cw</short-name>
   <uri>http://www.wmotion.com/tomcat/coursewizard-taglib</uri>
   <description>
	CourseWizard tags
   </description>

   <tag>
     <name>hyperLinkList</name>
      
<tag-class>com.wavesinmotion.cw.classes.taglibs.HyperLinkList</tag- 
class>
     <description>Displays a list as Hyper Links </description>
     <body-content>EMPTY</body-content>
     <attribute>
        <name>value</name>
        <required>true</required>
        <rtexprvalue>true</rtexprvalue>
     </attribute>
   </tag>

</taglib>

On Tuesday, March 4, 2003, at 02:36  AM, Erik Price wrote:

>
>
> Mufaddal Khumri wrote:
>> Sorry, abt that ... that was a typo, I do have it defined as:
>> <tlib-version> 1.0</tlib-version>
>> The problem persists .. any cues ?
>
> Well, I just checked my own taglib descriptor.  I'm not sure why there  
> is a discrepancy, but mine uses the tag <tlibversion> and <jspversion>  
> instead of their hyphenated versions.
>
> Perhaps that will work for you.  Perhaps someone can shed some light  
> on which is actually correct.  I do know, however, that mine works for  
> me on Tomcat 4.0.6 (non-hyphenated tags).
>
>
> Erik
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>

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