[jboss-user] [JBoss Portal] - Myfaces can not work on jboss portlet

jackyluck do-not-reply at jboss.com
Thu Dec 13 05:29:03 EST 2007


I try to adopt Myfaces work on jboss portlet ,but it aways have error on the wep page when i open the portlet,the error is :

Cause: java.lang.NullPointerException
StackTrace: 
java.lang.NullPointerException
	at org.apache.myfaces.application.DefaultViewHandlerSupport.calculateServletMapping(DefaultViewHandlerSupport.java:123)
	at org.apache.myfaces.application.DefaultViewHandlerSupport.calculateViewId(DefaultViewHandlerSupport.java:44)
	at org.apache.myfaces.application.jsp.JspViewHandlerImpl.createView(JspViewHandlerImpl.java:140)
	at org.apache.myfaces.portlet.MyFacesGenericPortlet.nonFacesRequest(MyFacesGenericPortlet.java:320)
	at org.apache.myfaces.portlet.MyFacesGenericPortlet.nonFacesRequest(MyFacesGenericPortlet.java:298)
	at org.apache.myfaces.portlet.MyFacesGenericPortlet.facesRender(MyFacesGenericPortlet.java:380)
	at org.apache.myfaces.portlet.MyFacesGenericPortlet.doView(MyFacesGenericPortlet.java:266)
	at javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:133)
	at javax.portlet.GenericPortlet.render(GenericPortlet.java:306)
	at org.jboss.portal.portlet.impl.jsr168.PortletContainerImpl.invokeRender(PortletContainerImpl.java:483)
	at org.jboss.portal.portlet.impl.jsr168.PortletContainerImpl.dispatch(PortletContainerImpl.java:405)
	at org.jboss.portal.portlet.container.PortletContainerInvoker$1.invoke(PortletContainerInvoker.java:86)
	at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
	at org.jboss.portal.core.aspects.portlet.TransactionInterceptor.org$jboss$portal$core$aspects$portlet$TransactionInterceptor$invokeNotSupported$aop(TransactionInterceptor.java:86)
	at org.jboss.portal.core.aspects.portlet.TransactionInterceptor$invokeNotSupported_N4547270787964792031.invokeNext(TransactionInterceptor$invokeNotSupported_N4547270787964792031.java)
	at org.jboss.aspects.tx.TxPolicy.invokeInNoTx(TxPolicy.java:66)
	at org.jboss.aspects.tx.TxInterceptor$NotSupported.invoke(TxInterceptor.java:112)
	at org.jboss.portal.core.aspects.portlet.TransactionInterceptor$invokeNotSupported_N4547270787964792031.invokeNext(TransactionInterceptor$invokeNotSupported_N4547270787964792031.java)
	at org.jboss.aspects.tx.TxPolicy.invokeInNoTx(TxPolicy.java:66)
	at org.jboss.aspects.tx.TxInterceptor$NotSupported.invoke(TxInterceptor.java:102)
	at org.jboss.portal.core.aspects.portlet.TransactionInterceptor$invokeNotSupported_N4547270787964792031.invokeNext(TransactionInterceptor$invokeNotSupported_N4547270787964792031.java)
	at org.jboss.portal.core.aspects.portlet.TransactionInterceptor.invokeNotSupported(TransactionInterceptor.java)
	at org.jboss.portal.core.aspects.portlet.TransactionInterceptor.invoke(TransactionInterceptor.java:56)
	at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:38)
	at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
	at org.jboss.portal.core.aspects.portlet.HeaderInterceptor.invoke(HeaderInterceptor.java:50)
	at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:38)
	at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
	at org.jboss.portal.portlet.aspects.portlet.ProducerCacheInterceptor.invoke(ProducerCacheInterceptor.java:58)
	at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:38)
	at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
	at org.jboss.portal.core.aspects.portlet.AjaxInterceptor.invoke(AjaxInterceptor.java:51)
	at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:38)
	at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
	at org.jboss.portal.portlet.aspects.portlet.ModesInterceptor.invoke(ModesInterceptor.java:62)
	at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:38)
	at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
	at org.jboss.portal.bridge.BridgeInterceptor.invoke(BridgeInterceptor.java:47)
	at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:38)
	at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
	at org.jboss.portal.portlet.aspects.portlet.WindowStatesInterceptor.invoke(WindowStatesInterceptor.java:55)
	at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:38)
	at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
	at org.jboss.portal.portlet.aspects.portlet.PortletSessionSynchronizationInterceptor.invoke(PortletSessionSynchronizationInterceptor.java:80)
	at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:38)
	at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
	at org.jboss.portal.portlet.aspects.portlet.ContextTrackerInterceptor.invoke(ContextTrackerInterceptor.java:46)
	at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:38)
	at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
	at org.jboss.portal.portlet.aspects.portlet.ContextDispatcherInterceptor$1.doCallback(ContextDispatcherInterceptor.java:89)
	at org.jboss.portal.web.jboss.JBossWebContext$InvokeNextCommand.execute(JBossWebContext.java:133)
	at sun.reflect.GeneratedMethodAccessor974.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.jboss.portal.server.servlet.CommandServlet.doGet(CommandServlet.java:99)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:687)
	at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:590)
	at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:505)
	at org.jboss.portal.server.servlet.CommandServlet.include(CommandServlet.java:79)
	at org.jboss.portal.web.jboss.JBossWebContext.include(JBossWebContext.java:61)
	at org.jboss.portal.portlet.impl.spi.AbstractRequestContext.dispatch(AbstractRequestContext.java:81)
	at org.jboss.portal.portlet.aspects.portlet.ContextDispatcherInterceptor.invoke(ContextDispatcherInterceptor.java:70)
	at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:38)
	at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
	at org.jboss.portal.portlet.aspects.portlet.SecureTransportInterceptor.invoke(SecureTransportInterceptor.java:68)
	at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:38)
	at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
	at org.jboss.portal.portlet.aspects.portlet.ValveInterceptor.invoke(ValveInterceptor.java:60)
	at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:38)
	at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
	at org.jboss.portal.common.invocation.Invocation.invoke(Invocation.java:157)
	at org.jboss.portal.portlet.container.PortletContainerInvoker.invoke(PortletContainerInvoker.java:198)
	at org.jboss.portal.portlet.state.producer.ProducerPortletInvoker.invoke(ProducerPortletInvoker.java:233)
	at org.jboss.portal.core.impl.portlet.state.ProducerPortletInvoker.org$jboss$portal$core$impl$portlet$state$ProducerPortletInvoker$invoke$aop(ProducerPortletInvoker.java:53)
	at org.jboss.portal.core.impl.portlet.state.ProducerPortletInvoker$invoke_N8654503705355129869.invokeNext(ProducerPortletInvoker$invoke_N8654503705355129869.java)
	at org.jboss.aspects.tx.TxPolicy.invokeInCallerTx(TxPolicy.java:126)
	at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:195)
	at org.jboss.portal.core.impl.portlet.state.ProducerPortletInvoker$invoke_N8654503705355129869.invokeNext(ProducerPortletInvoker$invoke_N8654503705355129869.java)
	at org.jboss.aspects.tx.TxPolicy.invokeInCallerTx(TxPolicy.java:126)
	at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:195)
	at org.jboss.portal.core.impl.portlet.state.ProducerPortletInvoker$invoke_N8654503705355129869.invokeNext(ProducerPortletInvoker$invoke_N8654503705355129869.java)
	at org.jboss.portal.core.impl.portlet.state.ProducerPortletInvoker.invoke(ProducerPortletInvoker.java)
	at org.jboss.portal.portlet.federation.impl.FederatedPortletInvokerService.invoke(FederatedPortletInvokerService.java:147)
	at org.jboss.portal.portlet.federation.impl.FederatingPortletInvokerService.invoke(FederatingPortletInvokerService.java:147)
	at org.jboss.portal.core.impl.model.instance.InstanceContainerImpl$1.invoke(InstanceContainerImpl.java:98)
	at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
	at org.jboss.portal.portlet.management.PortletContainerManagementInterceptorImpl.invoke(PortletContainerManagementInterceptorImpl.java:58)
	at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:38)
	at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
	at org.jboss.portal.portlet.aspects.portlet.PortalSessionSynchronizationInterceptor.invoke(PortalSessionSynchronizationInterceptor.java:116)
	at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:38)
	at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
	at org.jboss.portal.core.model.instance.InstanceSecurityInterceptor.invoke(InstanceSecurityInterceptor.java:78)
	at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:38)
	at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
	at org.jboss.portal.portlet.aspects.portlet.ConsumerCacheInterceptor.invoke(ConsumerCacheInterceptor.java:134)
	at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:38)
	at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
	at org.jboss.portal.common.invocation.Invocation.invoke(Invocation.java:157)
	at org.jboss.portal.core.impl.model.instance.InstanceContainerImpl.org$jboss$portal$core$impl$model$instance$InstanceContainerImpl$invoke$aop(InstanceContainerImpl.java:413)
	at org.jboss.portal.core.impl.model.instance.InstanceContainerImpl$invoke_N8654503705355129869.invokeNext(InstanceContainerImpl$invoke_N8654503705355129869.java)
	at org.jboss.aspects.tx.TxPolicy.invokeInCallerTx(TxPolicy.java:126)
	at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:195)
	at org.jboss.portal.core.impl.model.instance.InstanceContainerImpl$invoke_N8654503705355129869.invokeNext(InstanceContainerImpl$invoke_N8654503705355129869.java)
	at org.jboss.aspects.tx.TxPolicy.invokeInCallerTx(TxPolicy.java:126)
	at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:195)
	at org.jboss.portal.core.impl.model.instance.InstanceContainerImpl$invoke_N8654503705355129869.invokeNext(InstanceContainerImpl$invoke_N8654503705355129869.java)
	at org.jboss.portal.core.impl.model.instance.InstanceContainerImpl.invoke(InstanceContainerImpl.java)
	at org.jboss.portal.core.impl.model.instance.AbstractInstance.invoke(AbstractInstance.java:231)
	at org.jboss.portal.core.impl.model.content.InternalContentProvider.renderWindow(InternalContentProvider.java:240)
	at org.jboss.portal.core.model.portal.command.render.RenderWindowCommand.execute(RenderWindowCommand.java:88)
	at org.jboss.portal.core.controller.ControllerCommand$1.invoke(ControllerCommand.java:68)
	at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
	at org.jboss.portal.core.aspects.controller.node.EventBroadcasterInterceptor.invoke(EventBroadcasterInterceptor.java:123)
	at org.jboss.portal.core.controller.ControllerInterceptor.invoke(ControllerInterceptor.java:40)
	at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
	at org.jboss.portal.core.aspects.controller.ControlInterceptor.invoke(ControlInterceptor.java:57)
	at org.jboss.portal.core.controller.ControllerInterceptor.invoke(ControllerInterceptor.java:40)
	at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
	at org.jboss.portal.core.aspects.controller.PageCustomizerInterceptor.invoke(PageCustomizerInterceptor.java:118)
	at org.jboss.portal.core.controller.ControllerInterceptor.invoke(ControllerInterceptor.java:40)
	at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
	at org.jboss.portal.core.aspects.controller.PolicyEnforcementInterceptor.invoke(PolicyEnforcementInterceptor.java:77)
	at org.jboss.portal.core.controller.ControllerInterceptor.invoke(ControllerInterceptor.java:40)
	at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
	at org.jboss.portal.core.aspects.controller.node.PortalNodeInterceptor.invoke(PortalNodeInterceptor.java:81)
	at org.jboss.portal.core.controller.ControllerInterceptor.invoke(ControllerInterceptor.java:40)
	at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
	at org.jboss.portal.core.aspects.controller.NavigationalStateInterceptor.invoke(NavigationalStateInterceptor.java:42)
	at org.jboss.portal.core.controller.ControllerInterceptor.invoke(ControllerInterceptor.java:40)
	at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
	at org.jboss.portal.core.controller.ajax.AjaxInterceptor.invoke(AjaxInterceptor.java:51)
	at org.jboss.portal.core.controller.ControllerInterceptor.invoke(ControllerInterceptor.java:40)
	at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
	at org.jboss.portal.core.aspects.controller.ResourceAcquisitionInterceptor.invoke(ResourceAcquisitionInterceptor.java:50)
	at org.jboss.portal.core.controller.ControllerInterceptor.invoke(ControllerInterceptor.java:40)
	at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
	at org.jboss.portal.common.invocation.Invocation.invoke(Invocation.java:157)
	at org.jboss.portal.core.controller.ControllerContext.execute(ControllerContext.java:128)
	at org.jboss.portal.core.model.portal.command.render.RenderWindowCommand.render(RenderWindowCommand.java:68)
	at org.jboss.portal.core.model.portal.command.render.RenderPageCommand.execute(RenderPageCommand.java:203)
	at org.jboss.portal.core.controller.ControllerCommand$1.invoke(ControllerCommand.java:68)
	at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
	at org.jboss.portal.core.aspects.controller.node.EventBroadcasterInterceptor.invoke(EventBroadcasterInterceptor.java:123)
	at org.jboss.portal.core.controller.ControllerInterceptor.invoke(ControllerInterceptor.java:40)
	at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
	at org.jboss.portal.core.aspects.controller.ControlInterceptor.invoke(ControlInterceptor.java:57)
	at org.jboss.portal.core.controller.ControllerInterceptor.invoke(ControllerInterceptor.java:40)
	at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
	at org.jboss.portal.core.aspects.controller.PageCustomizerInterceptor.invoke(PageCustomizerInterceptor.java:118)
	at org.jboss.portal.core.controller.ControllerInterceptor.invoke(ControllerInterceptor.java:40)
	at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
	at org.jboss.portal.core.aspects.controller.PolicyEnforcementInterceptor.invoke(PolicyEnforcementInterceptor.java:77)
	at org.jboss.portal.core.controller.ControllerInterceptor.invoke(ControllerInterceptor.java:40)
	at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
	at org.jboss.portal.core.aspects.controller.node.PortalNodeInterceptor.invoke(PortalNodeInterceptor.java:81)
	at org.jboss.portal.core.controller.ControllerInterceptor.invoke(ControllerInterceptor.java:40)
	at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
	at org.jboss.portal.core.aspects.controller.NavigationalStateInterceptor.invoke(NavigationalStateInterceptor.java:42)
	at org.jboss.portal.core.controller.ControllerInterceptor.invoke(ControllerInterceptor.java:40)
	at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
	at org.jboss.portal.core.controller.ajax.AjaxInterceptor.invoke(AjaxInterceptor.java:51)
	at org.jboss.portal.core.controller.ControllerInterceptor.invoke(ControllerInterceptor.java:40)
	at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
	at org.jboss.portal.core.aspects.controller.ResourceAcquisitionInterceptor.invoke(ResourceAcquisitionInterceptor.java:50)
	at org.jboss.portal.core.controller.ControllerInterceptor.invoke(ControllerInterceptor.java:40)
	at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
	at org.jboss.portal.common.invocation.Invocation.invoke(Invocation.java:157)
	at org.jboss.portal.core.controller.ControllerContext.execute(ControllerContext.java:128)
	at org.jboss.portal.core.model.portal.PortalObjectResponseHandler.processCommandResponse(PortalObjectResponseHandler.java:74)
	at org.jboss.portal.core.controller.classic.ClassicResponseHandler.processHandlers(ClassicResponseHandler.java:79)
	at org.jboss.portal.core.controller.classic.ClassicResponseHandler.processCommandResponse(ClassicResponseHandler.java:53)
	at org.jboss.portal.core.controller.handler.ResponseHandlerSelector.processCommandResponse(ResponseHandlerSelector.java:72)
	at org.jboss.portal.core.controller.Controller.processCommandResponse(Controller.java:279)
	at org.jboss.portal.core.controller.Controller.processCommand(Controller.java:267)
	at org.jboss.portal.core.controller.Controller.handle(Controller.java:226)
	at org.jboss.portal.server.RequestControllerDispatcher.invoke(RequestControllerDispatcher.java:51)
	at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
	at org.jboss.portal.core.cms.aspect.IdentityBindingInterceptor.invoke(IdentityBindingInterceptor.java:47)
	at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
	at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
	at org.jboss.portal.server.aspects.server.ContentTypeInterceptor.invoke(ContentTypeInterceptor.java:68)
	at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
	at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
	at org.jboss.portal.core.aspects.server.LocaleInterceptor.invoke(LocaleInterceptor.java:96)
	at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
	at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
	at org.jboss.portal.core.aspects.server.UserInterceptor.invoke(UserInterceptor.java:245)
	at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
	at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
	at org.jboss.portal.server.aspects.server.SessionInvalidatorInterceptor.invoke(SessionInvalidatorInterceptor.java:84)
	at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
	at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
	at org.jboss.portal.core.impl.api.user.UserEventBridgeTriggerInterceptor.invoke(UserEventBridgeTriggerInterceptor.java:65)
	at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
	at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
	at org.jboss.portal.core.aspects.server.TransactionInterceptor.org$jboss$portal$core$aspects$server$TransactionInterceptor$invoke$aop(TransactionInterceptor.java:49)
	at org.jboss.portal.core.aspects.server.TransactionInterceptor$invoke_N5143606530999904530.invokeNext(TransactionInterceptor$invoke_N5143606530999904530.java)
	at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)
	at org.jboss.aspects.tx.TxInterceptor$RequiresNew.invoke(TxInterceptor.java:253)
	at org.jboss.portal.core.aspects.server.TransactionInterceptor$invoke_N5143606530999904530.invokeNext(TransactionInterceptor$invoke_N5143606530999904530.java)
	at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)
	at org.jboss.aspects.tx.TxInterceptor$RequiresNew.invoke(TxInterceptor.java:262)
	at org.jboss.portal.core.aspects.server.TransactionInterceptor$invoke_N5143606530999904530.invokeNext(TransactionInterceptor$invoke_N5143606530999904530.java)
	at org.jboss.portal.core.aspects.server.TransactionInterceptor.invoke(TransactionInterceptor.java)
	at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
	at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
	at org.jboss.portal.server.aspects.LockInterceptor$InternalLock.invoke(LockInterceptor.java:70)
	at org.jboss.portal.server.aspects.LockInterceptor.invoke(LockInterceptor.java:131)
	at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
	at org.jboss.portal.common.invocation.Invocation.invoke(Invocation.java:157)
	at org.jboss.portal.server.servlet.PortalServlet.service(PortalServlet.java:380)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
	at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
	at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
	at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
	at java.lang.Thread.run(Thread.java:619)

below is my config:
1.I have add 
   commons-beanutils-1.7.0.jar
   commons-codec-1.3.jar
   commons-collections-3.2.jar
   commons-digester-1.8.jar
   commons-discovery-0.4.jar
   commons-logging-1.1.jar
   myfaces-api-1.2.0.jar
   myfaces-impl-1.2.0.jar

2.my portlet.xml :
   ...... 
   <portlet-class>org.apache.myfaces.portlet.MyFacesGenericPortlet</portlet-class>
 <init-param>
             default-view
            /welcomeJSF.jsp
        </init-param>

 3.my web.xml is :
   <context-param>
       <param-name>org.jboss.jbossfaces.WAR_BUNDLES_JSF_IMPL</param-name>
       <param-value>true</param-value>
    </context-param>

    <context-param>
        <param-name>com.sun.faces.verifyObjects</param-name>
        <param-value>false</param-value>
    </context-param>
    
    <context-param>
        <param-name>com.sun.faces.validateXml</param-name>
        <param-value>true</param-value>
    </context-param>
    
    <context-param>
        <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
        <param-value>client</param-value>
    </context-param>

  
    
        <servlet-name>Faces Servlet</servlet-name>
        <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
        <load-on-startup>1</load-on-startup>
   
        
    <servlet-mapping>
        <servlet-name>Faces Servlet</servlet-name>
        <url-pattern>/faces/*</url-pattern>
    </servlet-mapping>
    
    <servlet-mapping>
        <servlet-name>Faces Servlet</servlet-name>
        <url-pattern>*.jsf</url-pattern>
    </servlet-mapping>


Now I dont't know how to do can let myfaces work on portlet

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

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



More information about the jboss-user mailing list