-
1. Re: Configure the auth-method of the web.xml externally to the EAR file
lordsephiroth Jul 3, 2012 9:08 AM (in response to lordsephiroth)up !
Help still needed
Could not find any working way.
-
2. Re: Configure the auth-method of the web.xml externally to the EAR file
sfcoy Jul 3, 2012 9:19 AM (in response to lordsephiroth)You could make this a build time property and filter copy the web.xml file.
-
3. Re: Configure the auth-method of the web.xml externally to the EAR file
lordsephiroth Jul 3, 2012 10:37 AM (in response to sfcoy)This would not work. The fact is :
- Maven is used locally to compile and send the archive (EAR) to our enterprise Maven repository.
- the archive is then deployed on several servers through a home-made too
Consequently, the exact same EAR archive is deployed on several servers that do need different AUTH-METHOD parameters.
Currently, we do compile once with BASIC, then deploy on a few servers, then compile with CLIENT-CERT, then deploy on other servers. This can really cause manipulation errors. We'd like to compile once, deploy everywhere...
-
4. Re: Configure the auth-method of the web.xml externally to the EAR file
akrambenaissi Sep 3, 2012 9:58 AM (in response to lordsephiroth)Hi Patrick,
did you enable system properties placeholders replacement in deployment descriptors?
If not, you must use the following CLI command to do it.
· /subsystem=ee:write-attribute(name="spec-descriptor-property-replacement",value=true)
There is also a property that enables it on custom deployment descriptors. You can refer to the doc.
You have to add a "system-property" with the CLI on AS7 as well to set the value dependending on your environment.
Please let us know it this works better.