Questions tagged [xml-configuration]

A configuration that could be parsed from the XML file.

A configuration that could be parsed from the XML file. Many frameworks and applications use XML files to keep their configuration persistent and loadable. Beside them the Apache Commons Configuration XMLConfiguration class that is able to parse XML documents.

For example, the Struts 2 framework has a configuration file struts.xml that could be used with any web application that uses this framework.

185 questions
1
vote
0 answers

Avoid printing the logger name in log4net

I am using log4net in an UWP app. my config file is the following:
Cristiano Ghersi
  • 1,944
  • 1
  • 20
  • 46
1
vote
1 answer

Browser URL error in Spring MVC request mapping

Please do not reject this question as I have gone through many related questions and couldn't find the specific problem I am trying to solve. Pardom me for any shortcomings in the post as I have only started to post questions. I am facing an issue…
arunken
  • 415
  • 3
  • 15
1
vote
1 answer

How to map a native query, that has more columns than a table?

I have a class with 4 fields, a table with 2 columns and a native query, that return 4 columns. let's say: a class: class Foo{ int id; String name; int stat; String statName; } a table: foo --------- id | name and mapping:
TEXHIK
  • 1,369
  • 1
  • 11
  • 34
1
vote
0 answers

Data doesn't pass through the database when "CuteEditor" is used in XML Form Configuration

I have a vb app that uses configuration files to save data into the database. It's using an editor called "CuteEditor". Below is what I have for config. CuteEditor No 17
peter
  • 13
  • 2
1
vote
3 answers

Null Pointer Exception while initializing the java beans class using XML configuration and annotations

I am facing an issue while trying to initialize the java beans class. I am getting an error of null pointer exception. Below is the code snippets. I have beans xml as LoginData.xml
khan
  • 547
  • 3
  • 18
1
vote
2 answers

XMLConfiguration Size is 0

File file = new File( "justskiphere" ); if ( !file.exists() ) { file = new File( Thread.currentThread().getContextClassLoader() .getResource( "general_cat_column_order.xml" ).getFile() ); LOG.info( "Found in…
Bleach
  • 309
  • 3
  • 18
1
vote
1 answer

Spring.NET XML Configuration Woes

I'm trying to load a Spring.NET context from an XML file. I have the following code: public class ApplicationContextFactory { private static IApplicationContext _context; public static IApplicationContext GetContext() { if…
jjnguy
  • 136,852
  • 53
  • 295
  • 323
1
vote
1 answer

SAXParseException: Document is invalid: no grammar found. struts.xml

I am developing a Struts+Hibernate web application. I confronted with the following error with struts.xml: Unable to load configuration. - file:/F:/BidNext/build/web/WEB-INF/classes/struts.xml:9:8** org.xml.sax.SAXParseException; systemId:…
1
vote
0 answers

Automapper configuration in XML File

I want to know 2 things with AUtomapper. Is it possible to store the mapping outside i.e. in a XML file or database? Can I get some pointers for the same?
Anup
  • 73
  • 2
  • 10
1
vote
1 answer

How to get struts.multipart.maxSize at runtime

Can be obtained at runtime the struts.multipart.maxSize value defined in struts.xml? using Struts2 org.apache.struts struts2-core 2.3.24.1
Teno
  • 123
  • 2
  • 16
1
vote
0 answers

Change beans.xml according to mongodb

I created beans.xml for MySQL database. I added hibernate session factory and DB connection above xml file. But now I want to change my databases. New database is MongoDb. So How I change above xml file according to mongodb.
1
vote
2 answers

XML content assist is not working even if included DTD

In Eclipse struts.xml content assist is not working with even included DTD in XML. but seems like am missing something here. I have all required jars in lib and build path as well. struts.xml:
san544
  • 72
  • 10
1
vote
0 answers

Spring security xml configruation not working

I have the problem spring security. I am implementing spring security using xml configruation. I have create the project in the following. it is spring mvc project using maven architecture. First, I have integrate myabtis and the project still run…
1
vote
3 answers

Spring: Multiple controller instances of same class

JDK Version: 1.7 (latest update) Spring: 3.2.16-Release I have a generic controller class, that can be reused for multiple functionality. Due to the limitations of annotation-based approach for such requirements, I am using the XML-based…
ajoshi
  • 349
  • 2
  • 10
1
vote
1 answer

Using MethodInvokingFactoryBean for XMLConfiguration to loading file in Spring bean

I have a xmlConfiguration bean to loading a SystemProperty.xml file as below
Bruce
  • 647
  • 2
  • 12
  • 30