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

Spring EL cannot be resolved in Integer attribute of xml configuration files

I'm trying to use Spring EL in XML config: Creating a task executor with queue-capacity from an existing beans ConfigProp.
Thanh Nhan
  • 453
  • 6
  • 17
0
votes
0 answers

How to determine the file path in XML configuration

I am migrating to use new RabbitMQ(RMQ) console. The new RabbitMQ console required to enable the SSL connection from my logic by adding the certificate path. Anyone know how to add/enable the 'file path' like "C:\User... " into XML configuration…
0
votes
1 answer

Library to read config files (xml or json) that detects file´s changes

I have a XML configuration file like this: 3 I need some library to read (only read) the files values but can detect changes (for example, change value…
user4266998
0
votes
1 answer

Spring boot Keep getting "required a single bean, but 10 were found" although I declared only one service

Whenever I run my spring boot application I keeb getting the following message: *************************** APPLICATION FAILED TO START *************************** Description: Field patchService in…
0
votes
1 answer

Could not resolve placeholder in XML-config spring app

I am a beginner in spring. I read many similar titled questions on SO and either they weren't working for me or it wasn't that type of configuration and I couldn't understand what was wrong. I am writing a simple spring application in Intellij Idea…
Embid123
  • 467
  • 5
  • 17
0
votes
1 answer

Google CSE: "File uploading is not successful" with valid XML

I'm setting up a UTF-8 google custom search engine. I've written the XML context file but it will not upload. I've run the XML through several validators and had others look at it, but there don't seem to be any problems.
0
votes
1 answer

Spring batch conditional flow configuration error

I have an XML-configured step, and I wanted to add the batch:next elements in order to get conditional flowing in my job :
l0r3nz4cc10
  • 1,237
  • 6
  • 27
  • 50
0
votes
1 answer

As i ahve not kept any file in resource folder why we need to map to resource folder to load all static Resource?

its contains a tag mvc:resource tagI am developing a spring mvc application in which iam using xml based configuration.I want to load my static resource.To do this i am using a tag . All my…
0
votes
1 answer

@Autowired bean null into JSF ManagedBean, with Spring xml configuration

I use xml configuration to declare my UserDao bean, and call it into another component: AuthenticationFacade (declared by @Component annotation) using @Autowired annotation like this: applicationContext.xml
medkhelifi
  • 1,071
  • 3
  • 17
  • 35
0
votes
3 answers

Pros and Cons of Fluent and XML Configuration

If you we're about to start a new project with some third party libraries (logging, orm, di, whatever), would you prefer to configure all this libraries via programming with fluent interfaces or with XML files? Would you use a library that only…
goenning
  • 6,514
  • 1
  • 35
  • 42
0
votes
1 answer

Xml Spring config: Unable to locate springframework.org/schema/security

I have an xml config and when I try to import spring-security namespace it gives me 2 choices: springframework.org/schema/p and springframework.org/schema/c. What I need is: http://www.springframework.org/schema/security (which cannot be found). It…
0
votes
1 answer

Which is the equivalent of autowiring an interface with @Autowire annotation in an XML config file?

I saw that injecting ShopRepo with @Autowire annotation is working but when I try to do it with xml sometimes it works and sometimes it doesn't (also, intellij says that I cannot use an abstract bean as a property). Why it is working with the…
Lexy
  • 25
  • 3
0
votes
1 answer

Spring: apply @Autowired to property to eliminate setter

My understanding about the @Autowired annotation applying on a property of a bean is that by doing that we can eliminate the setter method. This seems valid when we choose to annotation based configuration: we just create a bean annotated with…
J.E.Y
  • 1,173
  • 2
  • 15
  • 37
0
votes
1 answer

Spring Security authenticates properly but the protected resources can not be accessed

I have a project which totally skipped Spring security usage and handled things manually. Now, however, I would like to incorporate spring security into my project. After doing everything, the default login form is showing, and I have managed to…