[jbosstools-issues] [JBoss JIRA] (JBIDE-11381) Generating a portlet with init parameter leads to invalid portlet.xml

Snjezana Peco (JIRA) jira-events at lists.jboss.org
Thu Mar 22 15:46:47 EDT 2012


     [ https://issues.jboss.org/browse/JBIDE-11381?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Snjezana Peco resolved JBIDE-11381.
-----------------------------------

    Fix Version/s: 3.3.0.Beta3
       Resolution: Done

    
> Generating a portlet with init parameter leads to invalid portlet.xml
> ---------------------------------------------------------------------
>
>                 Key: JBIDE-11381
>                 URL: https://issues.jboss.org/browse/JBIDE-11381
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: Portal/GateIn
>    Affects Versions: 3.2.1.Final
>         Environment: JBDS 4.1.0.GA (v20110801-1408-H978-GA), EPP 5.2.1.ER02
>            Reporter: Miroslav Cupak
>            Assignee: Snjezana Peco
>             Fix For: 3.3.0.Beta3
>
>
> If you follow the _Steps to reproduce_ section and use the _Create Portlet_ wizard in JBDS to generate a portlet with init parameter, you will end up with a _portlet.xml_ file which is not valid with respect to its XML Schema (http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd).
> Namely, the following fragment of code is generated:
> {code:xml}
> <init-param>
>   <name>test</name>
>   <value>test</value>
>   <description>test</description>
> </init-param>
> {code}
> The problem here is the position of the _description_ element in the _init-param_ section, which should be before the _name_ and _value_, i.e. the code should look like this:
> {code:xml}
> <init-param>
>   <description>test</description>
>   <name>test</name>
>   <value>test</value>
> </init-param>
> {code}
> With strict validation enabled by default in newer versions of GateIn/EPP, this causes the following error during deployment:
> {code}
> ERROR [PortletApplicationDeployer] Cannot read portlet.xml jndi:/localhost/portlet-generic-jbds-5/WEB-INF/portlet.xml
> org.xml.sax.SAXParseException: cvc-complex-type.2.4.d: Invalid content was found starting with element 'description'. No child element is expected at this point.
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jbosstools-issues mailing list