|
Problem |
A DeploymentDescriptorLoadException and a
SAXParseException are issued while deploying a WAR file using the
WebSphere® Application Server version 4.0 administrative console. These
errors are the result of misplaced tags in the web.xml file contained in
the WAR file. |
|
Cause |
In the Web.xml file contained in the WAR file, the
<context-param> tag is misplaced at the bottom of the file instead
of listed in sequence with the other <context-param> tag entries.
Any tag having multiple entries, including the <context-param> tag,
must appear in sequence at one location. |
|
Solution |
Edit the Web.xml file to incorporate the out-of-place
<context-param> tag into the sequenced list in the proper location.
Additional Information
The WAR file was created using the following command:
jar cvf /opt/mgmtqa.war
Deployment of this WAR file into version 4.0 using the administrative
console results in the following exceptions in the tracefile:
[02.10.18 10:32:47:784 EDT] 7c56115e Server
A WSVR0023I: Server __adminServer open for e-business
[02.10.18 19:47:25:584 EDT] 7b52d159 ExceptionUtil X CNTR0020E:
;Non-application exception occurred while processing method
createEarWrapper
on bean BeanId(admin#repository.jar#FileBrowserService, f0f7eb4f94):
java.rmi.ServerException: RemoteException occurred in server thread;
nested exception is:
java.rmi.RemoteException: ; nested exception is:
com.ibm.etools.archive.exception.DeploymentDescriptorLoadException:
WEB-INF/web.xml
java.rmi.RemoteException: ; nested exception is:
com.ibm.etools.archive.exception.DeploymentDescriptorLoadException:
WEB-INF/web.xml
com.ibm.etools.archive.exception.DeploymentDescriptorLoadException:
WEB-INF/web.xml
Stack trace of nested exception:
com.ibm.etools.archive.exception.ResourceLoadException: Could not load
resource: WEB-INF/web.xml in archive mgmtqa.war
Stack trace of nested exception:
com.ibm.etools.archive.exception.ArchiveRuntimeException: An Exception
occurred while parsing xml:Line #: 328:Column #: 13
Stack trace of nested exception:
org.xml.sax.SAXParseException: The content of element type "web-app" must
match "(icon?,display-name?,description?,distributable?,context-pa
ram*,servlet*,servlet-mapping*,session-config?,mime-mapping*,welcome-file-l
ist?,error-page*,taglib*,resource-ref*,security-constraint*,login
-config?,security-role*,env-entry*,ejb-ref*)".
at
org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1016) |
|
|
|
|
|
|