Foros de discusión

The requested resource / CertificadoAfiliacion / CertificadoAfiliacion / in

Lorena Granados, modificado hace 11 años.

The requested resource / CertificadoAfiliacion / CertificadoAfiliacion / in

New Member Mensajes: 4 Fecha de incorporación: 10/11/12 Mensajes recientes
Hi

I'm trying to deploy a portlet using liferay 6.0.5 with Jboss 5.1, when the server goes I have no problem but when I put it on the portal generates the message "The requested resource / CertificadoAfiliacion / CertificadoAfiliacion / invoke not available" attached my configuration files .... help please
faces_config

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN"
"http://java.sun.com/dtd/web-facesconfig_1_1.dtd">
<faces-config>
<managed-bean>
<managed-bean-name>generarCertificadoWebBean</managed-bean-name>
<managed-bean-class>com.certificados.webBean.GenerarCertificadoWebBean</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
</managed-bean>

<factory>
<faces-context-factory>com.liferay.util.jsf.apache.myfaces.context.MyFacesContextFactoryImpl</faces-context-factory>
</factory>

<application>
<locale-config>
<default-locale>es</default-locale>
</locale-config>
</application>
</faces-config>

liferay-display

<?xml version="1.0"?>
<!DOCTYPE display PUBLIC "-//Liferay//DTD Display 4.0.0//EN" "http://www.liferay.com/dtd/liferay-display_4_0_0.dtd">

<display>
<category name="Certificaciones">
<category name="Publico">
<portlet id="CertificadoAfiliacion" />
</category>
</category>
</display>

liferay-plugin-package.properties

name=CertificadoAfiliacion
module-group-id=liferay
module-incremental-version=1
tags=
short-description=
change-log=
page-url=http://www.liferay.com
author=Liferay, Inc.
licenses=LGPL

liferay-portlet.xml

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

<liferay-portlet-app>
<portlet>
<portlet-name>CertificadoAfiliacion</portlet-name>
<instanceable>false</instanceable>
</portlet>
<role-mapper>
<role-name>administrator</role-name>
<role-link>Administrator</role-link>
</role-mapper>
<role-mapper>
<role-name>user</role-name>
<role-link>User</role-link>
</role-mapper>
</liferay-portlet-app>

portlet.xml

<?xml version="1.0"?>

<portlet-app xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd" version="1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd">
<portlet>
<portlet-name>CertificadoAfiliacion</portlet-name>
<display-name>CertificadoAfiliacion</display-name>
<portlet-class>org.apache.myfaces.portlet.MyFacesGenericPortlet</portlet-class>
<init-param>
<name>default-view</name>
<value>/view.jsp</value>
</init-param>
<expiration-cache>0</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
</supports>

<resource-bundle>messages</resource-bundle>

<portlet-info>
<title>CertificadoAfiliacion</title>
<short-title>CertificadoAfiliacion</short-title>
<keywords>CertificadoAfiliacion</keywords>
</portlet-info>
<security-role-ref>
<role-name>administrator</role-name>
</security-role-ref>
<security-role-ref>
<role-name>user</role-name>
</security-role-ref>
</portlet>
</portlet-app>

web.xml

<?xml version="1.0" encoding="UTF-8"?>
<web-app
xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
version="2.4">
<display-name>CertificadoAfiliacion-portlet</display-name>
<context-param>
<param-name>company_id</param-name>
<param-value>liferay.com</param-value>
</context-param>
<context-param>
<param-name>javax.faces.STATE_SAVING_METHOD</param-name>
<param-value>client</param-value>
</context-param>
<context-param>
<param-name>javax.faces.application.CONFIG_FILES</param-name>
<param-value>/WEB-INF/faces-config.xml</param-value>
</context-param>
<context-param>
<param-name>org.jboss.jbossfaces.WAR_BUNDLES_JSF_IMPL</param-name>
<param-value>true</param-value>
</context-param>

<listener>
<listener-class>
com.liferay.portal.kernel.servlet.PortletContextListener
</listener-class>
</listener>
<listener>
<listener-class>
org.apache.myfaces.webapp.StartupServletContextListener
</listener-class>
</listener>



<servlet>
<servlet-name>Reporte Servlet</servlet-name>
<servlet-class>com.certificado.servlet.CertificadoAfiliacion</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>

<servlet-mapping>
<servlet-name>Reporte Servlet</servlet-name>
<url-pattern>/CertificadoAfiliacion</url-pattern>
</servlet-mapping>

<jsp-config>
<taglib>
<taglib-uri>http://java.sun.com/portlet_2_0</taglib-uri>
<taglib-location>/WEB-INF/tld/liferay-portlet.tld</taglib-location>
</taglib>
</jsp-config>
</web-app>
thumbnail
Neil Griffin, modificado hace 11 años.

RE: The requested resource / CertificadoAfiliacion / CertificadoAfiliacion

Liferay Legend Mensajes: 2655 Fecha de incorporación: 27/07/05 Mensajes recientes
The "/invoke" issue is a known bug in Liferay Portal 6.0 CE that has been fixed in 6.1.x CE. If you are an Enterprise Edition (EE) customer then Liferay Support could provide a backport fix for you. If not then I would recommend that you upgrade to Liferay Portal 6.1.1 CE.
Subhash Shah, modificado hace 11 años.

RE: The requested resource / CertificadoAfiliacion / CertificadoAfiliacion

Junior Member Mensajes: 78 Fecha de incorporación: 30/11/11 Mensajes recientes
We are facing this issue frequently. When we face this issue, we have to undeploy the portlet, restart the server and then deploy the portlet again. After following these steps, it works fine but again on redeploying with tomcat server running, it gives the error.

We are using Liferay 6.1.0 GA1.

Also, the solution provided in previous comment is also not working for me.
thumbnail
Neil Griffin, modificado hace 11 años.

RE: The requested resource / CertificadoAfiliacion / CertificadoAfiliacion

Liferay Legend Mensajes: 2655 Fecha de incorporación: 27/07/05 Mensajes recientes
Are you able to upgrade to Liferay Portal 6.1.1-ga2? I haven't seen this error occur with that version.
Subhash Shah, modificado hace 11 años.

RE: The requested resource / CertificadoAfiliacion / CertificadoAfiliacion

Junior Member Mensajes: 78 Fecha de incorporación: 30/11/11 Mensajes recientes
As per the requirements, we have to stick to Liferay portal 6.1.0-GA1 and can't use the portal suggested by you. Is there any workaround which may help resolving the issue in the current version which we are using?

Thanks
thumbnail
Neil Griffin, modificado hace 11 años.

RE: The requested resource / CertificadoAfiliacion / CertificadoAfiliacion

Liferay Legend Mensajes: 2655 Fecha de incorporación: 27/07/05 Mensajes recientes
Unfortunately no, I can't recommend a workaround other than upgrading.
Subhash Shah, modificado hace 11 años.

RE: The requested resource / CertificadoAfiliacion / CertificadoAfiliacion

Junior Member Mensajes: 78 Fecha de incorporación: 30/11/11 Mensajes recientes
Thanks for your inputs Neil.
thumbnail
Neil Griffin, modificado hace 11 años.

RE: The requested resource / CertificadoAfiliacion / CertificadoAfiliacion

Liferay Legend Mensajes: 2655 Fecha de incorporación: 27/07/05 Mensajes recientes
My pleasure -- sorry I couldn't provide a better answer. There are many benefits to upgrading -- liferay-portal-6.1.1-ce-ga2 has many bigfixes and improvements. For more info, see the release notes.
Subhash Shah, modificado hace 11 años.

RE: The requested resource / CertificadoAfiliacion / CertificadoAfiliacion

Junior Member Mensajes: 78 Fecha de incorporación: 30/11/11 Mensajes recientes
Thanks for your suggestion Neil. We have to see if we can upgrade to Liferay 6.1.1-CE GA2.
thumbnail
Neil Griffin, modificado hace 11 años.

RE: The requested resource / CertificadoAfiliacion / CertificadoAfiliacion

Liferay Legend Mensajes: 2655 Fecha de incorporación: 27/07/05 Mensajes recientes
Hi Subhash,

I just wanted to mention that I haven't observed this problem with 6.1.1, which to me, implies that it was fixed. But before you go through the upgrade process, I would recommend that you test 6.1.1 in your own environment and see if the problem indeed goes away for you.

Best Regards,

Neil
thumbnail
alex wom, modificado hace 11 años.

RE: The requested resource / CertificadoAfiliacion / CertificadoAfiliacion

Regular Member Mensajes: 218 Fecha de incorporación: 4/05/09 Mensajes recientes
Hello I have the same problem in 6.1.1 GA2. The problem is that deployer doesn't generate:
<servlet>
<servlet-name>myplugin Servlet</servlet-name>
<servlet-class>com.liferay.portal.kernel.servlet.PortletServlet</servlet-class>
<init-param>
<param-name>portlet-class</param-name>
<param-value>com.liferay.util.bridges.mvc.MVCPortlet</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>myplugin Servlet</servlet-name>
<url-pattern>/myplugin/*</url-pattern>
</servlet-mapping>

I would like to understand when/why, to operate a workaround. Now my workaround is to add this part directly to web.xml in the deployed directory, but I would like how to avoid this problem.
Thanks
Lorena Granados, modificado hace 11 años.

RE: The requested resource / CertificadoAfiliacion / CertificadoAfiliacion (Respuesta)

New Member Mensajes: 4 Fecha de incorporación: 10/11/12 Mensajes recientes
thank you very much

You could fix the error, Falaba set of MyFaces servlet context in the web.xml emoticon

<servlet>
<servlet-name>CertificadoAfiliacion</servlet-name>
<servlet-class>com.liferay.portal.kernel.servlet.PortletServlet</servlet-class>
<init-param>
<param-name>portlet-class</param-name>
<param-value>org.apache.myfaces.portlet.MyFacesGenericPortlet</param-value>
</init-param>
<load-on-startup>0</load-on-startup>
</servlet>

<servlet-mapping>
<servlet-name>CertificadoAfiliacion</servlet-name>
<url-pattern>/CertificadoAfiliacion/*</url-pattern>
</servlet-mapping>