You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Alexandre Combe <a....@laposte.net> on 2006/03/02 14:40:04 UTC

RE: URL IllegalArgumentException problem when mixing JSF and portlet

OK, thank you for the response.
I'm going to check (again) the configuration.

> It looks like your Pluto configuration is messed up. 
According to the stack trace, the request never hits
MyFacesGenericPortlet.
> 
> Stan Silvert
> JBoss, Inc.
> ssilvert@jboss.com
> callto://stansilvert
> 
> > -----Original Message-----
> > From: Alexandre Combe [mailto:a.combe@laposte.net]
> > Sent: Tuesday, February 28, 2006 9:39 AM
> > To: users
> > Subject: URL IllegalArgumentException problem when mixing
JSF and portlet
> > 
> > Hi,
> > 
> > I m not sure this is the right place to post this message but
> > i try anyway. I�EUR(tm)v got the following problem when
mixing a JSF
> > Web Application based on Myfaces into a pluto container :
> > 
> > java.lang.IllegalArgumentException: only absolute URLs or full
> > path URIs are
> > allowed
> > at
> >
org.apache.pluto.core.impl.PortletResponseImpl.encodeURL(PortletResponseIm
> > pl.java:120)
> > at
> >
org.apache.myfaces.context.portlet.PortletExternalContextImpl.encodeAction
> > URL(PortletExternalContex
> > tImpl.java:182)
> > at
> >
org.apache.myfaces.renderkit.html.HtmlFormRendererBase.encodeBegin(HtmlFor
> > mRendererBase.java:66)
> > at
> >
javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:307
> > )
> > at
> >
javax.faces.webapp.UIComponentTag.encodeBegin(UIComponentTag.java:337)
> > at
> >
javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:224)
> > at
> >
org.apache.jsp.index_jsp._jspx_meth_h_form_0(index_jsp.java:152)
> > at
> >
org.apache.jsp.index_jsp._jspx_meth_f_view_0(index_jsp.java:110)
> > at org.apache.jsp.index_jsp._jspService(index_jsp.java:67)
> > at
> >
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
> > at
> > javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> > at
> >
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java
> > :324)
> > at
> >
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
> > at
> >
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
> > at
> > javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> > 
> > Here is my portlet.xml :
> > 
> > <?xml version="1.0" encoding="UTF-8"?>
> > <portlet-app
> > xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd"
> > 
> > version="1.0">
> > <portlet>
> > <portlet-name>IPPortletJSF</portlet-name>
> > 
> >
<portlet-class>org.apache.myfaces.portlet.MyFacesGenericPortlet</portlet-
> > class>
> > <init-param>
> > <name>default-view</name>
> > <value>/index.jsp</value>
> > </init-param>
> > 
> > <expiration-cache>0</expiration-cache>
> > <supports>
> > <mime-type>text/html</mime-type>
> > <portlet-mode>VIEW</portlet-mode>
> > </supports>
> > <supported-locale>fr</supported-locale>
> > <portlet-info>
> > <title>IP Portlet JSF</title>
> > <keywords>ip, service</keywords>
> > </portlet-info>
> > 
> > </portlet>
> > </portlet-app>
> > 
> > My web.xml :
> > 
> > <servlet>
> > <servlet-name>Faces Servlet</servlet-name>
> > 
> > <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
> > <load-on-startup>1</load-on-startup>
> > </servlet>
> > 
> > <servlet>
> > <servlet-name>IPPortletJSF</servlet-name>
> > <display-name>IPPortletJSF Wrapper</display-name>
> > <description>Automated generated Portlet
> > Wrapper</description>
> > 
> >
<servlet-class>org.apache.pluto.core.PortletServlet</servlet-class>
> > <init-param>
> > <param-name>portlet-class</param-name>
> > 
> >
<param-value>org.apache.myfaces.portlet.MyFacesGenericPortlet</param-
> > value>
> > </init-param>
> > <init-param>
> > <param-name>portlet-guid</param-name>
> > <param-value>ip-webappJSF.IPPortletJSF</param-value>
> > </init-param>
> > </servlet>
> > 
> > <servlet-mapping>
> > <servlet-name>IPPortletJSF</servlet-name>
> > <url-pattern>/IPPortletJSF/*</url-pattern>
> > </servlet-mapping>
> > 
> > <servlet-mapping>
> > <servlet-name>Faces Servlet</servlet-name>
> > <url-pattern>*.jsf</url-pattern>
> > </servlet-mapping>
> > 
> > (without welcome file list)
> > 
> > and my very simple index.jsp (under root context) :
> > <f:view>
> > <html>
> > <head>
> > <title>Test</title>
> > </head>
> > <body>
> > 
> > <h:outputText value="Test 1" />
> > 
> > <h:form>
> > <h:commandButton value="Test"
> > action="#{IndividuBean.traiterAdresse}" />
> > </h:form>
> > </f:view>
> > 
> > The <h:outputText> tag is ok and well rendered when alone. But
> > when adding the <h:commandButton> with the action, the problem
> > appears...
> > I can't find out why the error rised. Does it comes from a bad
> > configuration (welcome file that is not processed by the JSF
> > servlet...) ?
> > 
> > Any ideas ?
> > 
> > Thanks in advance.
> > Alexandre
> > 
> > Acc�dez au courrier �lectronique de La Poste :
www.laposte.net ;
> > 3615 LAPOSTENET (0,34 EUR/mn) ; t�l : 08 92 68 13 50
(0,34EUR/mn)
> > 
> > 
> 
> 

Accédez au courrier électronique de La Poste : www.laposte.net ; 
3615 LAPOSTENET (0,34 €/mn) ; tél : 08 92 68 13 50 (0,34€/mn)