Search code examples
javanetbeansweblogic12cnetbeans-11

I can not add the weblogic server in netbeans v11


I have installed the Weblogic 12c server and I want to add it to a project in Netbeans 11. When I select "add server" from server instance, the Weblogic server option is not displayed server instance netbeans 11 image

I expected to see the option as shown in the following link https://www.oracle.com/webfolder/technetwork/tutorials/obe/java/wls_12c_netbeans_install/wls_12c_netbeans_install.html

expected server intances option image


Solution

  • I was able to connect the plugin for weblogic from netbeans version 8.2. You must copy the plug-in files from the netbeans 8.2 directory to the netbeans 11 directory. Files of a plug-in:

    • ...\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

    Checked on versions 11, 11.1, 11.2.

    Update. Second method

    The plugin can be compiled from sources. Plugin sources here: https://github.com/apache/netbeans/tree/master/contrib/j2ee.weblogic9 But you need to build all netbeans project. Build command:

    ant all

    The resulting .nbm file can then be imported in NetBeans (Tools -> Plugins -> Downloaded -> Add Plugin)

    Discussion of the problem here: https://issues.apache.org/jira/browse/NETBEANS-2476

    Compiled nbm plugin file: https://issues.apache.org/jira/secure/attachment/12991973/org-netbeans-modules-j2ee-weblogic9.nbm

    Checked on versions 12.x