[jboss-jira] [JBoss JIRA] (AS7-5544) Add support for Apache Karaf

Guillaume Nodet (JIRA) jira-events at lists.jboss.org
Thu Sep 13 06:15:33 EDT 2012


    [ https://issues.jboss.org/browse/AS7-5544?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12718183#comment-12718183 ] 

Guillaume Nodet commented on AS7-5544:
--------------------------------------

Here is a script than can be used to install and connect to a karaf console in jboss as 7.1:

{code}
wget http://download.jboss.org/jbossas/7.1/jboss-as-7.1.1.Final/jboss-as-7.1.1.Final.tar.gz
tar -xzf jboss-as-7.1.1.Final.tar.gz
cd jboss-as-7.1.1.Final/
mkdir karaf
mkdir karaf/etc
cp ~/.ssh/authorized_keys2 karaf/etc/authorized_keys
echo 'JBHOME=`cd "$DIRNAME/.."; pwd`' >> bin/standalone.conf
echo 'KARAF_HOME="${JBHOME}/karaf"' >> bin/standalone.conf
echo 'KARAF_BASE="${KARAF_HOME}"' >> bin/standalone.conf
echo 'JAVA_OPTS="$JAVA_OPTS -Dkaraf.home=${KARAF_HOME} -Dkaraf.base=${KARAF_BASE}" -Dkaraf.startRemoteShell=true -Dkaraf.startLocalConsole=false' >> bin/standalone.conf     

read -p "Start bin/standalone.sh and when started, press [Enter] key..."
                 
echo "/subsystem=osgi:write-attribute(name=activation,value=eager)" > cli-commands.txt
echo "/subsystem=osgi/property=org.osgi.framework.system.packages.extra:add(value=org.apache.karaf.jaas.boot;version=2.2.9)" >> cli-commands.txt
echo "/subsystem=osgi/capability=org.apache.servicemix.bundles\:org.apache.servicemix.bundles.asm\:3.3.1_1:add(startlevel=1)" >> cli-commands.txt
echo "/subsystem=osgi/capability=org.apache.aries\:org.apache.aries.util\:0.3.1:add(startlevel=1)" >> cli-commands.txt
echo "/subsystem=osgi/capability=org.apache.aries.proxy\:org.apache.aries.proxy\:0.3.1:add(startlevel=1)" >> cli-commands.txt
echo "/subsystem=osgi/capability=org.apache.aries.blueprint\:org.apache.aries.blueprint\:0.3.2:add(startlevel=1)" >> cli-commands.txt
echo "/subsystem=osgi/capability=org.apache.karaf.jaas\:org.apache.karaf.jaas.config\:2.2.9:add(startlevel=1)" >> cli-commands.txt
echo "/subsystem=osgi/capability=org.apache.karaf.jaas\:org.apache.karaf.jaas.modules\:2.2.9:add(startlevel=1)" >> cli-commands.txt
echo "/subsystem=osgi/capability=org.apache.karaf.shell\:org.apache.karaf.shell.console\:2.2.9:add(startlevel=1)" >> cli-commands.txt
echo "/subsystem=osgi/capability=org.apache.karaf.shell\:org.apache.karaf.shell.commands\:2.2.9:add(startlevel=1)" >> cli-commands.txt
echo "/subsystem=osgi/capability=org.apache.karaf.shell\:org.apache.karaf.shell.osgi\:2.2.9:add(startlevel=1)" >> cli-commands.txt
echo "/subsystem=osgi/capability=org.apache.mina\:mina-core\:2.0.1:add(startlevel=1)" >> cli-commands.txt
echo "/subsystem=osgi/capability=org.apache.sshd\:sshd-core\:0.7.0:add(startlevel=1)" >> cli-commands.txt
echo "/subsystem=osgi/capability=org.apache.karaf.shell\:org.apache.karaf.shell.ssh\:2.2.9:add(startlevel=1)" >> cli-commands.txt
bin/jboss-cli.sh --connect --file=cli-commands.txt     
rm cli-commands.txt
                                    
read -p "Restart bin/standalone.sh and when started again, press [Enter] key..."
                                                         
ssh -o StrictHostKeyChecking=no -p 8101 localhost
{code}
                
> Add support for Apache Karaf
> ----------------------------
>
>                 Key: AS7-5544
>                 URL: https://issues.jboss.org/browse/AS7-5544
>             Project: Application Server 7
>          Issue Type: Feature Request
>          Components: OSGi
>            Reporter: Thomas Diesler
>            Assignee: Thomas Diesler
>
> The initial goal would be to make the console available

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jboss-jira mailing list