Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 64683 invoked from network); 20 Jun 2007 23:03:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 20 Jun 2007 23:03:08 -0000 Received: (qmail 41065 invoked by uid 500); 20 Jun 2007 23:03:11 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 40789 invoked by uid 500); 20 Jun 2007 23:03:11 -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 40776 invoked by uid 99); 20 Jun 2007 23:03:10 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Jun 2007 16:03:10 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [203.89.192.138] (HELO postoffice.aconex.com) (203.89.192.138) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Jun 2007 16:03:06 -0700 Received: from [192.168.5.130] (unknown [203.89.192.141]) by postoffice.aconex.com (Postfix) with ESMTP id 19D2392C2CC for ; Thu, 21 Jun 2007 09:02:45 +1000 (EST) Mime-Version: 1.0 (Apple Message framework v752.2) To: users@activemq.apache.org Message-Id: Content-Type: multipart/alternative; boundary=Apple-Mail-7-62417736 From: Paul Smith Subject: Basic Spring+AMQ+XBean+embededbroker problem Date: Thu, 21 Jun 2007 09:02:44 +1000 X-Mailer: Apple Mail (2.752.2) X-Virus-Checked: Checked by ClamAV on apache.org --Apple-Mail-7-62417736 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Ok, well I'm officially stumped, but I can't get a basic Spring+AMQ 4.1.1+XBeans with embedded broker test harness to work using the configuration outlined here: http://activemq.apache.org/how-do-i-embed-a-broker-inside-a- connection.html I get a ClassNotFoundException (see [1]). Now, _obviously_ I'm missing something in the class path, but I cannot work out what is missing. I looked at the AMQ pom.xml to see if something jumped out, but I can't work it out. I'm familiar with Maven and Spring recently getting on board the bandwagon, but definitely no expert, so I'm sure this is related to that. My test harness has these dependencies in it's pom: org.apache.activemq activemq-core 4.1.1 org.springframework spring 2.0.5 org.apache.xbean xbean-spring-v2 2.8 junit junit 3.8.2 test To maximize my chances of help, I've even created a simple mavenized test project to demonstrate: http://people.apache.org/~psmith/activemqspringtestbed.tar.gz What am I missing? I'm fully prepared to be slapped in the face with the obvious. [1] Exception org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from class path resource [config.xml]; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.apache.xbean.spring.context.v2.XBeanNamespaceHandler]: Constructor threw exception; nested exception is java.lang.IllegalStateException: Unable to create namespace handler for: v2c Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.apache.xbean.spring.context.v2.XBeanNamespaceHandler]: Constructor threw exception; nested exception is java.lang.IllegalStateException: Unable to create namespace handler for: v2c Caused by: java.lang.IllegalStateException: Unable to create namespace handler for: v2c at org.apache.xbean.spring.context.v2.XBeanV2Helper.createNamespaceHandler( XBeanV2Helper.java:48) .... Caused by: java.lang.ClassNotFoundException: org.apache.xbean.spring.context.v2c.XBeanNamespaceHandler at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) .... at org.apache.xbean.spring.context.v2.XBeanV2Helper.createNamespaceHandler( XBeanV2Helper.java:45) ... 46 more --Apple-Mail-7-62417736--