Topic
  • 4 replies
  • Latest Post - ‏2011-05-19T08:32:39Z by SystemAdmin
SystemAdmin
SystemAdmin
462 Posts

Pinned topic Trying, again, to use Mojarra on WAS 8 (needed for Primefaces)

‏2011-05-18T14:13:45Z |
Hello,
I'd like to deploy a PrimeFaces app on WAS8. I tried it some months ago but finally gave up. As I think PrimeFaces will not work with MyFaces I'm trying to use Mojarra into WAS8. I've read the docs and previous posts on how to use an alternative JSF2 implementation with WAS 8, but none of them states a working procesure to get it. I am now trying it again hoping that new WAS 8 final beta might make it. So far I am doing:
  • Creating a shared library (isolated) and adding there the 2 Mojarra jar files (also tried with Primefaces.jar here)
  • adding this shared library to the war application. Don't know if to the application or the war module. I've tried all options anyway.

I sometimes see in the log that Mojarra is being used (if I add Primefaces to the shared library) but then primefaces classes are not found and i get Classloading exceptions.

Anybody has put to work any application using Primefaces on WAS 8? Any ideas on how to get this? I don't mind if it can be done using Mojarra or with builtin MyFaces 2.

Thanks for any help/directions,
Ignacio
Updated on 2011-05-19T08:32:39Z at 2011-05-19T08:32:39Z by SystemAdmin
  • rdean400
    rdean400
    3 Posts

    Re: Trying, again, to use Mojarra on WAS 8 (needed for Primefaces)

    ‏2011-05-18T22:08:32Z  
    I don't have a WAS8 instance handy to test against, but I think you might need to select Mojarra/Sun RI 1.2 as the JSF implementation in order for this to work.
  • SystemAdmin
    SystemAdmin
    462 Posts

    Re: Trying, again, to use Mojarra on WAS 8 (needed for Primefaces)

    ‏2011-05-19T07:12:35Z  
    • rdean400
    • ‏2011-05-18T22:08:32Z
    I don't have a WAS8 instance handy to test against, but I think you might need to select Mojarra/Sun RI 1.2 as the JSF implementation in order for this to work.
    Thanks,
    I've tried it but in this thread it states the regular MyFaces should be set. I've tested both confs. anyway and no success.

    Ignacio
  • SystemAdmin
    SystemAdmin
    462 Posts

    Re: Trying, again, to use Mojarra on WAS 8 (needed for Primefaces)

    ‏2011-05-19T07:13:21Z  
    Thanks,
    I've tried it but in this thread it states the regular MyFaces should be set. I've tested both confs. anyway and no success.

    Ignacio
    https://www.ibm.com/developerworks/forums/thread.jspa?messageID=14532308&#14532308
  • SystemAdmin
    SystemAdmin
    462 Posts

    Re: Trying, again, to use Mojarra on WAS 8 (needed for Primefaces)

    ‏2011-05-19T08:32:39Z  
    https://www.ibm.com/developerworks/forums/thread.jspa?messageID=14532308&#14532308
    Hello,
    I seem to have managed to put it to work, but I still don't know if WAS is using MyFaces or Mojarra. The PrimeFaces demo app is running ok but I get this exception in the startup process (even though that component, Carrousel, is anyway working fine). I hope this is no big deal but I'd like to fix it:
    5/19/11 10:21:43:459 CEST 00000008 ApplicationMg A WSVR0200I: Starting application: prime-showcase-1_0_0-SNAPSHOT_WAS_war
    5/19/11 10:21:43:459 CEST 00000008 ApplicationMg A WSVR0203I: Application: prime-showcase-1_0_0-SNAPSHOT_WAS_war Application build level: 1.0.0-SNAPSHOT
    5/19/11 10:21:43:921 CEST 00000008 annotation W com.ibm.ws.webcontainer.annotation.WASAnnotationHelper collectClasses SRVE8000W: Skipped class that failed to initialize for annotation scanning.
    java.lang.ClassNotFoundException: org.primefaces.examples.view.CarouselBean
    at java.lang.Class.forNameImpl(Native Method)
    at java.lang.Class.forName(Class.java:166)
    at com.ibm.ws.webcontainer.annotation.WASAnnotationHelper.loadClass(WASAnnotationHelper.java:745)
    at com.ibm.ws.webcontainer.annotation.WASAnnotationHelper.collectClasses(WASAnnotationHelper.java:186)
    at com.ibm.ws.webcontainer.annotation.WASAnnotationHelper.<init>(WASAnnotationHelper.java:141)
    at com.ibm.ws.webcontainer.annotation.WASAnnotationHelperManager.getAnnotationHelper(WASAnnotationHelperManager.java:63)
    at com.ibm.ws.webcontainer.metadata.WebMetaDataFactory.handOffReferenceData(WebMetaDataFactory.java:450)
    at com.ibm.ws.webcontainer.metadata.WebMetaDataFactory.createMetaData(WebMetaDataFactory.java:423)
    at com.ibm.ws.runtime.component.MetaDataMgrImpl.createMetaDataFromFactories(MetaDataMgrImpl.java:185)
    at com.ibm.ws.runtime.component.MetaDataMgrImpl.createMetaData(MetaDataMgrImpl.java:342)
    at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:628)
    at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:968)
    at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:729)
    at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:2125)
    at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:444)
    at com.ibm.ws.runtime.component.CompositionUnitImpl.start(CompositionUnitImpl.java:123)
    at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:387)
    at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.access$500(CompositionUnitMgrImpl.java:115)
    at com.ibm.ws.runtime.component.CompositionUnitMgrImpl$CUInitializer.run(CompositionUnitMgrImpl.java:993)
    at com.ibm.wsspi.runtime.component.WsComponentImpl$_AsynchInitializer.run(WsComponentImpl.java:349)
    at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1620)

    thanks,
    Ignacio