You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@tuscany.apache.org by Matthew Peters <ma...@uk.ibm.com> on 2007/07/03 15:06:27 UTC
cannot deploy calculator web sample
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
Re: cannot deploy calculator web sample
Posted by Jacek Laskowski <ja...@laskowski.net.pl>.
On 7/3/07, Matthew Peters <ma...@uk.ibm.com> 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: tuscany-user-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-user-help@ws.apache.org
Re: cannot deploy calculator web sample
Posted by Matthew Peters <ma...@uk.ibm.com>.
Ant, thank you, you were right. I looked at the patch, reversed the order
of the listener and welcome-file-list elements and tried again and it
deployed this time. I got a jsp compile error when I tried to run it, but
I consider that progress :-)
> Could this be http://issues.apache.org/jira/browse/TUSCANY-1294 which
has
> been fixed in trunk but didn't make it to the 0.90 release?
> ...ant
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
Re: cannot deploy calculator web sample
Posted by ant elder <an...@apache.org>.
On 7/3/07, Matthew Peters <ma...@uk.ibm.com> wrote:
>
> 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
Could this be http://issues.apache.org/jira/browse/TUSCANY-1294 which has
been fixed in trunk but didn't make it to the 0.90 release?
...ant