websphere - 错误 404 : No target servlet configured for uri

标签 websphere

我刚刚完成了一个使用 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/

相关文章:

java - 以编程方式为 WebSphere 5.x 请求发送方绑定(bind) BasicAuth Web 服务客户端设置凭证

websphere - 如何在websphere中配置和使用jSTL

java - 当 url 包含字符串 "?error "时,WebSphere 不显示网页元素

java - 如何从 WebSphere Liberty 服务器访问管理控制台?

java - 带有 ListenerPort 的 V5 消息传递提供程序

log4j 文件不滚动 - Websphere 7,Windows

Websphere:web.xml 中的安全约束不起作用

java - 应用服务器和 Spring 上下文加载

java - 容器管理的持久性和创建临时表的存储过程

eclipse - RAD/WebSphere : NoClassDefFoundError