[ https://issues.apache.org/jira/browse/KARAF-7881?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17896348#comment-17896348 ]
Darrel Riekhof edited comment on KARAF-7881 at 11/7/24 2:50 PM: ---------------------------------------------------------------- We are not using a {{BundleActivator}} . We just build our service classes and put them in a Jar file along with some classes from external libraries, and copy the jar to the deploy directory. We're trying to get rid of the classes from external libraries that get put into the Jar, but we're working through how to make them available at runtime in Karaf instead. Thanks for the response, we'll look into making a BundleActivator and see if that helps us find where it gets stuck. was (Author: JIRAUSER307601): We are not using a {{BundleActivator}} . We just build our service classes and put them in a Jar file along with some classes from external libraries. We're trying to get rid of the classes from external libraries that get put into the Jar, but we're working through how to make them available at runtime in Karaf instead. Thanks for the response, we'll look into making a BundleActivator and see if that helps us find where it gets stuck. > Bundles get stuck in Starting status with nothing in logs > --------------------------------------------------------- > > Key: KARAF-7881 > URL: https://issues.apache.org/jira/browse/KARAF-7881 > Project: Karaf > Issue Type: Question > Components: karaf > Affects Versions: 4.4.6 > Environment: Karaf 4.4.6, Camel 4.7.0, Windows > OpenJDK 64-Bit Server VM Microsoft-10377968 (build 21.0.5+11-LTS, mixed mode, > sharing) > Reporter: Darrel Riekhof > Priority: Major > > After initially deploying our model, service, and XML blueprint bundles, all > is well. > But after stopping and starting Karaf (as a windows service or stand alone), > and then rebuilding and redeploying our model and service bundles by > replacing their jars in the deploy directory we frequently get in a state > where the service bundle gets stuck in the starting status, and then any > blueprint we try to hot deploy in same manner also gets stuck in the > 'Starting'. > Example: > 308 │ Active │ 80 │ 1.0.0.SNAPSHOT │ our-model > 309 │ Starting │ 80 │ 1.0.0.SNAPSHOT │ our-service > 310 │ Starting │ 80 │ 0.0.0 │ a-blueprint.xml > admin@root()> > Once in this state trying to stop the 'our-service' bundle just hangs the > karaf console, and trying to stop the windows karaf service also hangs and we > have to kill the karaf java process with task manager or a CLI kill command. > Nothing is written to any of the logs in data/log. I'm not sure how to debug > this issue or what to try. The service jar file is kind of large, about > 15mb, so we were thinking of trying to divide that up in a few bundles. Or, > I've tried removing some of the compile time dependencies from our services > jar which look to already be available in karaf, like the camel libraries. > I've noticed if I mark them as provided in our POM file, then they don't get > placed in the services jar, but they seem to be required in services jar. > Any advice appreciated. -- This message was sent by Atlassian Jira (v8.20.10#820010)