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]

Reply via email to