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

In Ehcache3 is it possible to access TTL in custom implementation of the Expiry

I'm trying to extend the TTL when the cache is about to expiry and if downstream service(from which i read the objects and load to cahce) is down. I don't want to check if downstream service is down everytime as it will slow down us. So can we…
0
votes
1 answer

Can I use Spring's util:properties and context:property-placeholder together?

I have the following config in a spring applicationContext.xml
Christian
  • 6,070
  • 11
  • 53
  • 103
0
votes
1 answer

Servlet.init() for servlet spring-dispatcher threw exception(XmlBeanDefinitionStoreException)

Okay so i am working on spring mvc for the first time and i dont know how to resolve this error. I am trying out a simple mvc program here is my web.xml file
0
votes
2 answers

Java web application hosting

I hosted my application into Tomcat server and configured server.xml so that i can access my web application by directly accessing the website name eg:www.example.com but it works only when it is followed by my port number for eg:…
varun
  • 25
  • 2
  • 11
0
votes
1 answer

Unity2.0 - Is it possible to specify assemblies and namespaces for type lookup programatically?

I am using Unity2 with XML configuration. It has the neat feature to specify namespaces and assemblies in the XML config for which automatic type lookup is performed, so that you do not need to always specify full name or create an alias. Is it…
petr k.
  • 8,040
  • 7
  • 41
  • 52
0
votes
1 answer

Spring Security 4 xml configuration UserDetailsService authentication not working

I know that this question was asked many times but any answer solved my problem. I am trying to implement a custom login form using Spring Security 4 + Hibernate + Spring Data Jpa, but things don't work as I expect. When I use in-memory…
akuma8
  • 4,160
  • 5
  • 46
  • 82
0
votes
1 answer

org.springframework.beans.factory.UnsatisfiedDependencyException , java.lang.Error: Unresolved compilation problems

Can anyone tell me, why this error is happening ? Actually I can't understand where to start resolve it. Nov 19, 2016 10:20:30 AM org.apache.catalina.core.StandardContext listenerStart SEVERE: Exception sending context initialized event to listener…
zeji
  • 165
  • 1
  • 3
  • 10
0
votes
0 answers

Autofac - Inject custom components as parameters via XML configuration file

With Castle.Windsor I was able to define an implementation of a service via XML configuration and pass this implementation as a parameter to other services:
Andre Borges
  • 1,360
  • 14
  • 37
0
votes
1 answer

Spring CAS authentication with 03 parameters

Dear Spring/CAS experts, I have to implement a SSO service. Few third party systems going to connect with this SSO, but all these each and every system has different usernames and passwords and also a single user can have many accounts. The…
Dushan
  • 122
  • 9
0
votes
2 answers

Spring integration poller XML configuration with spring boot

I am working on a project in spring boot and I need to add Spring integration poller for polling files from a location and run spring batch on that file to process it. I have used spring batch integration for this(Document Reference…
Raghav
  • 552
  • 1
  • 9
  • 34
0
votes
1 answer

Spring RequestScope of method in XML-config

I have an module with the following: @Configuration public class UserHolder { @Bean @RequestScope public IUser getUser() { return (IUser)SecurityContextHolder.getContext().getAuthentication(); } } IUser is an Interface and…
Thomas Stubbe
  • 1,945
  • 5
  • 26
  • 40
0
votes
1 answer

Struts won't pass parameter to jsp file

I have an action which (depending on the result) redirects to a suitable file: /delete/confirm.jsp?err=SIGNIN
Siddhartha
  • 4,296
  • 6
  • 44
  • 65
0
votes
1 answer

Spring Session and Spring Security (3.2.X RELEASE)

We have a web application built upon Spring Framework 3.2.x (3.2.12-RELEASE at moment) and Spring Security 3.2.x (i.e 3.2.5-RELEASE) Security is implemented with classical Spring approach. In web.xml we load ApplicationContext and…