Eclipse和Java配置以部署到WebLogic 12C本地服务器不起作用。

huangapple go评论55阅读模式
英文:

Eclipse and Java Configuration to deploy on weblogic 12C local server not work

问题

我已经配置并运行了一个位于我的计算机上的WebLogic 12C服务器(版本12.2.1.4.0),我正在使用Eclipse进行工作,我在其中有一个使用Java 1.8的Spring Boot应用程序。

我需要配置Eclipse以在我的本地WebLogic服务器上部署和调试。

问题在于,当我尝试在Eclipse中创建服务器并指定服务器、域和要部署的WAR文件时,向导显示“服务器不支持J2EE Web模块规范的4.0版本。”

奇怪的是,我的客户端有一个12C的WebLogic服务器(版本12.2.1.3.0),我可以通过控制台(IP:7001 / console)无问题地部署。

有任何想法吗?可能是域配置有问题吗?
感谢回答!!

一些图片胜过千言万语:

> 配置服务器WebLogic向导
Eclipse和Java配置以部署到WebLogic 12C本地服务器不起作用。

> 选择域
Eclipse和Java配置以部署到WebLogic 12C本地服务器不起作用。

> 指示它是本地域
Eclipse和Java配置以部署到WebLogic 12C本地服务器不起作用。

> 尝试移动资源时,向导告诉我它不兼容
Eclipse和Java配置以部署到WebLogic 12C本地服务器不起作用。

> 检查域设置,我看不到任何问题
Eclipse和Java配置以部署到WebLogic 12C本地服务器不起作用。

英文:

I have configured and running a weblogic12C server (12.2.1.4.0) on my computer, and I am working with eclipe, where I have a spring boot application with java 1.8.

I need to configure ecplipse to deploy and debug on my local weblogic server.

The problem is that when trying to create the server in Eclipse and indicate what the server will be, its domain and the WAR to deploy, the wizzard says "The server does not support version 4.0 of the J2EE Web module specification."

The strange thing is that my client has a 12C weblogic server (12.2.1.3.0) and I can deploy there without problems via console (ip: 7001 / console).

Any ideas? Will it be a problem with the domain configuration?
Grateful for the answers !!

Some images speak more than a thousand words:

> Configuration server weblogic wizzard
Eclipse和Java配置以部署到WebLogic 12C本地服务器不起作用。

> Selecting the domain
Eclipse和Java配置以部署到WebLogic 12C本地服务器不起作用。

> Indicating that it is a local domain
Eclipse和Java配置以部署到WebLogic 12C本地服务器不起作用。

> When trying to move the resource, the wizard tells me that it is not compatible
Eclipse和Java配置以部署到WebLogic 12C本地服务器不起作用。

> Checking the domain settings, I don't see anything wrong
Eclipse和Java配置以部署到WebLogic 12C本地服务器不起作用。

答案1

得分: 1

根据这份文档:

https://docs.oracle.com/en/middleware/fusion-middleware/weblogic-server/12.2.1.4/wbapp/basics.html#GUID-62B6050D-6DD3-4028-B863-4CD0B5692E7F

WebLogic Server完全支持HTTP servlet,其定义在Servlet 3.1规范中,链接为http://jcp.org/en/jsr/detail?id=340。HTTP servlet是Java EE标准的一个重要组成部分。

看起来您的Eclipse安装正在尝试使用Java EE版本4,而这不受Oracle Weblogic 12.2.1.*支持。

此外,我找到了下面的帖子,我认为它可能对解决您的问题有用:

https://stackoverflow.com/questions/54233669/project-facet-dynamic-web-module-4-0-is-not-supported-by-this-server

这个帖子解释了Servlet-API版本4.0的问题以及如何配置您的IDE以使用Oracle Weblogic 12.2.1.*支持的版本。

英文:

According to this document

https://docs.oracle.com/en/middleware/fusion-middleware/weblogic-server/12.2.1.4/wbapp/basics.html#GUID-62B6050D-6DD3-4028-B863-4CD0B5692E7F

>WebLogic Server fully supports HTTP servlets as defined in the Servlet 3.1 specification at http://jcp.org/en/jsr/detail?id=340. HTTP servlets form an integral part of the Java EE standard.

It looks like your Eclipse installation is trying to use Java EE version 4, which is not supported by Oracle Weblogic 12.2.1.*

Furthermore, I have found the below post, which I think could be useful to fix your issue.

https://stackoverflow.com/questions/54233669/project-facet-dynamic-web-module-4-0-is-not-supported-by-this-server

That post explains the issue with Servlet-API version 4.0 and how to configure your IDE to use the version supported by Oracle Weblogic 12.2.1.*

huangapple
  • 本文由 发表于 2020年7月31日 01:12:59
  • 转载请务必保留本文链接:https://go.coder-hub.com/63178142.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定