1 2 Previous Next 18 Replies Latest reply on Jan 28, 2012 7:26 AM by jmereaux

    a4j request error in Websphere portal 6.1

    yashu.here

      Hi I am trying to implement Ajax features in JSF 1.2 Portal ( Websphere portal running on WAS 7.0.0.9 ) application , bellow is the code

       

      <a4j:region id="region2" renderRegionOnly="true" >

               <h:inputText value="#{RichFacesBean.name}">

                                          <a4j:support event="onblur" reRender="output"/>

               </h:inputText>

               <h:outputText id="output" style="font-weight:bold" value="Typed Name 2: #{RichFacesBean.name}" />

      </a4j:region>

       

      I believe I have everything configured in my Web.xml as I could run any other RichFaces component successfully without Ajax support.

       

      But When I add Ajax support I am hitting the Error : Request Error, Status 404 Not found not getting anything back.

       

      Interestingly the same code same configuration is working fine in Websphere Application Server 7.0.0.9

       

      I am using RichFaces 3.3.3.Final version, Websphere Portal 6.1 on WAS 7.0.0.9.

       

      Any help is greatly appreciated.

       

      Thanks in advance

       



       


        • 1. a4j request error in Websphere portal 6.1
          prabhat.jha

          JBoss PortletBridge testing with portal servers besies JBoss Portal/GateIn/EPP is left to community. So first thing to verify would be to run your portlet on one of these servers to make sure you don't have anything in your code. 

           

          Do you see any error on server log?

          • 2. a4j request error in Websphere portal 6.1
            yashu.here

            I am using IBM Websphere potal and portletbridge, and without Ajax support I am even able to render Tree using  <rich:tree and <a4j:recursiveTreeNodesAdaptor without any problem.

            I hit the error only when I try to add ajax support to the component.

            Prabhat Jha wrote:

             

            JBoss PortletBridge testing with portal servers besies JBoss Portal/GateIn/EPP is left to community. So first thing to verify would be to run your portlet on one of these servers to make sure you don't have anything in your code. 

             

            Do you see any error on server log?

             

            My request is not even reaching server ( I guess ), as I don't see any server log.

            If I don't use

            <script>

            A4J.AJAX.onError = function(req, status, message){

            window.alert("Custom onError handler1 ->"+message);

            window.alert("Custom onError Request1 -> "+req);

            window.alert("Custom onError status ->"+status);

            }

            </script>

             

            I get Error Message : Error 404: EJPEI0088E: The resource #7_9U5KGQSVSI7QD0IMUOUDUM20G7 could not be found

             

            When I view source of the page before I hit Error "#7_9U5KGQSVSI7QD0IMUOUDUM20G7" refers to some

            <form id="viewns_7_9U5KGQSVSI7QD0IMUOUDUM20G7_:j_id_jsp_539724972_1"

             

            Which it uses across for referencing form related actions ( My guess )

             

            Thanks in Advance for help.

             


            • 3. a4j request error in Websphere portal 6.1
              yashu.here

              A Quick update,

               

              The same code without any modifications worked fine in Google chrome and Mozila Firefox, but I hit the same error when I use IE6,and 7.

              • 4. a4j request error in Websphere portal 6.1
                wesleyhales

                Yashavanth Kuntavalli wrote:

                 

                A Quick update,

                 

                The same code without any modifications worked fine in Google chrome and Mozila Firefox, but I hit the same error when I use IE6,and 7.

                Hmm, thiis sounds weird. We don't officially support Websphere but I know of quite a few people who are using the bridge with it.

                First, try accessing this JSF application as a servlet. Just change your URL to point to the servletContext/home.page with IE6/IE7 and see what happens.

                If you can render the page fine, it may be an issue with Websphere and IE.

                • 5. Re: a4j request error in Websphere portal 6.1
                  yashu.here

                  Thanks Wesley,

                   

                  My Observation :

                   

                  It works fine when I run in Websphere Application server ( Same code without any changes ) , but it fails in Websphere Portal Server.

                  and the difference is

                  in Websphere Portal : 'actionUrl':'/wps/myportal/!ut/p/c5/someNumber/#7_9U5KGQSVSI7QD0IMUOUDUM2022'

                  in Application Server : There is no such generated field  called  "actionUrl" ( I understand the reason for this )

                   

                  I still believe its something related to a4j because:

                   

                  1) Appending the form ID to actionUrl is done by ajax4jsf code, and It adds actionUrl to A4J.AJAX.Submit( ) script which gets generated by ajax4jsf.

                  2) FormID remains same for any of the browser ( ie Chrome, Mozila and IE )

                  3) The difference is in "actionUrl" parameter of A4J.AJAX.Submit( ) script method which is generated by ajax4jsf.

                   

                  If you could point me to the code which is responsible for generating A4J.AJAX.Submit( )  method, I'll try to fix the issue. I have built RichFaces 4.0.0.M5 source and trying to find out root cause

                   

                  This is Error in IE for Portal Webpage which uses Rich Tree and Ajax:

                   

                  debug[17:33:38,434]: Have Event [object Object] with properties: target: undefined, srcElement: [object], type: click

                  debug[17:33:38,465]: Query preparation for form 'viewns_7_9U5KGQSVS27QE0IEKIM9V300G7_:RFTreeTestForm' requested

                  debug[17:33:38,465]: Append hidden control viewns_7_9U5KGQSVS27QE0IEKIM9V300G7_:RFTreeTestForm with value [viewns_7_9U5KGQSVS27QE0IEKIM9V300G7_:RFTreeTestForm] and value attribute [viewns_7_9U5KGQSVS27QE0IEKIM9V300G7_:RFTreeTestForm]

                  debug[17:33:38,481]: Append hidden control viewns_7_9U5KGQSVS27QE0IEKIM9V300G7_:RFTreeTestForm:productTreeID:input with value [] and value attribute []

                  debug[17:33:38,496]: Append hidden control viewns_7_9U5KGQSVS27QE0IEKIM9V300G7_:RFTreeTestForm:modalPanelIDOpenedState with value [] and value attribute []

                  debug[17:33:38,512]: Append hidden control viewns_7_9U5KGQSVS27QE0IEKIM9V300G7_:RFTreeTestForm:modalPanelID2OpenedState with value [] and value attribute []

                  debug[17:33:38,527]: Append hidden control javax.faces.ViewState with value [j_id2] and value attribute [j_id2]

                  debug[17:33:38,543]: parameter ajaxSingle with value viewns_7_9U5KGQSVS27QE0IEKIM9V300G7_:RFTreeTestForm:productTreeID:productRecTreeID:0::productTreeNodeID

                  debug[17:33:38,559]: parameter viewns_7_9U5KGQSVS27QE0IEKIM9V300G7_:RFTreeTestForm:productTreeID:productRecTreeID:0::productTreeNodeIDAjaxExpanded with value true

                  debug[17:33:38,574]: parameter viewns_7_9U5KGQSVS27QE0IEKIM9V300G7_:RFTreeTestForm:productTreeID:productRecTreeID:0::productTreeNodeIDNodeExpanded with value true

                  debug[17:33:38,606]: Look up queue with default name

                  debug[17:33:38,621]: NEW AJAX REQUEST !!! with form: viewns_7_9U5KGQSVS27QE0IEKIM9V300G7_:RFTreeTestForm

                  debug[17:33:38,637]: Start XmlHttpRequest

                  debug[17:33:38,652]: Request state : 1

                  debug[17:33:38,668]: QueryString: AJAXREQUEST=viewns_7_9U5KGQSVS27QE0IEKIM9V300G7_%3ARFTreeTestForm%3Aj_id_jsp_239753000_5&viewns_7_9U5KGQSVS27QE0IEKIM9V300G7_%3ARFTreeTestForm=viewns_7_9U5KGQSVS27QE0IEKIM9V300G7_%3ARFTreeTestForm&viewns_7_9U5KGQSVS27QE0IEKIM9V300G7_%3ARFTreeTestForm%3AproductTreeID%3Ainput=&viewns_7_9U5KGQSVS27QE0IEKIM9V300G7_%3ARFTreeTestForm%3AmodalPanelIDOpenedState=&viewns_7_9U5KGQSVS27QE0IEKIM9V300G7_%3ARFTreeTestForm%3AmodalPanelID2OpenedState=&javax.faces.ViewState=j_id2&ajaxSingle=viewns_7_9U5KGQSVS27QE0IEKIM9V300G7_%3ARFTreeTestForm%3AproductTreeID%3AproductRecTreeID%3A0%3A%3AproductTreeNodeID&viewns_7_9U5KGQSVS27QE0IEKIM9V300G7_%3ARFTreeTestForm%3AproductTreeID%3AproductRecTreeID%3A0%3A%3AproductTreeNodeIDAjaxExpanded=true&viewns_7_9U5KGQSVS27QE0IEKIM9V300G7_%3ARFTreeTestForm%3AproductTreeID%3AproductRecTreeID%3A0%3A%3AproductTreeNodeIDNodeExpanded=true&

                  debug[17:33:39,184]: Request state : 2

                  debug[17:33:39,184]: Request state : 3

                  debug[17:33:39,199]: Request state : 4

                  debug[17:33:39,215]: Request end with state 4

                  error[17:33:39,215]: Request error, status : 404 Not Found

                  debug[17:33:39,215]: replace all page content with response

                  debug[17:33:39,231]: setup custom document.open method

                  debug[17:33:39,231]: call selectSingleNode for id= org.ajax4jsf.oncomplete

                  debug[17:33:39,231]: Processing updates finished, no oncomplete function to call

                   

                  Message was edited by: Yashavanth Kuntavalli

                  • 6. Re: a4j request error in Websphere portal 6.1
                    vedat

                     

                    Hi Yashavanth;

                     

                    did u get a4j work with ibm portal server  6.1 ?

                    • 7. Re: a4j request error in Websphere portal 6.1
                      yashu.here

                      No I used ibm ajax to make it working, but you need to overide A4J.AJAX.Submit() method by adding A4J.AJAX.Submit() { } this under javascript.

                      Please let me know if this works for you.

                      • 8. Re: a4j request error in Websphere portal 6.1
                        vedat

                        Hi Yashavanth;

                         

                        finaly i got it working. btw you do not need to override a4j.submit mothod i guess what you mean, i faced the same problem, A4J generates a request with continued "/" suffix and ibm portal bridge does not process it, but ibm portal bridge

                         

                        anyway here is the result (note: i versions are important, i faced different problems with different versions of bridge and jsf jars.)

                        -------------------------------------------------------------------------

                        exact jar versions are

                        jsf-api-1.2.12

                        jsf-impl-1.2.12

                        richfaces-api-3.3.0.GA

                        richfaces-impl-3.3.0.GA

                        richfaces-ui-3.3.0.GA

                        portletbridge-impl-2.1.0.CR1 (jboss bridge)

                        portletbridge-api-2.1.0.CR1

                        jsf-facelets-1.1.9

                         

                        -----------------------------------------------------------------------------

                        configuration files are atteched

                         

                        -------------------------------------------------------------------

                         

                        with these configuration you will face 2 issues

                        1-) richfaces resources files will not be loaded

                        Solution: preEncodeBegin method in HeaderResourceRenderBase class (richfaces) is commented out. undo comment out, compile and put it into jar file again

                        2-) you will get nullPointer exception when try to use jsf 1.2, disable JsfJsResourcePhaseListener in jsf jar file

                        • 9. a4j request error in Websphere portal 6.1
                          yashu.here

                          Thanks fo your reply,

                          just to be clear on this did you make it working with Websphere portal and IBM Portlet bridge ?

                          And one more interesting fact is that "Everything works just fine in other browsers ie Chrome and Mozilla including Tree performance"


                          • 10. Re: a4j request error in Websphere portal 6.1
                            vedat

                            Hi;

                             

                            to able to use  richfaces in portal enviroment jboss portlet bridge has to be used. you can not use IBM portlet bridge because, jboss portlet bridge includes a AjaxViewHandler and process requests accrordignly if it is ajax request or an ordinay http request. for portal yes i am using IBM portal server

                             

                            i have used just a few richfaces components with a4j actions and it worked with ie and firefox. but i did not test all components

                            • 11. Re: a4j request error in Websphere portal 6.1
                              jmereaux

                              Hi

                               

                              Sorry for bringing this old topic up, but I am also trying to develop WebSphere Portal (V7) portlets embedding richfaces components.

                               

                              I managed to get a very simple portlet working with the configuration you described above.

                              I then tried to bring the <rich:fileUpload> component into the game, unfortunately with no luck.

                               

                              The file upload component is rendered correctly and I am able to select a file to upload.

                              But as soon as I validate the upload, I get an exception in the logs stating that "No content type has been set"

                              Does it ring the bell to someone here?

                               

                              Here is the full stack trace observed in the logs:

                               

                              [1/23/12 12:41:41:822 CET] 00000053 servlet   
                              E com.ibm.ws.webcontainer.servlet.ServletWrapper service SRVE0068E: Uncaught exception created in one of the service methods of the servlet ActorManagement in application PA_CTSP. Excepti
                              
                              on created : javax.servlet.ServletException: javax.portlet.PortletException: Error process faces request
                                  
                              at com.ibm.ws.portletcontainer.invoker.impl.PortletServlet.doDispatch(PortletServlet.java:361)
                                  
                              at com.ibm.ws.portletcontainer.invoker.impl.PortletServletCollaboratorChainImpl.doCollaborator(PortletServletCollaboratorChainImpl.java:82)
                                  
                              at com.ibm.isclite.container.collaborator.PortletServletCollaborator.doDispatch(PortletServletCollaborator.java:143)
                                  
                              at com.ibm.ws.portletcontainer.invoker.impl.PortletServletCollaboratorChainImpl.doCollaborator(PortletServletCollaboratorChainImpl.java:74)
                                  
                              at com.ibm.ws.portletcontainer.rrd.RRDServerPortletServletCollaborator.doDispatch(RRDServerPortletServletCollaborator.java:60)
                                  
                              at com.ibm.ws.portletcontainer.invoker.impl.PortletServletCollaboratorChainImpl.doCollaborator(PortletServletCollaboratorChainImpl.java:74)
                                  
                              at com.ibm.ws.portletcontainer.cache.CacheCollaborator.doDispatch(CacheCollaborator.java:74)
                                  
                              at com.ibm.ws.portletcontainer.invoker.impl.PortletServletCollaboratorChainImpl.doCollaborator(PortletServletCollaboratorChainImpl.java:74)
                                  
                              at com.ibm.wps.pe.pc.waspc.core.impl.PortletServletCollaboratorImpl.doDispatch(PortletServletCollaboratorImpl.java:112)
                                  
                              at com.ibm.ws.portletcontainer.invoker.impl.PortletServletCollaboratorChainImpl.doCollaborator(PortletServletCollaboratorChainImpl.java:74)
                                  
                              at com.ibm.ws.portletcontainer.invoker.impl.PortletServlet.dispatch(PortletServlet.java:208)
                                  
                              at com.ibm.ws.portletcontainer.invoker.impl.PortletServlet.service(PortletServlet.java:165)
                                  
                              at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
                                  
                              at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1655)
                                  
                              at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1595)
                                  
                              at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:131)
                                  
                              at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:178)
                                  
                              at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
                                  
                              at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:390)
                                  
                              at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:517)
                                  
                              at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:184)
                                  
                              at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:116)
                                  
                              at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:77)
                                  
                              at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:908)
                                  
                              at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:932)
                                  
                              at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:500)
                                  
                              at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:178)
                                  
                              at com.ibm.wsspi.webcontainer.servlet.GenericServletWrapper.handleRequest(GenericServletWrapper.java:121)
                                  
                              at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:341)
                                  
                              at com.ibm.ws.portletcontainer.invoker.impl.PortletInvokerImpl.invoke(PortletInvokerImpl.java:212)
                                  
                              at com.ibm.ws.portletcontainer.invoker.impl.PortletInvokerCollaboratorChainImpl.doCollaboratorServeResource(PortletInvokerCollaboratorChainImpl.java:98)
                                  
                              at com.ibm.ws.portletcontainer.invoker.impl.PortletInvokerCollaboratorChainImpl.doCollaborator(PortletInvokerCollaboratorChainImpl.java:54)
                                  
                              at com.ibm.ws.portletcontainer.cache.PortletInvokerCacheCollaborator.doServeResource(PortletInvokerCacheCollaborator.java:75)
                                  
                              at com.ibm.ws.portletcontainer.invoker.impl.PortletInvokerCollaboratorChainImpl.doCollaboratorServeResource(PortletInvokerCollaboratorChainImpl.java:92)
                                  
                              at com.ibm.ws.portletcontainer.invoker.impl.PortletInvokerCollaboratorChainImpl.doCollaborator(PortletInvokerCollaboratorChainImpl.java:54)
                                  
                              at com.ibm.ws.portletcontainer.ext.PortletInvokerPerformanceCollaborator.invoke(PortletInvokerPerformanceCollaborator.java:313)
                                  
                              at com.ibm.ws.portletcontainer.ext.PortletInvokerPerformanceCollaborator.doInvoke(PortletInvokerPerformanceCollaborator.java:101)
                                  
                              at com.ibm.ws.portletcontainer.ext.PortletInvokerPerformanceCollaborator.invokePMI(PortletInvokerPerformanceCollaborator.java:163)
                                  
                              at com.ibm.ws.portletcontainer.ext.PortletInvokerPerformanceCollaborator.doInvoke(PortletInvokerPerformanceCollaborator.java:91)
                                  
                              at com.ibm.ws.portletcontainer.ext.PortletInvokerPerformanceCollaborator.doServeResource(PortletInvokerPerformanceCollaborator.java:349)
                                  
                              at com.ibm.ws.portletcontainer.invoker.impl.PortletInvokerCollaboratorChainImpl.doCollaboratorServeResource(PortletInvokerCollaboratorChainImpl.java:92)
                                  
                              at com.ibm.ws.portletcontainer.invoker.impl.PortletInvokerCollaboratorChainImpl.doCollaborator(PortletInvokerCollaboratorChainImpl.java:54)
                                  
                              at com.ibm.ws.portletcontainer.invoker.impl.PortletInvokerImpl.serveResource(PortletInvokerImpl.java:135)
                                  
                              at com.ibm.ws.portletcontainer.PortletContainerImpl.doServeResource(PortletContainerImpl.java:415)
                                  
                              at com.ibm.ws.portletcontainer.ResourcePortletContainerInvokerCollaboratorChainImpl.doCollaborator(ResourcePortletContainerInvokerCollaboratorChainImpl.java:62)
                                  
                              at com.ibm.ws.portletcontainer.cache.CacheInvokerCollaborator.doServeResource(CacheInvokerCollaborator.java:101)
                                  
                              at com.ibm.ws.portletcontainer.ResourcePortletContainerInvokerCollaboratorChainImpl.doCollaborator(ResourcePortletContainerInvokerCollaboratorChainImpl.java:53)
                                  
                              at com.ibm.ws.portletcontainer.PortletContainerImpl.servePortletResource(PortletContainerImpl.java:386)
                                  
                              at com.ibm.ws.portletcontainer.pcinvoker.PortletInvokerImpl$4.run(PortletInvokerImpl.java:185)
                                  
                              at java.security.AccessController.doPrivileged(AccessController.java:251)
                                  
                              at com.ibm.ws.portletcontainer.pcinvoker.PortletInvokerImpl.invokeServeResource(PortletInvokerImpl.java:181)
                                  
                              at com.ibm.wps.pe.pc.waspc.core.impl.PortletInvokerImpl$2.invoke(PortletInvokerImpl.java:107)
                                  
                              at com.ibm.wps.pe.pc.waspc.core.impl.PortletInvokerImpl.invoke(PortletInvokerImpl.java:182)
                                  
                              at com.ibm.wps.pe.pc.waspc.core.impl.PortletInvokerImpl.invokeServeResource(PortletInvokerImpl.java:104)
                                  
                              at com.ibm.wps.pe.pc.waspc.PortletContainerImpl.servePortletResource(PortletContainerImpl.java:174)
                                  
                              at com.ibm.wps.pe.pc.PortletContainerImpl.servePortletResource(PortletContainerImpl.java:150)
                                  
                              at com.ibm.wps.engine.extension.render.ResourceServingRenderer.render(ResourceServingRenderer.java:115)
                                  
                              at com.ibm.wps.engine.extension.render.ResourceServingRenderer.render(ResourceServingRenderer.java:84)
                                  
                              at com.ibm.wps.engine.phases.WPResourceRenderPhase.processRendering(WPResourceRenderPhase.java:139)
                                  
                              at com.ibm.wps.engine.phases.WPResourceRenderPhase.processRendering(WPResourceRenderPhase.java:104)
                                  
                              at com.ibm.wps.engine.phases.WPBaseRenderPhase.execute(WPBaseRenderPhase.java:230)
                                  
                              at com.ibm.wps.state.phases.AbstractRenderPhase.next(AbstractRenderPhase.java:106)
                                  
                              at com.ibm.wps.engine.phases.WPAbstractRenderPhase.next(WPAbstractRenderPhase.java:100)
                                  
                              at com.ibm.wps.engine.phases.WPResourceRenderPhase.next(WPResourceRenderPhase.java:213)
                                  
                              at com.ibm.wps.engine.Servlet.callPortal(Servlet.java:955)
                                  
                              at com.ibm.wps.engine.Servlet.doGet(Servlet.java:677)
                                  
                              at com.ibm.wps.engine.Servlet.doPost(Servlet.java:984)
                                  
                              at javax.servlet.http.HttpServlet.service(HttpServlet.java:738)
                                  
                              at com.ibm.wps.engine.Servlet.doFilter(Servlet.java:1429)
                                  
                              at com.ibm.wps.resolver.servlet.ContentHandlerCleanup.doFilter(ContentHandlerCleanup.java:672)
                                  
                              at com.ibm.wps.resolver.servlet.AbstractFilter.doFilter(AbstractFilter.java:93)
                                  
                              at com.ibm.wps.engine.Servlet.service(Servlet.java:1417)
                                  
                              at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1655)
                                  
                              at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1595)
                                  
                              at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:131)
                                  
                              at com.ibm.wps.engine.ExtensionFilter$ExtendedFilterChain.doFilter(ExtensionFilter.java:91)
                                  
                              at com.ibm.wps.engine.ExtensionFilter.doFilter(ExtensionFilter.java:178)
                                  
                              at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:188)
                                  
                              at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:116)
                                  
                              at com.ibm.wps.engine.ExtendedLocaleFilter.doFilter(ExtendedLocaleFilter.java:113)
                                  
                              at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:188)
                                  
                              at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:116)
                                  
                              at com.ibm.wps.resolver.friendly.servlet.FriendlySelectionFilter.doFilter(FriendlySelectionFilter.java:191)
                                  
                              at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:188)
                                  
                              at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:116)
                                  
                              at com.ibm.wps.mappingurl.impl.URLAnalyzer.doFilter(URLAnalyzer.java:412)
                                  
                              at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:188)
                                  
                              at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:116)
                                  
                              at com.ibm.wps.engine.VirtualPortalFilter.doFilter(VirtualPortalFilter.java:88)
                                  
                              at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:188)
                                  
                              at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:116)
                                  
                              at com.ibm.wps.state.filter.StateCleanup.doFilter(StateCleanup.java:94)
                                  
                              at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:188)
                                  
                              at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:116)
                                  
                              at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:77)
                                  
                              at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:908)
                                  
                              at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:932)
                                  
                              at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:500)
                                  
                              at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:178)
                                  
                              at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3826)
                                  
                              at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:276)
                                  
                              at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:931)
                                  
                              at com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1583)
                                  
                              at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:186)
                                  
                              at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:455)
                                  
                              at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:384)
                                  
                              at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:272)
                                  
                              at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:214)
                                  
                              at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:113)
                                  
                              at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
                                  
                              at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
                                  
                              at com.ibm.io.async.AsyncChannelFuture$1.run(AsyncChannelFuture.java:205)
                                  
                              at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1550)
                              
                              Caused by: javax.portlet.PortletException: Error process faces request
                                  
                              at javax.portlet.faces.GenericFacesPortlet.serveResource(GenericFacesPortlet.java:543)
                                  
                              at com.ibm.ws.portletcontainer.invoker.impl.PortletFilterChainImpl.doFilter(PortletFilterChainImpl.java:153)
                                  
                              at com.ibm.wps.engine.el.init.AttributeCopyFilter.doFilter(AttributeCopyFilter.java:146)
                                  
                              at com.ibm.ws.portletcontainer.invoker.impl.PortletFilterChainImpl.doFilter(PortletFilterChainImpl.java:146)
                                  
                              at com.ibm.wps.resolver.iwidget.filter.IWidgetPortletFilter.doFilter(IWidgetPortletFilter.java:81)
                                  
                              at com.ibm.ws.portletcontainer.invoker.impl.PortletFilterChainImpl.doFilter(PortletFilterChainImpl.java:146)
                                  
                              at com.ibm.wps.pe.pc.waspc.plm.GlobalPortletLoadMonitoringFilter.doFilter(GlobalPortletLoadMonitoringFilter.java:173)
                                  
                              at com.ibm.ws.portletcontainer.invoker.impl.PortletFilterChainImpl.doFilter(PortletFilterChainImpl.java:146)
                                  
                              at com.ibm.ws.portletcontainer.invoker.impl.PortletServlet.doDispatch(PortletServlet.java:545)
                                  
                              at com.ibm.ws.portletcontainer.invoker.impl.PortletServlet.doDispatch(PortletServlet.java:332)
                                  
                              ... 112 more
                              
                              Caused by: javax.portlet.faces.BridgeException: java.lang.IllegalStateException: No content type set.
                                  
                              at org.jboss.portletbridge.richfaces.RichFacesStrategy.finishResponse(RichFacesStrategy.java:178)
                                  
                              at org.jboss.portletbridge.richfaces.RichFacesStrategy.afterResourceRequest(RichFacesStrategy.java:266)
                                  
                              at org.jboss.portletbridge.BridgeStrategyWrapper.afterResourceRequest(BridgeStrategyWrapper.java:133)
                                  
                              at org.jboss.portletbridge.AjaxPortletBridge.doFacesRequest(AjaxPortletBridge.java:840)
                                  
                              at javax.portlet.faces.GenericFacesPortlet.serveResource(GenericFacesPortlet.java:541)
                                  
                              ... 121 more
                              
                              Caused by: java.lang.IllegalStateException: No content type set.
                                  
                              at com.ibm.ws.portletcontainer.core.impl.MimeResponseImpl.getWriter(MimeResponseImpl.java:114)
                                  
                              at org.jboss.portletbridge.richfaces.PortletXMLFilter.writeContent(PortletXMLFilter.java:104)
                                  
                              at org.jboss.portletbridge.richfaces.RichFacesStrategy.writeAjaxContent(RichFacesStrategy.java:185)
                                  
                              at org.jboss.portletbridge.richfaces.RichFacesStrategy.finishResponse(RichFacesStrategy.java:173)
                                  
                              ... 125 more
                              
                              
                              

                               

                              Thanks in advance for your help.

                              • 12. Re: a4j request error in Websphere portal 6.1
                                kenfinni

                                I don't recall anything specific to that message, but given the root stack trace it may be a problem with WebSphere Portal as the exception is thrown from within the Portlet Container itself and not the Portlet Bridge.

                                 

                                Could you try running the same Portlet on GateIn to see if you experience the same problem?

                                 

                                Thanks

                                Ken

                                • 13. Re: a4j request error in Websphere portal 6.1
                                  yashu.here

                                  RichFaces resources will not be loaded into your jsp in Websphere portal environment, so you have to add include tags specifically for those resources, css and stylesheets.

                                  Example :

                                   

                                  <script

                                                      src="#{facesContext.externalContext.requestContextPath}/org/richfaces/rfResorg.ajax4jsf.javascript.AjaxScript"

                                                      type="text/javascript"></script>

                                   

                                  and an entry in Web.xml

                                   

                                  <context-param>

                                      <param-name>org.ajax4jsf.RESOURCE_URI_PREFIX</param-name>

                                      <param-value>rfRes</param-value>

                                    </context-param>

                                   

                                  Please let me know if you need more info.

                                  • 14. Re: a4j request error in Websphere portal 6.1
                                    jmereaux

                                    Thanks for your answers.

                                     

                                    @Ken: I am afraid I don't have any installation of Gatein at hand. As I am a bit in a hurry, I don't really think that testing on Gatein is an option.

                                    Anyway, I will try to find some time to install it and try to run my portlet on it.

                                     

                                    @Yashavanth: I tried to follow your recommendations, but I still get the same exception in the logs when submitting the upload.

                                    Apart from that, the richfaces components are succesfully rendered (I've just tested the rich:datatable component which renders without any problem with the correct look and feel)

                                    It seems I only experience problems with the fileupload component.

                                    For the record, I am developing with Rational Software Architect 8.0.4 and deploying on a WebSphere Portal 7.0.0 (with WAS 7.0.0.11 underneath)

                                     

                                    Any other ideas?

                                     

                                    Thanks again for your help

                                    1 2 Previous Next