Return-Path: X-Original-To: apmail-geronimo-user-archive@www.apache.org Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8244D9F81 for ; Tue, 19 Jun 2012 04:54:15 +0000 (UTC) Received: (qmail 97094 invoked by uid 500); 19 Jun 2012 04:54:15 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 96967 invoked by uid 500); 19 Jun 2012 04:54:14 -0000 Mailing-List: contact user-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: user@geronimo.apache.org List-Id: Delivered-To: mailing list user@geronimo.apache.org Received: (qmail 96920 invoked by uid 99); 19 Jun 2012 04:54:12 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Jun 2012 04:54:12 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of Collins-Solutions@austin.rr.com designates 71.74.56.122 as permitted sender) Received: from [71.74.56.122] (HELO hrndva-omtalb.mail.rr.com) (71.74.56.122) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Jun 2012 04:54:02 +0000 X-Authority-Analysis: v=2.0 cv=NbpkJh/4 c=1 sm=0 a=NjzueLXEFL+JvenYoLnPsQ==:17 a=NLKF_CLTfucA:10 a=eFosVe0FMc8A:10 a=05ChyHeVI94A:10 a=ayC55rCoAAAA:8 a=pGLkceISAAAA:8 a=mV9VRH-2AAAA:8 a=BA7CkyRhC4QskC5psJwA:9 a=wPNLvfGTeEIA:10 a=MSl-tDqOz04A:10 a=zsliqGsvpFVTyKH2a3EA:9 a=_W_S_7VecoQA:10 a=tXsnliwV7b4A:10 a=NjzueLXEFL+JvenYoLnPsQ==:117 X-Cloudmark-Score: 0 X-Originating-IP: 70.114.157.140 Received: from [70.114.157.140] ([70.114.157.140:35726] helo=[192.168.1.116]) by hrndva-oedge01.mail.rr.com (envelope-from ) (ecelerity 2.2.3.46 r()) with ESMTP id 67/12-22753-5D500EF4; Tue, 19 Jun 2012 04:53:41 +0000 Message-ID: <4FE005E2.6070507@austin.rr.com> Date: Mon, 18 Jun 2012 23:53:54 -0500 From: Russell Collins Organization: Collins Solutions User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:12.0) Gecko/20120430 Thunderbird/12.0.1 MIME-Version: 1.0 To: user@geronimo.apache.org Subject: Re: JSF Dependencies References: <4FDFCB4F.70904@austin.rr.com> <4FDFDEBB.1000705@austin.rr.com> In-Reply-To: Content-Type: multipart/alternative; boundary="------------040600040901090500070207" This is a multi-part message in MIME format. --------------040600040901090500070207 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 > > > 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 > > 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 > > >> >> 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. >> >> >> >> > xmlns="http://geronimo.apache.org/xml/ns/j2ee/web-2.0.1"> >> >> > xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.2"> >> >> >> com.acc >> acc-web >> 1.0-SNAPSHOT >> war >> >> >> >> org.apache.geronimo.bundles >> myfaces-bundle >> 2.0.9_1 >> jar >> >> >> org.primefaces >> primefaces >> 3.3.1 >> jar >> >> >> >> acc >> >> >> 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 > Collins-Solutions@austin.rr.com > > > > > -- > Thanks! > > Regards, Forrest > > > > > -- > Ivan -- Russell Collins Collins-Solutions@austin.rr.com --------------040600040901090500070207 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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 <forrestxm@gmail.com>
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 <Collins-Solutions@austin.rr.com> 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 <Collins-Solutions@austin.rr.com>
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">
    <dep:environment xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.2">
        <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
Collins-Solutions@austin.rr.com



--
Thanks!

Regards, Forrest




--
Ivan


-- 

Russell Collins
Collins-Solutions@austin.rr.com
--------------040600040901090500070207--