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