Spring Boot + Eclipse + Weblogic 12.2.1 [英] Spring Boot + Eclipse + Weblogic 12.2.1

查看:37
本文介绍了Spring Boot + Eclipse + Weblogic 12.2.1的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我通过 Eclipse Neon 在 weblogic 12.2.1 中部署 Spring Boot 应用程序时遇到问题.这是组件

I'm having an issue when I deploy a spring boot application in weblogic 12.2.1 through Eclipse Neon. This are the components

  • 具有 Web 依赖项的简单 Spring Boot 应用程序.
  • 日食霓虹
  • Weblogic 12.2.1.1 嵌入到 Eclipse 中

错误是:

weblogic.management.DeploymentException: java.lang.ClassNotFoundException: org.springframework.security.oauth2.client.token.AccessTokenRequest
    at weblogic.application.internal.BaseDeployment.throwAppException(BaseDeployment.java:132)
    at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:246)
    at weblogic.application.internal.EarDeployment.prepare(EarDeployment.java:66)
    at weblogic.application.internal.DeploymentStateChecker.prepare(DeploymentStateChecker.java:158)
    at weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(AppContainerInvoker.java:65)
    Truncated. see log file for complete stacktrace

但我没有在应用程序中使用安全性.如果我将它作为Spring Boot App"运行,应用程序就会运行.

But I'm not using security in the application. If I run it as "Spring Boot App" the application runs.

我猜问题出在 weblogic 上,我该如何解决?

I guess the problem is with weblogic, how can I solve it?

推荐答案

对于其他遇到此问题的人来说,这似乎是由于 Oracle WebLogic 团队讨厌遵守 EE 而导致的 Spring Boot (spring-boot-autoconfigure) 中的错误规格请参阅此处了解更多信息:https://github.com/spring-projects/spring-boot/issues/9441

For anybody else hitting this, it appears this is a bug in Spring Boot (spring-boot-autoconfigure) induced by the Oracle WebLogic team's pesky adherence to the EE spec. See here for more info: https://github.com/spring-projects/spring-boot/issues/9441

Spring Boot 的 1.5.5.RELEASE 版本已修复此问题.因此,例如,如果您正在使用 gradle,则按如下方式更改您的依赖项(以及您拥有的任何其他 Spring Boot 依赖项)应该可以修复它:

The 1.5.5.RELEASE version of Spring Boot has this fixed. So if you're using gradle for example, changing your dependency as follows (and any other Spring Boot dependencies you have) should fix it:

compile "org.springframework.boot:spring-boot-autoconfigure:1.5.5.RELEASE"

在遇到同样的问题后,我刚刚确认这对我有用.

I've just confirmed this works for me after getting the same problem.

这篇关于Spring Boot + Eclipse + Weblogic 12.2.1的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆