【问题标题】:WebSphere IssueWebSphere 问题
【发布时间】:2014-03-03 07:56:09
【问题描述】:

我在一个 Java 应用程序中工作。我正在使用 Struts2 和 Hibernate。该应用程序在 Tomcat7 中运行良好,但是当我在 IBM"S Websphere 上部署该应用程序时,我收到以下 URL 的以下错误

http://localhost:8080/MYAPPS
Error 404: There is no Action mapped for action name . 

http://localhost:8080/MYAPPS/

Error 404: There is no Action mapped for namespace [/] and action name [] associated with context path 

【问题讨论】:

  • 如果你加上一个最后的斜线,它是否有效:localhost:8080/MYAPPS/?还要确保端口是@Andres 的回答所建议的正确端口
  • 什么版本的 IBM Websphere?

标签: java tomcat struts2 websphere action-mapping


【解决方案1】:

默认端口为 9080。按照其他人的建议更改 url 中的端口。

【讨论】:

    【解决方案2】:

    检查以下内容:

    1. 登陆控制台,点击servers -> serverName -> ports -> WC_defaulthost (webcontainer port) 例如,如果它显示为 9080
    2. 点击环境 -> 虚拟主机 -> 默认主机(或应用程序映射到的主机)-> 点击主机别名。确保端口已定义,如果没有添加端口并重新启动服务器。
    3. 按如下方式访问应用程序。
      http://localhost:9080/MYAPPS/
      http://hostname:9080/MYAPPS/

    如果问题仍然存在,请打开 systemout.log 文件并查看更多详细信息。

    【讨论】:

      【解决方案3】:

      试试这个,它可能有助于找到网络主机或安全网络主机的端口号, 走下面的路, /opt/IBM/WebSphere/AppServer/profiles/Dmgr01_demo/config/cells/localhostCell01/nodes/Dmgr_node, 尝试找到这个文件 serverindex.xml, 在那里你可以找到“WC_adminhost”端口号。

      希望有帮助! 谢谢!。

      【讨论】:

        【解决方案4】:

        我认为这不是虚拟主机问题。您显然已经正确配置了它,因为没有虚拟主机错误。

        您的 WAS 版本是多少? WAS V6.1.X 以不支持任何流行的东西而臭名昭著。尝试将其添加为自定义 Web 容器属性:

        • com.ibm.ws.webcontainer.invokefilterscompatibility 将其值设置为true

        【讨论】:

          猜你喜欢
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 2012-09-06
          • 2012-09-25
          • 2011-03-17
          • 2016-07-12
          相关资源
          最近更新 更多