You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Norm Deane <no...@vanderbilt.edu> on 2005/02/01 18:20:59 UTC

Problem with Extensions TLD File

I'm trying to make the conversion from myfaces-1.0.7 to 1.0.9 and am 
running into a problem with the extensions tld file.

First let me tell how I got where I am... I didn't see a binary dowload 
on the new incubator site so I pulled the latest from HEAD and ran 'ant 
bin-release'.  Now when I try to use the extension tag library I get the 
error below.  When I look in the TLD file for the extensions tag library 
it does appear the TLD is not valid. There are some html elements nested 
in descriptions. I don't know what the deal is with the namespace.


  500 Internal Server Error

OracleJSP: oracle.jsp.parse.JspParseException: Line # 2, <%@ taglib 
uri="http://java.sun.com/jsf/html" prefix="h"%>
Error: oracle.xml.parser.v2.XMLParseException ( /jsp/common/Header.jsp ):
line #:17 column #:48 : FIXED type Attribute value not equal to the 
default value 'http://java.sun.com/xml/ns/j2ee'.
line #:5344 column #:75 : Invalid element 'br' in content of 
'description', expected elements '[PCDATA]'.
line #:5344 column #:75 : Element 'br' used but not declared.
line #:5345 column #:124 : Invalid element 'br' in content of 
'description', expected elements '[PCDATA]'.
line #:5345 column #:124 : Element 'br' used but not declared.
line #:5366 column #:60 : Invalid element 'br' in content of 
'description', expected elements '[PCDATA]'.
line #:5366 column #:60 : Element 'br' used but not declared.
line #:5367 column #:37 : Invalid element 'code' in content of 
'description', expected elements '[PCDATA]'.
line #:5367 column #:37 : Element 'code' used but not declared.
line #:5367 column #:99 : Invalid element 'code' in content of 
'description', expected elements '[PCDATA]'.
line #:5367 column #:99 : Element 'code' used but not declared.
First of all, it didn't look like there was a binary dowload available


Re: Problem with Extensions TLD File

Posted by Norm Deane <no...@vanderbilt.edu>.
I am building using 'bin-release' which depends on 
'myfaces-extensions-jar' which does an XSL transformation on the TLD in 
tlds dir (myfaces_ext.tld).  I don't know much about XSL so I'm not sure 
what is really going on there. It looks like it is simply doing some 
merging of the TLD with the entities defined in the tlds/entities dir.

Look at the <description> element for the aliasBean in 
tlds/myfaces_ext.tlds (line 1775). The line ends with a <br> which is 
not valid.

Norm

Sean Schofield wrote:

>I haven't had any problems with the HEAD recently (although I probably
>haven't recompiled in a day or so.)
>
>Are you building the TLD file or just using it as checked out?  I
>can't remember but I seem to recall that the ant build does some
>transformation to the XML ... Maybe that is it?
>
>sean
>
>
>On Tue, 01 Feb 2005 11:32:16 -0600, Norm Deane
><no...@vanderbilt.edu> wrote:
>  
>
>>I found the link for the binary download (on the Getting Started page)
>>and tried 1.0.8 and it works. What is the deal with the tld in HEAD though?
>>
>>Norm Deane wrote:
>>
>>    
>>
>>>I'm trying to make the conversion from myfaces-1.0.7 to 1.0.9 and am
>>>running into a problem with the extensions tld file.
>>>
>>>First let me tell how I got where I am... I didn't see a binary
>>>dowload on the new incubator site so I pulled the latest from HEAD and
>>>ran 'ant bin-release'.  Now when I try to use the extension tag
>>>library I get the error below.  When I look in the TLD file for the
>>>extensions tag library it does appear the TLD is not valid. There are
>>>some html elements nested in descriptions. I don't know what the deal
>>>is with the namespace.
>>>
>>>
>>> 500 Internal Server Error
>>>
>>>OracleJSP: oracle.jsp.parse.JspParseException: Line # 2, <%@ taglib
>>>uri="http://java.sun.com/jsf/html" prefix="h"%>
>>>Error: oracle.xml.parser.v2.XMLParseException ( /jsp/common/Header.jsp ):
>>>line #:17 column #:48 : FIXED type Attribute value not equal to the
>>>default value 'http://java.sun.com/xml/ns/j2ee'.
>>>line #:5344 column #:75 : Invalid element 'br' in content of
>>>'description', expected elements '[PCDATA]'.
>>>line #:5344 column #:75 : Element 'br' used but not declared.
>>>line #:5345 column #:124 : Invalid element 'br' in content of
>>>'description', expected elements '[PCDATA]'.
>>>line #:5345 column #:124 : Element 'br' used but not declared.
>>>line #:5366 column #:60 : Invalid element 'br' in content of
>>>'description', expected elements '[PCDATA]'.
>>>line #:5366 column #:60 : Element 'br' used but not declared.
>>>line #:5367 column #:37 : Invalid element 'code' in content of
>>>'description', expected elements '[PCDATA]'.
>>>line #:5367 column #:37 : Element 'code' used but not declared.
>>>line #:5367 column #:99 : Invalid element 'code' in content of
>>>'description', expected elements '[PCDATA]'.
>>>line #:5367 column #:99 : Element 'code' used but not declared.
>>>First of all, it didn't look like there was a binary dowload available
>>>
>>>      
>>>
>>    
>>


Re: Problem with Extensions TLD File

Posted by Sean Schofield <se...@gmail.com>.
I haven't had any problems with the HEAD recently (although I probably
haven't recompiled in a day or so.)

Are you building the TLD file or just using it as checked out?  I
can't remember but I seem to recall that the ant build does some
transformation to the XML ... Maybe that is it?

sean


On Tue, 01 Feb 2005 11:32:16 -0600, Norm Deane
<no...@vanderbilt.edu> wrote:
> I found the link for the binary download (on the Getting Started page)
> and tried 1.0.8 and it works. What is the deal with the tld in HEAD though?
> 
> Norm Deane wrote:
> 
> > I'm trying to make the conversion from myfaces-1.0.7 to 1.0.9 and am
> > running into a problem with the extensions tld file.
> >
> > First let me tell how I got where I am... I didn't see a binary
> > dowload on the new incubator site so I pulled the latest from HEAD and
> > ran 'ant bin-release'.  Now when I try to use the extension tag
> > library I get the error below.  When I look in the TLD file for the
> > extensions tag library it does appear the TLD is not valid. There are
> > some html elements nested in descriptions. I don't know what the deal
> > is with the namespace.
> >
> >
> >  500 Internal Server Error
> >
> > OracleJSP: oracle.jsp.parse.JspParseException: Line # 2, <%@ taglib
> > uri="http://java.sun.com/jsf/html" prefix="h"%>
> > Error: oracle.xml.parser.v2.XMLParseException ( /jsp/common/Header.jsp ):
> > line #:17 column #:48 : FIXED type Attribute value not equal to the
> > default value 'http://java.sun.com/xml/ns/j2ee'.
> > line #:5344 column #:75 : Invalid element 'br' in content of
> > 'description', expected elements '[PCDATA]'.
> > line #:5344 column #:75 : Element 'br' used but not declared.
> > line #:5345 column #:124 : Invalid element 'br' in content of
> > 'description', expected elements '[PCDATA]'.
> > line #:5345 column #:124 : Element 'br' used but not declared.
> > line #:5366 column #:60 : Invalid element 'br' in content of
> > 'description', expected elements '[PCDATA]'.
> > line #:5366 column #:60 : Element 'br' used but not declared.
> > line #:5367 column #:37 : Invalid element 'code' in content of
> > 'description', expected elements '[PCDATA]'.
> > line #:5367 column #:37 : Element 'code' used but not declared.
> > line #:5367 column #:99 : Invalid element 'code' in content of
> > 'description', expected elements '[PCDATA]'.
> > line #:5367 column #:99 : Element 'code' used but not declared.
> > First of all, it didn't look like there was a binary dowload available
> >
> 
>

Re: Problem with Extensions TLD File

Posted by Norm Deane <no...@vanderbilt.edu>.
I found the link for the binary download (on the Getting Started page) 
and tried 1.0.8 and it works. What is the deal with the tld in HEAD though?

Norm Deane wrote:

> I'm trying to make the conversion from myfaces-1.0.7 to 1.0.9 and am 
> running into a problem with the extensions tld file.
>
> First let me tell how I got where I am... I didn't see a binary 
> dowload on the new incubator site so I pulled the latest from HEAD and 
> ran 'ant bin-release'.  Now when I try to use the extension tag 
> library I get the error below.  When I look in the TLD file for the 
> extensions tag library it does appear the TLD is not valid. There are 
> some html elements nested in descriptions. I don't know what the deal 
> is with the namespace.
>
>
>  500 Internal Server Error
>
> OracleJSP: oracle.jsp.parse.JspParseException: Line # 2, <%@ taglib 
> uri="http://java.sun.com/jsf/html" prefix="h"%>
> Error: oracle.xml.parser.v2.XMLParseException ( /jsp/common/Header.jsp ):
> line #:17 column #:48 : FIXED type Attribute value not equal to the 
> default value 'http://java.sun.com/xml/ns/j2ee'.
> line #:5344 column #:75 : Invalid element 'br' in content of 
> 'description', expected elements '[PCDATA]'.
> line #:5344 column #:75 : Element 'br' used but not declared.
> line #:5345 column #:124 : Invalid element 'br' in content of 
> 'description', expected elements '[PCDATA]'.
> line #:5345 column #:124 : Element 'br' used but not declared.
> line #:5366 column #:60 : Invalid element 'br' in content of 
> 'description', expected elements '[PCDATA]'.
> line #:5366 column #:60 : Element 'br' used but not declared.
> line #:5367 column #:37 : Invalid element 'code' in content of 
> 'description', expected elements '[PCDATA]'.
> line #:5367 column #:37 : Element 'code' used but not declared.
> line #:5367 column #:99 : Invalid element 'code' in content of 
> 'description', expected elements '[PCDATA]'.
> line #:5367 column #:99 : Element 'code' used but not declared.
> First of all, it didn't look like there was a binary dowload available
>