我无法在 netbeans v11 中添加 weblogic 服务器

I can not add the weblogic server in netbeans v11

我已经安装了 Weblogic 12c 服务器,我想将它添加到 Netbeans 11 中的项目中。当我从服务器实例 select "add server" 时,未显示 Weblogic 服务器选项

我希望看到如下所示的选项 link https://www.oracle.com/webfolder/technetwork/tutorials/obe/java/wls_12c_netbeans_install/wls_12c_netbeans_install.html

据我所知,目前只有 Netbeans 版本 7.2、7.3、7.4、8.0 可以与 weblogic 一起使用。此外,您所遵循的指南使用的是 Apache Netbeans 之前的版本。我建议切换到以下 Netbeans 版本之一。下载 All bundle 或 EE。

https://netbeans.apache.org/kb/docs/web/jsf-jpa-weblogic.html

很遗憾,Apache NetBeans 11.0 当前不支持添加或使用 WebLogic 服务器。查看打开的 Apache NetBeans 错误报告 2476:Netbeans 11 EE Support Weblogic Server

我不确定,但我怀疑这是一个与许可问题相关的法律问题,而不是任何技术障碍。 Apache NetBeans 11.0 缺少许可也会影响其他重要产品,例如 Hibernate (NETBEANS-2719 Resolve Hibernate Support) 和 Wildfly (NETBEANS-2415 恢复对 WildFly 服务器的支持).

存在许可问题,因为 Apache 去年从 Oracle 手中接管了 NetBeans 版本的所有权。

此外,由于 WebLogic 在 NetBeans 8.2 中受支持 "out of the box",因此没有旧的 WebLogic 插件可用于 Apache NetBeans 11.0。

您的选择是:

  • 回归 NetBeans 以使用支持 WebLogic 的最新 NetBeans 版本:Oracle NetBeans 8.2。请注意,这意味着您不能使用 Java EE 8 进行开发,也不能使用任何 JDK 版本 > 8.
  • 坚持使用 Apache NetBeans 11.0,而不是 WebLogic,使用它正式支持的四种应用程序服务器之一 "out of the box":Payara、Glassfish、Apache Tomcat 和 Apache TomEE。
  • 在 Apache NetBeans 11.0 之外安装您的 WebLogic 服务器,并将您的 NetBeans Web 应用程序部署到该外部服务器。

我能够连接 netbeans 8.2 版的 weblogic 插件。 您必须将插件文件从 netbeans 8.2 目录复制到 netbeans 11 目录。 插件文件:

  • ...\plugins\servers\enterprise\modules\org-netbeans-modules-j2ee-weblogic9.jar
  • ...\plugins\servers\enterprise\config\Modules\org-netbeans-modules-j2ee-weblogic9.xml
  • ...\plugins\servers\enterprise\update_tracking\org-netbeans-modules-j2ee-weblogic9.xml
  • ...\plugins\servers\enterprise\update_tracking\org-netbeans-modules-weblogic-common.xml

已检查版本 11、11.1、11.2。

更新。 第二种方法

插件可以从源代码编译。 插件来源在这里: https://github.com/apache/netbeans/tree/master/contrib/j2ee.weblogic9 但是您需要构建所有 netbeans 项目。构建命令:

ant all

然后可以将生成的 .nbm 文件导入 NetBeans(工具 -> 插件 -> 下载 -> 添加插件)

这里讨论问题: https://issues.apache.org/jira/browse/NETBEANS-2476

编译好的nbm插件文件: https://issues.apache.org/jira/secure/attachment/12991973/org-netbeans-modules-j2ee-weblogic9.nbm

检查版本 12.x