You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by Sebarry <se...@yahoo.co.uk> on 2014/01/30 00:06:52 UTC

faultJmsMessageListenerContainer - Could not refresh JMS Connection for destination 'person'

Hi,

I'm getting the following error in Karaf 3 after deploy.

2014-01-29 22:42:18,743 | ERROR | Consumer[person] |
faultJmsMessageListenerContainer | 127 - org.springframework.jms -
3.2.4.RELEASE | Could not refresh JMS Connection for destination 'person' -
retrying in 5000 ms. Cause: Error while attempting to add new Connection to
the pool; nested exception is javax.jms.JMSException: Could not connect to
broker URL: tcp://localhost:61616. Reason: java.net.ConnectException:
Connection refused

Any ideas on what could be causing it?

Thanks,

Sean




--
View this message in context: http://karaf.922171.n3.nabble.com/faultJmsMessageListenerContainer-Could-not-refresh-JMS-Connection-for-destination-person-tp4031400.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Re: faultJmsMessageListenerContainer - Could not refresh JMS Connection for destination 'person'

Posted by Sebarry <se...@yahoo.co.uk>.
Yes done that. The only error I am getting now is this one.

2014-01-30 21:33:59,848 | WARN  | jms.model.Person | JpaConsumer                     
| 125 - org.apache.camel.camel-core - 2.12.0 | Consumer
Consumer[jpa://net.lr.tutorial.karaf.camel.jpa2jms.model.Person?consumer.delay=3500]
failed polling endpoint:
Endpoint[jpa://net.lr.tutorial.karaf.camel.jpa2jms.model.Person?consumer.delay=3500].
Will try again at next poll. Caused by:
[org.apache.openjpa.persistence.ArgumentException - An error occurred while
parsing the query filter "select x from Person x". Error message: The name
"Person" is not a recognized entity or identifier. Perhaps you meant Person,
which is a close match. Known entity names: [Person]]
<openjpa-2.1.1-r422266:1148538 nonfatal user error>
org.apache.openjpa.persistence.ArgumentException: An error occurred while
parsing the query filter "select x from Person x". Error message: The name
"Person" is not a recognized entity or identifier. Perhaps you meant Person,
which is a close match. Known entity names: [Person]

Any ideas? Nearly there I think :)



--
View this message in context: http://karaf.922171.n3.nabble.com/faultJmsMessageListenerContainer-Could-not-refresh-JMS-Connection-for-destination-person-tp4031400p4031441.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Re: faultJmsMessageListenerContainer - Could not refresh JMS Connection for destination 'person'

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Oh, you already use 3.0.1-SNAPSHOT.

So you did:

feature:install openjpa

?

Regards
JB

On 01/30/2014 02:27 PM, Sebarry wrote:
> Sorry JB not sure what you mean. I've been using 3.0.1-SNAPSHOT.
>
>
>
> --
> View this message in context: http://karaf.922171.n3.nabble.com/faultJmsMessageListenerContainer-Could-not-refresh-JMS-Connection-for-destination-person-tp4031400p4031424.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
>

-- 
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

Re: faultJmsMessageListenerContainer - Could not refresh JMS Connection for destination 'person'

Posted by Sebarry <se...@yahoo.co.uk>.
Sorry JB not sure what you mean. I've been using 3.0.1-SNAPSHOT.



--
View this message in context: http://karaf.922171.n3.nabble.com/faultJmsMessageListenerContainer-Could-not-refresh-JMS-Connection-for-destination-person-tp4031400p4031424.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Re: faultJmsMessageListenerContainer - Could not refresh JMS Connection for destination 'person'

Posted by Sebarry <se...@yahoo.co.uk>.
@JB @Christian

That would be really handy. I feel like I'm almost there with getting the
cameljpa tutorial to work but I don't understand why I'm getting the JPA
error that I'm getting.



--
View this message in context: http://karaf.922171.n3.nabble.com/faultJmsMessageListenerContainer-Could-not-refresh-JMS-Connection-for-destination-person-tp4031400p4031460.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Re: faultJmsMessageListenerContainer - Could not refresh JMS Connection for destination 'person'

Posted by Christian Schneider <ch...@die-schneider.net>.
Am 30.01.2014 15:43, schrieb Sebarry:
> Trying to fix this. If I mvn clean install my local version how do I install
> it into Karaf? I thought that install -s
> mvn:net.lr.tutorial.karaf.cameljpa/jpa2jms/1.0-SNAPSHOT might pull my local
> version out of the .m2 repository but when I display the log the error is
> the same as before.
Install -s mvn:... will indeed first look in your local .m2 repo. Do you 
have you local maven repo in the default place?
If yes then it should work.

@JB
After Sean reported some problems I had updated my db/examplejpa and 
cameljpa/jpa2jms examples to work with karaf 3.0.1-SNAPSHOT. Can you 
also try the example on your system it should work out of the box.
For some reason it does not work for Sean.

Christian

-- 
  
Christian Schneider
http://www.liquid-reality.de

Open Source Architect
Talend Application Integration Division http://www.talend.com


Re: faultJmsMessageListenerContainer - Could not refresh JMS Connection for destination 'person'

Posted by Sebarry <se...@yahoo.co.uk>.
Hey JB,

Made some progress on this. Just getting an warning now:

14-01-30 14:16:37,599 | WARN  | jms.model.Person | JpaConsumer                     
| 180 - org.apache.camel.camel-core - 2.12.0 | Consumer
Consumer[jpa://net.lr.tutorial.karaf.camel.jpa2jms.model.Person?consumer.delay=2000]
failed polling endpoint:
Endpoint[jpa://net.lr.tutorial.karaf.camel.jpa2jms.model.Person?consumer.delay=2000].
Will try again at next poll. Caused by:
[org.apache.openjpa.persistence.ArgumentException - An error occurred while
parsing the query filter "select x from Person x". Error message: The name
"Person" is not a recognized entity or identifier. Perhaps you meant Person,
which is a close match. Known entity names: [Person]]
<openjpa-2.1.1-r422266:1148538 nonfatal user error>
org.apache.openjpa.persistence.ArgumentException: An error occurred while
parsing the query filter "select x from Person x". Error message: The name
"Person" is not a recognized entity or identifier. Perhaps you meant Person,
which is a close match. Known entity names: [Person]
	at
org.apache.openjpa.kernel.exps.AbstractExpressionBuilder.parseException(AbstractExpressionBuilder.java:119)
	at
org.apache.openjpa.kernel.jpql.JPQLExpressionBuilder.getClassMetaData(JPQLExpressionBuilder.java:195)
	at
org.apache.openjpa.kernel.jpql.JPQLExpressionBuilder.resolveClassMetaData(JPQLExpressionBuilder.java:168)
	at
org.apache.openjpa.kernel.jpql.JPQLExpressionBuilder.getCandidateMetaData(JPQLExpressionBuilder.java:243)
	at
org.apache.openjpa.kernel.jpql.JPQLExpressionBuilder.getCandidateMetaData(JPQLExpressionBuilder.java:213)
	at
org.apache.openjpa.kernel.jpql.JPQLExpressionBuilder.getCandidateType(JPQLExpressionBuilder.java:206)
	at
org.apache.openjpa.kernel.jpql.JPQLExpressionBuilder.access$200(JPQLExpressionBuilder.java:81)
	at
org.apache.openjpa.kernel.jpql.JPQLExpressionBuilder$ParsedJPQL.populate(JPQLExpressionBuilder.java:2450)
	at org.apache.openjpa.kernel.jpql.JPQLParser.populate(JPQLParser.java:61)
	at
org.apache.openjpa.kernel.ExpressionStoreQuery.populateFromCompilation(ExpressionStoreQuery.java:162)
	at
org.apache.openjpa.kernel.QueryImpl.newCompilation(QueryImpl.java:673)[101:org.apache.openjpa:2.1.1]
	at
org.apache.openjpa.kernel.QueryImpl.compilationFromCache(QueryImpl.java:654)[101:org.apache.openjpa:2.1.1]
	at
org.apache.openjpa.kernel.QueryImpl.compileForCompilation(QueryImpl.java:620)[101:org.apache.openjpa:2.1.1]
	at
org.apache.openjpa.kernel.QueryImpl.compileForExecutor(QueryImpl.java:682)[101:org.apache.openjpa:2.1.1]
	at
org.apache.openjpa.kernel.QueryImpl.compile(QueryImpl.java:589)[101:org.apache.openjpa:2.1.1]
	at
org.apache.openjpa.persistence.EntityManagerImpl.createQuery(EntityManagerImpl.java:996)[101:org.apache.openjpa:2.1.1]
	at
org.apache.openjpa.persistence.EntityManagerImpl.createQuery(EntityManagerImpl.java:978)[101:org.apache.openjpa:2.1.1]
	at
org.apache.openjpa.persistence.EntityManagerImpl.createQuery(EntityManagerImpl.java:101)[101:org.apache.openjpa:2.1.1]
	at
org.apache.aries.jpa.container.impl.EntityManagerWrapper.createQuery(EntityManagerWrapper.java:92)[92:org.apache.aries.jpa.container:1.0.0]
	at
org.apache.camel.component.jpa.QueryBuilder$1.makeQueryObject(QueryBuilder.java:44)[190:org.apache.camel.camel-jpa:2.12.0]
	at
org.apache.camel.component.jpa.QueryBuilder.createQuery(QueryBuilder.java:168)[190:org.apache.camel.camel-jpa:2.12.0]
	at
org.apache.camel.component.jpa.JpaConsumer$1.doInTransaction(JpaConsumer.java:89)[190:org.apache.camel.camel-jpa:2.12.0]
	at
org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:131)[183:org.springframework.transaction:3.2.4.RELEASE]
	at
org.apache.camel.component.jpa.JpaConsumer.poll(JpaConsumer.java:83)[190:org.apache.camel.camel-jpa:2.12.0]
	at
org.apache.camel.impl.ScheduledPollConsumer.doRun(ScheduledPollConsumer.java:187)[180:org.apache.camel.camel-core:2.12.0]
	at
org.apache.camel.impl.ScheduledPollConsumer.run(ScheduledPollConsumer.java:114)[180:org.apache.camel.camel-core:2.12.0]
	at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)[:1.7.0_45]
	at
java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304)[:1.7.0_45]
	at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178)[:1.7.0_45]
	at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)[:1.7.0_45]
	at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)[:1.7.0_45]
	at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)[:1.7.0_45]
	at java.lang.Thread.run(Thread.java:744)[:1.7.0_45]

Trying to fix this. If I mvn clean install my local version how do I install
it into Karaf? I thought that install -s
mvn:net.lr.tutorial.karaf.cameljpa/jpa2jms/1.0-SNAPSHOT might pull my local
version out of the .m2 repository but when I display the log the error is
the same as before.

Regards,

Sean



--
View this message in context: http://karaf.922171.n3.nabble.com/faultJmsMessageListenerContainer-Could-not-refresh-JMS-Connection-for-destination-person-tp4031400p4031425.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Re: faultJmsMessageListenerContainer - Could not refresh JMS Connection for destination 'person'

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Try to use the feature as in 3.0.1-SNAPSHOT (it should work), and the 
order is important too.

Whenever you want for a beer ;)

Regards
JB

On 01/30/2014 01:31 PM, Sebarry wrote:
> Ok I've made those changes. Now getting an error I've had before
>
> <openjpa-2.2.2-r422266:1468616 fatal internal error>
> org.apache.openjpa.util.InternalException: Another OSGi service listener has
> already been registered.
> 	at
> org.apache.openjpa.ee.OSGiManagedRuntime.registerServiceListener(OSGiManagedRuntime.java:103)
> 	at
> org.apache.openjpa.persistence.osgi.PersistenceActivator.start(PersistenceActivator.java:61)
> 	at
> org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:645)
> 	at org.apache.felix.framework.Felix.activateBundle(Felix.java:2146)
> 	at org.apache.felix.framework.Felix.startBundle(Felix.java:2064)
> 	at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1291)
> 	at
> org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:304)
> 	at java.lang.Thread.run(Thread.java:744)
>
> Previously I just deleted and re-installed everything but why am I getting
> this?
>
> I think I owe you a beer :)
>
>
>
> --
> View this message in context: http://karaf.922171.n3.nabble.com/faultJmsMessageListenerContainer-Could-not-refresh-JMS-Connection-for-destination-person-tp4031400p4031416.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
>

-- 
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

Re: faultJmsMessageListenerContainer - Could not refresh JMS Connection for destination 'person'

Posted by Sebarry <se...@yahoo.co.uk>.
Ok I've made those changes. Now getting an error I've had before

<openjpa-2.2.2-r422266:1468616 fatal internal error>
org.apache.openjpa.util.InternalException: Another OSGi service listener has
already been registered.
	at
org.apache.openjpa.ee.OSGiManagedRuntime.registerServiceListener(OSGiManagedRuntime.java:103)
	at
org.apache.openjpa.persistence.osgi.PersistenceActivator.start(PersistenceActivator.java:61)
	at
org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:645)
	at org.apache.felix.framework.Felix.activateBundle(Felix.java:2146)
	at org.apache.felix.framework.Felix.startBundle(Felix.java:2064)
	at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1291)
	at
org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:304)
	at java.lang.Thread.run(Thread.java:744)

Previously I just deleted and re-installed everything but why am I getting
this?

I think I owe you a beer :)



--
View this message in context: http://karaf.922171.n3.nabble.com/faultJmsMessageListenerContainer-Could-not-refresh-JMS-Connection-for-destination-person-tp4031400p4031416.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Re: faultJmsMessageListenerContainer - Could not refresh JMS Connection for destination 'person'

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
OK, now I understand.

By the way, Christian and I are working to provide samples directly in 
Karaf distribution. Christian's tutorial is a bit old now and not up to 
date (it didn't work on Karaf 3.0.0, lot of changes has been done in the 
commands, etc).
For Karaf 3.0.0, I would advice the users to wait the "native" Karaf 
samples, or at least use Christian's github.

Anyway:

1/ you should have installed ActiveMQ with feature:install 
activemq-broker, right (if you use ActiveMQ 5.9.0) ?
This feature installs ActiveMQ with a broker configuration in 
etc/activemq.xml:

ls -l|grep -i activemq
  activemq.xml
  org.apache.activemq.server-default.cfg
  org.apache.activemq.webconsole.cfg

2/ on the Camel JmsConfiguration, you have to specify the username and 
password.

My advice, to simplify, is to edit etc/activemq.xml and remove:

         <plugins>
             <jaasAuthenticationPlugin configuration="karaf" />
         </plugins>

If you use previous ActiveMQ version, it should work as the 
authentication plugin was not enabled.

By the way, I plan to merge and push my samples branch over the week end.

Regards
JB


On 01/30/2014 12:46 PM, Sebarry wrote:
> Hi JB,
>
> I have ActiveMQ embedded in Karaf. I'm trying to use it from code to add a
> JMS component to Camel (see below). I'm trying to do a JPA to JMS tutorial -
> http://www.liquid-reality.de/display/liquid/2012/07/20/Apache+Karaf+Tutorial+Part+7+-+Camel+JPA+and+JTA+transactions
>
> ActiveMQConnectionFactory cf = new
> ActiveMQConnectionFactory("tcp://localhost:61616");
> JmsConfiguration jmsConfig = new JmsConfiguration(cf);
> context.addComponent("jms", new JmsComponent(jmsConfig));
>
> Does that help?
>
> Sean
>
>
>
>
> --
> View this message in context: http://karaf.922171.n3.nabble.com/faultJmsMessageListenerContainer-Could-not-refresh-JMS-Connection-for-destination-person-tp4031400p4031410.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
>

-- 
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

Re: faultJmsMessageListenerContainer - Could not refresh JMS Connection for destination 'person'

Posted by Sebarry <se...@yahoo.co.uk>.
Hi JB,

I have ActiveMQ embedded in Karaf. I'm trying to use it from code to add a
JMS component to Camel (see below). I'm trying to do a JPA to JMS tutorial -
http://www.liquid-reality.de/display/liquid/2012/07/20/Apache+Karaf+Tutorial+Part+7+-+Camel+JPA+and+JTA+transactions

ActiveMQConnectionFactory cf = new
ActiveMQConnectionFactory("tcp://localhost:61616");
JmsConfiguration jmsConfig = new JmsConfiguration(cf);
context.addComponent("jms", new JmsComponent(jmsConfig));

Does that help?

Sean




--
View this message in context: http://karaf.922171.n3.nabble.com/faultJmsMessageListenerContainer-Could-not-refresh-JMS-Connection-for-destination-person-tp4031400p4031410.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Re: faultJmsMessageListenerContainer - Could not refresh JMS Connection for destination 'person'

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi Sean,

you are not pain ! ;)

Maybe I didn't understand what you do:

1/ where is ActiveMQ installed ? embedded in Karaf by installing the 
activemq-broker feature or as standalone ?
2/ to use the jms commands, you have to install the jms feature first 
(feature:install jms)
3/ how do you use ActiveMQ ? from a Camel route, from code, .. ?

Regards
JB

On 01/30/2014 12:27 PM, Sebarry wrote:
> Hi JB,
>
> Sorry to be a pain. If I look in the etc directory in the Apache Karaf 3
> distro I can't see a activemq.xml file.
>
> tommy@tommy-debian-xfce:~/karaf/assemblies/apache-karaf/target/apache-karaf-3.0.1-SNAPSHOT/etc$
> ls
>
> all.policy
> jmx.acl.org.apache.karaf.security.jmx.cfg
> org.apache.karaf.command.acl.shell.cfg   org.ops4j.pax.logging.cfg
> config.properties                    jmx.acl.osgi.compendium.cm.cfg
> org.apache.karaf.command.acl.system.cfg  org.ops4j.pax.url.mvn.cfg
> custom.properties                    jre.properties
> org.apache.karaf.features.cfg            regions-config.xml
> distribution.info                    keys.properties
> org.apache.karaf.features.obr.cfg        shell.init.script
> equinox-debug.properties             org.apache.felix.fileinstall-deploy.cfg
> org.apache.karaf.features.repos.cfg      startup.properties
> java.util.logging.properties         org.apache.karaf.command.acl.bundle.cfg
> org.apache.karaf.jaas.cfg                system.properties
> jmx.acl.cfg                          org.apache.karaf.command.acl.config.cfg
> org.apache.karaf.kar.cfg                 users.properties
> jmx.acl.java.lang.Memory.cfg
> org.apache.karaf.command.acl.feature.cfg   org.apache.karaf.log.cfg
> jmx.acl.org.apache.karaf.bundle.cfg  org.apache.karaf.command.acl.jaas.cfg
> org.apache.karaf.management.cfg
> jmx.acl.org.apache.karaf.config.cfg  org.apache.karaf.command.acl.kar.cfg
> org.apache.karaf.shell.cfg
>
> Also if I try the jms:count command I get an error
>
> karaf@root()> jms:count -u karaf -p karaf
> Command not found: jms:count
>
> Regards,
>
> Sean
>
>
>
>
> --
> View this message in context: http://karaf.922171.n3.nabble.com/faultJmsMessageListenerContainer-Could-not-refresh-JMS-Connection-for-destination-person-tp4031400p4031406.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
>

-- 
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

Re: faultJmsMessageListenerContainer - Could not refresh JMS Connection for destination 'person'

Posted by Sebarry <se...@yahoo.co.uk>.
Hi JB,

Sorry to be a pain. If I look in the etc directory in the Apache Karaf 3
distro I can't see a activemq.xml file.

tommy@tommy-debian-xfce:~/karaf/assemblies/apache-karaf/target/apache-karaf-3.0.1-SNAPSHOT/etc$
ls

all.policy                          
jmx.acl.org.apache.karaf.security.jmx.cfg 
org.apache.karaf.command.acl.shell.cfg   org.ops4j.pax.logging.cfg
config.properties                    jmx.acl.osgi.compendium.cm.cfg            
org.apache.karaf.command.acl.system.cfg  org.ops4j.pax.url.mvn.cfg
custom.properties                    jre.properties                            
org.apache.karaf.features.cfg            regions-config.xml
distribution.info                    keys.properties                           
org.apache.karaf.features.obr.cfg        shell.init.script
equinox-debug.properties             org.apache.felix.fileinstall-deploy.cfg   
org.apache.karaf.features.repos.cfg      startup.properties
java.util.logging.properties         org.apache.karaf.command.acl.bundle.cfg   
org.apache.karaf.jaas.cfg                system.properties
jmx.acl.cfg                          org.apache.karaf.command.acl.config.cfg   
org.apache.karaf.kar.cfg                 users.properties
jmx.acl.java.lang.Memory.cfg        
org.apache.karaf.command.acl.feature.cfg   org.apache.karaf.log.cfg
jmx.acl.org.apache.karaf.bundle.cfg  org.apache.karaf.command.acl.jaas.cfg     
org.apache.karaf.management.cfg
jmx.acl.org.apache.karaf.config.cfg  org.apache.karaf.command.acl.kar.cfg      
org.apache.karaf.shell.cfg

Also if I try the jms:count command I get an error

karaf@root()> jms:count -u karaf -p karaf
Command not found: jms:count

Regards,

Sean




--
View this message in context: http://karaf.922171.n3.nabble.com/faultJmsMessageListenerContainer-Could-not-refresh-JMS-Connection-for-destination-person-tp4031400p4031406.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Re: faultJmsMessageListenerContainer - Could not refresh JMS Connection for destination 'person'

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi,

if you take a look in the etc folder, you will see the activemq.xml. 
This activemq.xml contains a <jaas:plugin/> element.

If you want to disable authentication, just remove the <jaas:plugin/> 
element.
Else, you have to specify username/password when you get the JMS connection.

Using the Karaf jms commands, you have to use:

karaf@root()> jms:count -u karaf -p karaf ...

where -u is the username and -p the password.

If you use Camel or code, you have to specify username/password.

Regards
JB

On 01/30/2014 09:36 AM, Sebarry wrote:
> Hi JB,
>
> Please excuse my ignorance I didn't specify a username and password. Where
> do I need to do this? If I have a look at the features that I have installed
> I have ActiveMQ 5.9.0 with default configuration.
>
> karaf@root()> feature:list | grep mq
> activemq-client                         | 5.9.0            | x         |
> activemq-5.9.0            | ActiveMQ client libraries
> activemq                                | 5.9.0            | x         |
> activemq-5.9.0            | ActiveMQ broker libraries
> activemq-broker-noweb                   | 5.9.0            |           |
> activemq-5.9.0            | Full ActiveMQ broker with default configuration
> activemq-broker                         | 5.9.0            |           |
> activemq-5.9.0            | Full ActiveMQ broker with default configuration
> an
> activemq-camel                          | 5.9.0            |           |
> activemq-5.9.0            |
> activemq-web-console                    | 5.9.0            |           |
> activemq-5.9.0            |
> activemq-blueprint                      | 5.9.0            | x         |
> activemq-5.9.0            |
> camel-amqp                              | 2.12.0           |           |
> camel-2.12.0              |
> camel-mqtt                              | 2.12.0           |           |
> camel-2.12.0              |
> camel-rabbitmq                          | 2.12.0           |           |
> camel-2.12.0              |
>
>
>
> --
> View this message in context: http://karaf.922171.n3.nabble.com/faultJmsMessageListenerContainer-Could-not-refresh-JMS-Connection-for-destination-person-tp4031400p4031402.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
>

-- 
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

Re: faultJmsMessageListenerContainer - Could not refresh JMS Connection for destination 'person'

Posted by Sebarry <se...@yahoo.co.uk>.
Hi JB,

Please excuse my ignorance I didn't specify a username and password. Where
do I need to do this? If I have a look at the features that I have installed
I have ActiveMQ 5.9.0 with default configuration.

karaf@root()> feature:list | grep mq
activemq-client                         | 5.9.0            | x         |
activemq-5.9.0            | ActiveMQ client libraries                         
activemq                                | 5.9.0            | x         |
activemq-5.9.0            | ActiveMQ broker libraries                         
activemq-broker-noweb                   | 5.9.0            |           |
activemq-5.9.0            | Full ActiveMQ broker with default configuration   
activemq-broker                         | 5.9.0            |           |
activemq-5.9.0            | Full ActiveMQ broker with default configuration
an
activemq-camel                          | 5.9.0            |           |
activemq-5.9.0            |                                                   
activemq-web-console                    | 5.9.0            |           |
activemq-5.9.0            |                                                   
activemq-blueprint                      | 5.9.0            | x         |
activemq-5.9.0            |                                                   
camel-amqp                              | 2.12.0           |           |
camel-2.12.0              |                                                   
camel-mqtt                              | 2.12.0           |           |
camel-2.12.0              |                                                   
camel-rabbitmq                          | 2.12.0           |           |
camel-2.12.0              |                                                  



--
View this message in context: http://karaf.922171.n3.nabble.com/faultJmsMessageListenerContainer-Could-not-refresh-JMS-Connection-for-destination-person-tp4031400p4031402.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Re: faultJmsMessageListenerContainer - Could not refresh JMS Connection for destination 'person'

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi Sean,

did you provide username/password ?

Since ActiveMQ 5.9.0, the default broker deployed in Karaf use a JAAS 
plugin to secure the access to the broker (karaf/karaf by default).

Regards
JB

On 01/30/2014 12:06 AM, Sebarry wrote:
> Hi,
>
> I'm getting the following error in Karaf 3 after deploy.
>
> 2014-01-29 22:42:18,743 | ERROR | Consumer[person] |
> faultJmsMessageListenerContainer | 127 - org.springframework.jms -
> 3.2.4.RELEASE | Could not refresh JMS Connection for destination 'person' -
> retrying in 5000 ms. Cause: Error while attempting to add new Connection to
> the pool; nested exception is javax.jms.JMSException: Could not connect to
> broker URL: tcp://localhost:61616. Reason: java.net.ConnectException:
> Connection refused
>
> Any ideas on what could be causing it?
>
> Thanks,
>
> Sean
>
>
>
>
> --
> View this message in context: http://karaf.922171.n3.nabble.com/faultJmsMessageListenerContainer-Could-not-refresh-JMS-Connection-for-destination-person-tp4031400.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
>

-- 
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

Re: faultJmsMessageListenerContainer - Could not refresh JMS Connection for destination 'person'

Posted by Sebarry <se...@yahoo.co.uk>.
Hey JB,

Did you get anywhere with the testing?

Thanks,

Sean



--
View this message in context: http://karaf.922171.n3.nabble.com/faultJmsMessageListenerContainer-Could-not-refresh-JMS-Connection-for-destination-person-tp4031400p4031533.html
Sent from the Karaf - User mailing list archive at Nabble.com.