Just change the classloader order in the EAR and WAR modules properties for PARENT_LAST.
With myfaces.jar in the WEB-INF/lib of your application, WAS will load the myfaces implementation before the IBM one.
This works for me.
Rogerio
-----Original Message-----
From: fabio fornelli [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 20, 2005 9:05 AM
To: MyFaces Discussion
Subject: Re: Websphere 6.0 page navigation problem
Hi, we've had the same problem! it seems that Web sphere 6.0 ships with IBM's JSF distribution and probably it's in the server's boot classpath as well. We didn't manage to sort out the problem in a decent way. If you just want your web app to work you have to swap the jars in the server's lib (hope you can do that). Substitute myfaces.jar to ibm-jsf-impl.jar (check the name of this jar. I'm not sure about that) and start the server again. Obviously it's not a viable solution in a production environment but at least you can work around the problem in your test environment.
Hope this helps
cheers
Fabio
Khurram Ahmed wrote:
> MyFaces version: 1.1.1
> Tomact version: 5.0.27
>
> I have an application that was developed on tomcat 5.0.27 that refuses
> to work properly on websphere 6.0 i am able to access the opening page
> after logging however any subsequent attempts at navigation through a
> link menu in the application generates the following errors..............
>
> *Error Message: *
> *Error Code: *500
> *Target Servlet: *action
> *Error Stack: *
> java.lang.NullPointerException
> at
> com.ibm.websphere.product.WASProduct.listFileNames(WASProduct.java:2251)
> at
> com.ibm.websphere.product.WASProduct.listFileNames(WASProduct.java:2244)
> at
> com.ibm.websphere.product.WASProduct.basicGetProductNames(WASProduct.j
> ava:1467)
>
> at
> com.ibm.websphere.product.WASProduct.getProductNames(WASProduct.java:1
> 460)
>
> at
> com.ibm.websphere.product.WASProduct.basicGetProducts(WASProduct.java:
> 1429)
>
> at
> com.ibm.websphere.product.WASProduct.getProducts(WASProduct.java:1422)
> at
> com.ibm.websphere.product.WASProduct.getProductById(WASProduct.java:942)
> at
> com.ibm.websphere.product.WASProduct.productPresent(WASProduct.java:968)
> at
> _ibmjsp.secure.layouts._contentLayout._jspService(_contentLayout.java:
> 467)
>
> at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java:88)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
> at
> com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.
> java:1212)
>
> at
> com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWr
> apper.java:629)
>
> at
> com.ibm.wsspi.webcontainer.servlet.GenericServletWrapper.handleRequest
> (GenericServletWrapper.java:117)
>
> at
> com.ibm.ws.jsp.webcontainerext.JSPExtensionServletWrapper.handleReques
> t(JSPExtensionServletWrapper.java:171)
>
> at
> com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppR
> equestDispatcher.java:250)
>
> at
> org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.j
> ava:1070)
>
> at
> org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestPr
> ocessor.java:273)
>
> at
> org.apache.struts.tiles.TilesRequestProcessor.processTilesDefinition(T
> ilesRequestProcessor.java:253)
>
> at
> org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(Til
> esRequestProcessor.java:308)
>
> at
> org.apache.struts.action.RequestProcessor.process(RequestProcessor.jav
> a:279)
>
> at
> org.apache.struts.action.ActionServlet.process(ActionServlet.java:1486)
> at
> org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:510)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
> at
> com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.
> java:1212)
>
> at
> com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWr
> apper.java:629)
>
> at
> com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:2841)
> at
> com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:220)
> at
> com.ibm.ws.webcontainer.VirtualHost.handleRequest(VirtualHost.java:204)
> at
> com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:1
> 681)
>
> at
> com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java
> :77)
>
> at
> com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscriminat
> ion(HttpInboundLink.java:421)
>
> at
> com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformat
> ion(HttpInboundLink.java:367)
>
> at
> com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(Http
> ICLReadCallback.java:94)
>
> at
> com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueue
> Manager.java:548)
>
> at
> com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManage
> r.java(Compiled
> Code))
> at
> com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManage
> r.java:934)
>
> at
> com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManag
> er.java:1021)
>
> at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java(Compiled
> Code))
>
>
> any solutions or workarounds or hints about the reason for this error
"Essa mensagem é destinada exclusivamente ao seu destinatário e pode conter informações confidenciais, protegidas por sigilo profissional ou cuja divulgação seja proibida por lei. O uso não autorizado de tais
informações é proibido e está sujeito às penalidades cabíveis.
This message is intended exclusively for its addressee and may contain information that is confidential and protected by a professional privilege or whose disclosure is prohibited by law. Unauthorized use of such information is prohibited and subject to applicable penalties."
"Essa mensagem é destinada exclusivamente ao seu destinatário e pode
conter informações confidenciais, protegidas por sigilo profissional ou
cuja divulgação seja proibida por lei. O uso não autorizado de tais
informações é proibido e está sujeito às penalidades cabíveis.
This message is intended exclusively for its addressee and may contain
information that is confidential and protected by a professional
privilege or whose disclosure is prohibited by law. Unauthorized use of
such information is prohibited and subject to applicable penalties."

