title: 2 classes with same name in different jar's in portlet for WebSphere portal
body: <p>I am working on a portlet project and came across a problem with 2 classes with same name (including packages) in different .jar files. I have <code>com.ibm.ws.webcontainer.jar</code> as a default WebSphere library and <code>jsf-impl.jar</code> which is necessary for some JSF features.<br>
  The problem comes out when <code>PortletFacesContextFactoryImpl</code> class (another JSF class) tries to get access to <code>com.sun.faces.util.Util.parameterNonNull(Object arg)</code> method and I get <code>NoSuchMethodError</code>.<br>
  I tried setting classloader policy to PARENT_LAST, this doesn't help. I can't remove <code>com.ibm.ws.webcontainer.jar</code> from the server, but when I try to use Util class in my code, the only option is the class from it, not from <code>jsf-impl.jar</code>. <code>jsf-impl.jar</code> is included into Java Build Path.</p>
  
  <p>How can this problem be solved since I cannot alter <code>PortletFacesContextFactoryImpl</code> source and move .jar with wrong class?</p>