Foros de discusión

Problem with displaying portlet

Matze Eibi, modificado hace 11 años.

Problem with displaying portlet

New Member Mensajes: 2 Fecha de incorporación: 2/12/12 Mensajes recientes
Hello,

I'm totally new to Liferay and I just wanted to create a new portlet and display it in the Liferay Portal.
I'm using Eclipse Juno with the Liferay plugin and I've already created a Liferay v6.1 CE Server (Tomcat 7).

After starting the server I got the message:
21:44:18,940 INFO  [liferay/hot_deploy-1][HotDeployMessageListener:142] Group or layout set prototype already exists for company liferay.com


When I add my Liferay project to the server I got this message:
02.12.2012 21:56:39 org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory C:\_liferay_portal\tomcat-7.0.27\webapps\XYZ-portlet
02.12.2012 21:56:39 org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://java.sun.com/portlet is already defined
02.12.2012 21:56:39 org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://alloy.liferay.com/tld/aui is already defined


A new portlet is not displayed in the Liferay portal.
I don't know what to do now. Can you please help me?

Thank you very much,
Matze
thumbnail
Hitoshi Ozawa, modificado hace 11 años.

RE: Problem with displaying portlet

Liferay Legend Mensajes: 7942 Fecha de incorporación: 24/03/10 Mensajes recientes
The first message is not the cause of your problem. The second message probably is. Are you trying to load AUI? Liferay by default already loads AUI so you don't have to in your portlet.

Also, you probably have duplicate taglib definition. If you have init.jsp to load common elements, check if you don't have duplication definition in your other jsp file.
<%@ taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet" %>
Matze Eibi, modificado hace 11 años.

RE: Problem with displaying portlet

New Member Mensajes: 2 Fecha de incorporación: 2/12/12 Mensajes recientes
Thank you for your response!

I don't try to load AUI manually.
I don't have an init.jsp, I just have five jsp files in my html directory (about, config, edit, help, view) and one in my docroot directory (view.jsp). Apparently the view.jsp is duplicated, should I delete one of them? The <%@ taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet" %> line is in both of them.

Thank you again,
Matze
thumbnail
Hitoshi Ozawa, modificado hace 11 años.

RE: Problem with displaying portlet

Liferay Legend Mensajes: 7942 Fecha de incorporación: 24/03/10 Mensajes recientes
Apparently the view.jsp is duplicated, should I delete one of them? The <%@ taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet" %> line is in both of them.

Try it to see if that'll fix the error. Kind of difficult to recommend further without seeing your code.