com.ibm.etools.archive.exception.DeploymentDescriptorLoadException:
WEB-INF/web.xml
Stack trace of nested exception:
com.ibm.etools.archive.exception.ResourceLoadException: IWAE0007E Could not
load resource "WEB-INF/web.xml" in archive "C:\Program
Files\WebSphere\AppServer\wstemp\admin\upload\move.war"
Stack trace of nested exception:
com.ibm.etools.j2ee.exception.WrappedRuntimeException: IWAE0099E An
Exception occurred while parsing xml: Line #: 24 :Column #: 11
Stack trace of nested exception:
org.xml.sax.SAXParseException: The content of element type "web-app" must
match
"(icon?,display-name?,description?,distributable?,context-param*,servlet*,se
rvlet-mapping*,session-config?,mime-mapping*,welcome-file-list?,error-page*,
taglib*,resource-ref*,security-constraint*,login-config?,security-role*,env-
entry*,ejb-ref*)".
at org.apache.xerces.parsers.DOMParser.parse(DOMParser.java:235)
at
org.apache.xerces.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:20
9)
at
com.ibm.etools.j2ee.xml.bridge.GeneralXmlDocumentReader.parse(GeneralXmlDocu
mentReader.java:198)
at
com.ibm.etools.j2ee.xml.bridge.GeneralXmlDocumentReader.parseDocument(Genera
lXmlDocumentReader.java:221)
at
com.ibm.etools.j2ee.xml.DeploymentDescriptorImportExport.primImportFrom(Depl
oymentDescriptorImportExport.java:250)
at
com.ibm.etools.j2ee.xml.DeploymentDescriptorImportExport.primImportFrom(Depl
oymentDescriptorImportExport.java:239)
at
com.ibm.etools.j2ee.xml.WarDeploymentDescriptorImportExport.importFrom(WarDe
ploymentDescriptorImportExport.java:56)
at
com.ibm.etools.webapplication.impl.WebAppResourceFactory.importXML(WebAppRes
ourceFactory.java:30)
at
com.ibm.etools.j2ee.common.impl.XMLResourceFactory.load(XMLResourceFactory.j
ava:68)
at
com.ibm.etools.j2ee.common.impl.XMLResourceFactory.load(XMLResourceFactory.j
ava:84)
at
com.ibm.etools.emf.resource.impl.ResourceFactoryImpl.load(ResourceFactoryImp
l.java:77)
at
com.ibm.etools.emf.resource.impl.ResourceSetImpl.load(ResourceSetImpl.java:2
89)
at
com.ibm.etools.archive.impl.LoadStrategyImpl.getMofResource(LoadStrategyImpl
.java:222)
at
com.ibm.etools.commonarchive.impl.ArchiveImpl.getMofResource(ArchiveImpl.jav
a:528)
at
com.ibm.etools.commonarchive.impl.ModuleFileImpl.getDeploymentDescriptorReso
urce(ModuleFileImpl.java:65)
at
com.ibm.etools.archive.impl.XmlBasedImportStrategyImpl.primLoadDeploymentDes
criptor(XmlBasedImportStrategyImpl.java:35)
at
com.ibm.etools.archive.impl.War22ImportStrategyImpl.loadDeploymentDescriptor
(War22ImportStrategyImpl.java:72)
at
com.ibm.etools.archive.impl.War22ImportStrategyImpl.importMetaData(War22Impo
rtStrategyImpl.java:67)
at
com.ibm.etools.commonarchive.impl.WARFileImpl.getDeploymentDescriptor(WARFil
eImpl.java:201)
at
com.ibm.etools.commonarchive.impl.WARFileImpl.getStandardDeploymentDescripto
r(WARFileImpl.java:450)
at
com.ibm.etools.commonarchive.impl.ArchiveCopyUtility.copy(ArchiveCopyUtility
.java:89)
at
com.ibm.etools.commonarchive.impl.CommonarchiveFactoryImpl.copy(Commonarchiv
eFactoryImpl.java:126)
at
com.ibm.etools.commonarchive.impl.EARFileImpl.primAddCopyRef(EARFileImpl.jav
a:169)
at
com.ibm.etools.commonarchive.impl.EARFileImpl.addCopyRef(EARFileImpl.java:18
6)
at
com.ibm.ws.management.application.client.AppInstallHelper.createEarWrapper(A
ppInstallHelper.java:466)
at
com.ibm.ws.console.appmanagement.action.UploadAction.formUpload(UploadAction
.java:181)
at
com.ibm.ws.console.appmanagement.action.UploadAction.perform(UploadAction.ja
va:99)
at
org.apache.struts.action.ActionServlet.processActionPerform(ActionServlet.ja
va:1791)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1586)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServle
tInstance.java:110)
at
com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecy
cleServlet.java:174)
at
com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServ
let.java:313)
at
com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecyc
leServlet.java:116)
at
com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java
:258)
at
com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidSer
vletReferenceState.java:42)
at
com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletIns
tanceReference.java:40)
at
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(
WebAppRequestDispatcher.java:872)
at
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppReques
tDispatcher.java:491)
at
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequest
Dispatcher.java:173)
at
com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:79)
at
com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker
.java:199)
at
com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(C
achedInvocation.java:71)
at
com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletReq
uestProcessor.java:182)
at
com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListene
r.java:331)
at
com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.jav
a:56)
at
com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:432)
at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:343)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:592)
here is my XML file:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application
2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
<web-app>
<display-name>Move</display-name>
<description>Move</description>
<taglib>
<taglib-uri>kona.tld</taglib-uri>
<taglib-location>/WEB-INF/tld/kona.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>widget.tld</taglib-uri>
<taglib-location>/WEB-INF/tld/widget.tld</taglib-location>
</taglib>
<welcome-file-list>
<welcome-file>login.jsp</welcome-file>
</welcome-file-list>
<context-param>
<param-name>SITE_NAME</param-name>
<param-value>sdechgan</param-value>
</context-param>
<context-param>
<param-name>JDBC_DS_NAME</param-name>
<param-value>main</param-value>
</context-param>
</web-app>
What am i doing wrong? this xml file works with weblogic and Jrun
And file a PMR with IBM support.
Ken
Sarodge wrote:
>I'm getting this error while deploying my war file. This is the whole
>message:
>
>com.ibm.etools.archive.exception.DeploymentDescriptorLoadException:
>WEB-INF/web.xml
>Stack trace of nested exception:
>com.ibm.etools.archive.exception.ResourceLoadException: IWAE0007E Could not
>load resource "WEB-INF/web.xml" in archive "C:\Program
>Files\WebSphere\AppServer\wstemp\admin\upload\move.war"
>Stack trace of nested exception:
>com.ibm.etools.j2ee.exception.WrappedRuntimeException: IWAE0099E An
>Exception occurred while parsing xml: Line #: 24 :Column #: 11
>Stack trace of nested exception:
>org.xml.sax.SAXParseException: The content of element type "web-app" must
>match
>"(icon?,display-name?,description?,distributable?,context-param*,servlet*,se
>rvlet-mapping*,session-config?,mime-mapping*,welcome-file-list?,error-page*,
>taglib*,resource-ref*,security-constraint*,login-config?,security-role*,env-
>entry*,ejb-ref*)".
>
>
[snip]
"Ken Hygh" <ken...@nc.rr.com> wrote in message
news:3E831C4C...@nc.rr.com...
Thanks
Abhi
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web
Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
<!-- <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web
Application 2.3//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
-->
<web-app id="WebApp">
<display-name>mytest</display-name>
<servlet>
<servlet-name>myservlet</servlet-name>
<display-name>myservlet</display-name>
<servlet-class>myservlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>myservlet</servlet-name>
<url-pattern>/myservlet</url-pattern>
</servlet-mapping>
</web-app>
i have encountered the same error so i am trying to arrange the order of the elements..if you could please post the arrangement here coz i cannot find the format according to web-app_2.2 dtd standard, that would mean a big help. thanks a lot.