【问题标题】:Can the helloworld-spring-webapp from Jersey 2.5 examples be deployed on WebSphere 7 ?Jersey 2.5 示例中的 helloworld-spring-webapp 可以部署在 WebSphere 7 上吗?
【发布时间】:2014-01-06 19:47:20
【问题描述】:

我能够将它部署在 WebSphere Liberty 8.5.5 上,但不能部署在 7 上。我知道 WebSphere 7 需要 Servlet 2.5 及更低版本。使用 Java 6 使用最新版本的 Jersey 和 Spring 更新 POM,仍然会引发运行时错误。

【问题讨论】:

    标签: maven-2 spring-3 websphere-7 java-6 jersey-2.0


    【解决方案1】:

    是的,您将无法在 Weblogic 7 上部署它。 我试图在 Weblogic 10.3.5 上部署 Jersey 2.5,但无法做到这一点,因为 Maven 正在下载 JAX-RS 2.0 的依赖项,这需要 java 1.7 和 weblogic 10.3.5 支持直到 java 1.6。

    我刚刚在 WebSphere 7.0 上尝试过,但无法部署。

    【讨论】:

    • 请注意:JAX-RS 2.0 / Jersey 2.x 是使用 JDK6 编译的,所以这不是问题。应用服务器的系统类路径(不是 WLS 10.3.5 AFAIK 的情况)或 servlet 版本上的 JAX-RS 1.1 可能存在问题。
    猜你喜欢
    • 2011-10-20
    • 2013-02-03
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-06-17
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多