You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@karaf.apache.org by jandresseen <so...@comcast.net> on 2015/01/29 01:42:16 UTC
Error message using Java SSH client to stop Karaf 2.4.0 instance
ServiceMix 5.3.0 / Karaf 2.4.0
I am using the Apache sshd client to programmatically connect to Karaf
(v2.4.0) and issue an admin:stop command. The command is successful and the
Karaf instance is stopped as expected. However the following error is
logged:
Error loading config properties from
file:/C:/apache-servicemix-5.3.0/etc/config.properties
Main: java.io.FileNotFoundException:
C:\apache-servicemix-5.3.0\etc\config.properties (The system cannot find the
path specified)
The Karaf installation is in a different location -
C:/dev/apache-servicemix-5.3.0.
Environment variables are set correctly and verified via debugging along
with the karaf.home property.
I understand Karaf is looking for the config.property to obtain the
karaf.shutdown.command UUID - however, Karaf should be looking in the
installed directory.
Any help / workaround is appreciated.
Thanks,
Jon
--
View this message in context: http://karaf.922171.n3.nabble.com/Error-message-using-Java-SSH-client-to-stop-Karaf-2-4-0-instance-tp4038097.html
Sent from the Karaf - Dev mailing list archive at Nabble.com.
Re: Error message using Java SSH client to stop Karaf 2.4.0 instance
Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi Jon,
Karaf 2.4.x introduced the KARAF_ETC variable (to be able to
"externalise" etc in the folder of your choice.
Let me check if SMX still uses KARAF_HOME (instead of KARAF_ETC).
Regards
JB
On 01/29/2015 01:45 PM, jandresseen wrote:
> Hi - the client is actually deploy on SMX. I have also tried a remote ssh
> client with the same result.
> As a test, I copied the file to the location it is trying to open
> C:/apache-servicemix-5.3.0/etc/config.properties (SMX side) - this time NO
> error.
>
> I would like to avoid this since it becomes an installation / maintenance
> issue. Karaf should be looking in the installation directory instead - for
> example, C:/dev/apache-servicemix-5.3.0/etc/config.properties.
>
> Thanks for looking into this.
> Jon
>
>
>
> --
> View this message in context: http://karaf.922171.n3.nabble.com/Error-message-using-Java-SSH-client-to-stop-Karaf-2-4-0-instance-tp4038097p4038108.html
> Sent from the Karaf - Dev mailing list archive at Nabble.com.
>
--
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com
Re: Error message using Java SSH client to stop Karaf 2.4.0
instance
Posted by jandresseen <so...@comcast.net>.
Hi - the client is actually deploy on SMX. I have also tried a remote ssh
client with the same result.
As a test, I copied the file to the location it is trying to open
C:/apache-servicemix-5.3.0/etc/config.properties (SMX side) - this time NO
error.
I would like to avoid this since it becomes an installation / maintenance
issue. Karaf should be looking in the installation directory instead - for
example, C:/dev/apache-servicemix-5.3.0/etc/config.properties.
Thanks for looking into this.
Jon
--
View this message in context: http://karaf.922171.n3.nabble.com/Error-message-using-Java-SSH-client-to-stop-Karaf-2-4-0-instance-tp4038097p4038108.html
Sent from the Karaf - Dev mailing list archive at Nabble.com.
Re: Error message using Java SSH client to stop Karaf 2.4.0 instance
Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi,
hmmmm, the FileNotFoundException is on the client or SMX side ?
Regards
JB
On 01/29/2015 01:42 AM, jandresseen wrote:
> ServiceMix 5.3.0 / Karaf 2.4.0
> I am using the Apache sshd client to programmatically connect to Karaf
> (v2.4.0) and issue an admin:stop command. The command is successful and the
> Karaf instance is stopped as expected. However the following error is
> logged:
> Error loading config properties from
> file:/C:/apache-servicemix-5.3.0/etc/config.properties
> Main: java.io.FileNotFoundException:
> C:\apache-servicemix-5.3.0\etc\config.properties (The system cannot find the
> path specified)
>
> The Karaf installation is in a different location -
> C:/dev/apache-servicemix-5.3.0.
> Environment variables are set correctly and verified via debugging along
> with the karaf.home property.
> I understand Karaf is looking for the config.property to obtain the
> karaf.shutdown.command UUID - however, Karaf should be looking in the
> installed directory.
>
> Any help / workaround is appreciated.
> Thanks,
> Jon
>
>
>
>
> --
> View this message in context: http://karaf.922171.n3.nabble.com/Error-message-using-Java-SSH-client-to-stop-Karaf-2-4-0-instance-tp4038097.html
> Sent from the Karaf - Dev mailing list archive at Nabble.com.
>
--
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com