Return-Path: Delivered-To: apmail-commons-issues-archive@locus.apache.org Received: (qmail 62567 invoked from network); 14 Oct 2007 22:10:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 14 Oct 2007 22:10:16 -0000 Received: (qmail 88983 invoked by uid 500); 14 Oct 2007 22:10:03 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 88918 invoked by uid 500); 14 Oct 2007 22:10:03 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 88909 invoked by uid 99); 14 Oct 2007 22:10:03 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 14 Oct 2007 15:10:03 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 14 Oct 2007 22:10:11 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 9664B714187 for ; Sun, 14 Oct 2007 15:09:50 -0700 (PDT) Message-ID: <2605932.1192399790583.JavaMail.jira@brutus> Date: Sun, 14 Oct 2007 15:09:50 -0700 (PDT) From: "Jin Voon (JIRA)" To: issues@commons.apache.org Subject: [jira] Commented: (CONFIGURATION-297) NoSuchMethodError if reloading strategy is specified in configuration XML In-Reply-To: <23448920.1191377691892.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/CONFIGURATION-297?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12534688 ] Jin Voon commented on CONFIGURATION-297: ---------------------------------------- Hi, Please close this ticket. It is related to the class path issue (hell) as suggested. Thanks a lot for your help! > NoSuchMethodError if reloading strategy is specified in configuration XML > ------------------------------------------------------------------------- > > Key: CONFIGURATION-297 > URL: https://issues.apache.org/jira/browse/CONFIGURATION-297 > Project: Commons Configuration > Issue Type: Bug > Affects Versions: 1.4 > Environment: Windows XP, WebLogic Portal Server 10.0 > Reporter: Jin Voon > > I'm using the DefaultConfigurationBuilder to load the config.xml which contains the configuration definitions. > DefaultConfigurationBuilder builder = new DefaultConfigurationBuilder(); > builder.setFile(new File("config.xml")); > CombinedConfiguration cc = builder.getConfiguration(true); > It definitely finds the config.xml file, but it keeps throwing java.lang.NoSuchMethodError: getClass during the loading. > java.lang.NoSuchMethodError: getClass > at org.apache.commons.configuration.beanutils.BeanHelper.loadClass(BeanH > elper.java:297) > at org.apache.commons.configuration.beanutils.BeanHelper.fetchBeanClass( > BeanHelper.java:322) > at org.apache.commons.configuration.beanutils.BeanHelper.createBean(Bean > Helper.java:244) > at org.apache.commons.configuration.beanutils.BeanHelper.createBean(Bean > Helper.java:266) > at org.apache.commons.configuration.beanutils.BeanHelper.initBean(BeanHe > lper.java:176) > The config.xml file is: > > > > > > > > > > If I remove the reloadingStrategy element from the config.xml file, everything works properly. I can confirm I have all the required commons jars in my classpath. Would anyone know what the problem is? Is there something wrong with my configuration file or is there something more major? Thanks! -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.