You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by "Rex Wang (JIRA)" <ji...@apache.org> on 2011/05/03 05:10:03 UTC

[jira] [Updated] (GERONIMO-5852) The bundle with resolution:=optional cannot be resolved when the required bundle does not exist.

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

Rex Wang updated GERONIMO-5852:
-------------------------------

    Fix Version/s: Wish List

> The bundle with resolution:=optional cannot be resolved when the required bundle does not exist. 
> -------------------------------------------------------------------------------------------------
>
>                 Key: GERONIMO-5852
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-5852
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: Aries
>    Affects Versions: 3.0
>            Reporter: LiWenQin
>            Assignee: Rex Wang
>             Fix For: Wish List
>
>
> Run trunk\testsuite\aries-testsuite\require-bundle-test\Resolution-Optional-eba
> Steps and Results:
> 1. Firstly,install CalculatorBeanBundle_C-3.0-SNAPSHOT.jar -- Success in 2011-02-28-tomcat-javaee6-webprofile. 
> 2. Secondly,install Resolution-Optional-WAB-3.0-SNAPSHOT.jar, then open http://localhost:8080/resolution-optional/checkResolution. -- Success in 2011-02-28-tomcat-javaee6-webprofile. 
> 3. Thirdly, uninstall two bundles above. 
> Install Resolution-Optional-eba-3.0-SNAPSHOT.eba           -- Fail in 2011-02-28-tomcat-javaee6-webprofile.(It contains Aries 0.2.1) 
> 4. Finally, install Resolution-Optional-eba-3.0-SNAPSHOT.eba through hot-deploy 
> (copy *.eba to %AriesSamplesHome%\samples-0.3-source-release\samples-0.3\
> blog\blog-assembly\target\load).          		             -- Success in Aries 0.3.
>    I guess the bug is in Aires 0.2.1 so that the deployment is failed...
> Log Info:
> [INFO] Distribution failed: 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)
>         at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:250)
>         at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:138)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
> java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> sorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:597)
>         at org.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(Refl
> ectionMethodInvoker.java:34)
>         at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperatio
> n.java:131)
>         at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.
> java:872)
>         at org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:
> 245)
>         at org.apache.geronimo.kernel.KernelGBean.invoke(KernelGBean.java:344)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
> java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> sorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:597)
>         at org.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(Refl
> ectionMethodInvoker.java:34)
>         at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperatio
> n.java:131)
>         at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.
> java:872)
>         at org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:
> 245)
>         at org.apache.geronimo.system.jmx.MBeanGBeanBridge.invoke(MBeanGBeanBrid
> ge.java:172)
>         at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultM
> BeanServerInterceptor.java:836)
>         at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761
> )
>         at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnecti
> onImpl.java:1426)
>         at javax.management.remote.rmi.RMIConnectionImpl.access$200(RMIConnectio
> nImpl.java:72)
>         at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run
> (RMIConnectionImpl.java:1264)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(R
> MIConnectionImpl.java:1366)
>         at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImp
> l.java:788)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
> java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> sorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:597)
>         at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:305)
>         at sun.rmi.transport.Transport$1.run(Transport.java:159)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
>         at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:5
> 35)
>         at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTranspor
> t.java:790)
>         at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport
> .java:649)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExec
> utor.java:886)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
> .java:908)
>         at java.lang.Thread.run(Thread.java:619)
> Caused by: org.apache.aries.application.management.ResolverException: Could not
> resolve requirements:    (&(symbolicname=org.apache.geronimo.samples.requirebund
> le.ResolutionOptionalWAB)(version>=3.0.0.SNAPSHOT))
>       org.apache.geronimo.testsuite.Resolution-Optional-eba
>    (&(symbolicname=org.NONExistBundle)(version>=1.0.0))
>       Geronimo TestSuite :: Aries Testsuite :: Resolution-Optional-test WAB
>         at org.apache.aries.application.resolver.obr.OBRAriesResolver.resolve(OB
> RAriesResolver.java:145)
>         at org.apache.aries.application.management.AriesApplicationResolver$$Enh
> ancerByCGLIB$$405fef86.resolve(<generated>)
>         at org.apache.aries.application.management.impl.AriesApplicationManagerI
> mpl.resolve(AriesApplicationManagerImpl.java:256)
>         at org.apache.geronimo.aries.builder.ApplicationConfigBuilder.buildConfi
> guration(ApplicationConfigBuilder.java:161)
>         ... 42 more

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira