Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 41091 invoked from network); 1 Mar 2011 06:42:01 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 1 Mar 2011 06:42:01 -0000 Received: (qmail 27590 invoked by uid 500); 1 Mar 2011 06:42:01 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 27160 invoked by uid 500); 1 Mar 2011 06:41:59 -0000 Mailing-List: contact dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list dev@geronimo.apache.org Received: (qmail 27145 invoked by uid 99); 1 Mar 2011 06:41:57 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Mar 2011 06:41:57 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Mar 2011 06:41:57 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 117C5433B9 for ; Tue, 1 Mar 2011 06:41:37 +0000 (UTC) Date: Tue, 1 Mar 2011 06:41:37 +0000 (UTC) From: "LiWenQin (JIRA)" To: dev@geronimo.apache.org Message-ID: <259252358.4160.1298961697051.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] Created: (GERONIMO-5840) Property in Require-Bundle "resolution:=optional" cannot start successfully in EBA MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Property in Require-Bundle "resolution:=optional" cannot start successfully in EBA ----------------------------------------------------------------------------------- Key: GERONIMO-5840 URL: https://issues.apache.org/jira/browse/GERONIMO-5840 Project: Geronimo Issue Type: Bug Security Level: public (Regular issues) Components: Aries Affects Versions: 3.0 Reporter: LiWenQin Fix For: 3.0 Attachments: RequireBundle-eba-3.0-SNAPSHOT.eba Attachment "RequireBundle-eba-3.0-SNAPSHOT.eba" is a eba package. The RequireBundle-eba-3.0-SNAPSHOT.eba contains 3 bundle( bundleA, bundle B, bundle C) In the bundleC, I config the MANIFEST.MF file with "Non-Exist-BundleD;resolution:=optional" According to the spec chapter3.12.1, resolution - If the value is optional, the bundle will resolve even if the required bundle does not exist. Steps: 1. Install bundleC, Install bundleB, install bundleA, then open http://localhost:8080/calculator1/CalculatorServlet. The app can work well with the server build in 2011-02-23-tomcat-javaee6-webprofile. 2. Uninstall the 3 bundles. 3. Deploy the RequireBundle-eba-3.0-SNAPSHOT.eba contains 3 bundle( bundleA, bundle B, bundle C), the app deploying is failed with info below: Error resolving Aries Application org.apache.geronimo.common.DeploymentException: Error resolving Aries Applicatio n at org.apache.geronimo.aries.builder.ApplicationConfigBuilder.buildConfi guration(ApplicationConfigBuilder.java:163) ...... Caused by: org.apache.aries.application.management.ResolverException: Could not resolve requirements: (&(symbolicname=org.apache.geronimo.samples.requirebund le.CalculatorServletBundle_A)(version>=1.0.0)(version<=2.0.0)(!(version=2.0.0))) CalculatorEBA1.app (&(package=org.apache.geronimo.samples.requirebundle.bean.reexport)(version>= 1.0.0)) CalculatorServletBundleA (&(symbolicname=org.apache.geronimo.samples.requirebundle.test.NoExistBundleD )(version>=1.0.0)) CalculatorBeanBundleC at org.apache.aries.application.resolver.obr.OBRAriesResolver.resolve(OB RAriesResolver.java:145) at org.apache.aries.application.management.AriesApplicationResolver$$Enh ancerByCGLIB$$d943f8.resolve() ... 4. If remove the "Non-Exist-BundleD;resolution:=optional", then the eba will deployed successfully. Note: The tests above are all executed on the server built on 2011-02-23. 5. If add the "Non-Exist-BundleD;resolution:=optional", then the eba will deploy and worked well on aries-0.3. But the server now using aries-0.2.1 so that the deploying is failed. -- This message is automatically generated by JIRA. - For more information on JIRA, see: http://www.atlassian.com/software/jira