You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@aries.apache.org by "viola.lu (JIRA)" <ji...@apache.org> on 2011/01/21 04:23:43 UTC

[jira] Created: (ARIES-549) Require-bundle usage between bundles in the same EBA result in resolve error when deploy

Require-bundle usage between bundles in the same EBA result in resolve error when deploy
----------------------------------------------------------------------------------------

                 Key: ARIES-549
                 URL: https://issues.apache.org/jira/browse/ARIES-549
             Project: Aries
          Issue Type: Bug
          Components: Application
    Affects Versions: 0.2
         Environment: OS:win2003

            Reporter: viola.lu


1.Created Bundle1,Bundle2, add Bundle1 as Require-Bundle of Bundle 2
2.Package two bundles into an EBA. Deploy them to geronimo but got erros:
Distribution of module failed.  See log for details.
Error resolving Aries Application
org.apache.geronimo.common.DeploymentException: Error resolving Aries Application
	at org.apache.geronimo.aries.builder.ApplicationConfigBuilder.buildConfiguration(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(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java:34)
	at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.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.GeneratedMethodAccessor57.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java:34)
	at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.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(MBeanGBeanBridge.java:172)
	at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836)
	at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761)
	at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1427)
	at javax.management.remote.rmi.RMIConnectionImpl.access$200(RMIConnectionImpl.java:72)
	at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1265)
	at java.security.AccessController.doPrivileged(Native Method)
	at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1367)
	at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:788)
	at sun.reflect.GeneratedMethodAccessor46.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.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:535)
	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.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:    (bundle=Bundle1)
      Bundle2
   (&(symbolicname=Bundle2)(version>=1.0.0))
      AriesRequire

	at org.apache.aries.application.resolver.obr.OBRAriesResolver.resolve(OBRAriesResolver.java:145)
	at org.apache.aries.application.management.AriesApplicationResolver$$EnhancerByCGLIB$$dac3ddef.resolve(<generated>)
	at org.apache.aries.application.management.impl.AriesApplicationManagerImpl.resolve(AriesApplicationManagerImpl.java:256)
	at org.apache.geronimo.aries.builder.ApplicationConfigBuilder.buildConfiguration(ApplicationConfigBuilder.java:161)
	... 40 more

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (ARIES-549) Require-bundle usage between bundles in the same EBA result in resolve error when deploy

Posted by "zoe slattery (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/ARIES-549?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

zoe slattery updated ARIES-549:
-------------------------------

    Fix Version/s:     (was: 0.3)
                   application-0.2.1

> Require-bundle usage between bundles in the same EBA result in resolve error when deploy
> ----------------------------------------------------------------------------------------
>
>                 Key: ARIES-549
>                 URL: https://issues.apache.org/jira/browse/ARIES-549
>             Project: Aries
>          Issue Type: Bug
>          Components: Application
>    Affects Versions: 0.2
>         Environment: OS:win2003
>            Reporter: viola.lu
>            Assignee: Rex Wang
>             Fix For: application-0.2.1
>
>         Attachments: Aries-549-2.patch, Aries-549.patch, AriesRequire.eba, HelloWorldWAB1.app.eba
>
>
> 1.Created Bundle1,Bundle2, add Bundle1 as Require-Bundle of Bundle 2
> 2.Package two bundles into an EBA. Deploy them to geronimo but got erros:
> Distribution of module failed.  See log for details.
> Error resolving Aries Application
> org.apache.geronimo.common.DeploymentException: Error resolving Aries Application
> 	at org.apache.geronimo.aries.builder.ApplicationConfigBuilder.buildConfiguration(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(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:597)
> 	at org.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java:34)
> 	at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.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.GeneratedMethodAccessor57.invoke(Unknown Source)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:597)
> 	at org.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java:34)
> 	at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.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(MBeanGBeanBridge.java:172)
> 	at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836)
> 	at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761)
> 	at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1427)
> 	at javax.management.remote.rmi.RMIConnectionImpl.access$200(RMIConnectionImpl.java:72)
> 	at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1265)
> 	at java.security.AccessController.doPrivileged(Native Method)
> 	at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1367)
> 	at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:788)
> 	at sun.reflect.GeneratedMethodAccessor46.invoke(Unknown Source)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.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:535)
> 	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
> 	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.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:    (bundle=Bundle1)
>       Bundle2
>    (&(symbolicname=Bundle2)(version>=1.0.0))
>       AriesRequire
> 	at org.apache.aries.application.resolver.obr.OBRAriesResolver.resolve(OBRAriesResolver.java:145)
> 	at org.apache.aries.application.management.AriesApplicationResolver$$EnhancerByCGLIB$$dac3ddef.resolve(<generated>)
> 	at org.apache.aries.application.management.impl.AriesApplicationManagerImpl.resolve(AriesApplicationManagerImpl.java:256)
> 	at org.apache.geronimo.aries.builder.ApplicationConfigBuilder.buildConfiguration(ApplicationConfigBuilder.java:161)
> 	... 40 more

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

        

[jira] Commented: (ARIES-549) Require-bundle usage between bundles in the same EBA result in resolve error when deploy

Posted by "Jarek Gawor (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/ARIES-549?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12987798#action_12987798 ] 

Jarek Gawor commented on ARIES-549:
-----------------------------------

Sangjin,

Yes, in OSGi manifest one uses bundle-version to specify a version range for the require bundle. The Aries application resolver takes that information and converts it into a query expression to query the OBR repository. If I understand things correctly, OBR stores the bundle version information in a "version" field so the query expression must have &(version=<version info>) type of filter in to match properly and before the expression had &(bundle-version=<version info>) filter which would not and did not match any candidates.


> Require-bundle usage between bundles in the same EBA result in resolve error when deploy
> ----------------------------------------------------------------------------------------
>
>                 Key: ARIES-549
>                 URL: https://issues.apache.org/jira/browse/ARIES-549
>             Project: Aries
>          Issue Type: Bug
>          Components: Application
>    Affects Versions: 0.2
>         Environment: OS:win2003
>            Reporter: viola.lu
>            Assignee: Rex Wang
>             Fix For: 0.3
>
>         Attachments: Aries-549-2.patch, Aries-549.patch, AriesRequire.eba, HelloWorldWAB1.app.eba
>
>
> 1.Created Bundle1,Bundle2, add Bundle1 as Require-Bundle of Bundle 2
> 2.Package two bundles into an EBA. Deploy them to geronimo but got erros:
> Distribution of module failed.  See log for details.
> Error resolving Aries Application
> org.apache.geronimo.common.DeploymentException: Error resolving Aries Application
> 	at org.apache.geronimo.aries.builder.ApplicationConfigBuilder.buildConfiguration(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(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:597)
> 	at org.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java:34)
> 	at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.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.GeneratedMethodAccessor57.invoke(Unknown Source)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:597)
> 	at org.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java:34)
> 	at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.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(MBeanGBeanBridge.java:172)
> 	at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836)
> 	at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761)
> 	at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1427)
> 	at javax.management.remote.rmi.RMIConnectionImpl.access$200(RMIConnectionImpl.java:72)
> 	at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1265)
> 	at java.security.AccessController.doPrivileged(Native Method)
> 	at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1367)
> 	at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:788)
> 	at sun.reflect.GeneratedMethodAccessor46.invoke(Unknown Source)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.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:535)
> 	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
> 	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.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:    (bundle=Bundle1)
>       Bundle2
>    (&(symbolicname=Bundle2)(version>=1.0.0))
>       AriesRequire
> 	at org.apache.aries.application.resolver.obr.OBRAriesResolver.resolve(OBRAriesResolver.java:145)
> 	at org.apache.aries.application.management.AriesApplicationResolver$$EnhancerByCGLIB$$dac3ddef.resolve(<generated>)
> 	at org.apache.aries.application.management.impl.AriesApplicationManagerImpl.resolve(AriesApplicationManagerImpl.java:256)
> 	at org.apache.geronimo.aries.builder.ApplicationConfigBuilder.buildConfiguration(ApplicationConfigBuilder.java:161)
> 	... 40 more

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (ARIES-549) Require-bundle usage between bundles in the same EBA result in resolve error when deploy

Posted by "Rex Wang (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/ARIES-549?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12987401#action_12987401 ] 

Rex Wang commented on ARIES-549:
--------------------------------

HelloWorldWAB1.app.eba demo a problem that deploy will fail if specify the bundle-version in the Require-bundle header.
Upload Aries-549-2.patch to fix this.

-Rex

> Require-bundle usage between bundles in the same EBA result in resolve error when deploy
> ----------------------------------------------------------------------------------------
>
>                 Key: ARIES-549
>                 URL: https://issues.apache.org/jira/browse/ARIES-549
>             Project: Aries
>          Issue Type: Bug
>          Components: Application
>    Affects Versions: 0.2
>         Environment: OS:win2003
>            Reporter: viola.lu
>            Assignee: Rex Wang
>             Fix For: 0.3
>
>         Attachments: Aries-549-2.patch, Aries-549.patch, AriesRequire.eba, HelloWorldWAB1.app.eba
>
>
> 1.Created Bundle1,Bundle2, add Bundle1 as Require-Bundle of Bundle 2
> 2.Package two bundles into an EBA. Deploy them to geronimo but got erros:
> Distribution of module failed.  See log for details.
> Error resolving Aries Application
> org.apache.geronimo.common.DeploymentException: Error resolving Aries Application
> 	at org.apache.geronimo.aries.builder.ApplicationConfigBuilder.buildConfiguration(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(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:597)
> 	at org.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java:34)
> 	at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.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.GeneratedMethodAccessor57.invoke(Unknown Source)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:597)
> 	at org.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java:34)
> 	at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.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(MBeanGBeanBridge.java:172)
> 	at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836)
> 	at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761)
> 	at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1427)
> 	at javax.management.remote.rmi.RMIConnectionImpl.access$200(RMIConnectionImpl.java:72)
> 	at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1265)
> 	at java.security.AccessController.doPrivileged(Native Method)
> 	at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1367)
> 	at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:788)
> 	at sun.reflect.GeneratedMethodAccessor46.invoke(Unknown Source)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.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:535)
> 	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
> 	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.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:    (bundle=Bundle1)
>       Bundle2
>    (&(symbolicname=Bundle2)(version>=1.0.0))
>       AriesRequire
> 	at org.apache.aries.application.resolver.obr.OBRAriesResolver.resolve(OBRAriesResolver.java:145)
> 	at org.apache.aries.application.management.AriesApplicationResolver$$EnhancerByCGLIB$$dac3ddef.resolve(<generated>)
> 	at org.apache.aries.application.management.impl.AriesApplicationManagerImpl.resolve(AriesApplicationManagerImpl.java:256)
> 	at org.apache.geronimo.aries.builder.ApplicationConfigBuilder.buildConfiguration(ApplicationConfigBuilder.java:161)
> 	... 40 more

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (ARIES-549) Require-bundle usage between bundles in the same EBA result in resolve error when deploy

Posted by "Rex Wang (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/ARIES-549?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12987886#action_12987886 ] 

Rex Wang commented on ARIES-549:
--------------------------------

Yes. "bundle-version" is absolutely correct for require-bundle header in manifest. 
Aries application resolver converts it to "version" so that it can query in the OBR, because in OBR a bundle capability in a resource doesn't have the bundle-version property so far. For example:
<capability name="bundle">
<p n="manifestversion" v="2"/>
<p n="presentationname" v="Apache Felix Bundle Repository"/>
<p n="symbolicname" v="org.apache.felix.bundlerepository"/>
<p n="version" t="version" v="1.4.1"/>
</capability>

-Rex

> Require-bundle usage between bundles in the same EBA result in resolve error when deploy
> ----------------------------------------------------------------------------------------
>
>                 Key: ARIES-549
>                 URL: https://issues.apache.org/jira/browse/ARIES-549
>             Project: Aries
>          Issue Type: Bug
>          Components: Application
>    Affects Versions: 0.2
>         Environment: OS:win2003
>            Reporter: viola.lu
>            Assignee: Rex Wang
>             Fix For: 0.3
>
>         Attachments: Aries-549-2.patch, Aries-549.patch, AriesRequire.eba, HelloWorldWAB1.app.eba
>
>
> 1.Created Bundle1,Bundle2, add Bundle1 as Require-Bundle of Bundle 2
> 2.Package two bundles into an EBA. Deploy them to geronimo but got erros:
> Distribution of module failed.  See log for details.
> Error resolving Aries Application
> org.apache.geronimo.common.DeploymentException: Error resolving Aries Application
> 	at org.apache.geronimo.aries.builder.ApplicationConfigBuilder.buildConfiguration(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(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:597)
> 	at org.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java:34)
> 	at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.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.GeneratedMethodAccessor57.invoke(Unknown Source)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:597)
> 	at org.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java:34)
> 	at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.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(MBeanGBeanBridge.java:172)
> 	at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836)
> 	at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761)
> 	at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1427)
> 	at javax.management.remote.rmi.RMIConnectionImpl.access$200(RMIConnectionImpl.java:72)
> 	at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1265)
> 	at java.security.AccessController.doPrivileged(Native Method)
> 	at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1367)
> 	at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:788)
> 	at sun.reflect.GeneratedMethodAccessor46.invoke(Unknown Source)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.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:535)
> 	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
> 	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.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:    (bundle=Bundle1)
>       Bundle2
>    (&(symbolicname=Bundle2)(version>=1.0.0))
>       AriesRequire
> 	at org.apache.aries.application.resolver.obr.OBRAriesResolver.resolve(OBRAriesResolver.java:145)
> 	at org.apache.aries.application.management.AriesApplicationResolver$$EnhancerByCGLIB$$dac3ddef.resolve(<generated>)
> 	at org.apache.aries.application.management.impl.AriesApplicationManagerImpl.resolve(AriesApplicationManagerImpl.java:256)
> 	at org.apache.geronimo.aries.builder.ApplicationConfigBuilder.buildConfiguration(ApplicationConfigBuilder.java:161)
> 	... 40 more

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (ARIES-549) Require-bundle usage between bundles in the same EBA result in resolve error when deploy

Posted by "Rex Wang (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/ARIES-549?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rex Wang updated ARIES-549:
---------------------------

    Attachment: HelloWorldWAB1.app.eba

> Require-bundle usage between bundles in the same EBA result in resolve error when deploy
> ----------------------------------------------------------------------------------------
>
>                 Key: ARIES-549
>                 URL: https://issues.apache.org/jira/browse/ARIES-549
>             Project: Aries
>          Issue Type: Bug
>          Components: Application
>    Affects Versions: 0.2
>         Environment: OS:win2003
>            Reporter: viola.lu
>            Assignee: Rex Wang
>             Fix For: 0.3
>
>         Attachments: Aries-549.patch, AriesRequire.eba, HelloWorldWAB1.app.eba
>
>
> 1.Created Bundle1,Bundle2, add Bundle1 as Require-Bundle of Bundle 2
> 2.Package two bundles into an EBA. Deploy them to geronimo but got erros:
> Distribution of module failed.  See log for details.
> Error resolving Aries Application
> org.apache.geronimo.common.DeploymentException: Error resolving Aries Application
> 	at org.apache.geronimo.aries.builder.ApplicationConfigBuilder.buildConfiguration(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(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:597)
> 	at org.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java:34)
> 	at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.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.GeneratedMethodAccessor57.invoke(Unknown Source)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:597)
> 	at org.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java:34)
> 	at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.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(MBeanGBeanBridge.java:172)
> 	at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836)
> 	at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761)
> 	at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1427)
> 	at javax.management.remote.rmi.RMIConnectionImpl.access$200(RMIConnectionImpl.java:72)
> 	at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1265)
> 	at java.security.AccessController.doPrivileged(Native Method)
> 	at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1367)
> 	at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:788)
> 	at sun.reflect.GeneratedMethodAccessor46.invoke(Unknown Source)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.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:535)
> 	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
> 	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.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:    (bundle=Bundle1)
>       Bundle2
>    (&(symbolicname=Bundle2)(version>=1.0.0))
>       AriesRequire
> 	at org.apache.aries.application.resolver.obr.OBRAriesResolver.resolve(OBRAriesResolver.java:145)
> 	at org.apache.aries.application.management.AriesApplicationResolver$$EnhancerByCGLIB$$dac3ddef.resolve(<generated>)
> 	at org.apache.aries.application.management.impl.AriesApplicationManagerImpl.resolve(AriesApplicationManagerImpl.java:256)
> 	at org.apache.geronimo.aries.builder.ApplicationConfigBuilder.buildConfiguration(ApplicationConfigBuilder.java:161)
> 	... 40 more

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (ARIES-549) Require-bundle usage between bundles in the same EBA result in resolve error when deploy

Posted by "Sangjin Lee (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/ARIES-549?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12987890#action_12987890 ] 

Sangjin Lee commented on ARIES-549:
-----------------------------------

Thanks for the clarification.

> Require-bundle usage between bundles in the same EBA result in resolve error when deploy
> ----------------------------------------------------------------------------------------
>
>                 Key: ARIES-549
>                 URL: https://issues.apache.org/jira/browse/ARIES-549
>             Project: Aries
>          Issue Type: Bug
>          Components: Application
>    Affects Versions: 0.2
>         Environment: OS:win2003
>            Reporter: viola.lu
>            Assignee: Rex Wang
>             Fix For: 0.3
>
>         Attachments: Aries-549-2.patch, Aries-549.patch, AriesRequire.eba, HelloWorldWAB1.app.eba
>
>
> 1.Created Bundle1,Bundle2, add Bundle1 as Require-Bundle of Bundle 2
> 2.Package two bundles into an EBA. Deploy them to geronimo but got erros:
> Distribution of module failed.  See log for details.
> Error resolving Aries Application
> org.apache.geronimo.common.DeploymentException: Error resolving Aries Application
> 	at org.apache.geronimo.aries.builder.ApplicationConfigBuilder.buildConfiguration(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(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:597)
> 	at org.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java:34)
> 	at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.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.GeneratedMethodAccessor57.invoke(Unknown Source)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:597)
> 	at org.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java:34)
> 	at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.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(MBeanGBeanBridge.java:172)
> 	at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836)
> 	at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761)
> 	at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1427)
> 	at javax.management.remote.rmi.RMIConnectionImpl.access$200(RMIConnectionImpl.java:72)
> 	at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1265)
> 	at java.security.AccessController.doPrivileged(Native Method)
> 	at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1367)
> 	at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:788)
> 	at sun.reflect.GeneratedMethodAccessor46.invoke(Unknown Source)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.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:535)
> 	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
> 	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.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:    (bundle=Bundle1)
>       Bundle2
>    (&(symbolicname=Bundle2)(version>=1.0.0))
>       AriesRequire
> 	at org.apache.aries.application.resolver.obr.OBRAriesResolver.resolve(OBRAriesResolver.java:145)
> 	at org.apache.aries.application.management.AriesApplicationResolver$$EnhancerByCGLIB$$dac3ddef.resolve(<generated>)
> 	at org.apache.aries.application.management.impl.AriesApplicationManagerImpl.resolve(AriesApplicationManagerImpl.java:256)
> 	at org.apache.geronimo.aries.builder.ApplicationConfigBuilder.buildConfiguration(ApplicationConfigBuilder.java:161)
> 	... 40 more

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (ARIES-549) Require-bundle usage between bundles in the same EBA result in resolve error when deploy

Posted by "Forrest Xia (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/ARIES-549?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12986244#action_12986244 ] 

Forrest Xia commented on ARIES-549:
-----------------------------------

Just verified this fix on application-0.2-incubating tag with a new geronimo build, the patch works!

> Require-bundle usage between bundles in the same EBA result in resolve error when deploy
> ----------------------------------------------------------------------------------------
>
>                 Key: ARIES-549
>                 URL: https://issues.apache.org/jira/browse/ARIES-549
>             Project: Aries
>          Issue Type: Bug
>          Components: Application
>    Affects Versions: 0.2
>         Environment: OS:win2003
>            Reporter: viola.lu
>            Assignee: Rex Wang
>             Fix For: 0.3
>
>         Attachments: Aries-549.patch, AriesRequire.eba
>
>
> 1.Created Bundle1,Bundle2, add Bundle1 as Require-Bundle of Bundle 2
> 2.Package two bundles into an EBA. Deploy them to geronimo but got erros:
> Distribution of module failed.  See log for details.
> Error resolving Aries Application
> org.apache.geronimo.common.DeploymentException: Error resolving Aries Application
> 	at org.apache.geronimo.aries.builder.ApplicationConfigBuilder.buildConfiguration(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(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:597)
> 	at org.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java:34)
> 	at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.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.GeneratedMethodAccessor57.invoke(Unknown Source)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:597)
> 	at org.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java:34)
> 	at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.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(MBeanGBeanBridge.java:172)
> 	at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836)
> 	at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761)
> 	at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1427)
> 	at javax.management.remote.rmi.RMIConnectionImpl.access$200(RMIConnectionImpl.java:72)
> 	at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1265)
> 	at java.security.AccessController.doPrivileged(Native Method)
> 	at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1367)
> 	at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:788)
> 	at sun.reflect.GeneratedMethodAccessor46.invoke(Unknown Source)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.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:535)
> 	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
> 	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.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:    (bundle=Bundle1)
>       Bundle2
>    (&(symbolicname=Bundle2)(version>=1.0.0))
>       AriesRequire
> 	at org.apache.aries.application.resolver.obr.OBRAriesResolver.resolve(OBRAriesResolver.java:145)
> 	at org.apache.aries.application.management.AriesApplicationResolver$$EnhancerByCGLIB$$dac3ddef.resolve(<generated>)
> 	at org.apache.aries.application.management.impl.AriesApplicationManagerImpl.resolve(AriesApplicationManagerImpl.java:256)
> 	at org.apache.geronimo.aries.builder.ApplicationConfigBuilder.buildConfiguration(ApplicationConfigBuilder.java:161)
> 	... 40 more

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (ARIES-549) Require-bundle usage between bundles in the same EBA result in resolve error when deploy

Posted by "Rex Wang (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/ARIES-549?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12987403#action_12987403 ] 

Rex Wang commented on ARIES-549:
--------------------------------

commit 	Aries-549-2.patch to 0.2-incubating branch @ rev 1064005

-Rex

> Require-bundle usage between bundles in the same EBA result in resolve error when deploy
> ----------------------------------------------------------------------------------------
>
>                 Key: ARIES-549
>                 URL: https://issues.apache.org/jira/browse/ARIES-549
>             Project: Aries
>          Issue Type: Bug
>          Components: Application
>    Affects Versions: 0.2
>         Environment: OS:win2003
>            Reporter: viola.lu
>            Assignee: Rex Wang
>             Fix For: 0.3
>
>         Attachments: Aries-549-2.patch, Aries-549.patch, AriesRequire.eba, HelloWorldWAB1.app.eba
>
>
> 1.Created Bundle1,Bundle2, add Bundle1 as Require-Bundle of Bundle 2
> 2.Package two bundles into an EBA. Deploy them to geronimo but got erros:
> Distribution of module failed.  See log for details.
> Error resolving Aries Application
> org.apache.geronimo.common.DeploymentException: Error resolving Aries Application
> 	at org.apache.geronimo.aries.builder.ApplicationConfigBuilder.buildConfiguration(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(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:597)
> 	at org.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java:34)
> 	at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.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.GeneratedMethodAccessor57.invoke(Unknown Source)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:597)
> 	at org.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java:34)
> 	at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.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(MBeanGBeanBridge.java:172)
> 	at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836)
> 	at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761)
> 	at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1427)
> 	at javax.management.remote.rmi.RMIConnectionImpl.access$200(RMIConnectionImpl.java:72)
> 	at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1265)
> 	at java.security.AccessController.doPrivileged(Native Method)
> 	at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1367)
> 	at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:788)
> 	at sun.reflect.GeneratedMethodAccessor46.invoke(Unknown Source)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.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:535)
> 	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
> 	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.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:    (bundle=Bundle1)
>       Bundle2
>    (&(symbolicname=Bundle2)(version>=1.0.0))
>       AriesRequire
> 	at org.apache.aries.application.resolver.obr.OBRAriesResolver.resolve(OBRAriesResolver.java:145)
> 	at org.apache.aries.application.management.AriesApplicationResolver$$EnhancerByCGLIB$$dac3ddef.resolve(<generated>)
> 	at org.apache.aries.application.management.impl.AriesApplicationManagerImpl.resolve(AriesApplicationManagerImpl.java:256)
> 	at org.apache.geronimo.aries.builder.ApplicationConfigBuilder.buildConfiguration(ApplicationConfigBuilder.java:161)
> 	... 40 more

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (ARIES-549) Require-bundle usage between bundles in the same EBA result in resolve error when deploy

Posted by "Rex Wang (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/ARIES-549?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rex Wang updated ARIES-549:
---------------------------

    Attachment: Aries-549-2.patch

> Require-bundle usage between bundles in the same EBA result in resolve error when deploy
> ----------------------------------------------------------------------------------------
>
>                 Key: ARIES-549
>                 URL: https://issues.apache.org/jira/browse/ARIES-549
>             Project: Aries
>          Issue Type: Bug
>          Components: Application
>    Affects Versions: 0.2
>         Environment: OS:win2003
>            Reporter: viola.lu
>            Assignee: Rex Wang
>             Fix For: 0.3
>
>         Attachments: Aries-549-2.patch, Aries-549.patch, AriesRequire.eba, HelloWorldWAB1.app.eba
>
>
> 1.Created Bundle1,Bundle2, add Bundle1 as Require-Bundle of Bundle 2
> 2.Package two bundles into an EBA. Deploy them to geronimo but got erros:
> Distribution of module failed.  See log for details.
> Error resolving Aries Application
> org.apache.geronimo.common.DeploymentException: Error resolving Aries Application
> 	at org.apache.geronimo.aries.builder.ApplicationConfigBuilder.buildConfiguration(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(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:597)
> 	at org.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java:34)
> 	at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.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.GeneratedMethodAccessor57.invoke(Unknown Source)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:597)
> 	at org.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java:34)
> 	at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.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(MBeanGBeanBridge.java:172)
> 	at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836)
> 	at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761)
> 	at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1427)
> 	at javax.management.remote.rmi.RMIConnectionImpl.access$200(RMIConnectionImpl.java:72)
> 	at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1265)
> 	at java.security.AccessController.doPrivileged(Native Method)
> 	at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1367)
> 	at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:788)
> 	at sun.reflect.GeneratedMethodAccessor46.invoke(Unknown Source)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.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:535)
> 	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
> 	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.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:    (bundle=Bundle1)
>       Bundle2
>    (&(symbolicname=Bundle2)(version>=1.0.0))
>       AriesRequire
> 	at org.apache.aries.application.resolver.obr.OBRAriesResolver.resolve(OBRAriesResolver.java:145)
> 	at org.apache.aries.application.management.AriesApplicationResolver$$EnhancerByCGLIB$$dac3ddef.resolve(<generated>)
> 	at org.apache.aries.application.management.impl.AriesApplicationManagerImpl.resolve(AriesApplicationManagerImpl.java:256)
> 	at org.apache.geronimo.aries.builder.ApplicationConfigBuilder.buildConfiguration(ApplicationConfigBuilder.java:161)
> 	... 40 more

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (ARIES-549) Require-bundle usage between bundles in the same EBA result in resolve error when deploy

Posted by "viola.lu (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/ARIES-549?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

viola.lu updated ARIES-549:
---------------------------

    Attachment: AriesRequire.eba

Test Sample for re-produce this problem

> Require-bundle usage between bundles in the same EBA result in resolve error when deploy
> ----------------------------------------------------------------------------------------
>
>                 Key: ARIES-549
>                 URL: https://issues.apache.org/jira/browse/ARIES-549
>             Project: Aries
>          Issue Type: Bug
>          Components: Application
>    Affects Versions: 0.2
>         Environment: OS:win2003
>            Reporter: viola.lu
>         Attachments: AriesRequire.eba
>
>
> 1.Created Bundle1,Bundle2, add Bundle1 as Require-Bundle of Bundle 2
> 2.Package two bundles into an EBA. Deploy them to geronimo but got erros:
> Distribution of module failed.  See log for details.
> Error resolving Aries Application
> org.apache.geronimo.common.DeploymentException: Error resolving Aries Application
> 	at org.apache.geronimo.aries.builder.ApplicationConfigBuilder.buildConfiguration(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(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:597)
> 	at org.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java:34)
> 	at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.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.GeneratedMethodAccessor57.invoke(Unknown Source)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:597)
> 	at org.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java:34)
> 	at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.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(MBeanGBeanBridge.java:172)
> 	at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836)
> 	at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761)
> 	at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1427)
> 	at javax.management.remote.rmi.RMIConnectionImpl.access$200(RMIConnectionImpl.java:72)
> 	at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1265)
> 	at java.security.AccessController.doPrivileged(Native Method)
> 	at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1367)
> 	at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:788)
> 	at sun.reflect.GeneratedMethodAccessor46.invoke(Unknown Source)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.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:535)
> 	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
> 	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.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:    (bundle=Bundle1)
>       Bundle2
>    (&(symbolicname=Bundle2)(version>=1.0.0))
>       AriesRequire
> 	at org.apache.aries.application.resolver.obr.OBRAriesResolver.resolve(OBRAriesResolver.java:145)
> 	at org.apache.aries.application.management.AriesApplicationResolver$$EnhancerByCGLIB$$dac3ddef.resolve(<generated>)
> 	at org.apache.aries.application.management.impl.AriesApplicationManagerImpl.resolve(AriesApplicationManagerImpl.java:256)
> 	at org.apache.geronimo.aries.builder.ApplicationConfigBuilder.buildConfiguration(ApplicationConfigBuilder.java:161)
> 	... 40 more

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (ARIES-549) Require-bundle usage between bundles in the same EBA result in resolve error when deploy

Posted by "Rex Wang (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/ARIES-549?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rex Wang resolved ARIES-549.
----------------------------

       Resolution: Fixed
    Fix Version/s: 0.3
         Assignee: Rex Wang

> Require-bundle usage between bundles in the same EBA result in resolve error when deploy
> ----------------------------------------------------------------------------------------
>
>                 Key: ARIES-549
>                 URL: https://issues.apache.org/jira/browse/ARIES-549
>             Project: Aries
>          Issue Type: Bug
>          Components: Application
>    Affects Versions: 0.2
>         Environment: OS:win2003
>            Reporter: viola.lu
>            Assignee: Rex Wang
>             Fix For: 0.3
>
>         Attachments: Aries-549.patch, AriesRequire.eba
>
>
> 1.Created Bundle1,Bundle2, add Bundle1 as Require-Bundle of Bundle 2
> 2.Package two bundles into an EBA. Deploy them to geronimo but got erros:
> Distribution of module failed.  See log for details.
> Error resolving Aries Application
> org.apache.geronimo.common.DeploymentException: Error resolving Aries Application
> 	at org.apache.geronimo.aries.builder.ApplicationConfigBuilder.buildConfiguration(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(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:597)
> 	at org.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java:34)
> 	at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.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.GeneratedMethodAccessor57.invoke(Unknown Source)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:597)
> 	at org.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java:34)
> 	at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.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(MBeanGBeanBridge.java:172)
> 	at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836)
> 	at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761)
> 	at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1427)
> 	at javax.management.remote.rmi.RMIConnectionImpl.access$200(RMIConnectionImpl.java:72)
> 	at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1265)
> 	at java.security.AccessController.doPrivileged(Native Method)
> 	at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1367)
> 	at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:788)
> 	at sun.reflect.GeneratedMethodAccessor46.invoke(Unknown Source)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.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:535)
> 	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
> 	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.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:    (bundle=Bundle1)
>       Bundle2
>    (&(symbolicname=Bundle2)(version>=1.0.0))
>       AriesRequire
> 	at org.apache.aries.application.resolver.obr.OBRAriesResolver.resolve(OBRAriesResolver.java:145)
> 	at org.apache.aries.application.management.AriesApplicationResolver$$EnhancerByCGLIB$$dac3ddef.resolve(<generated>)
> 	at org.apache.aries.application.management.impl.AriesApplicationManagerImpl.resolve(AriesApplicationManagerImpl.java:256)
> 	at org.apache.geronimo.aries.builder.ApplicationConfigBuilder.buildConfiguration(ApplicationConfigBuilder.java:161)
> 	... 40 more

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (ARIES-549) Require-bundle usage between bundles in the same EBA result in resolve error when deploy

Posted by "Rex Wang (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/ARIES-549?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12986177#action_12986177 ] 

Rex Wang commented on ARIES-549:
--------------------------------

Yes, the problem is fixed in 0.3 and this part of code is redesigned and rewriten in 0.3.
There is a bug in 0.2-incubating. Just upload a patch for ones might still use the old version.

-Rex


> Require-bundle usage between bundles in the same EBA result in resolve error when deploy
> ----------------------------------------------------------------------------------------
>
>                 Key: ARIES-549
>                 URL: https://issues.apache.org/jira/browse/ARIES-549
>             Project: Aries
>          Issue Type: Bug
>          Components: Application
>    Affects Versions: 0.2
>         Environment: OS:win2003
>            Reporter: viola.lu
>         Attachments: Aries-549.patch, AriesRequire.eba
>
>
> 1.Created Bundle1,Bundle2, add Bundle1 as Require-Bundle of Bundle 2
> 2.Package two bundles into an EBA. Deploy them to geronimo but got erros:
> Distribution of module failed.  See log for details.
> Error resolving Aries Application
> org.apache.geronimo.common.DeploymentException: Error resolving Aries Application
> 	at org.apache.geronimo.aries.builder.ApplicationConfigBuilder.buildConfiguration(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(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:597)
> 	at org.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java:34)
> 	at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.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.GeneratedMethodAccessor57.invoke(Unknown Source)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:597)
> 	at org.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java:34)
> 	at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.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(MBeanGBeanBridge.java:172)
> 	at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836)
> 	at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761)
> 	at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1427)
> 	at javax.management.remote.rmi.RMIConnectionImpl.access$200(RMIConnectionImpl.java:72)
> 	at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1265)
> 	at java.security.AccessController.doPrivileged(Native Method)
> 	at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1367)
> 	at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:788)
> 	at sun.reflect.GeneratedMethodAccessor46.invoke(Unknown Source)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.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:535)
> 	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
> 	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.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:    (bundle=Bundle1)
>       Bundle2
>    (&(symbolicname=Bundle2)(version>=1.0.0))
>       AriesRequire
> 	at org.apache.aries.application.resolver.obr.OBRAriesResolver.resolve(OBRAriesResolver.java:145)
> 	at org.apache.aries.application.management.AriesApplicationResolver$$EnhancerByCGLIB$$dac3ddef.resolve(<generated>)
> 	at org.apache.aries.application.management.impl.AriesApplicationManagerImpl.resolve(AriesApplicationManagerImpl.java:256)
> 	at org.apache.geronimo.aries.builder.ApplicationConfigBuilder.buildConfiguration(ApplicationConfigBuilder.java:161)
> 	... 40 more

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (ARIES-549) Require-bundle usage between bundles in the same EBA result in resolve error when deploy

Posted by "Rex Wang (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/ARIES-549?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12986291#action_12986291 ] 

Rex Wang commented on ARIES-549:
--------------------------------

commit to 0.2-incubating branch @ rev 1063182

-Rex

> Require-bundle usage between bundles in the same EBA result in resolve error when deploy
> ----------------------------------------------------------------------------------------
>
>                 Key: ARIES-549
>                 URL: https://issues.apache.org/jira/browse/ARIES-549
>             Project: Aries
>          Issue Type: Bug
>          Components: Application
>    Affects Versions: 0.2
>         Environment: OS:win2003
>            Reporter: viola.lu
>            Assignee: Rex Wang
>             Fix For: 0.3
>
>         Attachments: Aries-549.patch, AriesRequire.eba
>
>
> 1.Created Bundle1,Bundle2, add Bundle1 as Require-Bundle of Bundle 2
> 2.Package two bundles into an EBA. Deploy them to geronimo but got erros:
> Distribution of module failed.  See log for details.
> Error resolving Aries Application
> org.apache.geronimo.common.DeploymentException: Error resolving Aries Application
> 	at org.apache.geronimo.aries.builder.ApplicationConfigBuilder.buildConfiguration(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(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:597)
> 	at org.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java:34)
> 	at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.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.GeneratedMethodAccessor57.invoke(Unknown Source)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:597)
> 	at org.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java:34)
> 	at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.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(MBeanGBeanBridge.java:172)
> 	at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836)
> 	at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761)
> 	at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1427)
> 	at javax.management.remote.rmi.RMIConnectionImpl.access$200(RMIConnectionImpl.java:72)
> 	at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1265)
> 	at java.security.AccessController.doPrivileged(Native Method)
> 	at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1367)
> 	at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:788)
> 	at sun.reflect.GeneratedMethodAccessor46.invoke(Unknown Source)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.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:535)
> 	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
> 	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.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:    (bundle=Bundle1)
>       Bundle2
>    (&(symbolicname=Bundle2)(version>=1.0.0))
>       AriesRequire
> 	at org.apache.aries.application.resolver.obr.OBRAriesResolver.resolve(OBRAriesResolver.java:145)
> 	at org.apache.aries.application.management.AriesApplicationResolver$$EnhancerByCGLIB$$dac3ddef.resolve(<generated>)
> 	at org.apache.aries.application.management.impl.AriesApplicationManagerImpl.resolve(AriesApplicationManagerImpl.java:256)
> 	at org.apache.geronimo.aries.builder.ApplicationConfigBuilder.buildConfiguration(ApplicationConfigBuilder.java:161)
> 	... 40 more

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (ARIES-549) Require-bundle usage between bundles in the same EBA result in resolve error when deploy

Posted by "Sangjin Lee (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/ARIES-549?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12987658#action_12987658 ] 

Sangjin Lee commented on ARIES-549:
-----------------------------------

I'm a little confused by the comment in the code change. The "bundle-version" is the correct attribute to use in specifying the Require-Bundle header, no? The core spec seems quite clear about that (3.12.1). Is there uncertainty in terms of what is the right attribute to use when specifying the version constraint? Thanks!

> Require-bundle usage between bundles in the same EBA result in resolve error when deploy
> ----------------------------------------------------------------------------------------
>
>                 Key: ARIES-549
>                 URL: https://issues.apache.org/jira/browse/ARIES-549
>             Project: Aries
>          Issue Type: Bug
>          Components: Application
>    Affects Versions: 0.2
>         Environment: OS:win2003
>            Reporter: viola.lu
>            Assignee: Rex Wang
>             Fix For: 0.3
>
>         Attachments: Aries-549-2.patch, Aries-549.patch, AriesRequire.eba, HelloWorldWAB1.app.eba
>
>
> 1.Created Bundle1,Bundle2, add Bundle1 as Require-Bundle of Bundle 2
> 2.Package two bundles into an EBA. Deploy them to geronimo but got erros:
> Distribution of module failed.  See log for details.
> Error resolving Aries Application
> org.apache.geronimo.common.DeploymentException: Error resolving Aries Application
> 	at org.apache.geronimo.aries.builder.ApplicationConfigBuilder.buildConfiguration(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(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:597)
> 	at org.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java:34)
> 	at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.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.GeneratedMethodAccessor57.invoke(Unknown Source)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:597)
> 	at org.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java:34)
> 	at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.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(MBeanGBeanBridge.java:172)
> 	at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836)
> 	at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761)
> 	at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1427)
> 	at javax.management.remote.rmi.RMIConnectionImpl.access$200(RMIConnectionImpl.java:72)
> 	at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1265)
> 	at java.security.AccessController.doPrivileged(Native Method)
> 	at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1367)
> 	at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:788)
> 	at sun.reflect.GeneratedMethodAccessor46.invoke(Unknown Source)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.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:535)
> 	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
> 	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.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:    (bundle=Bundle1)
>       Bundle2
>    (&(symbolicname=Bundle2)(version>=1.0.0))
>       AriesRequire
> 	at org.apache.aries.application.resolver.obr.OBRAriesResolver.resolve(OBRAriesResolver.java:145)
> 	at org.apache.aries.application.management.AriesApplicationResolver$$EnhancerByCGLIB$$dac3ddef.resolve(<generated>)
> 	at org.apache.aries.application.management.impl.AriesApplicationManagerImpl.resolve(AriesApplicationManagerImpl.java:256)
> 	at org.apache.geronimo.aries.builder.ApplicationConfigBuilder.buildConfiguration(ApplicationConfigBuilder.java:161)
> 	... 40 more

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (ARIES-549) Require-bundle usage between bundles in the same EBA result in resolve error when deploy

Posted by "Rex Wang (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/ARIES-549?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rex Wang updated ARIES-549:
---------------------------

    Attachment: Aries-549.patch

> Require-bundle usage between bundles in the same EBA result in resolve error when deploy
> ----------------------------------------------------------------------------------------
>
>                 Key: ARIES-549
>                 URL: https://issues.apache.org/jira/browse/ARIES-549
>             Project: Aries
>          Issue Type: Bug
>          Components: Application
>    Affects Versions: 0.2
>         Environment: OS:win2003
>            Reporter: viola.lu
>         Attachments: Aries-549.patch, AriesRequire.eba
>
>
> 1.Created Bundle1,Bundle2, add Bundle1 as Require-Bundle of Bundle 2
> 2.Package two bundles into an EBA. Deploy them to geronimo but got erros:
> Distribution of module failed.  See log for details.
> Error resolving Aries Application
> org.apache.geronimo.common.DeploymentException: Error resolving Aries Application
> 	at org.apache.geronimo.aries.builder.ApplicationConfigBuilder.buildConfiguration(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(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:597)
> 	at org.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java:34)
> 	at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.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.GeneratedMethodAccessor57.invoke(Unknown Source)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:597)
> 	at org.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java:34)
> 	at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.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(MBeanGBeanBridge.java:172)
> 	at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836)
> 	at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761)
> 	at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1427)
> 	at javax.management.remote.rmi.RMIConnectionImpl.access$200(RMIConnectionImpl.java:72)
> 	at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1265)
> 	at java.security.AccessController.doPrivileged(Native Method)
> 	at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1367)
> 	at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:788)
> 	at sun.reflect.GeneratedMethodAccessor46.invoke(Unknown Source)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.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:535)
> 	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
> 	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.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:    (bundle=Bundle1)
>       Bundle2
>    (&(symbolicname=Bundle2)(version>=1.0.0))
>       AriesRequire
> 	at org.apache.aries.application.resolver.obr.OBRAriesResolver.resolve(OBRAriesResolver.java:145)
> 	at org.apache.aries.application.management.AriesApplicationResolver$$EnhancerByCGLIB$$dac3ddef.resolve(<generated>)
> 	at org.apache.aries.application.management.impl.AriesApplicationManagerImpl.resolve(AriesApplicationManagerImpl.java:256)
> 	at org.apache.geronimo.aries.builder.ApplicationConfigBuilder.buildConfiguration(ApplicationConfigBuilder.java:161)
> 	... 40 more

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (ARIES-549) Require-bundle usage between bundles in the same EBA result in resolve error when deploy

Posted by "David Jencks (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/ARIES-549?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12984607#action_12984607 ] 

David Jencks commented on ARIES-549:
------------------------------------

I think this problem is fixed in the 0.3-SNAPSHOT aries.  I was able to set up karaf trunk with the enterprise  application-without-isolation feature and install this eba without any apparent problems.

> Require-bundle usage between bundles in the same EBA result in resolve error when deploy
> ----------------------------------------------------------------------------------------
>
>                 Key: ARIES-549
>                 URL: https://issues.apache.org/jira/browse/ARIES-549
>             Project: Aries
>          Issue Type: Bug
>          Components: Application
>    Affects Versions: 0.2
>         Environment: OS:win2003
>            Reporter: viola.lu
>         Attachments: AriesRequire.eba
>
>
> 1.Created Bundle1,Bundle2, add Bundle1 as Require-Bundle of Bundle 2
> 2.Package two bundles into an EBA. Deploy them to geronimo but got erros:
> Distribution of module failed.  See log for details.
> Error resolving Aries Application
> org.apache.geronimo.common.DeploymentException: Error resolving Aries Application
> 	at org.apache.geronimo.aries.builder.ApplicationConfigBuilder.buildConfiguration(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(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:597)
> 	at org.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java:34)
> 	at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.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.GeneratedMethodAccessor57.invoke(Unknown Source)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:597)
> 	at org.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java:34)
> 	at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.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(MBeanGBeanBridge.java:172)
> 	at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836)
> 	at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761)
> 	at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1427)
> 	at javax.management.remote.rmi.RMIConnectionImpl.access$200(RMIConnectionImpl.java:72)
> 	at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1265)
> 	at java.security.AccessController.doPrivileged(Native Method)
> 	at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1367)
> 	at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:788)
> 	at sun.reflect.GeneratedMethodAccessor46.invoke(Unknown Source)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.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:535)
> 	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
> 	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.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:    (bundle=Bundle1)
>       Bundle2
>    (&(symbolicname=Bundle2)(version>=1.0.0))
>       AriesRequire
> 	at org.apache.aries.application.resolver.obr.OBRAriesResolver.resolve(OBRAriesResolver.java:145)
> 	at org.apache.aries.application.management.AriesApplicationResolver$$EnhancerByCGLIB$$dac3ddef.resolve(<generated>)
> 	at org.apache.aries.application.management.impl.AriesApplicationManagerImpl.resolve(AriesApplicationManagerImpl.java:256)
> 	at org.apache.geronimo.aries.builder.ApplicationConfigBuilder.buildConfiguration(ApplicationConfigBuilder.java:161)
> 	... 40 more

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.