Ok. I think I understand what you are saying. So in order for this to work, I need a Primefaces assembly that uses JSF 2.0 instead of JSF 2.1? Example, instead of using Primefaces 3.3.1 that uses JSF 2.1 I need to use Primefaces2.x or whatever that uses JSF 2.0?

On 06/18/2012 11:06 PM, Ivan wrote:
Right, as we found that JSF API and its implementation may not work correctly if we separate them as two bundles, so finally we bundle them in one jar file, and Geronimo now uses 2.0.9.1, which means the api version is 2.0.*

2012/6/19 Forrest Xia <[email protected] <mailto:[email protected]>>

    You need to rebundle org.primefaces_3.3.1 to make it depends on
    javax.faces <= 2.0, otherwise, you need to figure out how to run
    JSF 2.1 impl of myfaces in the geronimo first, then use your
    application by depending on it.

    For JSF 2.1 impl of myfaces, refer to the open jira GERONIMO-6267,
    it's currently not supported by Geronimo.


    On Tue, Jun 19, 2012 at 10:06 AM, Russell Collins
    <[email protected]
    <mailto:[email protected]>> wrote:

        Ok maybe I need to explain a little better.  Primefaces is
        basically a component library that sits on top of a JSF
        implementation similar to Apache MyFaces Tomahawk.  In
        Geronimo, the JSF implementation is MyFaces.  Primefaces would
        not work at all if it did not have a JSF implementation
        (MyFaces, Mojorra).

        I have installed the Primefaces jar file in Geronimo
        successfully.  I am now just trying to references this
        component library that has already been installed.  I hope
        that clears up what I am trying to do.

        On 06/18/2012 08:28 PM, Ivan wrote:
        Currently, with Geronimo 3.0-beta, the version shipped from
        MyFaces is 2.0.9.1, so it could not match the requirement for
        primefaces [2.1.0,3.0.0)

        2012/6/19 Russell Collins <[email protected]
        <mailto:[email protected]>>

            I am trying to add Primefaces to the Geronimo
            Installation and then reference that Primefaces Jar in my
            war file.  However, when I do this, I get an error that says

            org.osgi.framework.BundleException: The bundle
            "org.primefaces_3.3.1 [377]" could not be resolved.
            Reason: Missing Constraint: Import-Package: javax.faces;
            version="[2.1.0,3.0.0)"

            My geronimo-web.xml file looks like this.


            <?xml version="1.0" encoding="UTF-8"?>
            <web-app
            xmlns="http://geronimo.apache.org/xml/ns/j2ee/web-2.0.1";>
            <http://geronimo.apache.org/xml/ns/j2ee/web-2.0.1%22%3E>
            <dep:environment
            xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.2";>
            <http://geronimo.apache.org/xml/ns/deployment-1.2%22%3E>
            <dep:moduleId>
            <dep:groupId>com.acc</dep:groupId>
            <dep:artifactId>acc-web</dep:artifactId>
            <dep:version>1.0-SNAPSHOT</dep:version>
            <dep:type>war</dep:type>
            </dep:moduleId>
            <dep:dependencies>
            <dep:dependency>
            <dep:groupId>org.apache.geronimo.bundles</dep:groupId>
            <dep:artifactId>myfaces-bundle</dep:artifactId>
            <dep:version>2.0.9_1</dep:version>
            <dep:type>jar</dep:type>
            </dep:dependency>
            <dep:dependency>
            <dep:groupId>org.primefaces</dep:groupId>
            <dep:artifactId>primefaces</dep:artifactId>
            <dep:version>3.3.1</dep:version>
            <dep:type>jar</dep:type>
            </dep:dependency>
            </dep:dependencies>
            </dep:environment>
            <context-root>acc</context-root>
            </web-app>

            The assembly has been installed successfully.  What am I
            missing?  I would really like to include the JSF
            implementation library with the Geronimo install as
            opposed to having to include it in my .war file.

            Thank you

--
            Russell




-- Ivan


--
        Russell Collins
        [email protected]  
<mailto:[email protected]>




-- Thanks!

    Regards, Forrest




--
Ivan


--

Russell Collins
[email protected]

Reply via email to