WebSphere Application Server & Liberty

WebSphere Application Server & Liberty

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  Is running JSF 1.0 apps on WAS 7.0 even possible

    Posted Wed August 11, 2010 10:37 AM
    Is running JSF 1.0 apps on WAS 7.0 even possible

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

    Hi everyone,
    I need some help on the following.
    Our current application version is developed in RAD 6.0 and running on WAS 6.0.2 (which includes embedded JSF 1.0).
    We are migrating to RAD 7.5 and running on WAS 7.0 (which includes embedded JSF 1.2), but we had not intended on recompiling our applications to JDK 6 right now (we are still compiling at JDK 1.4 so we can run through a transition period where we can run on both WAS 6 and WAS 7 with the same builds).
    When we ran our unmodified JSF 1.0 applications on WAS 7.0 we received the exception
    Exception created : java.lang.NoSuchMethodError: com.sun.faces.util.Util.verifyFactoriesAndInitDefaultRenderKit(Ljavax/servlet/ServletContext;)V
    at com.ibm.faces.context.MultipartFacesContextFactoryImpl.getFacesContext(MultipartFacesContextFactoryImpl.java:64)
    Based on searching the Internet (including developer works), we followed the suggestion to switch the application classloading option from parent_first to parent_last, but we continued to get the same exception.

    We then tried to add the ws-jsf.jar and jsf-api.jar from the WAS 6.0 library inside our application (tried a few different locations – in the EAR and referenced by Manifest.mf , and also in the WAR WEB-INF/lib), and continued to get the same exception.
    At that point (out of frustration) we went to the admin console to select the “MyFaces” JSF instead of the “Sun” JSF to see what would happen, and received the error that we were trying to run with a different implementation of JSF than was compiled into the application, so we have switched the selection back to “Sun”, but we are out of ideas as to how we can get our JSF 1.0 apps to run on WAS 7.0.
    Is running JSF 1.0 apps on WAS 7.0 even possible, or do we need to upgrade to a different JSF version? If we upgrade JSF would our apps still run on WAS 6.0.2?

    Thanks
    Kashmira

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

    Posted By: mira_pradhan at Jul 28 2009 7:49PM


  • 2.  Is running JSF 1.0 apps on WAS 7.0 even possible

    Posted Wed August 11, 2010 10:45 AM
    hmmm

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

    I am also eager to get this answer but I think upgrading to 1.2 will not hurt your application at all rather it will give you new features and for WAS 6 there might be some patch to make 1.2 work on it.

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

    Posted By: faisal.taimoor at Jul 29 2009 6:43AM


  • 3.  Is running JSF 1.0 apps on WAS 7.0 even possible

    Posted Wed August 11, 2010 10:55 AM
    I would think this would indicate that the 1.2 jar files are still being accessed. Did you make sure the classloader policy was set properly to pick up the ones you want?

    I would think you could do the same thing as if you needed a particular version of xerces other than what is shipped/used by WSAS

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

    Posted By: cathy at Jul 30 2009 5:34PM


  • 4.  Is running JSF 1.0 apps on WAS 7.0 even possible

    Posted Fri August 27, 2010 04:03 PM

    Hi,


    The challenge is that WAS has to run JSF at the level required by it's associated JEE specification level that it supports and you can't choose lower levels. Parent last doesn't work because you apparantly have conflicts between your current versions and what WAS ships and supports.


    Take a look at thsi website www-01.ibm.com/support/docview.wss?rs=18... On the first pdf on the first page there is information on JSF migration.