if I run the karaf's Client as following:
/
C:\>apache-karaf-4.0.1\bin\client -a 8101 -h 127.0.0.1 -f sample.ksh
/
the file sample.ksh contains the lines:
/
shell:echo "############add feature repos"
feature:repo-add mvn:org.apache.camel.karaf/apache-camel/2.15.2/xml/features
feature:repo-add mvn:io.hawt/hawtio-karaf/1.4.51/xml/features
shell:echo "############install feature hawtio"
feature:install hawtio
shell:echo "############install feature camel"
feature:install camel
shell:echo "############end script"
/
the batch prints the error after the command feature:install as following:
/
############add feature repos
Adding feature url
mvn:org.apache.camel.karaf/apache-camel/2.15.2/xml/features
Adding feature url mvn:io.hawt/hawtio-karaf/1.4.51/xml/features
############install feature hawtio
Command not found: feature:install/
Karaf log contains exception stack like following:
/
2015-09-03 15:41:35,200 | WARN | 0]-nio2-thread-4 | ServerSession
| 47 - org.apache.sshd.core - 0.14.0 | Exception caught
java.io.IOException: The specified network name is no longer available.
at sun.nio.ch.Iocp.translateErrorToIOException(Iocp.java:309)[:1.8.0_45]
at sun.nio.ch.Iocp.access$700(Iocp.java:46)[:1.8.0_45]
at sun.nio.ch.Iocp$EventHandlerTask.run(Iocp.java:399)[:1.8.0_45]
at java.lang.Thread.run(Thread.java:745)[:1.8.0_45]
/
Just in case,
-I try with fresh karaf 4.0.1 distribution (cleaned "data" folder),
-testing in environment, where network connection is configured through
proxy
-JDK 1.8
-the same commands are working Ok if run through karaf's console
BTW. regarding the option "-i" of automatic installatioin of features when
add new repository - it looks not implemented yet even if present in help
--
View this message in context:
http://karaf.922171.n3.nabble.com/karaf-4-0-1-error-when-run-feature-install-commands-with-client-tp4042333.html
Sent from the Karaf - User mailing list archive at Nabble.com.