What WebSphere Application Server is doing during deployment
WebSphere Application Server obtains the .ear file from either a local
or remote path. Behind the scenes it attempts to verify the XMI extensions
and bindings; however, one of the extension binding files cannot find a
needed reference to the Web application and fails with a null value error.
Upon examination, using Application Server Toolkit (ASTk), of the
client's original .ear file, there is an ibm-web-ext.xmi file that did not
contain a reference for the webapp tag.
original ibm-web-ext.xmi file
<webappext:WebAppExtension xmi:version="2.0"
xmlns:xmi="http: //www.omg.org/XMI" xmlns:webappext="webappext.xmi"
xmlns:xsi="http: //www.w3.org/2001/XMLSchema-instance"
xmi:id="WebAppExtension_1" reloadInterval="3" reloadingEnabled="false"
fileServingEnabled="true" directoryBrowsingEnabled="false"
serveServletsByClassnameEnabled="false" preCompileJSPs="false">
<defaultErrorPage xsi:nil="true"/>
<additionalClassPath xsi:nil="true"/>
</webappext:WebAppExtension>
To correct the problem, import the .ear into ASTK and modify the
ibm-web-ext.xmi file. Add the following:
<webApp href="WEB-INF/web.xml#WebApp_ID"/>
updated ibm-web-ext.xmi file:
<webappext:WebAppExtension xmi:version="2.0"
xmlns:xmi="http: //www.omg.org/XMI" xmlns:webappext="webappext.xmi"
xmlns:xsi="http: //www.w3.org/2001/XMLSchema-instance"
xmi:id="WebAppExtension_1" reloadInterval="3" reloadingEnabled="false"
fileServingEnabled="true" directoryBrowsingEnabled="false"
serveServletsByClassnameEnabled="false" preCompileJSPs="false">
<defaultErrorPage xsi:nil="true"/>
<additionalClassPath xsi:nil="true"/>
<webApp href="WEB-INF/web.xml#WebApp_ID"/>
</webappext:WebAppExtension>
Save the file and export the .ear from ASTk.
You can now use the administrative console or wsadmin to deploy the .ear
file.
Note: You do not have to use ASTk. This is the tool that the
WebSphere Application Support team uses when doing problem determination.
You can use the Application Assembly Tool (AAT) for v5.0.x; however it is
deprecated from 5.1.x and replaced with ASTk.
If this does not resolve the problem, please refer to the below document
prior to opening a new PMR with the support team.
Refer to MustGather:
Enterprise Application Archives and Application Assembly Tool Problems for
all Releases of V4.0 and V5.
|