I've tried the suggestions from Christian and managed to get the Karaf console banner and prompt in bndtoools (see picture). Unfortunately, the console is not reacting to my commands. It just doesn't do anything. More details below. Any further suggestions are most welcome!
<https://lh3.googleusercontent.com/-Q1Z8OKv4FT4/WJ81p4UnkCI/AAAAAAAAADc/4qqNRf7PpSELjVMg6NpEMb6MoLReBwFawCLcB/s1600/karaf.png> *The bndrun:* -standalone: ../pbm-integr-index/main-index/target/index.xml,\ ../pbm-integr-index/felix-all/target/index.xml,\ ../pbm-integr-index/karaf-jdbc-4.0.8/target/index.xml,\ ../pbm-integr-index/karaf-shell-4.0.8/target/index.xml,\ ../pbm-integr-index/karaf-ssh-4.0.8/target/index.xml,\ ../pbm-integr-index/karaf-aries-blueprint-4.0.8/target/index.xml,\ ../pbm-integr-index/karaf-bundle-4.0.8/target/index.xml,\ ../pbm-integr-index/karaf-others/target/index.xml -runfw: org.apache.felix.framework;version=5.6.1 -runee: JavaSE-1.8 -runprovidedcapabilities: ${native_capability} -resolve.effective: active;skip:="osgi.service" -runtrace: false # Environment specifics targetenv: QA1 -include: ./Env/${targetenv}/karaf-console.bndrun -runrequires: \ osgi.identity;filter:='(osgi.identity=org.apache.felix.fileinstall)',\ osgi.identity;filter:='(osgi.identity=org.apache.felix.framework)',\ osgi.identity;filter:='(osgi.identity=org.apache.felix.scr)',\ osgi.identity;filter:='(osgi.identity=org.apache.felix.configadmin)',\ osgi.identity;filter:='(osgi.identity=org.apache.felix.eventadmin)',\ osgi.identity;filter:='(osgi.identity=org.apache.felix.metatype)',\ osgi.identity;filter:='(osgi.identity=osgi.cmpn)',\ osgi.identity;filter:='(osgi.identity=org.apache.karaf.shell.commands)',\ osgi.identity;filter:='(osgi.identity=org.apache.karaf.shell.core)',\ osgi.identity;filter:='(osgi.identity=org.apache.sshd.core)',\ osgi.identity;filter:='(osgi.identity=org.ops4j.pax.logging.pax-logging-api)',\ osgi.identity;filter:='(osgi.identity=org.ops4j.pax.logging.pax-logging-service)',\ osgi.identity;filter:='(osgi.identity=org.jledit.core)',\ osgi.identity;filter:='(osgi.identity=org.fusesource.jansi)',\ osgi.identity;filter:='(osgi.identity=jline)',\ osgi.identity;filter:='(osgi.identity=junit)',\ osgi.identity;filter:='(osgi.identity=org.apache.karaf.jaas.boot)',\ osgi.identity;filter:='(osgi.identity=hamcrest-core)',\ osgi.identity;filter:='(osgi.identity=org.apache.karaf.jaas.blueprint.config)',\ osgi.identity;filter:='(osgi.identity=org.apache.karaf.jaas.command)',\ osgi.identity;filter:='(osgi.identity=org.apache.karaf.jaas.config)',\ osgi.identity;filter:='(osgi.identity=org.apache.karaf.jaas.modules)',\ osgi.identity;filter:='(osgi.identity=org.apache.karaf.shell.ssh)',\ osgi.identity;filter:='(osgi.identity=org.apache.servicemix.bundles.not-yet-commons-ssl)',\ osgi.identity;filter:='(osgi.identity=osgi.annotation)',\ osgi.identity;filter:='(osgi.identity=org.apache.aries.blueprint.api)',\ osgi.identity;filter:='(osgi.identity=org.apache.aries.blueprint.cm)',\ osgi.identity;filter:='(osgi.identity=org.apache.aries.blueprint.core)',\ osgi.identity;filter:='(osgi.identity=org.apache.aries.blueprint.core.compatibility)',\ osgi.identity;filter:='(osgi.identity=org.apache.aries.proxy.api)',\ osgi.identity;filter:='(osgi.identity=org.apache.aries.proxy.impl)',\ osgi.identity;filter:='(osgi.identity=org.apache.aries.quiesce.api)',\ osgi.identity;filter:='(osgi.identity=org.apache.aries.util)',\ osgi.identity;filter:='(osgi.identity=org.apache.karaf.bundle.blueprintstate)',\ osgi.identity;filter:='(osgi.identity=org.objectweb.asm.all)',\ osgi.identity;filter:='(osgi.identity=org.apache.karaf.bundle.core)',\ osgi.identity;filter:='(osgi.identity=org.apache.karaf.config.core)',\ osgi.identity;filter:='(osgi.identity=org.apache.karaf.services.eventadmin)',\ osgi.identity;filter:='(osgi.identity=org.apache.karaf.util)' *The included properties:* -runproperties: \ felix.fileinstall.dir=Env/${targetenv}/etc,\ felix.fileinstall.noInitialDelay=true,\ felix.cm.loglevel=1,\ felix.fileinstall.log.level=1,\ org.ops4j.pax.logging.DefaultServiceLog.level=INFO,\ org.osgi.framework.system.packages.extra=sun.misc,javax.annotation.meta,\ felix.fileinstall.enableConfigSave=false,\ karaf.startLocalConsole=true,\ karaf.local.roles='admin,manager,viewer,systembundles',\ karaf.delay.console=false,\ karaf.etc=Env/${targetenv}/etc,\ karaf.shell.init.script=Env/${targetenv}/etc/shell.init.script *Other stuff:* Based on debug information from the execution, I copied the following files to the 'etc' folder: -> host.key (copied from the host where I am running bndtoools) -> org.apache.karaf.shell.cfg -> shell.init.script -> org.ops4j.pax.logging.cfg *Logs:* I've included only the info-level logs here. There are 2 entries saying 'Command registration delayed' for missing dependencies, but I have those dependencies in the requirement. I'm not sure what this means... [org.apache.karaf.shell.impl.action.osgi.CommandExtension] : Registering commands for bundle org.apache.karaf.bundle.core/4.0.8 [org.apache.karaf.shell.impl.action.osgi.CommandExtension] : Registering commands for bundle org.apache.karaf.config.core/4.0.8 [org.apache.karaf.shell.impl.action.osgi.CommandExtension] : Registering commands for bundle org.apache.karaf.jaas.command/4.0.8 [org.apache.karaf.shell.impl.action.osgi.CommandExtension] : Updating commands for bundle org.apache.karaf.jaas.command/4.0.8 [org.apache.karaf.shell.impl.action.osgi.CommandExtension] : Updating commands for bundle org.apache.karaf.jaas.command/4.0.8 [org.apache.karaf.shell.impl.action.osgi.CommandExtension] : Command registration delayed for bundle org.apache.karaf.shell.commands/4.0.8. Missing dependencies: [org.jledit.EditorFactory] __ __ ____ / //_/____ __________ _/ __/ / ,< / __ `/ ___/ __ `/ /_ / /| |/ /_/ / / / /_/ / __/ /_/ |_|\__,_/_/ \__,_/_/ Apache Karaf (4.0.8) Hit '<tab>' for a list of available commands and '[cmd] --help' for help on a specific command. Hit '<ctrl-d>' or type 'system:shutdown' or 'logout' to shutdown Karaf. karaf@root()> [org.apache.karaf.shell.impl.action.osgi.CommandExtension] : Command registration delayed for bundle org.apache.karaf.shell.ssh/4.0.8. Missing dependencies: [org.apache.sshd.SshServer] [org.apache.karaf.shell.impl.action.osgi.CommandExtension] : Registering commands for bundle org.apache.karaf.shell.commands/4.0.8 org.ops4j.pax.logging.pax-logging-api[org.ops4j.pax.logging.internal.Activator] : Enabling SLF4J API support. org.ops4j.pax.logging.pax-logging-api[org.ops4j.pax.logging.internal.Activator] : Enabling Jakarta Commons Logging API support. org.ops4j.pax.logging.pax-logging-api[org.ops4j.pax.logging.internal.Activator] : Enabling Log4J API support. org.ops4j.pax.logging.pax-logging-api[org.ops4j.pax.logging.internal.Activator] : Enabling Avalon Logger API support. org.ops4j.pax.logging.pax-logging-api[org.ops4j.pax.logging.internal.Activator] : Enabling JULI Logger API support. org.ops4j.pax.logging.pax-logging-api[org.ops4j.pax.logging.internal.Activator] : Enabling Log4J v2 API support. Ignored FQCN: org.apache.logging.log4j.spi.AbstractLogger -- -- ------------------ OPS4J - http://www.ops4j.org - [email protected] --- You received this message because you are subscribed to the Google Groups "OPS4J" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
