WAR module failed to start with SRVE0054E exception
 Technote (troubleshooting)
 
Problem(Abstract)
WAR module failed to start with SRVE0054E exception, if the exception-type tag does not contain a valid Java™ exception type in the web.xml file
 
Cause
All the tags in the web.xml file should be defined based on the DTD standard. <error-page> tag contains <error-code> ,<exception-type> and <location> tags.
For example the <error-page> tag can be defined as follows.
<error-page id="ExceptionTypeErrorPage_1125683209786">
<exception-type>java.lang.IllegalStateException</exception-type>
<location>C:\errors\illegalInput.html</location>
</error-page>

As per the servlet 2.3 spec, section SRV.A.2 DTD, the exception type tag should contain a fully qualified class name of a Java exception type. So an empty exception-type or an invalid exception-type are not allowed.
The following exception may be thrown in the SystemOut.log file, if an invalid exception tag is defined.
[8/30/05 9:56:45:203 CDT] 7bad7311 WebApp E SRVE0015E: Failure to
initialize Web application Test.war
[8/30/05 9:56:45:281 CDT] 7bad7311 WebGroup E SRVE0054E: An error occurred while loading Web application
[8/30/05 9:56:45:297 CDT] 7bad7311 DeployedAppli W WSVR0206E: Module,
Test.war, of application, Test_war.ear/deployments/Test_war, failed to start

Here are some valid and invalid exception type values.
Invalid Exception Type values :
<exception-type>myexception.InvalidArgumentException</exception-type>
<exception-type>myexception.NullPointerException</exception-type>
<exception-type></exception-type>
Valid Exception Type Values :
<exception-type>java.lang.IllegalStateException</exception-type>
<exception-type>java.lang.NullPointerException</exception-type>
 
Resolving the problem
Include a fully qualified class name of a Java exception type in the web.xml file <exception-type> tag.
Restart the application.

Note: To find the standard J2EE DTD tags , please review the DTD files under install-root/deploytool/itp/plugins/com.ibm.etools.j2ee/dtds folder.
 
 
Cross Reference information
Segment Product Component Platform Version Edition
Application Servers Runtimes for Java Technology Java SDK
 
Historical Number
10436
004
000
 
 


Document Information


Product categories: Software > Application Servers > Distributed Application & Web Servers > WebSphere Application Server > Deploy (for example: AAT or ANT or EAR/WAR/JAR)
Operating system(s): Windows
Software version: 6.0
Software edition:
Reference #: 1218593
IBM Group: Software Group
Modified date: Sep 3, 2007