1 Reply Latest reply on Sep 27, 2006 12:03 AM by Chris Laprun

    WSRP+JSF doesn't work

    Sergey Skladchikov Newbie

      I have deployed the HelloWorldJSFPortlet downloaded from the public repository. This portlet works fine when I use it locally, but I failed to start itvia WSRP. The follwoing stack trace appears in my logs:

      Stacktrace:
      at org.jboss.portal.portlet.impl.jsr168.PortletRequestDispatcherImpl.include(PortletRequestDispatcherImpl.java:118)
      at org.apache.myfaces.context.portlet.PortletExternalContextImpl.dispatch(PortletExternalContextImpl.java:164)
      ... 121 more
      Caused by: org.apache.jasper.JasperException: Exception in JSP: /WEB-INF/jsp/index.jsp:6

      3:
      4: <f:view>
      5:
      6: <h:form>
      7: <h:panelGrid columns="2">
      8: <h:outputText styleClass="portlet-font" value="First Name:"/>
      9: <h:inputText value="#{user.firstname}" align="center" required="true"/>


      Stacktrace:
      at org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:504)
      at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393)
      at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
      at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      at org.jboss.portal.portlet.impl.jsr168.PortletRequestDispatcherImpl.execute(PortletRequestDispatcherImpl.java:87)
      at sun.reflect.GeneratedMethodAccessor452.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.portal.server.servlet.CommandFilter.doFilter(CommandFilter.java:65)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
      at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:574)
      at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499)
      at org.jboss.portal.portlet.impl.jsr168.PortletRequestDispatcherImpl.include(PortletRequestDispatcherImpl.java:108)
      ... 122 more
      Caused by: java.lang.NullPointerException
      at org.jboss.portal.portlet.impl.jsr168.RenderResponseImpl.getNamespace(RenderResponseImpl.java:134)
      at org.apache.myfaces.context.portlet.PortletExternalContextImpl.encodeNamespace(PortletExternalContextImpl.java:192)
      at javax.faces.component.UIViewRoot.createUniqueId(UIViewRoot.java:182)
      at javax.faces.webapp.UIComponentTag.getOrCreateUniqueId(UIComponentTag.java:421)
      at javax.faces.webapp.UIComponentTag.findComponent(UIComponentTag.java:387)
      at javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:219)
      at org.apache.jsp.WEB_002dINF.jsp.index_jsp._jspx_meth_h_form_0(index_jsp.java:131)
      at org.apache.jsp.WEB_002dINF.jsp.index_jsp._jspx_meth_f_view_0(index_jsp.java:103)
      at org.apache.jsp.WEB_002dINF.jsp.index_jsp._jspService(index_jsp.java:70)
      at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
      at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
      ... 138 more
      12:00:54,042 ERROR [CallImpl] Call invocation failed
      javax.xml.rpc.soap.SOAPFaultException: org.jboss.portal.wsrp.core.OperationFailedFault
      at org.jboss.ws.jaxrpc.SOAPFaultExceptionHelper.getSOAPFaultException(SOAPFaultExceptionHelper.java:100)
      at org.jboss.ws.binding.soap.SOAPBindingProvider.unbindResponseMessage(SOAPBindingProvider.java:505)
      at org.jboss.ws.jaxrpc.CallImpl.invokeInternal(CallImpl.java:704)
      at org.jboss.ws.jaxrpc.CallImpl.invoke(CallImpl.java:398)
      at org.jboss.ws.jaxrpc.CallProxy.invoke(CallProxy.java:164)
      at $Proxy148.getMarkup(Unknown Source)
      at org.jboss.portal.wsrp.consumer.RenderHandler.performRequest(RenderHandler.java:144)
      at org.jboss.portal.wsrp.consumer.InvocationHandler.performRequest(InvocationHandler.java:77)
      at org.jboss.portal.wsrp.consumer.RenderHandler.performRenderRequest(RenderHandler.java:63)
      at org.jboss.portal.wsrp.consumer.RenderHandler.processRenderRequest(RenderHandler.java:81)
      at org.jboss.portal.wsrp.consumer.WSRPConsumerImpl.invoke(WSRPConsumerImpl.java:182)
      at org.jboss.portal.federation.impl.FederatedPortletInvokerService.invoke(FederatedPortletInvokerService.java:139)
      at org.jboss.portal.federation.impl.FederatingPortletInvokerService.invoke(FederatingPortletInvokerService.java:155)
      at sun.reflect.GeneratedMethodAccessor357.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
      at $Proxy65.invoke(Unknown Source)