[infinispan-issues] [JBoss JIRA] (ISPN-4789) Avoid having two OSGi containers running at the same time.

Ion Savin (JIRA) issues at jboss.org
Mon Sep 29 07:10:02 EDT 2014


Ion Savin created ISPN-4789:
-------------------------------

             Summary: Avoid having two OSGi containers running at the same time.
                 Key: ISPN-4789
                 URL: https://issues.jboss.org/browse/ISPN-4789
             Project: Infinispan
          Issue Type: Task
    Affects Versions: 7.0.0.Beta2
            Reporter: Ion Savin
            Assignee: Ion Savin


Combining PerSuite and PerClass/PerMethod PAX EXAM reactors results in two containers running at the same time which could trigger resource conflicts similar to the one below:

{noformat}
karaf at root> Exception in thread "JMX Connector Thread [service:jmx:rmi://0.0.0.0:44444/jndi/rmi://0.0.0.0:1099/karaf-root]" java.lang.RuntimeException: 
Port already in use: 44444; 
You may have started two containers.  If you need to start a second container or the default ports are already in use update the config file etc/org.apache.karaf.management.cfg and change the Registry Port and Server Port to unused ports
        at org.apache.karaf.management.ConnectorServerFactory$1.run(ConnectorServerFactory.java:244)
{noformat}

To avoid this issue split the OSGi tests into two groups with separate Surefire executions - one with the container reused and one with the container started for each class/method.

Related to an earlier workaround: ISPN-4487



--
This message was sent by Atlassian JIRA
(v6.3.1#6329)


More information about the infinispan-issues mailing list