Re: Karaf bundle install using mvn, forcing --update-snapshots option

2014-04-08 Thread Vinu Raj
Thanks for the info. Will try this.

regards
Vinu



--
View this message in context: 
http://karaf.922171.n3.nabble.com/Karaf-bundle-install-using-mvn-forcing-update-snapshots-option-tp4032606p4032639.html
Sent from the Karaf - User mailing list archive at Nabble.com.


Karaf bundle install using mvn, forcing --update-snapshots option

2014-04-07 Thread Vinu Raj
We have an internal nexus maven repository where we publish our project
artefacts. While installing the applications in Karaf using mvn protocol, is
there a way to bypass local .m2 folder and force it check for updated
release/snapshots from remote nexus repo ? Looking for similar functionality
as 

mvn --update-snapshots.

regards
Vinu



--
View this message in context: 
http://karaf.922171.n3.nabble.com/Karaf-bundle-install-using-mvn-forcing-update-snapshots-option-tp4032606.html
Sent from the Karaf - User mailing list archive at Nabble.com.


Re: Karaf bundle install using mvn, forcing --update-snapshots option

2014-04-07 Thread Vinu Raj
I am using Karaf 3.0.0. In the Karaf console when I say install mvn:,
always the local .m2 copy of the bundle is installed even though a newer
build for the bundle exists in remote nexus repo. So I was wondering if an
option like mvn -U exists.



--
View this message in context: 
http://karaf.922171.n3.nabble.com/Karaf-bundle-install-using-mvn-forcing-update-snapshots-option-tp4032606p4032609.html
Sent from the Karaf - User mailing list archive at Nabble.com.


Blueprint : Specifying service dependencies to multiple services

2014-04-02 Thread Vinu Raj
I have 3 services, one of which is depended on other two services. How do I
specify the service dependency in blueprint.xml. For one service I have done
like below and is working. 

reference id=db1 interface=javax.sql.DataSource
filter=(osgi.jndi.service.name=jdbc/db1) /
reference id=db2 interface=javax.sql.DataSource
filter=(osgi.jndi.service.name=jdbc/db2) /

service id=app1 interface=com.foo.App1 ref=App1Impl1
depends-on=db1
/service

How do I mention both db1 and db2 as dependecies for app1

regards
Vinu



--
View this message in context: 
http://karaf.922171.n3.nabble.com/Blueprint-Specifying-service-dependencies-to-multiple-services-tp4032540.html
Sent from the Karaf - User mailing list archive at Nabble.com.


bin/client with -f option

2014-03-03 Thread Vinu Raj
Using Apache Karaf 3.0.0 on Linux (RHEL). I am trying to execute a set of
feature:install commands from a file using client -f filename and getting
following error message.

client -f x
Unknown option: -f
Run with --help for usage


--help says

Apache Karaf client
  -a [port] specify the port to connect to
  -h [host] specify the host to connect to
  -u [user] specify the user name
  --helpshows this help message
  -vraise verbosity
  -r [attempts] retry connection establishment (up to attempts times)
  -d [delay]intra-retry delay (defaults to 2 seconds)
  -bbatch mode, specify multiple commands via standard input
  -f [file] read commands from the specified file
  [commands]commands to run
If no commands are specified, the client will be put in an interactive mode

regards
Vinu



--
View this message in context: 
http://karaf.922171.n3.nabble.com/bin-client-with-f-option-tp4032030.html
Sent from the Karaf - User mailing list archive at Nabble.com.


Re: bin/client with -f option

2014-03-03 Thread Vinu Raj
Thanks JB for the quick response. I wanted to automate some of the
installation tasks using a script that uses client utility. Will try with
space added time being and revert back once 3.0.1 is out.

-Vinu



--
View this message in context: 
http://karaf.922171.n3.nabble.com/bin-client-with-f-option-tp4032030p4032032.html
Sent from the Karaf - User mailing list archive at Nabble.com.


3.0.1 snapshot : Unable to connect to container using bin/client or ssh

2014-02-18 Thread Vinu Raj
Using apache-karaf-3.0.1-20140217.010344-38.
While connecting to container using bin/client, getting below exception.

2014-02-18 12:43:17,128 | WARN  | NioProcessor-2   | ServerSession  
 
| 17 - org.apache.sshd.core - 0.9.0 | Exception caught
java.lang.IllegalStateException: Unable to negociate key exchange for
encryption algorithms (client to server) (client:
aes128-ctr,aes128-cbc,3des-cbc,blowfish-cbc / server: )
at
org.apache.sshd.common.session.AbstractSession.negociate(AbstractSession.java:957)[17:org.apache.sshd.core:0.9.0]
at
org.apache.sshd.server.session.ServerSession.handleMessage(ServerSession.java:170)[17:org.apache.sshd.core:0.9.0]
at
org.apache.sshd.common.session.AbstractSession.decode(AbstractSession.java:587)[17:org.apache.sshd.core:0.9.0]
at
org.apache.sshd.common.session.AbstractSession.messageReceived(AbstractSession.java:253)[17:org.apache.sshd.core:0.9.0]
at
org.apache.sshd.common.AbstractSessionIoHandler.messageReceived(AbstractSessionIoHandler.java:54)[17:org.apache.sshd.core:0.9.0]
at
org.apache.sshd.common.io.mina.MinaService.messageReceived(MinaService.java:94)[17:org.apache.sshd.core:0.9.0]
at
org.apache.mina.core.filterchain.DefaultIoFilterChain$TailFilter.messageReceived(DefaultIoFilterChain.java:690)[60:org.apache.mina.core:2.0.7]
at
org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:417)[60:org.apache.mina.core:2.0.7]
at
org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:47)[60:org.apache.mina.core:2.0.7]
at
org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:765)[60:org.apache.mina.core:2.0.7]
at
org.apache.mina.core.filterchain.IoFilterAdapter.messageReceived(IoFilterAdapter.java:109)[60:org.apache.mina.core:2.0.7]
at
org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:417)[60:org.apache.mina.core:2.0.7]
at
org.apache.mina.core.filterchain.DefaultIoFilterChain.fireMessageReceived(DefaultIoFilterChain.java:410)[60:org.apache.mina.core:2.0.7]
at
org.apache.mina.core.polling.AbstractPollingIoProcessor.read(AbstractPollingIoProcessor.java:710)[60:org.apache.mina.core:2.0.7]
at
org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:664)[60:org.apache.mina.core:2.0.7]
at
org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:653)[60:org.apache.mina.core:2.0.7]
at
org.apache.mina.core.polling.AbstractPollingIoProcessor.access$600(AbstractPollingIoProcessor.java:67)[60:org.apache.mina.core:2.0.7]
at
org.apache.mina.core.polling.AbstractPollingIoProcessor$Processor.run(AbstractPollingIoProcessor.java:1124)[60:org.apache.mina.core:2.0.7]
at
org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:64)[60:org.apache.mina.core:2.0.7]
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)[:1.6.0_31]
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)[:1.6.0_31]
at java.lang.Thread.run(Thread.java:662)[:1.6.0_31]

SSH login gives following error

no matching cipher found: client
aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour128,arcfour256,arcfour,aes192-cbc,aes256-cbc,rijndael-...@lysator.liu.se,aes128-ctr,aes192-ctr,aes256-ctr
server


Is this same issue as KARAF-1756 ?



--
View this message in context: 
http://karaf.922171.n3.nabble.com/3-0-1-snapshot-Unable-to-connect-to-container-using-bin-client-or-ssh-tp4031780.html
Sent from the Karaf - User mailing list archive at Nabble.com.


Re: 3.0.1 snapshot : Unable to connect to container using bin/client or ssh

2014-02-18 Thread Vinu Raj
OS is RHEL 5.5



--
View this message in context: 
http://karaf.922171.n3.nabble.com/3-0-1-snapshot-Unable-to-connect-to-container-using-bin-client-or-ssh-tp4031780p4031781.html
Sent from the Karaf - User mailing list archive at Nabble.com.


Re: 3.0.1 snapshot : Unable to connect to container using bin/client or ssh

2014-02-18 Thread Vinu Raj
bin/karaf is working fine. Problem is with bin/client. I used bin/start to
start karaf.

regards
Vinu



--
View this message in context: 
http://karaf.922171.n3.nabble.com/3-0-1-snapshot-Unable-to-connect-to-container-using-bin-client-or-ssh-tp4031780p4031785.html
Sent from the Karaf - User mailing list archive at Nabble.com.


Re: Frequent Listener timed out, will be ignored exception in log

2014-02-18 Thread Vinu Raj
Is it mandatory that Karaf needs internet access to work properly. When it
runs fine in my PC (which has internet access), I having problems (timeout
issues, sometimes container freezing etc) while running it on a server which
is behind a firewall and do not have internet access.  



--
View this message in context: 
http://karaf.922171.n3.nabble.com/Frequent-Listener-timed-out-will-be-ignored-exception-in-log-tp4031676p4031802.html
Sent from the Karaf - User mailing list archive at Nabble.com.


Re: Frequent Listener timed out, will be ignored exception in log

2014-02-17 Thread Vinu Raj
I am getting this Listener timed out, will be ignored, when I start Camel
Contexts using blueprint container. And install -s command hangs for a
long time before coming out even though log statements says camel context is
started. Following is what I am having in the route

   
from(file:{{file.dir.collated}}?move={{file.dir.processed}}).id(ServiceOrchestrator)
.log(Processing file ${file:name})
.beanRef(CollatedFileBinder,bind)
.beanRef(ServiceOrchestrator,execute)
.stop();

What could be the problem ?

regards
Vinu



--
View this message in context: 
http://karaf.922171.n3.nabble.com/Frequent-Listener-timed-out-will-be-ignored-exception-in-log-tp4031676p4031746.html
Sent from the Karaf - User mailing list archive at Nabble.com.


Frequent Listener timed out, will be ignored exception in log

2014-02-12 Thread Vinu Raj
I am getting following exception in log file quite frequently. Also noticed
that sometimes some services are waiting for other services which are shown
to be active when i do a list in the console. Are these issues related ? 

2014-02-13 11:52:36,895 | WARN  | FelixStartLevel  |
BlueprintEventDispatcher | 4 - org.apache.aries.blueprint.core -
1.3.0 | Listener timed out, will be ignored
java.util.concurrent.TimeoutException

regards
Vinu



--
View this message in context: 
http://karaf.922171.n3.nabble.com/Frequent-Listener-timed-out-will-be-ignored-exception-in-log-tp4031676.html
Sent from the Karaf - User mailing list archive at Nabble.com.


Re: Camel routes taking time to start/stop in Karaf (3.0.0)

2014-02-11 Thread Vinu Raj
Agree to the fact that stop delay could be because of in flight messages. But
I have a completionTimeout set for 3 minutes, but stop sometimes takes 10-20
minutes. I will do some more investigation on this and come back.




--
View this message in context: 
http://karaf.922171.n3.nabble.com/Camel-routes-taking-time-to-start-stop-in-Karaf-3-0-0-tp4031593p4031620.html
Sent from the Karaf - User mailing list archive at Nabble.com.


Re: Camel routes taking time to start/stop in Karaf (3.0.0)

2014-02-10 Thread Vinu Raj
Referring to features:install. 
Artefacts are hosted in an internal Maven repository hosted in same LAN.



--
View this message in context: 
http://karaf.922171.n3.nabble.com/Camel-routes-taking-time-to-start-stop-in-Karaf-3-0-0-tp4031593p4031598.html
Sent from the Karaf - User mailing list archive at Nabble.com.


RE: Import Map via blueprint container

2014-01-28 Thread Vinu Raj
As mentioned in previous response, blueprint syntax is not correct. Here is
an example bean with a Map and configuration to inject the map into the bean

package com.foo

class Bean {
private MapString,String props;
public void setProps(MapString,String props) {
this.props = props;
}
}

bean id=bean1 class=com.foo.Bean
property name=props
map
entry key=prop1Key value=prop1Value /
entry key=prop2Key value=prop2Value /
/map
/property
/bean


CLEMENT Jean-Philippe wrote
 I'm not too sure what this blueprint means.
 
 The first line is 
 bean id=bean1 class=java.util.Map
  which asks to instantiate an interface which is not possible.
 Then, this bean is asked to contain a 
 map
  but the injection mode is not specified (syntax); should be argument
 (constructor) or property (setXXX).
 
 Are you sure your XML has blueprint compliant syntax?
 
 JP





--
View this message in context: 
http://karaf.922171.n3.nabble.com/Import-Map-via-blueprint-container-tp4031365p4031368.html
Sent from the Karaf - User mailing list archive at Nabble.com.


RE: Import Map via blueprint container

2014-01-28 Thread Vinu Raj
Blueprint.xml and classes can be in same bundle else you need to mention the
dependencies in the manifest file.



--
View this message in context: 
http://karaf.922171.n3.nabble.com/Import-Map-via-blueprint-container-tp4031365p4031373.html
Sent from the Karaf - User mailing list archive at Nabble.com.


RE: Import Map via blueprint container

2014-01-28 Thread Vinu Raj
You can use property-placeholder for this purpose. Say for example you have a
properties file called app.properties, you need place it in
${karaf.home}/etc and then have the following configuration in blueprint.xml

cm:property-placeholder persistent-id=app update-strategy=reload
cm:default-properties
cm:property name=prop1key value=prop1Value / 
cm:property name=prop2key value=prop2Value / 
/cm:default-properties
/cm:property-placeholder

bean id=bean1 class=com.foo.Bean 
property name=props
map
entry key=prop1key value=${prop1key} /
entry key=prop2key value=${prop2key} /
/map
/property
/bean

When the app.properties file is changed, karaf will reload the file.
Detailed tutorial available at here
http://www.liquid-reality.de/display/liquid/2011/09/23/Karaf+Tutorial+Part+2+-+Using+the+Configuration+Admin+Service
  



--
View this message in context: 
http://karaf.922171.n3.nabble.com/Import-Map-via-blueprint-container-tp4031365p4031375.html
Sent from the Karaf - User mailing list archive at Nabble.com.


OSGi services and threads

2014-01-28 Thread Vinu Raj
I have set of services deployed using blueprint container (apache aries I
guess)  in Karaf. In some cases one service refers to another.  A few
questions regarding the threading model

Does the container create a thread per service, What is the default behavior
?
Is there way to manage threads per service ? 

regards
Vinu




--
View this message in context: 
http://karaf.922171.n3.nabble.com/OSGi-services-and-threads-tp4031387.html
Sent from the Karaf - User mailing list archive at Nabble.com.


Re: AW: Schema for custom shell commands

2014-01-21 Thread Vinu Raj
Any further updates on this issue. I am using karaf 3.0.0 and facing the same
issue. With namespace v1.1.0 and command element with about name attribute,
getting following error.

Caused by:
org.osgi.service.blueprint.container.ComponentDefinitionException: Unable to
find a matching factory method getScope on class
org.apache.karaf.shell.console.commands.NamespaceHandler for arguments
[com.test.cmd.list] when instanciating bean #recipe-7




--
View this message in context: 
http://karaf.922171.n3.nabble.com/Schema-for-custom-shell-commands-tp4029047p4031242.html
Sent from the Karaf - User mailing list archive at Nabble.com.