portals-wsrp4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From axelspin <spin...@knmi.nl>
Subject Re: WSRP4J + JSF Problem
Date Wed, 30 May 2007 09:09:46 GMT

I am facing the same problem

Did someone solve this problem? Do you have some useful infos?

I am working with Pluto 1.0.2, wsrp4j producer - conusmer rel 518600,
Jetspeed 2.1, Myfaces-tomahawk portlets 1.1.5

Thanks
Alessandro




Anil Khuman wrote:
> 
> Hi,
> 
> I am having problems getting a JSF (MyFaces) portlet to work through
> WSRP4J. 
> When I try to access the remote portlet I get the
> 
> exception detailed below in Tomcat's console. I have the same porlet
> working 
> fine when run locally and the 'wsrp-testportlet'
> 
> also works correctly. It seems that it doesn't like me using any JSF tags
> in 
> my .jsp file. If I use plain HTML or JSP tags
> 
> and/or scriplets it works fine, but the use of any JSF tags instead (i.e. 
> <f:view> ..) causes the exception shown. I can't see
> 
> where the problem lies since the portlet works without a problem when run 
> locally.
> 
> The exception seems to indicate that the returned content is not of a 
> supported type, but I am sure it is 'text/html' (as
> 
> specified in my 'web.xml' file). I have also noted that changing the
> content 
> type to something other than 'text/html' inside
> 
> the actual JSF file prevents the exception being thrown but then causes no 
> content to be rendered inside the portlet.
> 
> Any help with this will much appreciated.
> 
> 
> Anil
> 
> 
> 
> 
> 
> Tomcat log output:
> 
> 2006-07-31 14:54:38 ApplicationDispatcher[/google-portlet]
> Servlet.service() 
> for servlet jsp threw exception
> java.lang.IllegalArgumentException: ContentTypeList does not contain a 
> supported content type: application/soap+xml,
> 
> application/dime, multipart/related, text/*
> 	at 
> org.apache.myfaces.shared_impl.renderkit.html.HtmlRendererUtils.selectContentType(HtmlRendererUtils.java:1043)
> 	at 
> org.apache.myfaces.renderkit.html.HtmlRenderKitImpl.createResponseWriter(HtmlRenderKitImpl.java:126)
> 	at 
> javax.faces.webapp.UIComponentTag.setupResponseWriter(UIComponentTag.java:936)
> 	at javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:310)
> 	at org.apache.myfaces.taglib.core.ViewTag.doStartTag(ViewTag.java:70)
> 	at 
> org.apache.jsp.WEB_002dINF.jsp.start_jsp._jspx_meth_f_view_0(start_jsp.java:83)
> 	at
> org.apache.jsp.WEB_002dINF.jsp.start_jsp._jspService(start_jsp.java:59)
> 	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)
> 	at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
> 	at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
> 	at 
> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:704)
> 	at 
> org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:590)
> 	at 
> org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:510)
> 	at 
> org.apache.pluto.core.impl.PortletRequestDispatcherImpl.include(PortletRequestDispatcherImpl.java:65)
> 	at 
> org.apache.myfaces.context.portlet.PortletExternalContextImpl.dispatch(PortletExternalContextImpl.java:164)
> 	at 
> org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:195)
> 	at 
> org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:384)
> 	at 
> org.apache.myfaces.portlet.MyFacesGenericPortlet.nonFacesRequest(MyFacesGenericPortlet.java:322)
> 	at 
> org.apache.myfaces.portlet.MyFacesGenericPortlet.nonFacesRequest(MyFacesGenericPortlet.java:297)
> 	at 
> org.apache.myfaces.portlet.MyFacesGenericPortlet.facesRender(MyFacesGenericPortlet.java:379)
> 	at 
> org.apache.myfaces.portlet.MyFacesGenericPortlet.doView(MyFacesGenericPortlet.java:265)
> 	at javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:250)
> 	at javax.portlet.GenericPortlet.render(GenericPortlet.java:178)
> 	at org.apache.pluto.core.PortletServlet.dispatch(PortletServlet.java:218)
> 	at org.apache.pluto.core.PortletServlet.doPost(PortletServlet.java:163)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> 	at org.apache.pluto.core.PortletServlet.service(PortletServlet.java:153)
> 	at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
> 	at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
> 	at 
> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:704)
> 	at 
> org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:590)
> 	at 
> org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:510)
> 	at 
> org.apache.pluto.invoker.impl.PortletInvokerImpl.invoke(PortletInvokerImpl.java:120)
> 	at 
> org.apache.pluto.invoker.impl.PortletInvokerImpl.render(PortletInvokerImpl.java:73)
> 	at 
> org.apache.pluto.PortletContainerImpl.renderPortlet(PortletContainerImpl.java:119)
> 	at 
> org.apache.pluto.portalImpl.core.PortletContainerWrapperImpl.renderPortlet(PortletContainerWrapperImpl.java:70)
> 	at 
> org.apache.wsrp4j.producer.provider.pluto.driver.PortletInvokerImpl.invokeGetMarkup(PortletInvokerImpl.java:177)
> 	at 
> org.apache.wsrp4j.commons.producer.driver.WSRPEngine.getMarkup(WSRPEngine.java:758)
> 	at 
> org.apache.wsrp4j.commons.producer.binding.WSRPMarkupBindingImpl.getMarkup(WSRPMarkupBindingImpl.java:62)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 	at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:585)
> 	at 
> org.apache.axis.providers.java.RPCProvider.invokeMethod(RPCProvider.java:397)
> 	at 
> org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:186)
> 	at 
> org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:323)
> 	at 
> org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
> 	at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
> 	at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
> 	at org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:453)
> 	at org.apache.axis.server.AxisServer.invoke(AxisServer.java:281)
> 	at
> org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:699)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
> 	at 
> org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> 	at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
> 	at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
> 	at 
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
> 	at 
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
> 	at 
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
> 	at 
> org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
> 	at 
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
> 	at 
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
> 	at 
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
> 	at 
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
> 	at 
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
> 	at 
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
> 	at 
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
> 	at 
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
> 	at 
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> 	at 
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
> 	at 
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
> 	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
> 	at
> org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
> 	at 
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
> 	at 
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
> 	at 
> org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
> 	at 
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
> 	at java.lang.Thread.run(Thread.java:595)
> 
> 2006-07-31 14:54:38 ApplicationDispatcher[/google-portlet]
> Servlet.service() 
> for servlet GooglePortlet threw exception
> javax.faces.FacesException: javax.portlet.PortletException
> 	at 
> org.apache.myfaces.context.portlet.PortletExternalContextImpl.dispatch(PortletExternalContextImpl.java:175)
> 	at 
> org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:195)
> 	at 
> org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:384)
> 	at 
> org.apache.myfaces.portlet.MyFacesGenericPortlet.nonFacesRequest(MyFacesGenericPortlet.java:322)
> 	at 
> org.apache.myfaces.portlet.MyFacesGenericPortlet.nonFacesRequest(MyFacesGenericPortlet.java:297)
> 	at 
> org.apache.myfaces.portlet.MyFacesGenericPortlet.facesRender(MyFacesGenericPortlet.java:379)
> 	at 
> org.apache.myfaces.portlet.MyFacesGenericPortlet.doView(MyFacesGenericPortlet.java:265)
> 	at javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:250)
> 	at javax.portlet.GenericPortlet.render(GenericPortlet.java:178)
> 	at org.apache.pluto.core.PortletServlet.dispatch(PortletServlet.java:218)
> 	at org.apache.pluto.core.PortletServlet.doPost(PortletServlet.java:163)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> 	at org.apache.pluto.core.PortletServlet.service(PortletServlet.java:153)
> 	at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
> 	at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
> 	at 
> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:704)
> 	at 
> org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:590)
> 	at 
> org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:510)
> 	at 
> org.apache.pluto.invoker.impl.PortletInvokerImpl.invoke(PortletInvokerImpl.java:120)
> 	at 
> org.apache.pluto.invoker.impl.PortletInvokerImpl.render(PortletInvokerImpl.java:73)
> 	at 
> org.apache.pluto.PortletContainerImpl.renderPortlet(PortletContainerImpl.java:119)
> 	at 
> org.apache.pluto.portalImpl.core.PortletContainerWrapperImpl.renderPortlet(PortletContainerWrapperImpl.java:70)
> 	at 
> org.apache.wsrp4j.producer.provider.pluto.driver.PortletInvokerImpl.invokeGetMarkup(PortletInvokerImpl.java:177)
> 	at 
> org.apache.wsrp4j.commons.producer.driver.WSRPEngine.getMarkup(WSRPEngine.java:758)
> 	at 
> org.apache.wsrp4j.commons.producer.binding.WSRPMarkupBindingImpl.getMarkup(WSRPMarkupBindingImpl.java:62)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 	at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:585)
> 	at 
> org.apache.axis.providers.java.RPCProvider.invokeMethod(RPCProvider.java:397)
> 	at 
> org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:186)
> 	at 
> org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:323)
> 	at 
> org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
> 	at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
> 	at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
> 	at org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:453)
> 	at org.apache.axis.server.AxisServer.invoke(AxisServer.java:281)
> 	at
> org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:699)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
> 	at 
> org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> 	at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
> 	at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
> 	at 
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
> 	at 
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
> 	at 
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
> 	at 
> org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
> 	at 
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
> 	at 
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
> 	at 
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
> 	at 
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
> 	at 
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
> 	at 
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
> 	at 
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
> 	at 
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
> 	at 
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> 	at 
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
> 	at 
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
> 	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
> 	at
> org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
> 	at 
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
> 	at 
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
> 	at 
> org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
> 	at 
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
> 	at java.lang.Thread.run(Thread.java:595)
> Caused by: javax.portlet.PortletException
> 	at 
> org.apache.pluto.core.impl.PortletRequestDispatcherImpl.include(PortletRequestDispatcherImpl.java:76)
> 	at 
> org.apache.myfaces.context.portlet.PortletExternalContextImpl.dispatch(PortletExternalContextImpl.java:164)
> 	... 65 more
> Caused by: java.lang.IllegalArgumentException: ContentTypeList does not 
> contain a supported content type: application/soap+xml,
> 
> application/dime, multipart/related, text/*
> 	at 
> org.apache.myfaces.shared_impl.renderkit.html.HtmlRendererUtils.selectContentType(HtmlRendererUtils.java:1043)
> 	at 
> org.apache.myfaces.renderkit.html.HtmlRenderKitImpl.createResponseWriter(HtmlRenderKitImpl.java:126)
> 	at 
> javax.faces.webapp.UIComponentTag.setupResponseWriter(UIComponentTag.java:936)
> 	at javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:310)
> 	at org.apache.myfaces.taglib.core.ViewTag.doStartTag(ViewTag.java:70)
> 	at 
> org.apache.jsp.WEB_002dINF.jsp.start_jsp._jspx_meth_f_view_0(start_jsp.java:83)
> 	at
> org.apache.jsp.WEB_002dINF.jsp.start_jsp._jspService(start_jsp.java:59)
> 	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)
> 	at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
> 	at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
> 	at 
> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:704)
> 	at 
> org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:590)
> 	at 
> org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:510)
> 	at 
> org.apache.pluto.core.impl.PortletRequestDispatcherImpl.include(PortletRequestDispatcherImpl.java:65)
> 	... 66 more
> 
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/WSRP4J-%2B-JSF-Problem-tf2032805.html#a10870038
Sent from the Wsrp4J - User mailing list archive at Nabble.com.


Mime
View raw message