我刚刚完成了一个使用 Spring Framework 构建的新 Web 模块。到目前为止,我正在使用 Tomcat 测试本地机器上的所有页面。今天在我将应用程序移至 Websphere 之后,
我收到以下错误:
Error 404: No target servlet configured for uri
我需要在 web.xml 或某处做些什么吗?我在我的 WAS 上部署了一个 EAR 文件,它有另一个 war 文件。
以下是我在控制台上看到的输出,如果有帮助的话。
The resource WEB-INF/ibm-web-bnd.xmi that is defined in URI WEB-INF/ibm-web-bnd.xmi for module analytics.war is not valid. The resource has a cross reference org.eclipse.jst.j2ee.webapplication.internal.impl.WebAppImpl@4be44be4 (eProxyURI: WEB-INF/web.xml#WebApp_ID) that cannot be resolved.
[6/17/09 15:24:49:465 CDT] 00000011 ArchiveDeploy W ADMA0091E: The resource WEB-INF/ibm-web-ext.xmi that is defined in URI WEB-INF/ibm-web-ext.xmi for module analytics.war is not valid. The resource has a cross reference org.eclipse.jst.j2ee.webapplication.internal.impl.WebAppImpl@7b7a7b7a (eProxyURI: WEB-INF/web.xml#WebApp_ID) that cannot be resolved.
最佳答案
看起来您的 servlet 配置不正确。我会说您的 web.xml 有一个 servlet-name 条目,它与您的 WEB-INF 目录中的 -servlet.xml 文件不对应。
关于websphere - 错误 404 : No target servlet configured for uri,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1010493/