Configure the auth-method of the web.xml externally to the EAR file

Currently trying, without success, to configure the AUTH-METHOD element of the web.xml externally (through system properties loaded during JBoss 7.1.1 startup).

I thought this would do the job :

    <realm-name>PREST Authentication</realm-name>

But it crashes during deployment :

12:56:01,773 ERROR [org.apache.catalina.startup.ContextConfig] (MSC service thread 1-4) Cannot configure an authenticator for method ${prest_authMethod}

Is there a way to access system properties from web.xml ? Or any other way to configure the AUTH-METHOD with external configuration ? Thanks for any help.


I tried to access properties this way by setting them in the system-properties section of the standalone.xml. It crashed and burned doing it this way which is a pity.

Setting it at server startup with a -Dproperty=myProperty did work though.

By the way I am using Jboss EAP 6.0 which is practically the same version.

Apparently, this configuration does not work anymore on JBoss 7 but was working on JBoss 5 and 6. Have a look at The reason is "outside of EE specs".

However, due to a high number of community complaints, this should comes back in EAP 7.1.2 and 7.2 GA (the community version 7.1.2 was not built as a released version, the patch should comes with 7.2).

Need Your Help

Mysql query based on a list of specific random numbers?


I'm trying to do a query based on specific numbers which at this stage I only need to hardcode into the page as comma separated values.

Accessing SVN repo via CruiseControl.NET and Windows Authentication

svn windows-authentication visualsvn

this is a bit of an ambiguous one as to whether it is for StackOverflow or ServerFault. I figured developers would have as much chance of solving this problem, so I opted for here.