Return-Path: Delivered-To: apmail-geronimo-xbean-dev-archive@locus.apache.org Received: (qmail 4133 invoked from network); 26 Jun 2008 09:55:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 26 Jun 2008 09:55:07 -0000 Received: (qmail 22456 invoked by uid 500); 26 Jun 2008 09:55:09 -0000 Delivered-To: apmail-geronimo-xbean-dev-archive@geronimo.apache.org Received: (qmail 22412 invoked by uid 500); 26 Jun 2008 09:55:09 -0000 Mailing-List: contact xbean-dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: xbean-dev@geronimo.apache.org Delivered-To: mailing list xbean-dev@geronimo.apache.org Received: (qmail 22349 invoked by uid 99); 26 Jun 2008 09:55:09 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Jun 2008 02:55:08 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Jun 2008 09:54:27 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 96155234C150 for ; Thu, 26 Jun 2008 02:54:46 -0700 (PDT) Message-ID: <1351627127.1214474086613.JavaMail.jira@brutus> Date: Thu, 26 Jun 2008 02:54:46 -0700 (PDT) From: "Guillaume Nodet (JIRA)" To: xbean-dev@geronimo.apache.org Subject: [jira] Closed: (XBEAN-106) Id is required for elements when NOT used as a top-level tag In-Reply-To: <833908787.1213775086968.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/XBEAN-106?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Guillaume Nodet closed XBEAN-106. --------------------------------- Resolution: Fixed Assignee: Guillaume Nodet Sending xbean-spring/src/main/java/org/apache/xbean/spring/context/v2c/XBeanBeanDefinitionParserDelegate.java Adding xbean-spring/src/test/java/org/apache/xbean/spring/context/FavoriteUsingXBeanMixedTest.java Adding xbean-spring/src/test/resources/org/apache/xbean/spring/context/favorite-xbean-mixed.xml Transmitting file data ... Committed revision 671837. > Id is required for elements when NOT used as a top-level tag > ------------------------------------------------------------ > > Key: XBEAN-106 > URL: https://issues.apache.org/jira/browse/XBEAN-106 > Project: XBean > Issue Type: Bug > Components: spring > Affects Versions: 3.4 > Environment: xbean-spring-3.4.1 > spring-*-2.5.4 > Reporter: Tuomas Kiviaho > Assignee: Guillaume Nodet > > I was using org.apache.xbean.spring.context.ClassPathXmlApplicationContext in my beanRefContext.xml and noticed weird behaviour with util:properties (and util:map) > > > > > > Caused by: org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Configuration problem: Id is required for element 'properties' when used as a top-level tag > at org.springframework.beans.factory.parsing.FailFastProblemReporter.error(FailFastProblemReporter.java:68) > at org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:85) > at org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:72) > at org.springframework.beans.factory.xml.AbstractBeanDefinitionParser.parse(AbstractBeanDefinitionParser.java:73) > at org.springframework.beans.factory.xml.NamespaceHandlerSupport.parse(NamespaceHandlerSupport.java:69) > at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1253) > at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseNestedCustomElement(BeanDefinitionParserDelegate.java:1302) > 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.xbean.spring.context.v2c.XBeanBeanDefinitionParserDelegate.internalParseNestedCustomElement(XBeanBeanDefinitionParserDelegate.java:90) > at org.apache.xbean.spring.context.v2c.XBeanBeanDefinitionParserDelegate.parsePropertySubElement(XBeanBeanDefinitionParserDelegate.java:47) > When using org.springframework.context.support.ClassPathXmlApplicationContext or supplying and id this problem disappeared. > * * * IRRELEVANT FYI * * * > I couldn't get ActiveMQ XBean variant to accept properties at all. > > > > > > It created PropertyValue named 'property' along with properties which naturally failed due to missing 'property' named property. > > > > It resolved correctly but property type coercion lead to ManagedMap instead of property file. Here I revered from using ActiveMQ XBean to format used above. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.