Search code examples
webspheregenerateserver.xml

webSphere Liberty: How to generate an output file from an server.xml with only includes


i have a server.xml with only includes. But i want to see the merged one that is used in runtime.

Is there a tool or script that generates a output file from a server.xml with only includes (thats also used in the runtime of liberty ?)

This would make the life of gathering files much easier...

Thanks in advance for any answer!

<!-- server.xml -->
<?xml version="1.0" encoding="UTF-8"?>
<server description="${servername} ${type} ${cluster} ${hostname}">
 <include location="${bla}/${bla2}/inc.${bla3}.certs-racf.xml"
  optional="true" onConflict="replace" />
 <include location="${bla6}/${bla2}/inc.${bla3}.certs-racf.xml"
  optional="false" onConflict="replace" />
 <include location="${bla7}/${bla8}/inc.${bla8}.certs-root.xml"
  optional="false" onConflict="replace" />
<!-- server.xml -->

what would be the runtime server.xml ?


Solution

  • The WebSphere Developer Tools do provide this functionality: https://www.ibm.com/support/knowledgecenter/SSEQTP_liberty/com.ibm.websphere.wlp.doc/ae/t_merged_configuration_viewer.html

    However, the runtime itself does not currently provide such functionality, but there is an RFE opened for it that you can upvote here to show your interest: https://www.ibm.com/developerworks/rfe/execute?use_case=viewRfe&CR_ID=103121