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

Regarding the Action Mapping in Struts2 - There is no Action mapped

I am trying to run my struts application but I am getting a error action is not mapped I have seen the namespace it is correct but still getting the error? struts.xml:
duke
  • 103
  • 6
  • 15
2
votes
1 answer

Struts2 URL unreachable

I'm really racking my head here with Struts2 - I'm able to access the JSP pages by omitting part of the path. Note the path suppose to include pages/welcome_user.jsp. The key is to look at the word pages in the path. here's the struts.xml…
2
votes
0 answers

Configure static resource folder external to web app in jetty 8

I am having a static resource folder external to the web application and am trying to configure it in Jetty 8. So far I have tried the following. 1) I have added a context handler in jetty xml as following:
h-kach
  • 351
  • 2
  • 8
  • 25
2
votes
1 answer

How to configure generic type parameters in xml configuration for castle-windsor?

I've following code: public class TestClass { public string Foo { get; set; } public ITest Test { get; set; } } [Convertible] public interface ITest { T Param { get; set; } } [Convertible] public class Test : ITest { …
Kiryl
  • 180
  • 13
2
votes
1 answer

Embedded databases in Jetty

What I want is when Jetty starts, it creates a database which can be used by my webapps. My goal is to be able to deploy my webapps on every computer to display my application. I need a way to declare my HSQLDB database (I've SQL-files for all my…
Soma
  • 861
  • 2
  • 17
  • 32
2
votes
1 answer

Castle Windsor Service Override in XML configuration

I am using xml configuration to set up components in Castle Windsor. I have this config:
BlackICE
  • 8,816
  • 3
  • 53
  • 91
2
votes
1 answer

Spring Security - caching credentials from SSO

I'm updating an older program to use Spring Security. Previously, it used Acegi security, and cached the credentials after an initial check of the SSO header into a session cookie; with Spring Security 3.1.4, I was able to get the program checking…
LordJosh
  • 71
  • 5
2
votes
1 answer

Struts2 simple Application not executing

Unable to load configuration. - bean - wsjar:file:/C:/Users/xx/IBM/rationalsdp/workspace/workspace1/Struts2Int/WebContent/WEB-INF/lib/struts2-gxp-plugin-2.3.15.3.jar!/struts-plugin.xml:8:162 I am unable to execute simple Struts 2.x application.I…
hasha
  • 304
  • 1
  • 3
  • 11
2
votes
3 answers

Global results with Struts 2 and convention plugin

i would like to have some global results in my application. In good old XML configuration it would look like: index
2
votes
1 answer

The requested resource (/StrutsHelloWorld/) is not available. Jboss AS7 Server

I'm trying to build my very first struts application using Jboss AS 7 Server. I have the following error after deployed: HTTP Status 404 - /StrutsHelloWorld/ type Status report message /StrutsHelloWorld/ description The requested resource…
John
  • 31
  • 1
  • 2
2
votes
1 answer

Do we need to extend struts-default package always?

Do we always need to extend the struts-default package? I am seeing following exception on server startup: Caused by: Error building results for action loginScreen in namespace /User - action -…
2
votes
1 answer

Log changes in XMLConfiguration file

I have a configuration file (an XML) which I load using XMLConfiguration. I need to make sure that this XMLConfiguration instance is updated ( every 30 seconds ). For that matter I have the following code: XMLConfiguration configuration = new…
Noam
  • 3,049
  • 10
  • 34
  • 52
1
vote
1 answer

Configure Windsor IoC from XML file - special chatracters in value of XML element

I use Castle Windsor IoC. I would like configure object in IoC from XML file. Class is only POCO with some properties. My problem is that value of property is string which contain special characters. For example here is XML which I use for configure…
1
vote
1 answer

@Gateway(payloadExpression="..") vs @Payload("...")

Spring integration documentation explains that a payload expression must be specified when declaring a gateway from an interface method with no arguments, so that the framework knows what payload should be set on the generated message. However, if I…
1
vote
0 answers

@ConfigurationProperties with XML-based configuration

How can I re-write the following annotation-based configured class: @ConfigurationProperties(prefix = "app") class MyConfig { private String username; private String password; } To the XML-based configured class? Specifically, what is the…
Avaldor
  • 317
  • 2
  • 8