[
https://issues.apache.org/activemq/browse/SMX4-93?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=45478#action_45478
]
Guillaume Nodet commented on SMX4-93:
-------------------------------------
I don't have the error printed on the standard output, but the problem happens
anyway.
The reason is that all services are started asynchronously, and the deployer
service is started very early in the process to allow the processing of
configuration files.
While processing all the files, it tries to generate a bundle for the activemq
broker and start it. Unfortunately, at that time, the required bundles are not
installed yet by the features service.
We can't really change this process, so I'm thinking about the following
workarounds:
* enhance the deployer to retry deployments if the bundles are installed but
not started (it could retry starting the bundles at regular intervals)
* make the default broker a feature, this means that the activemq-broker.xml
file in the deploy folder would be removed and packaged as a real bundle and
installed through a feature
The first solution is a bit ugly imho.
The second solution may be better, though it has the big problem of not being
able to edit the default configuration: this needs a better documentation to
tell the user to uninstall / stop that bundle and run the activemq command to
create a new broker to be able to change the config.
> servicemix binary throws error on startup
> -----------------------------------------
>
> Key: SMX4-93
> URL: https://issues.apache.org/activemq/browse/SMX4-93
> Project: ServiceMix 4
> Issue Type: Bug
> Environment: Windows XP
> Reporter: Aileen Cunningham
>
> When I start up the servicemix binary from 5th Sept distribution it throws
> the following error
> C:\iona\apache-servicemix-4.0-m2-SNAPSHOT>bin\servicemix
> [FelixDispatchQueue] INFO org.ops4j.pax.logging.pax-logging-service -
> BundleEven
> t STARTED
> ERROR: Error starting
> file:/C:/iona/apache-servicemix-4.0-m2-SNAPSHOT/data/gener
> ated-bundles/activemq-broker.xml.jar (org.osgi.framework.BundleException:
> Unreso
> lved package in bundle 29: package;
> (&(package=org.apache.activemq.pool)(version
> >=0.0.0)))
> org.osgi.framework.BundleException: Unresolved package in bundle 29: package;
> (&
> (package=org.apache.activemq.pool)(version>=0.0.0))
> at org.apache.felix.framework.Felix._resolveBundle(Felix.java:1728)
> at org.apache.felix.framework.Felix._startBundle(Felix.java:1591)
> at org.apache.felix.framework.Felix.startBundle(Felix.java:1544)
> at
> org.apache.felix.framework.Felix.setFrameworkStartLevel(Felix.java:11
> 25)
> at
> org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:258
> )
> at java.lang.Thread.run(Thread.java:595)
> ____ _ __ __ _
> / ___| ___ _ ____ _(_) ___ ___| \/ (_)_ __
> \___ \ / _ \ '__\ \ / / |/ __/ _ \ |\/| | \ \/ /
> ___) | __/ | \ V /| | (_| __/ | | | |> <
> |____/ \___|_| \_/ |_|\___\___|_| |_|_/_/\_\
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.