-
Bug
-
Resolution: Done
-
Major
-
3.2.1.Final
-
None
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:
<init-param> <name>test</name> <value>test</value> <description>test</description> </init-param>
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:
<init-param> <description>test</description> <name>test</name> <value>test</value> </init-param>
With strict validation enabled by default in newer versions of GateIn/EPP, this causes the following error during deployment:
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.