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
2
votes
1 answer

XML SSIS Configuration File

I am trying to modify the connection string of multiple packages through XML configuration, but I am confused on where exactly to replace the server name (databases have the same name). the Old server is EREUUWSSQLD1\UWS and the one I want the…
Rachel
  • 208
  • 1
  • 5
  • 18
2
votes
5 answers

Cleanest Jetty Configuration for Development?

EDIT: I think I should clarify my intent... I'm trying to simplify the development iteration cycle of write-code >> build WAR >> deploy >> refresh >> repeat. I'd like to be relatively independent of IDE (i.e., I don't want Eclipse or IntelliJ…
mckamey
  • 17,359
  • 16
  • 83
  • 116
2
votes
1 answer

Loading Properties from Database using Java Config with Spring Boot

I created a FactoryBean as public final class SystemProperteisFactoryBean implements FactoryBean { private static final String QUERY = "select * from tb_system_properties"; private final NamedParameterJdbcTemplate…
2
votes
0 answers

Is singleton bean load same object for different reference, although there is one reference declared in xml configuration

I have the ITest interface and the ClassA class: interface ITest {} class ClassA implements ITest {} The XML configuration: class Test { ITest objectB; } Although there is no bean declared in the…
Arpan Paliwal
  • 234
  • 1
  • 7
  • 20
2
votes
1 answer

Spring Boot how to create Auto configuration class

I am beginner for Spring Boot. When I am using any dependencies in Spring Boot, they have the auto configuration default. My questions are: What is actually auto configuration class? How does auto configuration work? How to make out own auto…
2
votes
1 answer

Read system properties in Spring XML config application with expression language

It seems to be easy, but it does not work. I can't paste system property in my easy example:
IvanSPb
  • 193
  • 1
  • 6
2
votes
1 answer

Unit Testing using JUnit for Spring Batch without XML configuration

I am new to Spring Batch and I started developping a simple batch application. Now I am thinking of some unit testing unsing JUnit that could be healthy for my app and code ;) The problem is that I couldn't find any ressource (examples, tutos ...)…
Ghassen
  • 591
  • 1
  • 15
  • 33
2
votes
1 answer

Failed to read schema document 'classpath:spring-beans-3.1.xsd'

My program throws error if i import schemas from WEB-INF. I have added these all lines for schema in dispatcher-servlet.xml
User5678
  • 191
  • 1
  • 8
2
votes
1 answer

Merging XML Config File w/ .exe

I've developed a program that utilizes Settings within my C# program. When I build the program, a separate XML Config file is created, that contains the settings of the program. I've been able to merge other files, like the .dll's and manifest file…
John
  • 447
  • 2
  • 8
  • 20
2
votes
1 answer

SpringBatch - javaconfig vs xml

I have been using Xml configuration for Spring Batch for a while, and feel it is simpler and concise. However, nowadays, people are suggesting to use javaconfig over xml. I googled this topic. This site tells us why javaconfig is better …
2
votes
0 answers

How to set property of hibernate.cfg.xml from java class?

I have a web application that read an argument from tomcat -D option and decide which property file should be used. So, How can I set below property in hibernate xml? Here What I want to do: run tomcat with -Doption=xOption Singleton Config class…
Richard
  • 335
  • 1
  • 2
  • 9
2
votes
5 answers

upload file: Request method 'POST' not supported

I have following code: @Controller public class FileUploadController { @Autowired private AttachmentsToSendJDBCTemplate attachmentsToSendJDBCTemplate; @RequestMapping(value = "/upload", method = RequestMethod.GET) public String…
2
votes
1 answer

Global exception handling in Struts 2

How can I implement a global exception handler for Apache Struts 2? I'm using annotations (with struts.property) and NOT struts.xml. I have got it to work for action-classes (at class and method level) but I would like something more global like a…
Staplerz
  • 85
  • 1
  • 10
2
votes
0 answers

How do I configure a keystore via XML configuration in my Spring web application?

I’m using Spring 3.2.11.RELEASE and Spring Security 3.1.4.RELEASE. I want to configure a keystone in my web application so that I can make HTTPs calls using the Apache httpclient library. I would like to make this configuration via XML in my web…
Dave
  • 15,639
  • 133
  • 442
  • 830
2
votes
2 answers

SessionMap is null after implementing SessionAware interface in Struts 2

I am implementing SessionAware in my action class. But, the sessionMap is always null. The setSession method doesn't seem to be called. Here is the code. In the execute method, the sessionMap is always null. What am I doing wrong? Action…
1 2
3
12 13