20 Mayıs 2008 Salı

Tips - Netbeans 6.1 Visual Portlet and Liferay Portal

* Let's consider we developed a Visual JSF portlet at Netbeans and want to deploy to Liferay. You will see deployment error at Glassfish's log :


Error loading deployment descriptors for module [portlet1] Line 132 Column 11 -- Deployment descriptor file WEB-INF/web.xml in archive [portlet1]. cvc-complex-type.2.4.a: Invalid content was found starting with element 'taglib'. One of '{"http://java.sun.com/xml/ns/javaee":jsp-property-group}' is expected.;_RequestID=80651ab6-2ae1-4e3d-a686-a1eeec206d84;"DPL8011: autodeployment failure while deploying the application : Error loading deployment descriptors for module [portlet1] Line 132 Column 11 -- Deployment descriptor file WEB-INF/web.xml in archive [portlet1]. cvc-complex-type.2.4.a: Invalid content was found starting with element 'taglib'. One of '{"http://java.sun.com/xml/ns/javaee":jsp-property-group}' is expected.

Please remove the following section from web.xml and try to deploy:

<jsp-config>
<jsp-property-group>
<url-pattern>*.jspf</url-pattern>
<is-xml>true</is-xml>
</jsp-property-group>
</jsp-config>


* To eliminate lifecycle problem for JSR-286 portlet running at Liferay portal server, insert the following section at the end of portlet.xml file (just before </portlet-app>)

<container-runtime-option>
<name>javax.portlet.escapeXml</name>
<value>false</value>
</container-runtime-option>

Hiç yorum yok: