JB:  

Yes, it works outside of Pax-Exam.  
I will take a look at Cellar.

Thanks

> On Dec 1, 2015, at 2:54 PM, Jean-Baptiste Onofré <[email protected]> wrote:
> 
> Hey Alex,
> 
> I guess it works fine "outside" of Pax Exam, right ?
> 
> You can take a look on Cellar as I use instance to simulate multiple nodes.
> 
> Let me try with 4.0.3.
> 
> Regards
> JB
> 
> On 12/01/2015 08:16 PM, Alex Soto wrote:
>> Hello,
>> 
>> I am using Karaf version 4.0.3. In my integration test I want to launch
>> a second instance of Karaf, but it always times out, so I am now
>> wondering if it is because the root instance is not yet finished starting.
>> 
>> In order to troubleshoot this issue, I have now added the
>> ‘instance:list’ command to my test:
>> 
>> String listOutput = executeCommand("instance:list");
>> log.info(listOutput);
>> 
>> I call the above from my @Test method, but the output always shows:
>> 
>> SSH Port | RMI Registry | RMI Server | State    | PID  | Name
>> -------------------------------------------------------------
>>     8101 |         1099 |      44444 | Starting | 2914 | root
>> 
>> No matter how much I wait, it always shows the same status. Meaning the
>> container never finishes starting. I can manually run the exact same
>> container that was created under 'target/exam/<guid>’ folder, and issue
>> the above command and get:
>> 
>> SSH Port | RMI Registry | RMI Server | State   | PID  | Name
>> ------------------------------------------------------------
>>     8101 |         1099 |      44444 | Started | 3409 | root
>> 
>> So, it appears to be some kind of issue with the way the PAM-EXAM test
>> is wired.  I have added this dependency to try to cope with the problem:
>> 
>> @Inject
>> @Filter(timeout = SERVICE_TIMEOUT)
>> protected BootFinished bootFinished;
>> 
>> but so far, I have not been able to solve it.  As I said before, my
>> ultimate goal is to run a child instance, but I suspect that won’t
>> happen until the main instance is successfully started.  Any hints?
>> 
>> Best regards,
>> Alex Soto
>> 
> 
> -- 
> Jean-Baptiste Onofré
> [email protected]
> http://blog.nanthrax.net
> Talend - http://www.talend.com

Reply via email to