geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "LiWenQin (JIRA)" <j...@apache.org>
Subject [jira] Closed: (GERONIMO-5840) Property in Require-Bundle "resolution:=optional" cannot start successfully in EBA
Date Mon, 07 Mar 2011 09:53:59 GMT

     [ https://issues.apache.org/jira/browse/GERONIMO-5840?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

LiWenQin closed GERONIMO-5840.
------------------------------

    Resolution: Duplicate

Duplicate to GERONIMO-5840, close it.

> 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 "<Require-Bundle>Non-Exist-BundleD;resolution:=optional</Require-Bundle>"
> 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(<generated>)
>         ... 
> 4. If remove the  "<Require-Bundle>Non-Exist-BundleD;resolution:=optional</Require-Bundle>",
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  "<Require-Bundle>Non-Exist-BundleD;resolution:=optional</Require-Bundle>",
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

Mime
View raw message