Fórum

requires-namespaced-parameters is not working in liferay 6.2

satish mandava, modificado 9 Anos atrás.

requires-namespaced-parameters is not working in liferay 6.2

New Member Postagens: 11 Data de Entrada: 21/04/14 Postagens Recentes
Hi,

I have added <requires-namespaced-parameters>false</requires-namespaced-parameters> tag in liferay-portlet.xml

I am using liferay-plugins-sdk-6.2.0. I am using eclipse kepler ide. requires-namespaced-parameters tag is working fine, but in xml it is showing the red mark and saying that order is not correct. If i deploy the same code i am able to deploy and run it.

My liferay-portlet.xml:

<?xml version="1.0"?>
<!DOCTYPE liferay-portlet-app PUBLIC "-//Liferay//DTD Portlet Application 6.2.0//EN" "http://www.liferay.com/dtd/liferay-portlet-app_6_2_0.dtd">

<liferay-portlet-app>
<portlet>
<portlet-name>LiferaySpring</portlet-name>
<requires-namespaced-parameters>false</requires-namespaced-parameters>
<header-portlet-css>/css/main.css</header-portlet-css>
<footer-portlet-javascript>/js/main.js</footer-portlet-javascript>
<css-class-wrapper>LiferaySpring-portlet</css-class-wrapper>
</portlet>
<role-mapper>
<role-name>administrator</role-name>
<role-link>Administrator</role-link>
</role-mapper>
<role-mapper>
<role-name>guest</role-name>
<role-link>Guest</role-link>
</role-mapper>
<role-mapper>
<role-name>power-user</role-name>
<role-link>Power User</role-link>
</role-mapper>
<role-mapper>
<role-name>user</role-name>
<role-link>User</role-link>
</role-mapper>
</liferay-portlet-app>

Can you please suggest me why this error message is shwoing in ide.

Thanks,
Satish.
thumbnail
Neil Griffin, modificado 9 Anos atrás.

RE: requires-namespaced-parameters is not working in liferay 6.2

Liferay Legend Postagens: 2655 Data de Entrada: 27/07/05 Postagens Recentes
The ordering of the child elements <portlet> matters. You probably don't have the ordering correct. Here is an example in which the order is correct.
satish mandava, modificado 9 Anos atrás.

RE: requires-namespaced-parameters is not working in liferay 6.2

New Member Postagens: 11 Data de Entrada: 21/04/14 Postagens Recentes
Thanks for giving the reply, i followed the same order, still it is showing the same error.
I have taken your liferay-portlet.xml which you suggested order. This is also showing the same error for me.
Can you please suggest me how to rectify this issue..
satish mandava, modificado 9 Anos atrás.

RE: requires-namespaced-parameters is not working in liferay 6.2

New Member Postagens: 11 Data de Entrada: 21/04/14 Postagens Recentes
If i comment the requires-namespaced-parameters tag, that error is not showing, but application is not working properly.
thumbnail
James Falkner, modificado 9 Anos atrás.

RE: requires-namespaced-parameters is not working in liferay 6.2

Liferay Legend Postagens: 1399 Data de Entrada: 17/09/10 Postagens Recentes
satish mandava:
If i comment the requires-namespaced-parameters tag, that error is not showing, but application is not working properly.


This worked for me:
	<portlet>
		<portlet-name>social-driver</portlet-name>
		<icon>/icon.png</icon>
		<instanceable>true</instanceable>
		<requires-namespaced-parameters>false</requires-namespaced-parameters>
		<header-portlet-css>/css/main.css</header-portlet-css>
		<footer-portlet-javascript>/js/main.js</footer-portlet-javascript>
		<css-class-wrapper>social-driver-portlet</css-class-wrapper>
	</portlet>
satish mandava, modificado 9 Anos atrás.

RE: requires-namespaced-parameters is not working in liferay 6.2

New Member Postagens: 11 Data de Entrada: 21/04/14 Postagens Recentes
James. This is also not working for me. My liferay sdk version is "liferay-plugins-sdk-6.2.0" and tomcat version is "liferay-portal-6.2.0-ce-ga1".
Showing the same error. I feel that is there any version mismatch. I have added the below jar files to my lib folder.

antlr-2.7.6.jar
aopalliance-1.0
c3p0-0.9.1.2
cglib-nodep-2.2
commons-beanutils-1.8.3
commons-collections-3.2.1
commons-digester-2.1
commons-logging-1.1.1
core-renderer
dom4j-1.6.1
ejb3-persistence-1.0.2.GA
hibernate-annotations-3.4.0.GA
hibernate-commons-annotations-3.1.0.GA
hibernate-core-3.3.2.GA
iText-2.0.8
javassist-3.7.ga
jstl-1.2
jta-1.1
junit-4.8.1
log4j-1.2.14
mysql-connector-java-5.1.14
persistence-api-1.0
slf4j-api-1.6.1
slf4j-log4j12-1.6.1
spring-aop-3.2.5.RELEASE
spring-beans-3.2.5.RELEASE
spring-context-3.2.5.RELEASE
spring-core-3.2.5.RELEASE
spring-expression-3.2.5.RELEASE
spring-jdbc-3.2.5.RELEASE
spring-orm-3.2.5.RELEASE
spring-tx-3.2.5.RELEASE
spring-web-3.2.5.RELEASE
spring-webmvc-3.2.5.RELEASE
spring-webmvc-portlet-3.2.5.RELEASE
xml-apis-1.0.b2

Can you please share your jar files. I am using the above jar files list for my application.
satish mandava, modificado 9 Anos atrás.

RE: requires-namespaced-parameters is not working in liferay 6.2

New Member Postagens: 11 Data de Entrada: 21/04/14 Postagens Recentes
James. This is also not working for me. My liferay sdk version is "liferay-plugins-sdk-6.2.0" and tomcat version is "liferay-portal-6.2.0-ce-ga1".
Showing the same error. I feel that is there any version mismatch. I have added the below jar files to my lib folder.

antlr-2.7.6.jar, aopalliance-1.0.jar, c3p0-0.9.1.2.jar, cglib-nodep-2.2.jar, commons-beanutils-1.8.3.jar, commons-collections-3.2.1.jar, commons-digester-2.1.jar, commons-logging-1.1.1.jar, core-renderer.jar, dom4j-1.6.1.jar, ejb3-persistence-1.0.2.GA.jar, hibernate-annotations-3.4.0.GA.jar, hibernate-commons-annotations-3.1.0.GA.jar, hibernate-core-3.3.2.GA.jar, iText-2.0.8.jar, javassist-3.7.ga.jar, jstl-1.2.jar, jta-1.1.jar, junit-4.8.1.jar, log4j-1.2.14.jar, mysql-connector-java-5.1.14.jar, persistence-api-1.0.jar, slf4j-api-1.6.1.jar, slf4j-log4j12-1.6.1.jar, spring-aop-3.2.5.RELEASE.jar, spring-beans-3.2.5.RELEASE.jar, spring-context-3.2.5.RELEASE.jar, spring-core-3.2.5.RELEASE.jar, spring-expression-3.2.5.RELEASE.jar, spring-jdbc-3.2.5.RELEASE.jar, spring-orm-3.2.5.RELEASE.jar, spring-tx-3.2.5.RELEASE.jar, spring-web-3.2.5.RELEASE.jar, spring-webmvc-3.2.5.RELEASE.jar, spring-webmvc-portlet-3.2.5.RELEASE.jar, xml-apis-1.0.b2.jar

Can you please share your jar files. I am using the above jar files list for my application.
thumbnail
Juan Gonzalez, modificado 9 Anos atrás.

RE: requires-namespaced-parameters is not working in liferay 6.2

Liferay Legend Postagens: 3089 Data de Entrada: 28/10/08 Postagens Recentes
Hi satish, if you are able to deploy the portlet then maybe is a Liferay IDE issue.

Did you upgrade Liferay IDE to the latest version (2.1.0) ?
satish mandava, modificado 9 Anos atrás.

RE: requires-namespaced-parameters is not working in liferay 6.2

New Member Postagens: 11 Data de Entrada: 21/04/14 Postagens Recentes
Yes, i am able to deploy the portlet, and functionally it is working fine.
I am using eclipse kepler.
My liferay ide version is 2.0.0. how to upgrade my Liferay IDE to the latest version (2.10).
Can you please tell me the procedure to upgrade.
Virat sen, modificado 8 Anos atrás.

Re: [Liferay Forums][Education] RE: requires-namespaced-parameters is not w

Junior Member Postagens: 57 Data de Entrada: 21/07/13 Postagens Recentes
Hi
Plz put the tag just after <icon> tag.
I hope it will work.

Thanks,
On Apr 24, 2014 7:39 AM, "James Falkner from liferay.com" <
forums@liferay.com> wrote:
>
> satish mandava:
> If i comment the requires-namespaced-parameters tag, that error is not
showing, but application is not working properly.
>
>
> This worked for me:
> 1 <portlet>
> 2 <portlet-name>social-driver</portlet-name>
> 3 <icon>/icon.png</icon>
> 4 <instanceable>true</instanceable>
> 5
<requires-namespaced-parameters>false</requires-namespaced-parameters>
> 6 <header-portlet-css>/css/main.css</header-portlet-css>
> 7
<footer-portlet-javascript>/js/main.js</footer-portlet-javascript>
> 8 <css-class-wrapper>social-driver-portlet</css-class-wrapper>
> 9 </portlet>
>
>
> To view the thread, follow the link below:
>
https://www.liferay.com/community/forums/-/message_boards/view_message/37136435
> --
> Liferay.com
thumbnail
Antonio Martin Perez, modificado 7 Anos atrás.

RE: Re: [Liferay Forums][Education] RE: requires-namespaced-parameters is n

Junior Member Postagens: 49 Data de Entrada: 11/11/09 Postagens Recentes
Hello Satish.

To resolve this compilation problem change the dtd especification of liferay-portlet.xml to the 6.2 dtd.

Change this

<!DOCTYPE liferay-portlet-app PUBLIC "-//Liferay//DTD Portlet Application 6.2.0//EN" "http://www.liferay.com/dtd/liferay-portlet-app_6_1_0.dtd">

for this

<!DOCTYPE liferay-portlet-app PUBLIC "-//Liferay//DTD Portlet Application 6.2.0//EN" "http://www.liferay.com/dtd/liferay-portlet-app_6_2_0.dtd">

This solution works for me.
thumbnail
Palanivel Venkatachalam, modificado 7 Anos atrás.

RE: Re: [Liferay Forums][Education] RE: requires-namespaced-parameters is n

New Member Postagens: 4 Data de Entrada: 04/08/14 Postagens Recentes
Sathish,

I am also getting same (below) error like you after adding <requires-namespaced-parameters>false</requires-namespaced-parameters>.

I changed the version from iferay-portlet-app_6_1_0.dtd to iferay-portlet-app_6_2_0.dtd but still getting the same error, if your resolved then could you please tell me what was the root cause and the solution ?

Also, i tried placing it in all the order, below is the sample code from my file


<portlet>
<portlet-name>PNMR-ForgotPassword-portlet</portlet-name>
<icon>/icon.png</icon>
<requires-namespaced-parameters>false</requires-namespaced-parameters>
<instanceable>false</instanceable>
<header-portlet-css>/css/main.css</header-portlet-css>
<footer-portlet-javascript>/js/main.js</footer-portlet-javascript>
</portlet>


Below is the error details

Multiple annotations found at this line:
- Start tag of element <portlet>
- The content of element type "portlet" must match "(portlet-name,icon?,virtual-path?,struts-path?,parent-struts-path?,configuration-path?,configuration-action-class?,indexer-class*,open-search-class?,scheduler-entry*,portlet-url-class?,friendly-url-mapper-class?,friendly-url-mapping?,friendly-url-routes?,url-encoder-class?,portlet-
data-handler-class?,portlet-layout-listener-class?,poller-processor-class?,pop-message-listener-class?,social-activity-interpreter-class?,social-request-interpreter-class?,webdav-storage-token?,webdav-storage-class?,xml-rpc-method-class?,control-panel-entry-category?,control-panel-entry-weight?,control-panel-entry-class?,asset-renderer-
factory*,atom-collection-adapter*,custom-attributes-display*,permission-propagator?,workflow-handler*,preferences-company-wide?,preferences-unique-per-layout?,preferences-owned-by-group?,use-default-template?,show-portlet-access-denied?,show-portlet-inactive?,action-url-redirect?,restore-current-view?,maximize-edit?,maximize-
help?,pop-up-print?,layout-cacheable?,instanceable?,remoteable?,scopeable?,user-principal-strategy?,private-request-attributes?,private-session-attributes?,autopropagated-parameters?,action-timeout?,render-timeout?,render-weight?,ajaxable?,header-portal-css*,header-portlet-css*,header-portal-javascript*,header-portlet-javascript*,footer-
portal-css*,footer-portlet-css*,footer-portal-javascript*,footer-portlet-javascript*,css-class-wrapper?,facebook-integration?,add-default-resource?,system?,active?,include?)".