Return-Path: Delivered-To: apmail-geronimo-xbean-user-archive@locus.apache.org Received: (qmail 297 invoked from network); 4 Dec 2006 17:04:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 Dec 2006 17:04:56 -0000 Received: (qmail 2313 invoked by uid 500); 4 Dec 2006 17:05:05 -0000 Delivered-To: apmail-geronimo-xbean-user-archive@geronimo.apache.org Received: (qmail 2293 invoked by uid 500); 4 Dec 2006 17:05:05 -0000 Mailing-List: contact xbean-user-help@geronimo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: xbean-user@geronimo.apache.org Delivered-To: mailing list xbean-user@geronimo.apache.org Received: (qmail 2284 invoked by uid 99); 4 Dec 2006 17:05:04 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Dec 2006 09:05:04 -0800 X-ASF-Spam-Status: No, hits=2.9 required=10.0 tests=HTML_10_20,HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of mail-lists@revolsys.com designates 24.85.224.68 as permitted sender) Received: from [24.85.224.68] (HELO mail.revolsys.com) (24.85.224.68) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Dec 2006 09:04:53 -0800 Received: from chief.int.revolsys.com (chief.int.revolsys.com [192.168.1.2]) by mail.revolsys.com (Postfix) with ESMTP id E6717D6D659 for ; Mon, 4 Dec 2006 09:04:35 -0800 (PST) Subject: Xbean 2.7 + spring 2.0/2.0.1 Unsupported operation From: Paul Austin To: xbean-user@geronimo.apache.org Content-Type: multipart/alternative; boundary="=-ksDcuJictAoTXitJAhym" Date: Mon, 04 Dec 2006 09:04:34 -0800 Message-Id: <1165251874.14377.17.camel@chief.int.revolsys.com> Mime-Version: 1.0 X-Mailer: Evolution 2.6.2 X-Virus-Checked: Checked by ClamAV on apache.org --=-ksDcuJictAoTXitJAhym Content-Type: text/plain Content-Transfer-Encoding: 7bit Hi, When I try and execute the following code using Xbean 2.7 + spring 2.0/2.0.1 ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext( "test/com/revolsys/core/ui/html/config/web-config.xml"); I get the following exception, which is caused by the method org.springframework.beans.factory.xml.XmlBeanDefinitionReader.setValidationMode(I)V not being available in spring 2.0. java.lang.IllegalStateException: Could not find valid implementation for: 2.0 at org.apache.xbean.spring.context.impl.XBeanHelper.createBeanDefinitionReader(XBeanHelper.java:48) at org.apache.xbean.spring.context.ClassPathXmlApplicationContext.loadBeanDefinitions(ClassPathXmlApplicationContext.java:170) at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:89) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:269) at org.apache.xbean.spring.context.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:161) at org.apache.xbean.spring.context.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:51) at test.com.revolsys.core.ui.html.config.WebConfigTest.testLoadConfig(WebConfigTest.java:25) ... Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:274) at org.apache.xbean.spring.context.impl.XBeanHelper.createBeanDefinitionReader(XBeanHelper.java:46) ... 24 more Caused by: java.lang.NoSuchMethodError: org.springframework.beans.factory.xml.XmlBeanDefinitionReader.setValidationMode(I)V at org.apache.xbean.spring.context.v2.XBeanXmlBeanDefinitionReader.(XBeanXmlBeanDefinitionReader.java:58) ... 29 more I saw there was an issue with spring 2.0 but I thought this had been fixed in xbean release 2.7 any ideas? Paul --=-ksDcuJictAoTXitJAhym--