[ 
https://issues.apache.org/jira/browse/WHIRR-221?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13202207#comment-13202207
 ] 

David Alves commented on WHIRR-221:
-----------------------------------

Ok, the failure is transient in trunk, but not with the patch.

Any help would be much appreciated.

The first error that happens is:

{code}
-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running org.apache.whirr.karaf.itest.WhirrInstallationTest
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in 
[jar:file:/Users/dralves/.m2/repository/org/apache/karaf/org.apache.karaf.client/2.2.5/org.apache.karaf.client-2.2.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in 
[jar:file:/Users/dralves/.m2/repository/org/slf4j/slf4j-simple/1.6.1/slf4j-simple-1.6.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in 
[jar:file:/Users/dralves/.m2/repository/org/ops4j/pax/logging/pax-logging-api/1.6.3/pax-logging-api-1.6.3.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
[org.ops4j.pax.url.mvn.internal.Connection] : Resolving 
[mvn:org.apache.karaf/apache-karaf/2.2.5/tar.gz]
[org.ops4j.pax.url.mvn.internal.Connection] : Collecting versions from 
repository [file:/Users/dralves/.m2/repository/,releases=true,snapshots=true]
[org.ops4j.pax.url.mvn.internal.Connection] :   Resolving exact version
[org.ops4j.pax.url.mvn.internal.Connection] : Collecting versions from 
repository 
[http://osgi.sonatype.org/content/groups/pax-runner/,releases=true,snapshots=false]
[org.ops4j.pax.url.mvn.internal.Connection] :   Resolving exact version
[org.ops4j.pax.url.mvn.internal.Connection] : Collecting versions from 
repository [http://repo1.maven.org/maven2/,releases=true,snapshots=false]
[org.ops4j.pax.url.mvn.internal.Connection] :   Resolving exact version
[org.ops4j.pax.url.mvn.internal.Connection] : Collecting versions from 
repository [http://repository.ops4j.org/maven2/,releases=true,snapshots=false]
[org.ops4j.pax.url.mvn.internal.Connection] :   Resolving exact version
[org.ops4j.pax.url.mvn.internal.Connection] : Collecting versions from 
repository 
[http://repository.springsource.com/maven/bundles/release/,releases=true,snapshots=false]
[org.ops4j.pax.url.mvn.internal.Connection] :   Resolving exact version
[org.ops4j.pax.url.mvn.internal.Connection] : Collecting versions from 
repository 
[http://repository.springsource.com/maven/bundles/external/,releases=true,snapshots=false]
[org.ops4j.pax.url.mvn.internal.Connection] :   Resolving exact version
        __ __                  ____      
       / //_/____ __________ _/ __/      
      / ,<  / __ `/ ___/ __ `/ /_        
     / /| |/ /_/ / /  / /_/ / __/        
    /_/ |_|\__,_/_/   \__,_/_/         

  Apache Karaf (2.2.5)

Hit '<tab>' for a list of available commands
and '[cmd] --help' for help on a specific command.
Hit '<ctrl-d>' or 'osgi:shutdown' to shutdown Karaf.

karaf@root> features:addurl 
mvn:org.apache.whirr.karaf/apache-whirr/0.8.0-SNAPSHOT/xml/features

features:listurl
 Loaded   URI 
  true    
file:/Users/dralves/WorkApplications/OSS/whirr-git/platforms/karaf/itests/target/paxexam/1d1d5b2a-6ec7-4913-a35a-dc42072a41b3/examfeatures.xml
  true    mvn:org.apache.whirr.karaf/apache-whirr/0.8.0-SNAPSHOT/xml/features
  true    mvn:org.apache.karaf.assemblies.features/enterprise/2.2.5/xml/features
  true    mvn:org.apache.karaf.assemblies.features/standard/2.2.5/xml/features

features:list
State         Version           Name                          Repository        
         Description
[installed  ] [2.3.0.M1       ] exam                          
pax-exam-features-2.3.0.M1 
[uninstalled] [0.8.0-SNAPSHOT ] whirr                         repo-0            
         Apache Whirr Core
[uninstalled] [0.8.0-SNAPSHOT ] whirr-cassandra               repo-0            
         Apache Whirr Cassandra Service
[uninstalled] [0.8.0-SNAPSHOT ] whirr-chef                    repo-0            
         Apache Whirr Chef Service
[uninstalled] [0.8.0-SNAPSHOT ] whirr-elasticsearch           repo-0            
         Apache Whirr ElasticSearch Service
[uninstalled] [0.8.0-SNAPSHOT ] whirr-ganglia                 repo-0            
         Apache Whirr Ganglia Service
[uninstalled] [0.8.0-SNAPSHOT ] whirr-hadoop                  repo-0            
         Apache Whirr Hadoop Service
[uninstalled] [0.8.0-SNAPSHOT ] whirr-hbase                   repo-0            
         Apache Whirr Hbase Service
[uninstalled] [0.8.0-SNAPSHOT ] whirr-hama                    repo-0            
         Apache Whirr Hama Service
[uninstalled] [0.8.0-SNAPSHOT ] whirr-mahout                  repo-0            
         Apache Whirr Mahout Service
[uninstalled] [0.8.0-SNAPSHOT ] whirr-puppet                  repo-0            
         Apache Whirr Puppet Service
[uninstalled] [0.8.0-SNAPSHOT ] whirr-voldemort               repo-0            
         Apache Whirr Voldermort Service
[uninstalled] [0.8.0-SNAPSHOT ] whirr-zookeeper               repo-0            
         Apache Whirr Zookeeper Service
[uninstalled] [0.3            ] transaction                   
karaf-enterprise-2.2.5     OSGi Transaction Manager
[uninstalled] [0.3            ] jpa                           
karaf-enterprise-2.2.5     OSGi Persistence Container
[uninstalled] [0.3            ] jndi                          
karaf-enterprise-2.2.5     OSGi Service Registry JNDI access
[uninstalled] [0.3            ] application-without-isolation 
karaf-enterprise-2.2.5     
[uninstalled] [2.2.5          ] karaf-framework               karaf-2.2.5       
         
[uninstalled] [2.5.6.SEC02    ] spring                        karaf-2.2.5       
         
[uninstalled] [2.5.6.SEC02    ] spring-web                    karaf-2.2.5       
         
[uninstalled] [3.0.6.RELEASE  ] spring                        karaf-2.2.5       
         
[uninstalled] [3.0.6.RELEASE  ] spring-aspects                karaf-2.2.5       
         
[uninstalled] [1.2.1          ] spring-dm                     karaf-2.2.5       
         
[uninstalled] [1.2.1          ] spring-dm-web                 karaf-2.2.5       
         
[uninstalled] [3.0.6.RELEASE  ] spring-instrument             karaf-2.2.5       
         
[uninstalled] [3.0.6.RELEASE  ] spring-jdbc                   karaf-2.2.5       
         
[uninstalled] [3.0.6.RELEASE  ] spring-jms                    karaf-2.2.5       
         
[uninstalled] [3.0.6.RELEASE  ] spring-struts                 karaf-2.2.5       
         
[uninstalled] [3.0.6.RELEASE  ] spring-test                   karaf-2.2.5       
         
[uninstalled] [3.0.6.RELEASE  ] spring-orm                    karaf-2.2.5       
         
[uninstalled] [3.0.6.RELEASE  ] spring-oxm                    karaf-2.2.5       
         
[uninstalled] [3.0.6.RELEASE  ] spring-tx                     karaf-2.2.5       
         
[uninstalled] [3.0.6.RELEASE  ] spring-web                    karaf-2.2.5       
         
[uninstalled] [3.0.6.RELEASE  ] spring-web-portlet            karaf-2.2.5       
         
[uninstalled] [2.2.5          ] wrapper                       karaf-2.2.5       
         
[uninstalled] [2.2.5          ] obr                           karaf-2.2.5       
         
[installed  ] [2.2.5          ] config                        karaf-2.2.5       
         
[uninstalled] [7.5.4.v20111024] jetty                         karaf-2.2.5       
         
[uninstalled] [2.2.5          ] http                          karaf-2.2.5       
         
[uninstalled] [2.2.5          ] war                           karaf-2.2.5       
         
[installed  ] [2.2.5          ] kar                           karaf-2.2.5       
         
[uninstalled] [2.2.5          ] webconsole-base               karaf-2.2.5       
         
[uninstalled] [2.2.5          ] webconsole                    karaf-2.2.5       
         
[installed  ] [2.2.5          ] ssh                           karaf-2.2.5       
         
[installed  ] [2.2.5          ] management                    karaf-2.2.5       
         
[uninstalled] [2.2.5          ] eventadmin                    karaf-2.2.5       
         
[uninstalled] [2.2.5          ] jasypt-encryption             karaf-2.2.5       
         

features:install whirr
java.lang.Exception: Could not start bundle 
mvn:org.jclouds.driver/jclouds-sshj/1.3.1 in feature(s) 
jclouds-driver-sshj-1.3.1: Unresolved constraint in bundle jclouds-sshj [75]: 
Unable to resolve 75.0: missing requirement [75.0] package; 
(&(package=org.jclouds.compute.domain)(version>=1.3.1))
        at 
org.apache.karaf.features.internal.FeaturesServiceImpl.installFeatures(FeaturesServiceImpl.java:356)
        at 
org.apache.karaf.features.internal.FeaturesServiceImpl.installFeature(FeaturesServiceImpl.java:283)
        at 
org.apache.karaf.features.internal.FeaturesServiceImpl.installFeature(FeaturesServiceImpl.java:279)
        at 
org.apache.karaf.features.command.InstallFeatureCommand.doExecute(InstallFeatureCommand.java:62)
        at 
org.apache.karaf.features.command.FeaturesCommandSupport.doExecute(FeaturesCommandSupport.java:39)
        at 
org.apache.karaf.shell.console.OsgiCommandSupport.execute(OsgiCommandSupport.java:38)
        at 
org.apache.felix.gogo.commands.basic.AbstractCommand.execute(AbstractCommand.java:35)
        at 
org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:78)
        at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:474)
        at 
org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:400)
        at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)
        at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)
        at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)
        at 
org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:89)
        at 
org.apache.whirr.karaf.itest.WhirrKarafTestSupport$1.call(WhirrKarafTestSupport.java:146)
        at 
org.apache.whirr.karaf.itest.WhirrKarafTestSupport$1.call(WhirrKarafTestSupport.java:140)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
        at java.util.concurrent.FutureTask.run(FutureTask.java:138)
        at 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
        at java.util.concurrent.FutureTask.run(FutureTask.java:138)
        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:680)
Caused by: org.osgi.framework.BundleException: Unresolved constraint in bundle 
jclouds-sshj [75]: Unable to resolve 75.0: missing requirement [75.0] package; 
(&(package=org.jclouds.compute.domain)(version>=1.3.1))
        at org.apache.felix.framework.Felix.resolveBundle(Felix.java:3446)
        at org.apache.felix.framework.Felix.startBundle(Felix.java:1734)
        at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:918)
        at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:905)
        at 
org.apache.karaf.features.internal.FeaturesServiceImpl.installFeatures(FeaturesServiceImpl.java:353)
        ... 23 more
osgi:list
START LEVEL 100 , List Threshold: 50
   ID   State         Blueprint      Level  Name
[  49] [Active     ] [            ] [   60] OPS4J Pax Exam - Extender Service 
(2.3.0.M1)
[  50] [Active     ] [            ] [   60] OPS4J Pax Exam - Remote Bundle 
Context (2.3.0.M1)
[  51] [Active     ] [            ] [   60] wrap_mvn_junit_junit_4.10 (0)
[  52] [Active     ] [            ] [   60] OPS4J Pax Exam - JUnit Probe 
Invoker (2.3.0.M1)
[  53] [Active     ] [            ] [   60] OPS4J Pax Exam :: Karaf :: Test 
Options (0.4.0)
[  54] [Active     ] [            ] [   60] Apache Geronimo JSR-330 Spec API 
(1.0)
[  55] [Active     ] [            ] [   60] OPS4J Pax Exam - Injection 
(2.3.0.M1)
[  56] [Active     ] [            ] [   60] 
PAXEXAM-PROBE-3dab3fa4-6009-46a8-b2b7-02fa81ef9fef

Bundle: org.apache.felix.framework
Bundle: org.ops4j.pax.url.wrap
Bundle: org.ops4j.pax.url.mvn
Bundle: org.ops4j.pax.logging.pax-logging-service
Bundle: org.ops4j.pax.logging.pax-logging-api
Bundle: org.apache.felix.configadmin
Bundle: org.apache.felix.fileinstall
Bundle: org.apache.aries.proxy
Bundle: org.apache.aries.util
Bundle: org.apache.aries.blueprint
Bundle: org.apache.servicemix.bundles.asm
Bundle: org.apache.karaf.deployer.blueprint
Bundle: org.apache.karaf.diagnostic.management
Bundle: org.apache.karaf.admin.management
Bundle: org.apache.karaf.shell.console
Bundle: org.apache.karaf.deployer.kar
Bundle: org.apache.karaf.features.core
Bundle: org.apache.karaf.diagnostic.command
Bundle: sshd-core
Bundle: org.apache.aries.jmx.blueprint
Bundle: org.apache.karaf.management.server
Bundle: org.apache.karaf.deployer.wrap
Bundle: org.apache.karaf.shell.dev
Bundle: org.apache.karaf.admin.command
Bundle: org.apache.aries.jmx
Bundle: org.apache.karaf.deployer.spring
Bundle: org.apache.karaf.features.command
Bundle: org.apache.karaf.shell.packages
Bundle: org.apache.karaf.shell.osgi
Bundle: org.apache.karaf.diagnostic.core
Bundle: org.apache.mina.core
Bundle: org.apache.karaf.jaas.config
Bundle: org.apache.karaf.shell.ssh
Bundle: org.apache.karaf.admin.core
Bundle: org.apache.karaf.deployer.features
Bundle: org.apache.karaf.jaas.command
Bundle: org.apache.karaf.diagnostic.common
Bundle: org.apache.karaf.shell.commands
Bundle: org.apache.karaf.features.management
Bundle: org.apache.karaf.shell.log
Bundle: org.apache.karaf.jaas.modules
Bundle: org.apache.karaf.shell.config
Bundle: org.apache.karaf.management.mbeans.system
Bundle: org.apache.karaf.management.mbeans.bundles
Bundle: org.apache.karaf.management.mbeans.services
Bundle: org.apache.karaf.management.mbeans.config
Bundle: org.apache.karaf.management.mbeans.log
Bundle: org.apache.karaf.management.mbeans.packages
Bundle: org.apache.karaf.management.mbeans.dev
Bundle: org.ops4j.pax.exam.extender.service
Bundle: org.ops4j.pax.exam.rbc
Bundle: wrap_mvn_junit_junit_4.10
Bundle: org.ops4j.pax.exam.invoker.junit
Bundle: org.openengsb.labs.paxexam.karaf.paxexam-karaf-options
Bundle: org.apache.geronimo.specs.geronimo-atinject_1.0_spec
Bundle: org.ops4j.pax.exam.inject
Bundle: PAXEXAM-PROBE-3dab3fa4-6009-46a8-b2b7-02fa81ef9fef
13010 [main] ERROR org.ops4j.pax.exam.junit.JUnit4TestRunner - Exception
org.ops4j.pax.exam.TestContainerException: 
[testInstallation(org.apache.whirr.karaf.itest.WhirrInstallationTest): Bundle 
org.apache.whirr.karaf.commands does not exist]
        at 
org.ops4j.pax.exam.invoker.junit.internal.JUnitProbeInvoker.invokeViaJUnit(JUnitProbeInvoker.java:112)
        at 
org.ops4j.pax.exam.invoker.junit.internal.JUnitProbeInvoker.findAndInvoke(JUnitProbeInvoker.java:89)
        at 
org.ops4j.pax.exam.invoker.junit.internal.JUnitProbeInvoker.call(JUnitProbeInvoker.java:72)
        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.ops4j.pax.exam.rbc.internal.RemoteBundleContextImpl.remoteCall(RemoteBundleContextImpl.java:86)
        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 sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:303)
        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:680)
Caused by: java.lang.RuntimeException: Bundle org.apache.whirr.karaf.commands 
does not exist
        at 
org.apache.whirr.karaf.itest.WhirrKarafTestSupport.getInstalledBundle(WhirrKarafTestSupport.java:214)
        at 
org.apache.whirr.karaf.itest.WhirrInstallationTest.testInstallation(WhirrInstallationTest.java:46)
        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.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:45)
        at 
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
        at 
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:42)
        at 
org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
        at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:263)
        at 
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:68)
        at 
org.ops4j.pax.exam.invoker.junit.internal.ContainerTestRunner.runChild(ContainerTestRunner.java:58)
        at 
org.ops4j.pax.exam.invoker.junit.internal.ContainerTestRunner.runChild(ContainerTestRunner.java:32)
        at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231)
        at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60)
        at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229)
        at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50)
        at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222)
        at org.junit.runners.ParentRunner.run(ParentRunner.java:300)
        at org.junit.runner.JUnitCore.run(JUnitCore.java:157)
        at org.junit.runner.JUnitCore.run(JUnitCore.java:136)
        at 
org.ops4j.pax.exam.invoker.junit.internal.JUnitProbeInvoker.invokeViaJUnit(JUnitProbeInvoker.java:108)
        ... 21 more
Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 13.149 sec <<< 
FAILURE!

{code}
                
> Optionally control the order of starting services
> -------------------------------------------------
>
>                 Key: WHIRR-221
>                 URL: https://issues.apache.org/jira/browse/WHIRR-221
>             Project: Whirr
>          Issue Type: New Feature
>          Components: core, documentation
>    Affects Versions: 0.8.0
>            Reporter: Andrei Savu
>            Assignee: David Alves
>            Priority: Critical
>             Fix For: 0.8.0
>
>         Attachments: WHIRR-221-v1.patch, WHIRR-221-v3.patch, WHIRR-221.patch, 
> WHIRR-221.patch, WHIRR-221.patch, WHIRR-221.patch, WHIRR-221.patch, 
> error-karaf.txt
>
>
> As Lars sugested in WHIRR-170:
> The user should "be able to optionally control the order (services start). 
> This could be role based and specified like so
> {code}
> whirr.role-order=zk,nn+jt,dn+tt,hbase-master,hbase-regionserver
> {code}
> If not specified the system should make any effort to start the services as 
> quickly as possible, for example in multiple threads. In other words, when 
> the role-order is not given no guarantee about order can be given."

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to