Topic
2 replies Latest Post - ‏2012-06-22T07:20:51Z by diegoloro
diegoloro
diegoloro
3 Posts
ACCEPTED ANSWER

Pinned topic OSGI WAB - Errors using SUN JSF & PRIMEFACES

‏2012-06-21T08:50:54Z |
Hi all,

I'm using WAS 8.5.
My WAB is deployed in OSGI internal repo using SUN JSF api and PRIMEFACES as implementation.
This is the WAB manifest:

Manifest-Version: 1.0 Bundle-ManifestVersion: 2 Bundle-Name: SBWeb Bundle-SymbolicName: SBWeb Bundle-Version: 1.0.0 Bundle-ClassPath: ., WEB-INF/classes, WEB-INF/lib/cupertino-1.0.1.jar, WEB-INF/lib/javax.faces-2.1.7.jar, WEB-INF/lib/primefaces-3.3.jar Web-ContextPath: /SB Import-Package: org.osgi.framework, com.cadit.sb.interfaces, com.cadit.sb.beans, com.cadit.sb.console.util, com.cadit.sb.console.beans, com.cadit.sb.console.interfaces, javax.el, javax.servlet, javax.servlet.annotation, javax.servlet.http, javax.servlet.jsp, javax.servlet.jsp.el, javax.servlet.jsp.tagext


When I start the BLA containing my WAB I get this erros:
1) E Both MyFaces and the RI are on your classpath. Please make sure to use only one of the two JSF-implementations.
2) E An error occured while initializing MyFaces: Class org.primefaces.application.PrimeResourceHandler is no javax.faces.application.ResourceHandler
3) E Critical error during deployment: com.sun.faces.config.ConfigurationException: java.util.concurrent.ExecutionException: javax.faces.FacesException: java.io.IOException: java.net.URISyntaxException: Illegal character in opaque part at index 20: jar:file:/C:/Program Files/IBM/WebSphere/AppServer/profiles/AppSrv01
expandedBundles/SBWeb_1.0.0.jar/WEB-INF/lib/primefaces-3.3.jar!/META-INF/faces-config.xml

I think the real problem is that WAS loads MYFACES instead my SUN/Primefaces libraries.
How can I force PARENT LAST behavior?
I think that in OSGI PARENT LAST is implicit, but I see that libraries in WAB Bundle-ClassPath are ignored...

Any idea?
Thank's a lot for your help.
Diego
Updated on 2012-06-22T07:20:51Z at 2012-06-22T07:20:51Z by diegoloro
  • diegoloro
    diegoloro
    3 Posts
    ACCEPTED ANSWER

    Re: OSGI WAB - Errors using SUN JSF & PRIMEFACES

    ‏2012-06-22T07:14:37Z  in response to diegoloro
    I attach a simplified set of files, if someone want to try them and say to me what's going wrong.

    Thanks for help.
    Diego

    Attachments

    • diegoloro
      diegoloro
      3 Posts
      ACCEPTED ANSWER

      Re: OSGI WAB - Errors using SUN JSF & PRIMEFACES

      ‏2012-06-22T07:20:51Z  in response to diegoloro
      Sorry,
      I uploaded the wrong ZIP.
      This is the right one, inside there are:
      • 2 bundles to put into Internal repo
      • 1 eba

      Thanks,
      Diego

      Attachments