Define the context root inside the WAR file

I have an automatic deployment script to deploy multiple WAR files in WAS 7 . So, I would like to define contextroot inside the WAR file itself. It should automatically install " ... -contextroot xxxx ..." from the file.

How should I do it? I think I need to add something with WEB-INF/ibm-web-bnd.xml . I do not know what to write in it.

Help, thanks.

+10
command-line deployment websphere war
Dec 13 2018-11-11T00:
source share
1 answer

Create WEB-INF/ibm-web-ext.xml using this content:

 <web-ext xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://websphere.ibm.com/xml/ns/javaee" xsi:schemaLocation="http://websphere.ibm.com/xml/ns/javaee http://websphere.ibm.com/xml/ns/javaee/ibm-web-ext_1_0.xsd" version="1.0" > <context-root uri="/TestProject"/> </web-ext> 
+19
Dec 14 '11 at 19:02
source share



All Articles