On 7/3/07, Matthew Peters <[EMAIL PROTECTED]> wrote:

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>

Put listener above welcome-file-list.

Jacek

--
Jacek Laskowski
http://www.JacekLaskowski.pl

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to