JBoss A-MQ 6.2.1 take long time to start for the first time.
Environment
- Red Hat JBoss A-MQ
- 6.2.1
Issue
- Starting JBoss A-MQ 6.2.1 on a machine without internet access and a new local repository, induces the stop of the console at 64% and finishes some minutes later.
- The instance generate the following exception in the log:
2016-03-07 12:01:56,044 | WARN | pool-3-thread-1 | AetherBasedResolver | mvn.internal.AetherBasedResolver 583 | 5 - org.ops4j.pax.logging.pax-log ging-api - 1.8.4 | Error resolving artifactorg.apache.geronimo.specs:geronimo-osgi-registry:jar:1.1:Could not transfer artifact org.apache.geronimo.specs:geronim o-osgi-registry:jar:1.1 from/to maven.central.repo (http://repo1.maven.org/maven2/): Connect to repo1.maven.org:80 [repo1.maven.org/185.31.18.209] failed: Connec tion timed out
shaded.org.eclipse.aether.resolution.ArtifactResolutionException: Could not transfer artifact org.apache.geronimo.specs:geronimo-osgi-registry:jar:1.1 from/to ma ven.central.repo (http://repo1.maven.org/maven2/): Connect to repo1.maven.org:80 [repo1.maven.org/185.31.18.209] failed: Connection timed out
Resolution
This is a bug reported in JBoss A-MQ Jira: ENTESB-5111 and it will be resolved in a future releases of JBoss A-MQ.
A possible workaround:
- Unzip jboss-a-mq-6.2.1.redhat-084.zip
- Add all the missing jars to the system folder of JBoss_A-MQ. (The list of the missing jars is present on root cause section).
- Start your JBoss A-MQ: bin/amq
Root Cause
The JBoss A-MQ tries to download a missing jars on his system folder at the first start.
Below the list of identified missing jars:
1. {JBossA-MQ_HOME}/system/org/apache/geronimo/specs/geronimo-osgi-registry/1.1/geronimo-osgi-registry-1.1.jar
2. {JBossA-MQ_HOME}/system/org/apache/servicemix/bundles/org.apache.servicemix.bundles.jaxb-xjc/2.2.11_1/org.apache.servicemix.bundles.jaxb-xjc-2.2.11_1.jar
3. {JBossA-MQ_HOME}/system/org/apache/servicemix/specs/org.apache.servicemix.specs.jaxws-api-2.2/2.5.0/org.apache.servicemix.specs.jaxws-api-2.2-2.5.0.jar
4. {JBossA-MQ_HOME}/system/org/apache/servicemix/specs/org.apache.servicemix.specs.jsr339-api-2.0/2.5.0/org.apache.servicemix.specs.jsr339-api-2.0-2.5.0.jar
5. {JBossA-MQ_HOME}/system/org/apache/servicemix/specs/org.apache.servicemix.specs.saaj-api-1.3/2.5.0/org.apache.servicemix.specs.saaj-api-1.3-2.5.0.jar
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
