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 Security 4.x set logout method to GET with xml config

I am moving from Spring Security 3.2 to 4.1, and I (still) use xml configuration. It seems that using the element does not allow setting the http method to GET. Is this true? If, yes, does it mean I have to create a Controller mapping to…
yglodt
  • 13,807
  • 14
  • 91
  • 127
0
votes
3 answers

Spring4 MVC form validation result.hasErrors() is always false

I'm using validation-api-1.1.0.Final.jar to valid form input in Spring 4 MVC. But I'm stuck in here, the result.hasErrors() seems always false(it means @Valid doesn't work properly). I followed this guideValidating Form Input, but that guide…
Raphael Xue
  • 77
  • 2
  • 11
0
votes
1 answer

Bean class is not specified when using DefaultConfigurationBuilder

I have used DefaultConfigurationBuilder try to integrated my properties and xml file as below code: DefaultConfigurationBuilder dcfb = new DefaultConfigurationBuilder(); File file = new…
Bruce
  • 647
  • 2
  • 12
  • 30
0
votes
3 answers

There is no Action mapped for namespace [/] and action name associated with context path

I am attaching my files. Kindly help me out. I gave my url path as http://localhost:8080/Struts2Check/getTutorial.action struts-config.xml
0
votes
2 answers

How to create a list/array bean and pass it to the tag as a reference in spring xml?

How to create a list/array bean and pass it to the tag as a reference in spring xml? I want to create a list with packages to scan:
Mariusz.v7
  • 2,322
  • 2
  • 16
  • 24
0
votes
1 answer

struts2 using variables in result param values

I am building struts2 parameters values from variables and in one case it works and in the other it doesn't. Here is the 'result' from a menu item click :
user3708842
  • 543
  • 8
  • 23
0
votes
1 answer

Type not being instantiated correctly by StructureMap (using XML configuration)

OK, I'm stumped over a seemingly trivial piece of functionality. How can I get StructureMap to initialize the properties on type instances retrieved from the container, using XML configuration (unfortunately I have to use XML)? My current code…
Ben Aston
  • 53,718
  • 65
  • 205
  • 331
0
votes
1 answer

Unity 2 and Silverlight 4

I am using Unity 2.0 with Silverlight 4 and RIA Services. Is xml configuration not supported in the web project of a Silverlight Business Application? The only way I can get the resolve method of the container to work is if I register my types at…
0
votes
1 answer

Could not autowire field SessionFactory when I load context manually

I have the following applicationContext.xml:
gstackoverflow
  • 36,709
  • 117
  • 359
  • 710
0
votes
1 answer

Load spring xml configuration according the profile

I know that I can load application context from xml file like this: ApplicationContext app = new ClassPathXmlApplicationContext("META-INF/applicationContext.xml"); But in my case it is irrelevent. inside the applicationContext.xml I use…
gstackoverflow
  • 36,709
  • 117
  • 359
  • 710
0
votes
1 answer

class path resource cannot be opened because it does not exist when I load context manually

I have the following webApp folder structure: I want to load spring context manually. I wrote the following code: ApplicationContext app = new ClassPathXmlApplicationContext("applicationContext.xml"); When the code above invokes I see the folowing…
gstackoverflow
  • 36,709
  • 117
  • 359
  • 710
0
votes
2 answers

Existing Spring Application to Cloud Foundry

We are planning to move a Spring based application to Cloud Foundry. The application currently uses WAS server and access data sources using JNDI lookup. We are using spring features like MVC, AOP etc. I have certain questions in mind : Is it…
ChS
  • 67
  • 12
0
votes
1 answer

Unity Xml configuration for Nhibernate IsessionFactory

I resolved session factory using code as UnityContainer.RegisterInstance(typeof(ISessionFactory), new NHibernate.Cfg.Configuration().Configure().BuildSessionFactory()); My service which defines property as public class myService { …
dkt
  • 144
  • 2
  • 13
0
votes
1 answer

Change XML configuration path for all packages

I have defined SSIS package configuration to XML and configure it for 50 packages. The xml path for those packages were H:\SomFolder\Configuration\XMLConfig but in production server we don't have H: so I have created a folder on D:…
Zerotoinfinity
  • 6,290
  • 32
  • 130
  • 206
0
votes
2 answers

Where should I store custom permissions for my web app

I'm wondering where is the ideal place to store custom permissions in my web applications. For example I have the following permissions: AdminPermission ReadPermission WritePermission At the moment I store these in the static utilities class as the…
user338195