Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 85582 invoked from network); 9 Mar 2007 17:58:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Mar 2007 17:58:04 -0000 Received: (qmail 5009 invoked by uid 500); 9 Mar 2007 17:58:13 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 4870 invoked by uid 500); 9 Mar 2007 17:58:12 -0000 Mailing-List: contact users-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@activemq.apache.org Delivered-To: mailing list users@activemq.apache.org Received: (qmail 4861 invoked by uid 99); 9 Mar 2007 17:58:12 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Mar 2007 09:58:12 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of amjibaly@gmail.com designates 64.233.184.225 as permitted sender) Received: from [64.233.184.225] (HELO wr-out-0506.google.com) (64.233.184.225) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Mar 2007 09:58:01 -0800 Received: by wr-out-0506.google.com with SMTP id i31so1521649wra for ; Fri, 09 Mar 2007 09:57:40 -0800 (PST) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=MGXljgSW9/NuokAhTlofYC58HXaLxSOHeMr7ioFRSARASU7g7N8ltVs7LHjtCkwVvVPzLQ6rx3Zzh/d5CMQDfXLZ5q+zlNNfQ70FwLHdRIX4DjdT8xdUyMd7KVLPh+qIKIOnplo662qdxMe9+oHTBWyr3d2I29aMIiBp1yw9l6w= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=guzMBJKIX5fOZF7e5UdkW6MNzmaaEQNERfitBJytWCzLFgnW7sO/V7omYBnkme26D2p6349/qrFA3Du19XoK7qO5jmvQFSmM5EEnNW4+CR5hHxhv5nq9W5FI2WBrqu2+6aJsunjyiEGl1gO0wuG3LUtyZyUdK1S9syJfAAIFE9g= Received: by 10.64.210.3 with SMTP id i3mr3258944qbg.1173463059641; Fri, 09 Mar 2007 09:57:39 -0800 (PST) Received: by 10.64.142.1 with HTTP; Fri, 9 Mar 2007 09:57:39 -0800 (PST) Message-ID: <43cc3c280703090957p6570f86ahcab40c44de3df5c5@mail.gmail.com> Date: Fri, 9 Mar 2007 11:57:39 -0600 From: "Abdullah Jibaly" To: users@activemq.apache.org Subject: Re: Using activemq as a jabber server In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <43cc3c280703081322i7e466163w6aa03a93d7d6392b@mail.gmail.com> <43cc3c280703090807x449cc20eqcf964646849bbe4c@mail.gmail.com> <43cc3c280703090811q1953357am2f96496f2e1bc784@mail.gmail.com> <43cc3c280703090823g15c957e1yb1befb6119bb5cc5@mail.gmail.com> <43cc3c280703090923k3aedb4b4q8281893fdb46fdd8@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org Just a note that this turned out to be the Spark client itself. James added a note on the wiki showing how to turn off auto discovery of server/port so shouldn't be an issue anymore. On 3/9/07, James Strachan wrote: > BTW do you see any DEBUG statements showing that the XMPP transport in > ActiveMQ is receiving messages over XMPP? > > On 3/9/07, James Strachan wrote: > > Are you sure there's not a firewall or something between your Spark > > client and the broker? > > > > On 3/9/07, Abdullah Jibaly wrote: > > > Here's the only exception I saw when I changed the log level to debug: > > > > > > DEBUG ManagementContext - Failed to create local registry > > > java.lang.ClassNotFoundException: mx4j.tools.naming.NamingService > > > at java.net.URLClassLoader$1.run(URLClassLoader.java:200) > > > at java.security.AccessController.doPrivileged(Native Method) > > > at java.net.URLClassLoader.findClass(URLClassLoader.java:188) > > > at java.lang.ClassLoader.loadClass(ClassLoader.java:306) > > > at java.lang.ClassLoader.loadClass(ClassLoader.java:251) > > > at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) > > > at java.lang.Class.forName0(Native Method) > > > at java.lang.Class.forName(Class.java:169) > > > at org.apache.activemq.broker.jmx.ManagementContext.createConnector(ManagementContext.java:386) > > > at org.apache.activemq.broker.jmx.ManagementContext.findMBeanServer(ManagementContext.java:301) > > > at org.apache.activemq.broker.jmx.ManagementContext.getMBeanServer(ManagementContext.java:154) > > > at org.apache.activemq.broker.jmx.ManagementContext.start(ManagementContext.java:78) > > > at org.apache.activemq.broker.BrokerService.start(BrokerService.java:405) > > > at org.apache.activemq.xbean.XBeanBrokerService.afterPropertiesSet(XBeanBrokerService.java:47) > > > at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(Abst > > > ractAutowireCapableBeanFactory.java:1062) > > > at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(Abstrac > > > tAutowireCapableBeanFactory.java:1029) > > > at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAut > > > owireCapableBeanFactory.java:420) > > > at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java: > > > 245) > > > at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingleto > > > nBeanRegistry.java:141) > > > at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:242) > > > > > > at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:156) > > > > > > at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(Defau > > > ltListableBeanFactory.java:290) > > > at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.j > > > ava:348) > > > at org.apache.xbean.spring.context.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContex > > > t.java:161) > > > at org.apache.xbean.spring.context.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContex > > > t.java:51) > > > at org.apache.activemq.xbean.XBeanBrokerFactory.createBroker(XBeanBrokerFactory.java:41) > > > at org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.java:57) > > > at org.apache.activemq.console.command.StartCommand.startBroker(StartCommand.java:82) > > > at org.apache.activemq.console.command.StartCommand.runTask(StartCommand.java:47) > > > at org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:50) > > > at org.apache.activemq.console.command.ShellCommand.runTask(ShellCommand.java:105) > > > at org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:50) > > > at org.apache.activemq.console.command.ShellCommand.main(ShellCommand.java:77) > > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > > > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > > > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > > > at java.lang.reflect.Method.invoke(Method.java:597) > > > at org.apache.activemq.console.Main.runTaskClass(Main.java:206) > > > at org.apache.activemq.console.Main.main(Main.java:95) > > > > > > On 3/9/07, James Strachan wrote: > > > > I'm a bit stumped on this one. All I can think of right now is you > > > > enable debug logging in the log4j.properties file and see if that > > > > helps any > > > > > > > > On 3/9/07, Abdullah Jibaly wrote: > > > > > Here is a screenshot showing the error I'm getting, as well as my activemq.xml: > > > > > > > > > > > > > > > > > > > > > > > > > > > > > discoveryUri="multicast://default"/> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > On 3/9/07, Abdullah Jibaly wrote: > > > > > > I forgot to mention, I also tried that simpleAuthenticationPlugin > > > > > > sample, put it in my activemq.xml but the command agent then fails to > > > > > > startup. I'm running off of the svn trunk and built activemq using > > > > > > maven. > > > > > > > > > > > > Thanks, > > > > > > Abdullah > > > > > > > > > > > > On 3/9/07, Abdullah Jibaly wrote: > > > > > > > Hi James, > > > > > > > > > > > > > > Thanks for the response. The method you outlined is exactly what I > > > > > > > want to use it for. However, I think my question is much more basic: > > > > > > > In the xmpp page you have an example with spark, using a username and > > > > > > > password right? How do I configure a username and password is my > > > > > > > question? I tried putting in a random username and password and i get > > > > > > > back "invalid username/password"... > > > > > > > > > > > > > > Thanks, > > > > > > > Abdullah > > > > > > > > > > > > > > On 3/9/07, James Strachan wrote: > > > > > > > > On 3/8/07, Abdullah Jibaly wrote: > > > > > > > > > Hi all, > > > > > > > > > > > > > > > > > > I'm having trouble setting up ActiveMQ as a Jabber server. I tried to > > > > > > > > > follow the directions on the xmpp page but there are lots of holes in > > > > > > > > > it. For example, how do I configure the username/password, where do i > > > > > > > > > set those up? Has anyone been able to follow that assuming no other > > > > > > > > > knowledge of ActiveMQ? BTW, I followed the article on Infoq regarding > > > > > > > > > activemessaging so I was able to get messages getting sent just fine, > > > > > > > > > but had no luck with xmpp. Also, I had to build activemq from source > > > > > > > > > using maven because the latest 4.1 binaries do not include the xmpp > > > > > > > > > transport. > > > > > > > > > > > > > > > > > > So in summary: > > > > > > > > > > > > > > > > > > How do i setup jabber users so they can connect? > > > > > > > > > > > > > > > > Note that the XMPP support is not really meant as a fully fledged > > > > > > > > Jabber server supporting all of the various Jabber features - its more > > > > > > > > a way to be able to use your Jabber client to talk to ActiveMQ as a > > > > > > > > kinda management/operational tool > > > > > > > > > > > > > > > > The out of the box default has no security enabled, so you don't need > > > > > > > > to worry about configuring anything if you just want to get things > > > > > > > > going - just enable the xmpp transport connector in activemq.xml. > > > > > > > > > > > > > > > > If you want to enable some kinda security mechanism, see... > > > > > > > > http://activemq.apache.org/security.html > > > > > > > > -- > > > > > > > > > > > > > > > > James > > > > > > > > ------- > > > > > > > > http://radio.weblogs.com/0112098/ > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > > > > > James > > > > ------- > > > > http://radio.weblogs.com/0112098/ > > > > > > > > > > > > > -- > > > > James > > ------- > > http://radio.weblogs.com/0112098/ > > > > > -- > > James > ------- > http://radio.weblogs.com/0112098/ >