[
https://issues.apache.org/jira/browse/TOMAHAWK-1560?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12977219#action_12977219
]
Christian Kaltepoth commented on TOMAHAWK-1560:
-----------------------------------------------
I had similar issues with MyFaces Commons Converters 1.0.1 for JSF 1.2 on JBoss
6.0.0.Final. The root cause is that the MyFaces Builder Plugin creates an
invalid TLD file that doesn't validate against the required XSD schema
(http://java.sun.com/xml/ns/javaee/web-jsptaglibrary_2_1.xsd).
I identified the following problems:
* The "schemaLocation" attribute is missing the XML namespace (see 1. in
original bug report).
* The <description> and <display-name> elements inside the <taglib> element are
misplaced. The correct order (according to the XSD schema) is: <description>,
then <display-name> and then the other child elements.
* A <description> element must be the first child element inside <tag> and
<attribute> elements.
JBoss 6.0.0 is very strict in parsing the TLD files and fails because of the
reasons mentioned above. You can reproduce the schema incompatibility with
Eclipse by renaming the TLD file to .xml and running the XML Validation on that
file ("Right-Click on file -> Validate").
I attached a patch against the current trunk of the MyFaces Builder Plugin's
"tomahawk12.vm" which generates the TLD files for Tomahawk an Commons.
Please note that I'm not completely sure whether Tomahawk and Commons for JSF
1.2 are the only artifacts that are affected. I saw that "trinidad-tld12.vm" is
also erroneous but didn't check in detail.
> Tomahawk 1.1.10 for JSF 1.2 fails to deploy on JBoss AS 6 because of TLD
> errors
> -------------------------------------------------------------------------------
>
> Key: TOMAHAWK-1560
> URL: https://issues.apache.org/jira/browse/TOMAHAWK-1560
> Project: MyFaces Tomahawk
> Issue Type: Bug
> Affects Versions: 1.1.10
> Reporter: Kennard Consulting
> Priority: Critical
> Original Estimate: 1h
> Remaining Estimate: 1h
>
> Tomahawk 1.1.10 for JSF 1.2 fails to deploy on the recently released JBoss AS
> 6. This appears to be because of errors in tomahawk.tld. I managed to resolve
> it by taking the following steps (any of which may be sub-optimal):
> 1. Changed
> xsi:schemaLocation="http://java.sun.com/xml/ns/javaee/web-jsptaglibrary_2_1.xsd"
> to xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
> http://java.sun.com/xml/ns/javaee/web-jsptaglibrary_2_1.xsd" (i.e. the first
> half of the schemaLocation was missing)
> 2. Removed <display-name> tag (is a bad element name?)
> 3. Removed all <description> tags (they contain invalid markup?)
> Regards,
> Richard.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.