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 ED5C69C81 for ; Tue, 19 Jun 2012 02:38:00 +0000 (UTC) Received: (qmail 35432 invoked by uid 500); 19 Jun 2012 02:38:00 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 34995 invoked by uid 500); 19 Jun 2012 02:37:59 -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 34967 invoked by uid 99); 19 Jun 2012 02:37:58 -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 02:37:58 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FSL_RCVD_USER,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of forrestxm@gmail.com designates 74.125.82.182 as permitted sender) Received: from [74.125.82.182] (HELO mail-we0-f182.google.com) (74.125.82.182) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Jun 2012 02:37:50 +0000 Received: by werg1 with SMTP id g1so5190896wer.13 for ; Mon, 18 Jun 2012 19:37:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=gDY34Dl4KxAvITY3ETpnaK1gg4PKqaDO9orPc83vKog=; b=gtw98TPvjwCPNDCGIFlQYoLNXfMAC6sdoBRIRFRTh6x2qIP4tWDPXkZo/zHZYHPASi 7GroVMAfCKTfsU+UA7XGJbkosUBEN4wCxoR1vlGbUtKERlW+OK2TlJBsCUtFVI3G9Y5g Q6ne7Dj49n9jJuL604lF48/5CVd42sysT3oBMSKar9F0uAtj0mGOqWX2OLO7xQAeXQuX 1pYzasoii36dmULeL6+UUEpC/Sa5LFeESFdXFu1IpiRQseLPCoM6YLVcJdiIRWW7Fazk /9hjQyJ+ZeebfTNXFeE895yvmXlegJv8lUujGrDa2KcSUTtUwLJ/+CVaMHGou32GQABf 4EAw== MIME-Version: 1.0 Received: by 10.216.208.80 with SMTP id p58mr8857715weo.139.1340073450089; Mon, 18 Jun 2012 19:37:30 -0700 (PDT) Received: by 10.216.72.147 with HTTP; Mon, 18 Jun 2012 19:37:30 -0700 (PDT) In-Reply-To: <4FDFDEBB.1000705@austin.rr.com> References: <4FDFCB4F.70904@austin.rr.com> <4FDFDEBB.1000705@austin.rr.com> Date: Tue, 19 Jun 2012 10:37:30 +0800 Message-ID: Subject: Re: JSF Dependencies From: Forrest Xia To: user@geronimo.apache.org Content-Type: multipart/alternative; boundary=001636b2bd1ef72c7f04c2ca29fb --001636b2bd1ef72c7f04c2ca29fb Content-Type: text/plain; charset=ISO-8859-1 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 > >> 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. >> >> >> >> >> >> >> 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 CollinsCollins-Solutions@austin.rr.com > > -- Thanks! Regards, Forrest --001636b2bd1ef72c7f04c2ca29fb Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable You need to rebundle org.primefaces_3.3.1 to make it depends on javax.faces= <=3D 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&#= 39;s currently not supported by Geronimo.

On Tue, Jun 19, 2012 at 10:06 AM, Russell Collins <Collins-= Solutions@austin.rr.com> wrote:
=20 =20 =20
Ok maybe I need to explain a little better.=A0 Primefaces is basically a component library that sits on top of a JSF implementation similar to Apache MyFaces Tomahawk.=A0 In Geronimo, the JSF implementation is MyFaces.=A0 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.=A0 I am now just trying to references this component library that has already been installed.=A0 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 versio= n 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. =A0However, 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. R= eason: Missing Constraint: Import-Package: javax.faces; version=3D"[2.1.0,3.0.0)"

My geronimo-web.xml file looks like this.


<?xml version=3D"1.0" encoding=3D"UTF-8"= ?>
<web-app xmlns=3D"http://geronimo.apache.org/xml/ns/j2ee/web-2.0.1">
=A0 =A0 <dep:environment xmlns:dep=3D"http://geronimo.apache.org/xml/ns/deployment-1.= 2">
=A0 =A0 =A0 =A0 <dep:moduleId>
=A0 =A0 =A0 =A0 =A0 =A0 <dep:groupId>com.acc</dep:grou= pId>
=A0 =A0 =A0 =A0 =A0 =A0 <dep:artifactId>acc-web</dep:artifactId>
=A0 =A0 =A0 =A0 =A0 =A0 <dep:version>1.0-SNAPSHOT</dep:version>
=A0 =A0 =A0 =A0 =A0 =A0 <dep:type>war</dep:type> =A0 =A0 =A0 =A0 </dep:moduleId>
=A0 =A0 =A0 =A0 <dep:dependencies>
=A0 =A0 =A0 =A0 =A0 =A0 <dep:dependency>
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 <dep:groupId>org.apache.geronimo.bundles</dep:groupId&= gt;
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 <dep:artifactId>myfaces-bundle</dep:artifactId>
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 <dep:version>2.0.9_1</dep:version>
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 <dep:type>jar</dep:typ= e>
=A0 =A0 =A0 =A0 =A0 =A0 </dep:dependency>
=A0 =A0 =A0 =A0 =A0 =A0 <dep:dependency>
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 <dep:groupId>org.primefaces</dep:groupId>
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 <dep:artifactId>primefaces</dep:artifactId>
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 <dep:version>3.3.1</de= p:version>
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 <dep:type>jar</dep:typ= e>
=A0 =A0 =A0 =A0 =A0 =A0 </dep:dependency>
=A0 =A0 =A0 =A0 </dep:dependencies>
=A0 =A0 </dep:environment>
=A0 =A0 <context-root>acc</context-root>=A0 =A0 </web-app>

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

Thank you
--=20

Russell



--
Ivan


--=20

Russell Collins
Collin=
s-Solutions@austin.rr.com



--
Thanks!

Regards,= Forrest

--001636b2bd1ef72c7f04c2ca29fb--