Home > Cannot Locate > Org.apache.commons.configuration.configurationexception: Cannot Locate Configuration Source Null

Org.apache.commons.configuration.configurationexception: Cannot Locate Configuration Source Null

Contents

Is there anything I could have changed that I'm not mentioning that would affect this? Make sure that jar is there. FAQs Search RecentTopics FlaggedTopics HotTopics Best Topics Register / Login Post Reply Bookmark Topic Watch Topic New Topic programming forums Java Java JSRs Mobile Certification Databases Caching Books Engineering Languages Frameworks cfg = new CIMConfiguration(); ... } public void init() { ... have a peek here

Why are LEDs in my home unaffected by voltage drop? Like Show 0 Likes(0) Actions 2. more stack exchange communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed I edited my answer to see how it should look. –hovanessyan Nov 17 '11 at 21:42 that gives me Cannot locate configuration source config.properties –sgoldberg Nov 17 '11 at

Org.apache.commons.configuration.configurationexception: Cannot Locate Configuration Source Null

The source code is: public CIMConfiguration configure(String path) { URL url = org.apache.commons.configuration.ConfigurationUtils.locate(path); config = new org.apache.commons.configuration.PropertiesConfiguration(); config.setURL(url); try { log.info("Loading configuration ["+url+"]..."); config.load(); } catch (ConfigurationException e) { log.error(path + Your problem is as follows. 1. Cheers, Martijn - Blog, Twitter, PCGen, Ikasan, My The Well-Grounded Java Developer book!, My start-up. posted 7 years ago Hi there and welcome to Javaranch!

If you have further questions I would suggest posting on the dev list. Please type your message and try again. 2 Replies Latest reply on May 13, 2013 7:33 AM by prashamsjain org.apache.commons.configuration.ConfigurationException: Cannot locate configuration source abc-config.xml prashamsjain May 13, 2013 6:30 AM Is my understanding correct ? Commons-beanutils Maven Like Show 0 Likes(0) Actions 4.

CIMConfiguration has a PropertiesConfiguration as a class member variable. 5. Org Apache Commons Configuration Configurationexception Cannot Load A Configuration From A Directory Show 5 replies 1. Hide Permalink ranbir singh added a comment - 01/Apr/09 06:28 I am going to use PropertiesConfiguration(URL url) method instead of the existing 2 step process: config = new PropertiesConfiguration(); config.setURL(url); Any Thanks in advance.

Not the answer you're looking for? If you have further questions I would suggest posting on the dev list. We recommend upgrading to the latest Safari, Google Chrome, or Firefox. This new configuration doesn't have its url set. 8.

Org Apache Commons Configuration Configurationexception Cannot Load A Configuration From A Directory

setURL is called to set the url. https://coderanch.com/t/437670/java/org-apache-commons-configuration-ConfigurationException more hot questions question feed about us tour help blog chat data legal privacy policy work here advertising info mobile contact us feedback Technology Life / Arts Culture / Recreation Science Org.apache.commons.configuration.configurationexception: Cannot Locate Configuration Source Null Anyway, the problem that I asked about has been fixed. Propertiesconfiguration Example I've gotten used to maven handling my dependencies for me and it wasn't there -- I added a dependency for it specifically, and it definitely changed something.

The different twins My cat sat down on my laptop, now the right side of my keyboard types the wrong characters Can dispel magic end a darkness spell? http://ecoflashapps.com/cannot-locate/cannot-locate-configuration-source-torque-properties.html Dynamic Query - System.QueryException: expecting a colon, found '.' SMS verification, is it secure? My directory setup looks like: src test java mypackage resources Before, I had a file myconfig.xml in the resources directory. Hide Permalink ranbir singh added a comment - 01/Apr/09 05:54 - edited We use Quartz as job schduler fraework. Propertiesconfiguration Java

Does version 1.5 or 1.6 have any enhancement in this regards? What is the temperature of the brakes after a typical landing? public CIMConfiguration configure() { String configFile = System.getProperty(CIM_CONFIG_FILE); if (!StringUtils.isBlank(configFile)) configure(configFile); else configure("cim.properties"); return this; } public CIMConfiguration configure(String path) { URL url = ConfigurationUtils.locate(path); config = new PropertiesConfiguration(); config.setURL(url); try Check This Out Hide Permalink ranbir singh added a comment - 01/Apr/09 06:21 Thanks a lot for your expert comments.

CIMConfiguration has a PropertiesConfiguration as a class member variable. 5. CIMSystem.execute is being called from multiple threads. 3. cfg = new CIMConfiguration(); ... } public void init() { ...

SMS verification, is it secure?

share|improve this answer answered Apr 17 '12 at 18:51 Bozho 387k84777948 Weird. Still it throws this error "sometimes". Can Egyptian citizen visit Armenia on valid USA visa? It is throwing following exception: org.apache.commons.configuration.ConfigurationException: Cannot locate configuration source null at org.apache.commons.configuration.AbstractFileConfiguration.load(AbstractFileConfiguration.java:213) at org.apache.commons.configuration.AbstractFileConfiguration.load(AbstractFileConfiguration.java:193) at com.myorg.cim.CIMConfiguration.configure(CIMConfiguration.java:104) at com.myorg.cim.CIMConfiguration.configure(CIMConfiguration.java:89) at com.myorg.cim.InterfaceJob.execute(InterfaceJob.java:64) at org.quartz.core.JobRunShell.run(JobRunShell.java:202) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:529)[/quote] This code is called from Quartz

Re: org.apache.commons.configuration.ConfigurationException: Cannot locate configuration source abc-config.xml Stephen Coy May 13, 2013 7:01 AM (in response to prashamsjain) Either add it one of the jars in your EAR file, or follow asked 4 years ago viewed 6776 times active 2 years ago Upcoming Events 2016 Community Moderator Election ends Nov 22 Related 70At what point does a config file become a programming Re: Problem with Commons Configuration 807605 Aug 23, 2007 10:57 AM (in response to 807605) >If the configuration file is specific to your application, then you don't want to put it this contact form You may consider using Java's Properties: download.oracle.com/javase/6/docs/api/java/util/Properties.h‌tml –hovanessyan Nov 17 '11 at 21:01 Ok, just to clarify my file is in build/classes/stream/bundle and the file is config.properties.

Developer does not see priority in git Development Workflow being followed Was a massive case of voter fraud uncovered in Florida? asked 4 years ago viewed 11018 times active 4 years ago Upcoming Events 2016 Community Moderator Election ends Nov 22 Related 167Apache Commons vs. Try placing the conf.xml file in your application's working directory. The configure method sets this class member variable to a new PropertiesConfiguration. 6.

Guava (formerly “Google Collections”)3Commons configuration - JNDIConfiguration - How to?5java: Preferences API vs. What I have currently is the following: private static CombinedConfiguration configuration = null; public static void configure() { try { DefaultConfigurationBuilder builder = new DefaultConfigurationBuilder("config-test.xml"); configuration = builder.getConfiguration(true); System.err.println("Yay"); } catch Since you are getting the file name from a system property It appears that you are only dealing with a single property file. Your problem is as follows. 1.

CIMSystem is a singleton. 2. Why did Michael Corleone not forgive his brother Fredo? A different way to handle Microsoft Exchange emails Any way to color lines in a Line command? Here is the stacktrace: 09:18:15.294 [pool-1-thread-2] DEBUG b.e.k.testlinkjavaapi.TestLinkAPI - Cannot locate configuration source testlinkjavaapi.properties org.apache.commons.configuration.ConfigurationException: Cannot locate configuration source testlinkjavaapi.properties at org.apache.commons.configuration.AbstractFileConfiguration.load(AbstractFileConfiguration.java:249) ~[commons-configuration-1.7.jar:1.7] at org.apache.commons.configuration.AbstractFileConfiguration.load(AbstractFileConfiguration.java:229) ~[commons-configuration-1.7.jar:1.7] at org.apache.commons.configuration.AbstractFileConfiguration.(AbstractFileConfiguration.java:149) ~[commons-configuration-1.7.jar:1.7] at org.apache.commons.configuration.PropertiesConfiguration.(PropertiesConfiguration.java:252)

I originally had a single XMLConfiguration which I could load and use without issue. private PropertiesConfiguration config = null; .... Thanks. What is the best solution you suggest to avoid this situation.

Though I am using URL for it. Now I have put my conf.xml to the Sun/ Appserver/ domains/domain1/config folder. I attempted to implement as follows : Configuration config = new PropertiesConfiguration("stream.bundle.config"); I have tried stream.bundle.config, bundle.config and many other combinations but every time I get back an exception that says Can I hint the optimizer by giving the range of an integer?

The file should be read when CIMSystem.init is called, so I really don't know why the configure method is being called again in the execute method. Jobs are scheduled for our main class "CIMSystem" . Is there any known limit for how many dice RPG players are comfortable adding up? So your first try should have been: Configuration config = new PropertiesConfiguration("config.properties"); share|improve this answer edited Nov 17 '11 at 21:39 answered Nov 17 '11 at 20:33 hovanessyan 15.2k53244