2020欧洲杯时间表

Questions tagged [apache-commons-config]

2020欧洲杯时间表 The Commons Configuration software library provides a generic configuration interface which enables a Java application to read configuration data from a variety of sources.

Filter by
Sorted by
Tagged with
1
vote
1answer
23 views

How to add new XML element to the root element of a hierarchical XML configuration with addProperty() in Apache Commons Configuration?

So I tried it with XPathExpressionEngine but it's not working. My XML file looks like this. <?xml version="1.0" encoding="UTF-8" standalone="no"?> <omg> <configurationCreated>24/...
0
votes
1answer
20 views

How to query XMLConfiguration by value with XPath in Apache Commons Configuration?

So I have the following XML file. <?xml version="1.0" encoding="UTF-8" standalone="no"?> <omg> <configurationCreated>23/05/20 01:19:30</configurationCreated> <sites> ...
0
votes
0answers
14 views

Export/import and realod current spring boot application properties

I am trying to create a functionality which: Exports current spring-boot application.yml to an external file, does not have to be human readable. Reload current properties with one of exported files ...
0
votes
0answers
15 views

Exporting default bean configuration in Java code to XML file with Apache Commons Configuration

There is example of how to read bean configuration from XML file using Apache Commons Configuration: http://commons.apache.org/proper/commons-configuration/userguide/howto_beans.html#Basic_Concepts ...
1
vote
0answers
30 views

How Thread Safe Is Commons-Configuration2 Synchronizer Across Independent Applications

I have a properties configuration file that is accessed by one application and can be modified by another. I need to ensure the reads and writes are synchronized, so that is where I found Apache's ...
0
votes
0answers
8 views

PropertiesConfiguration - insert a property?

Using the apache commons PropertiesConfiguration.addProperty(..), this appends new properties to the bottom of the file by default. Is there any way to control this? Is it possible to make it go after ...
0
votes
0answers
23 views

java.lang.NoClassDefFoundError error apache commons configuration

I am trying to create a shared library for Oracle ADF projects. I created a util for reading external file for properties and load into ADF services. So, I created a maven project for this shared ...
0
votes
0answers
142 views

Unable to use spark-cassandra-connector: java.lang.NoClassDefFoundError: org/apache/commons/configuration/ConfigurationException

I have Hortonworks HDP 3.1 with Spark 2.3.2 and Cassandra 3.11. Spark is working just fine. Then, I am following Datastax quick guide on Cassandra http://github.com/datastax/spark-cassandra-...
0
votes
1answer
72 views

Apache Commons Configuration File Location Strategies

I'm new to Linux, Java, and Apache Commons Configuration and am having issues locating a properties file between environments. I'm building a Spring API with Maven on Windows and have a .properties ...
0
votes
0answers
28 views

commons configuration addProperty method replaces < > with &lt &gt

I am using latest Apache commons configuration 2 version 2.6 and when trying to invoke addProperty it replaces < > with &lt &gt. example : cfg.addProperty("data.array(1)", val); cfg.write(...
0
votes
0answers
15 views

Merge Apache Config file from Jar into File on disk

In my jar file I have a template file that holds all the configuration properties and default values for my app. When the app starts if there isn't a properties file on disk I copy the template from ...
1
vote
0answers
72 views

Apache Commons Configurations2

I am using Apache commons configuration2 to read and write JSON configuration. When I am trying to read a JSON file which contains any JSON Array with only one element. { "default":{ "...
0
votes
0answers
24 views

Adding configuration from a child project of a framework?

I'm creating a framework which uses Apache Commons Configuration. In unit tests the configuration works as intended, however I've made another project which will now use this framework, but it's ...
0
votes
1answer
210 views

Wildfly 17: “User-specified log class 'org.apache.commons.logging.impl.Log4JLogger' cannot be found or is not useable.” using commons-configuration2

I'm getting a LogConfigurationException when trying to load the configuration of my application. It's an EAR Java application, deployed in a Wildfly 17 application server locally. I'm using commons-...
0
votes
0answers
13 views

How to write files without adding escape character using apache.commons.configurations?

I want to do CRUD operations on .properties file without adding any extra escape character in my properties file how can i do this using apache commons library? I tried using ...

15 30 50 per page
1
2 3 4 5
10