简体   繁体   中英

Deploying .war file in Websphere application server 6.1?

When i was trying to install new application in WAS 6.1, I have given the .war file i've created for SampleApplication.

The SampleApplication.war is successfully running in Tomcat server, but when i tried to deploy it in WAS 6.1, following error was shown.

The exception **IWAE0022E** Exception occurred loading deployment descriptor for module `"SampleApplication.war" in EAR file "C:\Appllications\IBM\WebSphere\AppServer2\profiles\AppSrv01\wstemp\3506402\upload\SampleApplication_war.ear" ocurred. Check log for details.`

The context root i've given as /SampleApplicaion.

So what would be the problem and how to resolve this??

I would:

  • check the log for more information as instructed
  • if memory serves, WAS 6.1 is a Servlet 2.4 container, so check that the deployment descriptor (web.xml) validates against the 2.4 schema (or 2.3 or 2.2 DTD if you're writing to those specs)

Found by googling IWAE0022E

Cause The display-name tag should come before the servlet-name tag.

Resolving the problem Load enterprise application in a developer tool and look at the web.xml From web.xml in the WebSphere Application Resource (WAR) , the following is seen:

  <servlet-name>test_name</servlet-name>
  <display-name>test_displayname</display-name>

The correct order is: First "display-name" then "servlet-name", like the example below:

  <display-name>test_displayname</display-name>
  <servlet-name>test_name</servlet-name>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM