Discussion:
Failed Deploy to WAS
(too old to reply)
b***@wesbank.co.za
2008-03-11 09:48:42 UTC
Permalink
Hi,<br />
I am receiving an error when deploying to WAS v6. When developing on my pc and deploying to local WAS from RAD everything works fine and no errors encountered. I have searched forums and web but have found nothing that helps. When deploying to test or prod WAS on Solaris box following error is returned:<br />
<br />
/u01/opt/IBM/WebSphere/AppServer/profiles/Dmgr01/logs/dmgr # more SystemOut.log<br />
<br />
<strike>3/11/08 8:05:59:632 SAST</strike> 00000072 SystemOut O In NLSActionServlet<br />
<br />
<strike>3/11/08 8:06:06:816 SAST</strike> 00000072 ArchiveDeploy W ADMA0142W: Trying to close the archive that is already closed.<br />
<br />
<strike>3/11/08 8:06:12:559 SAST</strike> 00000072 ArchiveDeploy W ADMA0091E: The resource WEB-INF/ibm-web-bnd.xmi that is defined in URI WEB-INF<br />
<br />
/ibm-web-bnd.xmi for module WesBank-Fleet-War.war is not valid. The resource has a cross reference WEB-INF/web.xml#WebApp_ID that c<br />
<br />
annot be resolved.<br />
<br />
<strike>3/11/08 8:06:14:645 SAST</strike> 00000071 SystemOut O In NLSActionServlet<br />
<br />
/u01/opt/IBM/WebSphere/AppServer/profiles/Dmgr01/logs/dmgr # more SystemErr.log<br />
<br />
<strike>3/11/08 8:06:15:926 SAST</strike> 00000071 SystemErr R com.ibm.etools.j2ee.commonarchivecore.exception.DeploymentDescriptorLoadExceptio<br />
<br />
n: IWAE0022E Exception occurred loading deployment descriptor for module "WesBank-Fleet-War.war" in EAR file "/u01/opt/IBM/WebSphere<br />
<br />
/AppServer/profiles/Dmgr01/wstemp/514564614/upload/WesBank-Fleet.ear"<br />
<br />
!Stack_trace_of_nested_exce!<br />
<br />
com.ibm.etools.j2ee.commonarchivecore.exception.DeploymentDescriptorLoadException: WEB-INF/web.xml<br />
<br />
web.xml is as follows:<br />
&lt;?xml version="1.0" encoding="UTF-8"?&gt;<br />
&lt;web-app id="WebApp_ID" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" <br />
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" <br />
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"&gt;<br />
&lt;!-- ENVIRONMENT VARS S --&gt;<br />
<br />
&lt;!-- Logger settings --&gt;<br />
&lt;env-entry&gt;<br />
&lt;env-entry-name&gt;propertiesFile&lt;/env-entry-name&gt;<br />
&lt;env-entry-type&gt;java.lang.String&lt;/env-entry-type&gt;<br />
&lt;env-entry-value&gt;/u01/wesbank/props/auto/wesbank_fleet.properties&lt;/env-entry-value&gt;<br />
&lt;/env-entry&gt;<br />
&lt;!-- ENVIRONMENT VARS E --&gt;<br />
<br />
&lt;!-- CONTEXT PARAMS S --&gt;<br />
&lt;context-param&gt;<br />
&lt;param-name&gt;org.ajax4jsf.VIEW_HANDLERS&lt;/param-name&gt;<br />
&lt;param-value&gt;com.sun.facelets.FaceletViewHandler&lt;/param-value&gt;<br />
&lt;/context-param&gt;<br />
&lt;context-param&gt;<br />
&lt;param-name&gt;com.sun.faces.verifyObjects&lt;/param-name&gt;<br />
&lt;param-value&gt;false&lt;/param-value&gt;<br />
&lt;/context-param&gt;<br />
&lt;context-param&gt;<br />
&lt;param-name&gt;com.sun.faces.validateXml&lt;/param-name&gt;<br />
&lt;param-value&gt;true&lt;/param-value&gt;<br />
&lt;/context-param&gt;<br />
&lt;context-param&gt;<br />
&lt;param-name&gt;javax.faces.STATE_SAVING_METHOD&lt;/param-name&gt;<br />
&lt;param-value&gt;client&lt;/param-value&gt;<br />
&lt;/context-param&gt;<br />
&lt;context-param&gt;<br />
&lt;param-name&gt;javax.faces.DEFAULT_SUFFIX&lt;/param-name&gt;<br />
&lt;param-value&gt;.jspx&lt;/param-value&gt;<br />
&lt;/context-param&gt;<br />
&lt;context-param&gt;<br />
&lt;param-name&gt;facelets.DEVELOPMENT&lt;/param-name&gt;<br />
&lt;param-value&gt;true&lt;/param-value&gt;<br />
&lt;/context-param&gt;<br />
&lt;context-param&gt;<br />
&lt;param-name&gt;facelets.SKIP_COMMENTS&lt;/param-name&gt;<br />
&lt;param-value&gt;true&lt;/param-value&gt;<br />
&lt;/context-param&gt;<br />
&lt;!-- CONTEXT PARAMS E --&gt;<br />
<br />
&lt;!-- LISTENERS S --&gt;<br />
&lt;listener&gt;<br />
&lt;listener-class&gt;za.co.fleet.web.listeners.InitilisationListener&lt;/listener-class&gt;<br />
&lt;/listener&gt;<br />
&lt;listener&gt;<br />
&lt;listener-class&gt;org.apache.myfaces.webapp.StartupServletContextListener&lt;/listener-class&gt;<br />
&lt;/listener&gt;<br />
&lt;listener&gt;<br />
&lt;listener-class&gt;com.sun.faces.config.ConfigureListener&lt;/listener-class&gt;<br />
&lt;/listener&gt;<br />
&lt;!-- LISTENERS E --&gt;<br />
<br />
&lt;!-- SERVLETS S --&gt;<br />
&lt;servlet&gt;<br />
&lt;servlet-name&gt;Faces Servlet&lt;/servlet-name&gt;<br />
&lt;servlet-class&gt;javax.faces.webapp.FacesServlet&lt;/servlet-class&gt;<br />
&lt;/servlet&gt;<br />
&lt;servlet&gt;<br />
&lt;description&gt;Generates PDF for printing/saving&lt;/description&gt;<br />
&lt;servlet-name&gt;PdfPrinter&lt;/servlet-name&gt;<br />
&lt;servlet-class&gt;za.co.fleet.web.servlets.PdfPrinter&lt;/servlet-class&gt;<br />
&lt;/servlet&gt;<br />
&lt;servlet-mapping&gt;<br />
&lt;servlet-name&gt;Faces Servlet&lt;/servlet-name&gt;<br />
&lt;url-pattern&gt;/faces/*&lt;/url-pattern&gt;<br />
&lt;/servlet-mapping&gt;<br />
&lt;servlet-mapping&gt;<br />
&lt;servlet-name&gt;PdfPrinter&lt;/servlet-name&gt;<br />
&lt;url-pattern&gt;/pdfPrinter&lt;/url-pattern&gt;<br />
&lt;/servlet-mapping&gt;<br />
&lt;!-- SERVLETS E --&gt;<br />
<br />
&lt;!-- FILTERS S --&gt;<br />
&lt;filter&gt; <br />
&lt;display-name&gt;Ajax4jsf Filter&lt;/display-name&gt; <br />
&lt;filter-name&gt;ajax4jsf&lt;/filter-name&gt; <br />
&lt;filter-class&gt;org.ajax4jsf.Filter&lt;/filter-class&gt; <br />
&lt;init-param&gt;<br />
&lt;param-name&gt;forceparser&lt;/param-name&gt;<br />
&lt;param-value&gt;false&lt;/param-value&gt;<br />
&lt;/init-param&gt;<br />
&lt;/filter&gt; <br />
&lt;filter-mapping&gt; <br />
&lt;filter-name&gt;ajax4jsf&lt;/filter-name&gt; <br />
&lt;servlet-name&gt;Faces Servlet&lt;/servlet-name&gt;<br />
&lt;dispatcher&gt;REQUEST&lt;/dispatcher&gt;<br />
&lt;dispatcher&gt;FORWARD&lt;/dispatcher&gt;<br />
&lt;dispatcher&gt;INCLUDE&lt;/dispatcher&gt;<br />
&lt;/filter-mapping&gt;<br />
<br />
&lt;filter&gt;<br />
&lt;filter-name&gt;MyFacesExtensionsFilter&lt;/filter-name&gt;<br />
&lt;filter-class&gt;org.apache.myfaces.webapp.filter.ExtensionsFilter&lt;/filter-class&gt;<br />
&lt;init-param&gt;<br />
&lt;param-name&gt;maxFileSize&lt;/param-name&gt;<br />
&lt;param-value&gt;20m&lt;/param-value&gt;<br />
&lt;/init-param&gt;<br />
&lt;/filter&gt;<br />
&lt;!-- extension mapping for adding &lt;script/&gt;, &lt;link/&gt;, and other resource tags to JSF-pages --&gt;<br />
&lt;filter-mapping&gt;<br />
&lt;filter-name&gt;MyFacesExtensionsFilter&lt;/filter-name&gt;<br />
&lt;servlet-name&gt;Faces Servlet&lt;/servlet-name&gt;<br />
&lt;/filter-mapping&gt;<br />
&lt;filter-mapping&gt;<br />
&lt;filter-name&gt;MyFacesExtensionsFilter&lt;/filter-name&gt;<br />
&lt;url-pattern&gt;/faces/myFacesExtensionResource/*&lt;/url-pattern&gt;<br />
&lt;/filter-mapping&gt;<br />
<br />
&lt;filter&gt;<br />
&lt;filter-name&gt;AuthFilter&lt;/filter-name&gt;<br />
&lt;filter-class&gt;za.co.fleet.web.security.AuthFilter&lt;/filter-class&gt;<br />
&lt;/filter&gt;<br />
&lt;filter-mapping&gt;<br />
&lt;filter-name&gt;AuthFilter&lt;/filter-name&gt;<br />
&lt;url-pattern&gt;sec/*&lt;/url-pattern&gt;<br />
&lt;/filter-mapping&gt;<br />
&lt;!-- FILTERS E --&gt;<br />
<br />
&lt;!-- ERROR PAGES S --&gt;<br />
&lt;error-page&gt;<br />
&lt;exception-type&gt;java.lang.Exception&lt;/exception-type&gt;<br />
&lt;location&gt;/faces/error/throwable.jspx&lt;/location&gt;<br />
&lt;/error-page&gt;<br />
&lt;error-page&gt;<br />
&lt;error-code&gt;401&lt;/error-code&gt;<br />
&lt;location&gt;/faces/error/auth.jspx&lt;/location&gt;<br />
&lt;/error-page&gt;<br />
&lt;error-page&gt;<br />
&lt;error-code&gt;403&lt;/error-code&gt;<br />
&lt;location&gt;/faces/error/auth.jspx&lt;/location&gt;<br />
&lt;/error-page&gt;<br />
&lt;error-page&gt;<br />
&lt;error-code&gt;404&lt;/error-code&gt;<br />
&lt;location&gt;/faces/error/404.jspx&lt;/location&gt;<br />
&lt;/error-page&gt;<br />
&lt;error-page&gt;<br />
&lt;error-code&gt;500&lt;/error-code&gt;<br />
&lt;location&gt;/faces/error/500.jspx&lt;/location&gt;<br />
&lt;/error-page&gt;<br />
&lt;!-- ERROR PAGES S --&gt;<br />
<br />
&lt;!-- SECURITY S --&gt;<br />
&lt;!-- Cert auth --&gt;<br />
&lt;login-config&gt;<br />
&lt;auth-method&gt;CLIENT-CERT&lt;/auth-method&gt;<br />
&lt;realm-name&gt;Site&lt;/realm-name&gt;<br />
&lt;/login-config&gt;<br />
&lt;login-config&gt;<br />
&lt;auth-method&gt;CLIENT-CERT&lt;/auth-method&gt;<br />
&lt;realm-name&gt;Members&lt;/realm-name&gt;<br />
&lt;/login-config&gt;<br />
<br />
&lt;security-constraint&gt;<br />
&lt;web-resource-collection&gt;<br />
&lt;web-resource-name&gt;Site&lt;/web-resource-name&gt;<br />
&lt;description&gt;Encrypt with SSL&lt;/description&gt;<br />
&lt;url-pattern&gt;/faces/*&lt;/url-pattern&gt;<br />
&lt;url-pattern&gt;/*&lt;/url-pattern&gt;<br />
&lt;/web-resource-collection&gt;<br />
&lt;user-data-constraint&gt;<br />
&lt;transport-guarantee&gt;CONFIDENTIAL&lt;/transport-guarantee&gt;<br />
&lt;/user-data-constraint&gt;<br />
&lt;/security-constraint&gt;<br />
&lt;security-constraint&gt;<br />
&lt;web-resource-collection&gt;<br />
&lt;web-resource-name&gt;Members&lt;/web-resource-name&gt;<br />
&lt;description&gt;Restrict access to the following resources to only authenticated users&lt;/description&gt;<br />
&lt;url-pattern&gt;/faces/sec/*&lt;/url-pattern&gt;<br />
&lt;url-pattern&gt;/sec/*&lt;/url-pattern&gt;<br />
&lt;!--<br />
&lt;http-method&gt;GET&lt;/http-method&gt;<br />
&lt;http-method&gt;POST&lt;/http-method&gt;<br />
&lt;http-method&gt;PUT&lt;/http-method&gt;<br />
&lt;http-method&gt;TRACE&lt;/http-method&gt;<br />
&lt;http-method&gt;DELETE&lt;/http-method&gt;<br />
&lt;http-method&gt;HEAD&lt;/http-method&gt;<br />
--&gt;<br />
&lt;/web-resource-collection&gt;<br />
&lt;auth-constraint&gt;<br />
&lt;role-name&gt;client&lt;/role-name&gt;<br />
&lt;role-name&gt;staff&lt;/role-name&gt;<br />
&lt;role-name&gt;admin&lt;/role-name&gt;<br />
&lt;role-name&gt;system&lt;/role-name&gt;<br />
&lt;/auth-constraint&gt;<br />
&lt;user-data-constraint&gt;<br />
&lt;transport-guarantee&gt;CONFIDENTIAL&lt;/transport-guarantee&gt;<br />
&lt;/user-data-constraint&gt;<br />
&lt;/security-constraint&gt;<br />
<br />
&lt;security-role&gt;<br />
&lt;role-name&gt;client&lt;/role-name&gt;<br />
&lt;/security-role&gt;<br />
&lt;security-role&gt;<br />
&lt;role-name&gt;staff&lt;/role-name&gt;<br />
&lt;/security-role&gt;<br />
&lt;security-role&gt;<br />
&lt;role-name&gt;admin&lt;/role-name&gt;<br />
&lt;/security-role&gt;<br />
&lt;security-role&gt;<br />
&lt;role-name&gt;system&lt;/role-name&gt;<br />
&lt;/security-role&gt;<br />
&lt;!-- SECURITY E --&gt;<br />
<br />
&lt;!-- APP SETTINGS S --&gt;<br />
&lt;session-config&gt;<br />
&lt;session-timeout&gt;30&lt;/session-timeout&gt;<br />
&lt;/session-config&gt;<br />
&lt;welcome-file-list&gt;<br />
&lt;welcome-file&gt;index.jsp&lt;/welcome-file&gt;<br />
&lt;/welcome-file-list&gt;<br />
&lt;!-- APP SETTINGS E --&gt;<br />
<br />
&lt;!-- RESOURCE REFERENCES S --&gt;<br />
&lt;resource-ref id="ResourceRef_1199883113673"&gt;<br />
&lt;res-ref-name&gt;defDb&lt;/res-ref-name&gt;<br />
&lt;res-type&gt;javax.sql.DataSource&lt;/res-type&gt;<br />
&lt;res-auth&gt;Container&lt;/res-auth&gt;<br />
&lt;res-sharing-scope&gt;Shareable&lt;/res-sharing-scope&gt;<br />
&lt;/resource-ref&gt;<br />
&lt;resource-ref id="ResourceRef_1199883187555"&gt;<br />
&lt;res-ref-name&gt;oemDb&lt;/res-ref-name&gt;<br />
&lt;res-type&gt;javax.sql.DataSource&lt;/res-type&gt;<br />
&lt;res-auth&gt;Container&lt;/res-auth&gt;<br />
&lt;res-sharing-scope&gt;Shareable&lt;/res-sharing-scope&gt;<br />
&lt;/resource-ref&gt;<br />
&lt;resource-ref id="ResourceRef_1199883187565"&gt;<br />
&lt;res-ref-name&gt;wfsDb&lt;/res-ref-name&gt;<br />
&lt;res-type&gt;javax.sql.DataSource&lt;/res-type&gt;<br />
&lt;res-auth&gt;Container&lt;/res-auth&gt;<br />
&lt;res-sharing-scope&gt;Shareable&lt;/res-sharing-scope&gt;<br />
&lt;/resource-ref&gt;<br />
&lt;!-- RESOURCE REFERENCES E --&gt;<br />
&lt;/web-app&gt;<br />
<br />
Please could someone assist.<br />
<br />
Regards and thanks is advance<br />
Byron
Ken Hygh
2008-03-11 10:19:50 UTC
Permalink
Post by b***@wesbank.co.za
Hi,
/u01/opt/IBM/WebSphere/AppServer/profiles/Dmgr01/logs/dmgr # more SystemOut.log
3/11/08 8:05:59:632 SAST 00000072 SystemOut O In NLSActionServlet
3/11/08 8:06:06:816 SAST 00000072 ArchiveDeploy W ADMA0142W: Trying to close the archive that is already closed.
3/11/08 8:06:12:559 SAST 00000072 ArchiveDeploy W ADMA0091E: The resource WEB-INF/ibm-web-bnd.xmi that is defined in URI WEB-INF
/ibm-web-bnd.xmi for module WesBank-Fleet-War.war is not valid. The resource has a cross reference WEB-INF/web.xml#WebApp_ID that c
annot be resolved.
3/11/08 8:06:14:645 SAST 00000071 SystemOut O In NLSActionServlet
/u01/opt/IBM/WebSphere/AppServer/profiles/Dmgr01/logs/dmgr # more SystemErr.log
3/11/08 8:06:15:926 SAST 00000071 SystemErr R com.ibm.etools.j2ee.commonarchivecore.exception.DeploymentDescriptorLoadExceptio
n: IWAE0022E Exception occurred loading deployment descriptor for module "WesBank-Fleet-War.war" in EAR file "/u01/opt/IBM/WebSphere
/AppServer/profiles/Dmgr01/wstemp/514564614/upload/WesBank-Fleet.ear"
!Stack_trace_of_nested_exce!
com.ibm.etools.j2ee.commonarchivecore.exception.DeploymentDescriptorLoadException: WEB-INF/web.xml
[snip]
Post by b***@wesbank.co.za
Please could someone assist.
Regards and thanks is advance
Byron
Byron,
Looks like the deployment descriptors are incorrect. If you built your
EAR by exporting it from RAD and then deploying it, there may be
something wrong in RAD. Try editing the source for web.xml (make some
trivial change like adding an empty line) and saving it to force a rebuild.

Ken
b***@wesbank.co.za
2008-03-13 13:11:48 UTC
Permalink
Hi Ken,<br />
<br />
Thanks for your reply, I have found the problem, it was because I had duplicate &lt;login-config&gt; declared in the web.xml.<br />
<br />
Thanks Again, Keep well<br />
Byron
r***@gmail.com
2017-03-16 12:39:48 UTC
Permalink
Post by b***@wesbank.co.za
Hi Ken,<br />
<br />
<br />
Thanks Again, Keep well<br />
Byron
Hi Byron,

How to find the duplication in WAS.
Could you please reply.

Thanks
RP KRISH

Loading...