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 2C5149E43 for ; Tue, 19 Jun 2012 04:07:07 +0000 (UTC) Received: (qmail 12778 invoked by uid 500); 19 Jun 2012 04:07:06 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 12624 invoked by uid 500); 19 Jun 2012 04:07:05 -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 12561 invoked by uid 99); 19 Jun 2012 04:07:02 -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:07:02 +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 xhhsld@gmail.com designates 209.85.212.172 as permitted sender) Received: from [209.85.212.172] (HELO mail-wi0-f172.google.com) (209.85.212.172) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Jun 2012 04:06:54 +0000 Received: by wibhm11 with SMTP id hm11so142325wib.13 for ; Mon, 18 Jun 2012 21:06:34 -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=z0h72qFTdh7VMbgazAlab7FAkcS4ToasUzyWJpPzULI=; b=BXyhx7xnmPEAOZ0dc3/854VCivK7LKf3o9SpNrQn8/f6p+8hSdyipMiwTO49rcHCZ+ okaw0F28LWMKBpYS7NRef7D9YrgX0oFDNRMTqr/MEDt5FTxQGrIhcxH4yy8J8mov6YqY nH0R1KNLNw3qxVyYyZHvRNAzD1TzJMpPk226MbWphnn/zu9lptw+VRvwSOaqJBBY7QXk IEP8X/eIDLsXmQqv0fQv+0mjlG7ppI7MQzRWKsdl3jMDi+wHpDcar3ym6CvgLSsaIRGd eAdhI+SJSrkxqe5zEbjqMxncD07afs+2tWidu9zatjI4ZYb+sKYVk+ErnR54Oi+5UL5I ZMOA== MIME-Version: 1.0 Received: by 10.180.102.9 with SMTP id fk9mr1678992wib.1.1340078794393; Mon, 18 Jun 2012 21:06:34 -0700 (PDT) Received: by 10.216.203.28 with HTTP; Mon, 18 Jun 2012 21:06:34 -0700 (PDT) In-Reply-To: References: <4FDFCB4F.70904@austin.rr.com> <4FDFDEBB.1000705@austin.rr.com> Date: Tue, 19 Jun 2012 12:06:34 +0800 Message-ID: Subject: Re: JSF Dependencies From: Ivan To: user@geronimo.apache.org Content-Type: multipart/alternative; boundary=f46d0445180382c82b04c2cb68d2 --f46d0445180382c82b04c2cb68d2 Content-Type: text/plain; charset=ISO-8859-1 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 < > 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 > > -- Ivan --f46d0445180382c82b04c2cb68d2 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Right, as we found that JSF API and its implementation may not work correct= ly if we=A0separate them as two bundles, so finally we bundle them in one j= ar file, and Geronimo now uses 2.0.9.1, which means the api version is 2.0.= *

2012/6/19 Forrest Xia <= forrestxm@gmail.co= m>
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




-- Ivan
--f46d0445180382c82b04c2cb68d2--