【问题标题】:Deploy spring app in Websphere get Error 404: SRVE0190E在 Websphere 中部署 spring 应用程序得到错误 404:SRVE0190E
【发布时间】:2014-07-04 19:10:51
【问题描述】:

我正在尝试将 spring + angularJS 应用程序(打包为 war)部署到 websphere (7.0.0.25) 中,但即使对于我从 spring 克隆的示例应用程序,我总是得到 错误 404: SRVE0190E: File未找到。即使对于 spring 应用程序,我也必须在 URL 中明确指定 index.html,否则我会得到同样的错误。但是有棱角的一面是可以忍受的,有没有人能帮我看看弹簧的一面?

示例应用程序是:https://github.com/spring-guides/gs-convert-jar-to-war-maven.git

在“/gs-convert-jar-to-war-maven/complete”中执行“mvn clean package”获取war后,我按照此处的步骤在websphere中上传和部署war: http://www.packtpub.com/article/deploying-applications-on-websphere-application-server-7.0-part1

我也试过这个帖子来设置自定义属性,但还是不行:http://frightanic.com/software-development/solution-to-error-404-srve0190e-on-websphere-6-1/

另外,我的应用程序和示例 spring 应用程序都没有 web.xml,因为 spring 会处理它。这两个应用程序都可以在码头和 Tomcat 中正常工作。只有 websphere 有问题。此外,我不知道如何手动配置 web.xml,如果这将是解决方案(需要指向更多资源)。

我尝试但无法访问该应用的网址是:

本地主机:9080

localhost:9080/gs-convert-jar-to-war-0_1_0_war

localhost:9080/someAppName

提前致谢!

【问题讨论】:

  • 登录管理控制台并检查为应用程序定义的上下文根。检查 systemOut.log 是否正确启动并附加异常堆栈跟踪。

标签: spring deployment websphere web-deployment websphere-7


【解决方案1】:

事实证明,websphere 7 不支持某些 spring 注释/类。我的解决办法是写一个web.xml文件,关闭spring自动配置。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-03-24
    • 1970-01-01
    • 2019-03-06
    • 2018-05-23
    相关资源
    最近更新 更多