[jboss-user] [JBoss Portal Users] - ERROR when I try to start JSF/RichFaces portlet on JBoss Por

SDF1 do-not-reply at jboss.com
Mon Nov 16 15:50:16 EST 2009


Hi,

I have problem with start JSF/RichFaces portlet. I use jdk1.5_17, JBoss Portal 2.7.2 (+JBoss AS 4.2.3), 
two JAR files took from JBoss Portlet Bridge (portletbridge-api-1.0.0.CR3.jar, portletbridge-impl-1.0.0.CR3.jar).
My files for which I think that are keys for the starting the simplest JSP fajl with RichFaces tags are:

portlet.xml

  | <?xml version="1.0" encoding="UTF-8"?><portlet-app xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd"
  | 	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
  | 	xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd" 
  | 	version="2.0">
  | 	<portlet>
  | 		<description>My Catalog Portlet</description>
  |       	<portlet-name>MyCatalog</portlet-name>
  |       	<display-name>My Catalog Portlet</display-name>
  |       	<portlet-class>javax.portlet.faces.GenericFacesPortlet</portlet-class>
  |       	<init-param>
  | 		 	<name>javax.portlet.faces.defaultViewId.view</name>
  | 		 	<value>/WEB-INF/jsp/CatalogJsp.jsp</value>
  | 	  	</init-param>
  | 	  	<init-param>
  | 			<name>javax.portlet.faces.preserveActionParams</name>
  | 			<value>true</value>
  | 		</init-param>
  | 		<expiration-cache>0</expiration-cache>
  |       	<supports>
  |          	<mime-type>text/html</mime-type>
  |          	<portlet-mode>VIEW</portlet-mode>
  |          	<portlet-mode>EDIT</portlet-mode>
  |       		<portlet-mode>HELP</portlet-mode>
  |       	</supports>
  |       	<portlet-info>
  |          	<title>My Catalog Portlet</title>
  |          	<keywords>sample,event,catalog</keywords>
  |       	</portlet-info>
  |       	<supported-publishing-event>
  |          	<qname xmlns:jbp='urn:jboss:portal:samples:event'>jbp:CartEvent</qname>
  |       	</supported-publishing-event>
  |    	</portlet>
  |    	
  |    	<portlet>
  | 		<description>My Test Portlet</description>
  |       	<portlet-name>MyTest</portlet-name>
  |       	<display-name>My Test Portlet</display-name>
  |       	<portlet-class>javax.portlet.faces.GenericFacesPortlet</portlet-class>
  |       	<init-param>
  | 		 	<name>javax.portlet.faces.defaultViewId.view</name>
  | 		 	<value>/WEB-INF/jsp/test.jsp</value>
  | 	  	</init-param>
  | 	  	<init-param>
  | 			<name>javax.portlet.faces.preserveActionParams</name>
  | 			<value>true</value>
  | 		</init-param>
  | 		<expiration-cache>0</expiration-cache>
  |       	<supports>
  |          	<mime-type>text/html</mime-type>
  |          	<portlet-mode>VIEW</portlet-mode>
  |          	<portlet-mode>EDIT</portlet-mode>
  |       		<portlet-mode>HELP</portlet-mode>
  |       	</supports>
  |       	<portlet-info>
  |          	<title>My Catalog Portlet</title>
  |          	<keywords>sample,event,catalog</keywords>
  |       	</portlet-info>
  |       	<supported-publishing-event>
  |          	<qname xmlns:jbp='urn:jboss:portal:samples:event'>jbp:CartEvent</qname>
  |       	</supported-publishing-event>
  |    	</portlet>
  |    	
  |    	<event-definition>
  |       	<qname xmlns:jbp='urn:jboss:portal:samples:event'>jbp:CartEvent</qname>
  |       	<value-type>org.jboss.portal.portlet.samples.shoppingcart.CartEvent</value-type>
  |    	</event-definition>
  | </portlet-app>
  | 
web.xml

  | <?xml version="1.0"?>
  | <web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee"
  |  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
  |  <display-name>ShoppingPortlet</display-name>
  |  <context-param>
  |   <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
  |   <param-value>server</param-value>
  |  </context-param>
  |  <context-param>
  |   <param-name>org.richfaces.SKIN</param-name>
  |   <param-value>blueSky</param-value>
  |  </context-param>
  |  <context-param>
  |   <param-name>org.richfaces.LoadScriptStrategy</param-name>
  |   <param-value>ALL</param-value>
  |  </context-param>
  |  <context-param>
  |   <param-name>org.ajax4jsf.handleViewExpiredOnClient</param-name>
  |   <param-value>true</param-value>
  |  </context-param>
  |  <filter>
  |   <display-name>Ajax4jsf Filter</display-name>
  |   <filter-name>ajax4jsf</filter-name>
  |   <filter-class>org.ajax4jsf.Filter</filter-class>
  |  </filter>
  |  <filter-mapping>
  |   <filter-name>ajax4jsf</filter-name>
  |   <servlet-name>Faces Servlet</servlet-name>
  |   <dispatcher>REQUEST</dispatcher>
  |   <dispatcher>FORWARD</dispatcher>
  |   <dispatcher>INCLUDE</dispatcher>
  |  </filter-mapping>
  |  <listener>
  |   <listener-class>com.sun.faces.config.ConfigureListener</listener-class>
  |  </listener>
  |  <!-- Faces Servlet -->
  |  <servlet>
  |   <servlet-name>Faces Servlet</servlet-name>
  |   <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
  |   <load-on-startup>1</load-on-startup>
  |  </servlet>
  |  <!-- Faces Servlet Mapping -->
  |  <servlet-mapping>
  |   <servlet-name>Faces Servlet</servlet-name>
  |   <url-pattern>*.jsf</url-pattern>
  |  </servlet-mapping>
  |  <login-config>
  |   <auth-method>BASIC</auth-method>
  |  </login-config>
  | </web-app>
  | 
faces-config.xml (for now I didn't connect JSF with anyone Managed Bean class)

  | <?xml version="1.0" encoding="UTF-8"?>
  | <faces-config version="1.2" xmlns="http://java.sun.com/xml/ns/javaee"
  |  xmlns:xi="http://www.w3.org/2001/XInclude"
  |  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd">
  | </faces-config>
  | 
CatalogJsp.jsp

  | <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
  | <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
  | <%@ taglib uri="http://richfaces.org/rich" prefix="rich" %>
  | <%@ taglib uri="http://richfaces.org/a4j" prefix="a4j" %>
  | 
  | <html>
  | <body>
  | <rich:dataTable border="1" width="100%">
  | 	<rich:column width="25%">
  | 	Tree View
  | 	</rich:column>
  | 	<rich:column width="75%">
  | 	Table
  | 	</rich:column>
  | </rich:dataTable>
  | </body>
  | </html>
  | 
ERROR

  | ERROR
  | Cause: javax.portlet.PortletException: Error process faces request
  | Message: Error process faces request
  | StackTrace:
  | 
  | javax.portlet.PortletException: Error process faces request
  | 	at javax.portlet.faces.GenericFacesPortlet.doFacesDispatch(GenericFacesPortlet.java:354)
  | 	at javax.portlet.faces.GenericFacesPortlet.doView(GenericFacesPortlet.java:312)
  | 	at javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:328)
  | 	at javax.portlet.faces.GenericFacesPortlet.doDispatch(GenericFacesPortlet.java:293)
  | 	at javax.portlet.GenericPortlet.render(GenericPortlet.java:233)
  | 	at org.jboss.portal.portlet.impl.jsr168.PortletContainerImpl$Invoker.doFilter(PortletContainerImpl.java:568)
  | 	at org.jboss.portal.portlet.impl.jsr168.api.FilterChainImpl.doFilter(FilterChainImpl.java:159)
  | 	at org.jboss.portal.portlet.impl.jsr168.api.FilterChainImpl.doFilter(FilterChainImpl.java:80)
  | 	at org.jboss.portal.portlet.impl.jsr168.PortletContainerImpl.dispatch(PortletContainerImpl.java:505)
  | 	at org.jboss.portal.portlet.container.ContainerPortletDispatcher.invoke(ContainerPortletDispatcher.java:42)
  | 	at org.jboss.portal.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:82)
  |         .....
  |         ...
  | 
This ERROR shows me when ever I want to start more simplest Test.jsp (normal JSP page)

Test.jsp

  | <html>
  | <body>
  | <p> Simple JSP Test Page </p>
  | </body>
  | </html>
  | 
Could somebody help me? Is it something missing here, or something is not necessary?

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4265962#4265962

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4265962



More information about the jboss-user mailing list