karaf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andreas Pieber <anpie...@gmail.com>
Subject Re: KARAF_OPTS works with Karaf script but not with admin - karaf 2.x
Date Thu, 15 Sep 2011 06:08:00 GMT
sorry for not being clear; I've compared the admin script and the karaf
script the only difference is the one I've mentioned above. And I'm curious
if adding the quotations marks in the admin script fixes the problem.

Kind regards,
Andreas

On Thu, Sep 15, 2011 at 08:03, Charles Moulliard <cmoulliard@gmail.com>wrote:

> Hi Andreas,
>
>
> I don' t see any correlation between my questiion and your response
>
> Regards,
>
> Charles
>
>
> On 14/09/11 19:57, Andreas Pieber wrote:
>
>> as stupid as it may sound but can you try to replace
>>
>> -Djava.util.logging.config.**file=$KARAF_BASE/etc/java.**
>> util.logging.properties
>>
>> with
>>
>> -Djava.util.logging.config.**file="$KARAF_BASE/etc/java.**
>> util.logging.properties"
>>
>> Kind regards,
>> Andreas
>>
>> On Wed, Sep 7, 2011 at 15:50, Charles Moulliard<cmoulliard@gmail.com**
>> >wrote:
>>
>>  Hi,
>>>
>>> When we setup KARAF_OPTS variable to provide additional values, that
>>> works fine with karaf script but not with admin
>>>
>>>
>>> KARAF_OPTS="-Djavax.net.ssl.**keyStore=/Users/**
>>> charlesmoulliard/Applications/**apache-activemq-5.5.0/conf/**broker.ks
>>> -Djavax.net.ssl.**keyStorePassword=password"
>>>
>>> WITH KARAF SCRIPT - OK
>>>
>>> ./karaf
>>>
>>> -->  ps -ef | grep karaf
>>>
>>>  501 8331 14989 0   0:00.90 ttys001    0:08.11
>>> /System/Library/Frameworks/**JavaVM.framework/Home/bin/java -server
>>> -Xms128M -Xmx512M -XX:PermSize=16M -XX:MaxPermSize=128M
>>> -Dcom.sun.management.jmxremote
>>>
>>> -Djava.endorsed.dirs=/System/**Library/Frameworks/JavaVM.**
>>> framework/Home/jre/lib/**endorsed:/System/Library/**
>>> Frameworks/JavaVM.framework/**Home/lib/endorsed:/Users/**
>>> charlesmoulliard/Applications/**apache-servicemix-4.4.0-fuse-**
>>> 00-43/lib/endorsed
>>>
>>> -Djava.ext.dirs=/System/**Library/Frameworks/JavaVM.**
>>> framework/Home/jre/lib/ext:/**System/Library/Frameworks/**
>>> JavaVM.framework/Home/lib/ext:**/Users/charlesmoulliard/**
>>> Applications/apache-**servicemix-4.4.0-fuse-00-43/**lib/ext
>>>
>>> -Dkaraf.instances=/Users/**charlesmoulliard/Applications/**
>>> apache-servicemix-4.4.0-fuse-**00-43/instances
>>>
>>> -Dkaraf.home=/Users/**charlesmoulliard/Applications/**
>>> apache-servicemix-4.4.0-fuse-**00-43
>>>
>>> -Dkaraf.base=/Users/**charlesmoulliard/Applications/**
>>> apache-servicemix-4.4.0-fuse-**00-43
>>>
>>> -Dkaraf.data=/Users/**charlesmoulliard/Applications/**
>>> apache-servicemix-4.4.0-fuse-**00-43/data
>>>
>>> -Djava.util.logging.config.**file=/Users/charlesmoulliard/**
>>> Applications/apache-**servicemix-4.4.0-fuse-00-43/**
>>> etc/java.util.logging.**properties
>>>
>>> -Djavax.net.ssl.keyStore=/**Users/charlesmoulliard/**
>>> Applications/apache-activemq-**5.5.0/conf/broker.ks
>>> -Djavax.net.ssl.**keyStorePassword=password
>>>
>>> -Djavax.net.ssl.trustStore=/**Users/charlesmoulliard/**
>>> Applications/apache-activemq-**5.5.0/conf/broker.ts
>>> -Djavax.net.ssl.**trustStorePassword=password
>>> -Dkaraf.startLocalConsole=true -Dkaraf.startRemoteShell=true
>>> -classpath
>>> /Users/charlesmoulliard/**Applications/apache-**
>>> servicemix-4.4.0-fuse-00-43/**lib/karaf-jaas-boot.jar:/**
>>> Users/charlesmoulliard/**Applications/apache-**
>>> servicemix-4.4.0-fuse-00-43/**lib/karaf.jar
>>> org.apache.karaf.main.Main
>>>
>>> WITH ADMIN SCRIPT - NOT OK
>>>
>>> ./admin start root
>>>
>>> /admin start root
>>> [org.apache.karaf.admin.**internal.InstanceImpl] : Starting instance
>>> root with command:
>>> /System/Library/Java/**JavaVirtualMachines/1.6.0.jdk/**
>>> Contents/Home/bin/java
>>> -server -Xmx512M -Dcom.sun.management.jmxremote
>>>
>>> -Djava.util.logging.config.**file="/Users/charlesmoulliard/**
>>> Applications/apache-**servicemix-4.4.0-fuse-00-43/**
>>> etc/java.util.logging.**properties"
>>>
>>> -Djava.endorsed.dirs="/System/**Library/Java/**
>>> JavaVirtualMachines/1.6.0.jdk/**Contents/Home/jre/lib/**
>>> endorsed:/System/Library/Java/**JavaVirtualMachines/1.6.0.jdk/**
>>> Contents/Home/lib/endorsed:/**Users/charlesmoulliard/**
>>> Applications/apache-**servicemix-4.4.0-fuse-00-43/**lib/endorsed"
>>>
>>> -Djava.ext.dirs="/System/**Library/Java/**JavaVirtualMachines/1.6.0.jdk/
>>> **Contents/Home/jre/lib/ext:/**System/Library/Java/**
>>> JavaVirtualMachines/1.6.0.jdk/**Contents/Home/lib/ext:/Users/**
>>> charlesmoulliard/Applications/**apache-servicemix-4.4.0-fuse-**
>>> 00-43/lib/ext"
>>>
>>> -Dkaraf.home="/Users/**charlesmoulliard/Applications/**
>>> apache-servicemix-4.4.0-fuse-**00-43"
>>>
>>> -Dkaraf.base="/Users/**charlesmoulliard/Applications/**
>>> apache-servicemix-4.4.0-fuse-**00-43"
>>> -Dkaraf.startLocalConsole=**false -Dkaraf.startRemoteShell=true
>>> -classpath
>>> /Users/charlesmoulliard/**Applications/apache-**
>>> servicemix-4.4.0-fuse-00-43/**lib/karaf-jaas-boot.jar:/**
>>> Users/charlesmoulliard/**Applications/apache-**
>>> servicemix-4.4.0-fuse-00-43/**lib/karaf.jar:/Users/**
>>> charlesmoulliard/Applications/**apache-servicemix-4.4.0-fuse-**
>>> 00-43/lib/servicemix-version.**jar
>>> org.apache.karaf.main.Main
>>>
>>> I don't see any difference between karaf and admin in exec so what is
>>> wrong
>>> ?
>>>
>>> Regards,
>>>
>>> Charles Moulliard
>>>
>>> Apache Committer
>>>
>>> Blog : http://cmoulliard.blogspot.com
>>> Twitter : http://twitter.com/cmoulliard
>>> Linkedin : http://www.linkedin.com/in/**charlesmoulliard<http://www.linkedin.com/in/charlesmoulliard>
>>> Skype: cmoulliard
>>>
>>>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message