[jira] [Commented] (PLUTO-656) various portlet.xml files are not valid

"Vernon Singleton (JIRA)" <[email protected]>
Newsgroups gmane.comp.jakarta.pluto.devel
Message-ID <[email protected]>
    [ https://issues.apache.org/jira/browse/PLUTO-656?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15956120#comment-15956120 ] 

Vernon Singleton commented on PLUTO-656:
----------------------------------------

I was able to find 4 that are not valid.

{code}$ find . -name portlet.xml | grep "/src/" | while read f; do xmllint --noout --schema http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd $f 2>&1 | grep -B1 fails && echo; done

./V2AddlFilterTests/src/main/webapp/WEB-INF/portlet.xml:140: element filter: Schemas validity error : Element '{http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd}filter': This element is not expected. Expected is one of ( {http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd}public-render-parameter, {http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd}listener, {http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd}container-runtime-option ).
./V2AddlFilterTests/src/main/webapp/WEB-INF/portlet.xml fails to validate

./V2AddlPortletTests/src/main/webapp/WEB-INF/portlet.xml:465: element custom-portlet-mode: Schemas validity error : Element '{http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd}custom-portlet-mode': This element is not expected. Expected is ( {http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd}container-runtime-option ).
./V2AddlPortletTests/src/main/webapp/WEB-INF/portlet.xml fails to validate

./V3AnnotationPortletAppConfigOverrideTests/src/main/webapp/WEB-INF/portlet.xml:26: element portlet-app: Schemas validity error : Element '{http://xmlns.jcp.org/xml/ns/portlet}portlet-app': No matching global declaration available for the validation root.
./V3AnnotationPortletAppConfigOverrideTests/src/main/webapp/WEB-INF/portlet.xml fails to validate

./V3RenderStateTests/src/main/webapp/WEB-INF/portlet.xml:24: element portlet-app: Schemas validity error : Element '{http://xmlns.jcp.org/xml/ns/portlet}portlet-app': No matching global declaration available for the validation root.
./V3RenderStateTests/src/main/webapp/WEB-INF/portlet.xml fails to validate{code}


> various portlet.xml files are not valid
> ---------------------------------------
>
>                 Key: PLUTO-656
>                 URL: https://issues.apache.org/jira/browse/PLUTO-656
>             Project: Pluto
>          Issue Type: Bug
>          Components: descriptor
>    Affects Versions: 3.0.0
>            Reporter: Vernon Singleton
>            Assignee: Scott Nicklous
>            Priority: Minor
>
> Steps to reproduce:
> 1. $ cd portlet-tck_3.0
> 2. $ xmllint --noout --schema http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd V2AddlFilterTests/src/main/webapp/WEB-INF/portlet.xml
> (/) Expected results:
> {code}V2AddlFilterTests/src/main/webapp/WEB-INF/portlet.xml validates{code}
> (x) Actual results:
> {code}V2AddlFilterTests/src/main/webapp/WEB-INF/portlet.xml:140: element filter: Schemas validity error : Element '{http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd}filter': This element is not expected. Expected is one of ( {http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd}public-render-parameter, {http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd}listener, {http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd}container-runtime-option ).
> V2AddlFilterTests/src/main/webapp/WEB-INF/portlet.xml fails to validate{code}
> Several other portlet.xml(s) may have similar issues ... investigating now ...



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.