Questions tagged [programmatic-config]
19 questions
19
votes
4 answers
how to specify welcome-file-list in WebApplicationInitializer.onStartup()
Currently I have a web application where we are using web.xml to configure the application. The web.xml has welcome-file-list.
...
home.html
…

user2032118
- 455
- 3
- 6
- 16
8
votes
3 answers
Map servlet programmatically instead of using web.xml or annotations
How can I implement this mapping programmatically without web.xml or annotations? The mission is not to use any framework like spring or something else.
hello
…

Marta Ginosian
- 117
- 1
- 8
3
votes
2 answers
How to use android to connect to an ESP8266 access point without internet in a stable way?
I have a Wifi Micro controller ESP8266 which also has an access point. I have referred to other blogs which talk about programmatically connecting to an access point and tried both the way
Using the exposed standard…

thehellmaker
- 162
- 3
- 13
2
votes
3 answers
Programmatically change session timeout
I can logout user after defined time of inactivity.
240
But, is there some way to logout in specified time, or better, for example until 5 minutes of inactivity after specified time.?

gaffcz
- 3,469
- 14
- 68
- 108
2
votes
1 answer
Migrating Spring Security 3.1 with XML config to 4.0.1 with Java config causes HTTP Status 401 - Authentication Failed: Bad credentials
My spring security is not working. I migrate from spring-security xml config file (version 3.1) to java config(version 4.0.1). As soon as I login it gives me this page : HTTP Status 401 - Authentication Failed: Bad credentials
I will post my…

Alina
- 369
- 3
- 8
- 18
1
vote
0 answers
Log4j2 adding a new plugin and appender dynamically to root
I have an application that dynamically (via class loaders) loads a different jar that also have a log4j2.xml configuration.
The problem - the jar that I'm dynamically loading defines in the log4j2.xml file a custom appender that the application MUST…

Lin
- 2,445
- 5
- 27
- 37
1
vote
1 answer
How to integrate programmatic configuration in log4j?
I am using Log4j version 2.0.1 version and due to organisation policies, I cannot use any higher version for the…

palkarrohan
- 459
- 1
- 4
- 16
1
vote
2 answers
How to instantiate Ignite CacheManager with programmatic configuration / without XML
I want to create an Ignite node with a programmatic configuration. A javax.cache.CacheManager object is required for the application.
I know that I can start an Ignite node with the following code:
//with XML…

Matthias Harter
- 96
- 6
1
vote
0 answers
iOS: Is it possible to enable LED flash for Alerts programmatically?
Is it possible in iOS to enable the accessibility setting "Led Flash for Alerts" programmatically?

mm24
- 9,280
- 12
- 75
- 170
1
vote
2 answers
Wildfly 9: Undertow setup by programming [max-post-size] rather than modifying standalone.xml
I need to increase the max-post-size of my undertow configuration, because I got the following exception
java.io.IOException: UT000020: Connection terminated as request was larger than 10485760
at…

badera
- 1,495
- 2
- 24
- 49
1
vote
1 answer
HTTP Status 404 - Using Spring+Tomcat
I am beginner to Spring and I am working on my learning project. With below code, I can view the index.jsp but not test.jsp. I use Spring 4.0.1+ Tomcat 7.0.52 + STS 3.4.0.
Webapp.java
package springweb;
import…

Bing Lan
- 1,121
- 1
- 13
- 26
0
votes
1 answer
How to set NLog's internal LogFile programmatically for dependency injection
I know you can set NLog's internal log file programmatically like this:
NLog.Common.InternalLogger.LogFile = @"C:\Logs\nlog.log";
The above trick does not work for the following scenario, where I need to be able to set internal log file that's used…

Eternal21
- 4,190
- 2
- 48
- 63
0
votes
1 answer
Spring security programmatic in-memory UserDetailsService: username and roles, NO password
UPDATE: I was not able to solve the problem presented here, but the simplest and most effective solution to my problem was to NOT use the in-memory userDetailsService. Details of my resulting solution are in a follow-up post.
SUMMARY
With the old…

Bruno Genovese
- 31
- 4
0
votes
0 answers
How to read property from application.properties when using ConfigurationFactory (Log4j's Programmatic Configuration)?
I am using programmatic configuration for log4j as shown in the following link: http://logging.apache.org/log4j/2.x/manual/customconfig.html.
@Plugin(name = "CustomConfigurationFactory", category = ConfigurationFactory.CATEGORY)
@Order(50)
public…

Akhil
- 21
- 5
0
votes
1 answer
Swift - SwipingController Programmatic - button doesn't work
I created the SwipingController app.
The application was supposed to have the functionality of scrolling with gestures and a management bar with 2 buttons and UIPageControl.
For now, these buttons were supposed to print only a text message in the…

Sebastian
- 61
- 1
- 9