I just tried to deploy the war file that is generated by the calculator 
webapp sample. I got the following error in the log:

org.eclipse.jst.j2ee.commonarchivecore.internal.exception.ResourceLoadException
: IWAE0007E Could not load resource "WEB-INF/web.xml" in archive 
"sample-calculator-web.war"
Stack trace of nested exception:
org.eclipse.emf.common.util.WrappedException: 
org.xml.sax.SAXParseException: The content of element type "web-app" must 
match 
"(icon?,display-name?,description?,distributable?,context-param*,filter*,filter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-mapping*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,resource-ref*,security-constraint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb-local-ref*)".
.../...


I find this puzzling, as the web.xml in the war file DOES only contain 
elements that match the patterns:

<web-app>

  <display-name>Tuscany Calculator Web Service Sample</display-name>

    <welcome-file-list id="WelcomeFileList">
        <welcome-file>calc.jsp</welcome-file>
    </welcome-file-list>
 
  <listener>
     <listener-class>org.apache.tuscany.sca.webapp.TuscanyContextListener
</listener-class>
  </listener>

</web-app>

Has anyone else had any problems?

FWIW I am deploying to a WAS 6.1.0.9

Matthew Peters





Unless stated otherwise above:
IBM United Kingdom Limited - Registered in England and Wales with number 
741598. 
Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU





Reply via email to