JavaEEDocker

Using dockerized Java EE servers in NetBeans

Contents


GlassFish

Note: There seems to be a bug in the <nop>GlassFish that causes the applications do not return any content unless these have web.xml. It also looks like it may be workarounded by invocation of admin console in advance before deploying any app. See GLASSFISH-21365.

glassfish (Docker official repository)

As the image is not configured to allow remote DAS access some extra steps are needed.

  1. Do docker pull glassfish.
  2. Do docker run -ti -p 4848:4848 -p 8080:8080 -p 8181:8181 glassfish:4.1 /bin/bash.
  3. In the opened shell do:
    1. cd bin
    2. ./asadmin start-domain
    3. ./asadmin change-admin-password
    4. setup the new admin password
    5. ./asadmin enable-secure-admin
    6. use the admin and password you have just configured
    7. ./asadmin stop-domain
    8. ./asadmin start-domain
    9. Optionally commit the image to preserve the setup.
  4. Start the development build of NetBeans.
  5. In Services tab right click Servers node and choose Add Server.
  6. Choose GlassFish Server in next step.
  7. Select or install GlassFish 4.1.
  8. Before proceeding to the next step select Remote Domain.
  9. Fill in following data (keep other fields empty):
    • Domain: domain1
    • Host: localhost
    • DAS Port: 4848
    • HTTP Port: 8080
    • Username: admin
  10. Fill in the admin password.
  11. Finish the wizard.

glassfish/nightly (GlassFish team)

  1. Do docker pull glassfish/nightly.
  2. Do docker run -ti -p 4848:4848 -p 8080:8080 -p 8181:8181 glassfish/nightly.
  3. Invoke start-domain in the opened admin console.
  4. Start the development build of NetBeans.
  5. In Services tab right click Servers node and choose Add Server.
  6. Choose GlassFish Server in next step.
  7. Select or install GlassFish 4.1.
  8. Before proceeding to the next step select Remote Domain.
  9. Fill in following data (keep other fields empty):
    • Domain: domain1
    • Host: localhost
    • DAS Port: 4848
    • HTTP Port: 8080
    • Username: admin
    • Password: glassfish
  10. Finish the wizard.

tutum/glassfish (Third party)

  1. Do docker pull tutum/glassfish.
  2. Do docker run -ti -p 4848:4848 -p 8080:8080 -p 8181:8181 tutum/glassfish.
  3. Start the development build of NetBeans.
  4. In Services tab right click Servers node and choose Add Server.
  5. Choose GlassFish Server in next step.
  6. Select or install GlassFish 4.0 (as time of writing tutum's image uses GlassFish 4.0).
  7. Before proceeding to the next step select Remote Domain.
  8. Fill in following data (keep other fields empty):
    • Domain: domain1
    • Host: localhost
    • DAS Port: 4848
    • HTTP Port: 8080
    • Username: admin
  9. Fill in the password generated in the console when running the image.
  10. Finish the wizard.

WebLogic

theivan/weblogic (Third party)

  1. Do docker pull theivan/weblogic.
  2. Do docker run -ti -p 7001:7001 -p 7002:7002 -p 5556:5556 theivan/weblogic.
  3. Start the development build of NetBeans.
  4. In Services tab right click Servers node and choose Add Server.
  5. Choose Oracle WebLogic Server in next step.
  6. Select installation folder of WebLogic 12.1.3.
  7. Before proceeding to the next step select Remote Domain.
  8. Fill in following data (keep other fields empty):
    • Hostname: localhost
    • Admin Port: 7001
    • Username: weblogic
    • Password: welcome1
  9. Finish the wizard.

You could also use port 7002 with enabled SSL/TLS checkbox.

Not logged in. Log in, Register

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo