Shay Shmeltzer's Oracle Development Tools Tips

GlassFish Extension for Oracle JDeveloper

Shay Shmeltzer
Director of Product Management - Oracle

We just release a new version of Oracle JDeveloper -

One new feature here is built-in support for GlassFish. This include the ability to create an "application server" connection to GlassFish and then deploy to that server with one click from inside JDeveloper. You can use this for deploying Oracle ADF Essentials application on Glassfish, but you can also use it to deploy any Java EE application you build in JDeveloper on GlassFish.

However, if you are planning to work with GlassFish and JDeveloper on a more regular basis as your development server, then you might find my new extension useful.

The new extension allows you to start and stop an external GlassFish instance, as well as start it in debug mode (which will allow JDeveloper to remotely debug your application as it runs on the server. I also added a button that will invoke the web admin console of Glassfish.

Here is a quick demo that will show you how to work with the extension:

The extension is available from help->check for updates, or you can download it directly from here, and then use help->check for updates pointing to the local zip file.

[update Nov-2012] - The new version 1.3 now runs on Mac and Linux thanks to updates to the source code by Alexis Lopez and David Aroca. Make sure to download that latest version, I also added the option to disable the extension from tools->features in JDeveloper.

By the way if you want to improve or modify this extension you can find the source for it here. You can also use this as a way to learn a bit about building JDeveloper extensions.

Join the discussion

Comments ( 29 )
  • guest Tuesday, September 25, 2012

    Does business rules support on glass fish ?

  • Shay Tuesday, September 25, 2012

    huest - depends which business rules you refer to, if you are referring to the business rules you can define inside ADF for example at the ADF Business Components layer - then yes they do.

    If you are talking about the Business Rules Engine that is part of the SOA Suite - I don't believe they do.

  • kangdi Wednesday, September 26, 2012

    Hi Shay, i follow your video, but when i trying to deploy to glassfish i got error like this :

    -Unable to add application

    -POST http://localhost:4848/management/domain/applications/application returned a response status of 400

    i'm trying to find in google but i can't find it. can you tell me what's wrong with the errors?


  • Shay Thursday, September 27, 2012

    Kangdi, Hava a look at the GlassFish Server.log file - you can usually find more information about what the problem was there.

    If the problem persist try posting on the JDeveloper forum on OTN.

  • guest Thursday, October 4, 2012

    Your plugin does not work for Glassfish home having spaces in the path. Also, the source is password protected :(

  • Shay Friday, October 5, 2012

    Hi Guest,

    The problem with spaces in the path is that the code used is basically:

    p=Runtime.getRuntime().exec("cmd /c start "+what_u_set_in_pref);

    I can't seem to get this working properly if the what_u_set_in_pref has spaces in the path, windows doesn't like this for the cmd command.

    I'm not sure why you see the source as password protected - seems to open fine for me.

  • guest Friday, October 26, 2012


    There is a problem when we deploy and the error file is :

    01:32:36 AM] Unable to add application

    [01:32:36 AM] POST http://localhost:4848/management/domain/applications/application returned a response status of 400

    [01:32:36 AM] Deployment cancelled.

    [01:32:36 AM] ---- Deployment incomplete ----.

    [01:32:36 AM] Remote deployment failure

    [01:32:36 AM] Unable to add application

    [01:32:36 AM] POST http://localhost:4848/management/domain/applications/application returned a response status of 400

  • shay Friday, October 26, 2012

    guest - look at the server log for GlassFish to identify the specific issue, and then post the question on the JDeveloper forum on OTN.

  • Alexis Lopez Tuesday, November 6, 2012

    Hi shay, thanks for this plugin, it is really helpful. In my team we were having problems when installing the plugin in Linux and Mac machines. We downloaded your plugin and made some changes so it can detect the OS and send the properly command to the Runtime.exec method. We didn't change method's names or anything else, we want to made it available for others who may be running in the same issues. Please tell me if it is possible.


  • guest Monday, December 3, 2012

    Hi Shay,

    i checkin the source of the glassfish extension to the http://java.net/projects/jdev-3rd-party-ext - source repository. Maybe we can bring our changes together...


  • Eric Tuesday, December 18, 2012

    Hi Shay,

    Just installed your extension by means of the Check For Update option. Although the option prompts that it will install version 1.3, in fact version 1.2 is downloaded and installed. Unfortunately version 1.2 does not run properly on OS X. What I the appropriate way to get and (re)install version 1.3?



  • Darren Wednesday, July 17, 2013

    Hi Shay,

    Can I deploy ADF applications created in JDeveloper into a remote Glassfish container (with the Essentials libs installed)? Or will it only work if I create the application using and upwards?



  • guest Wednesday, July 17, 2013


    You'll need or 12c to be able to deploy to Glassfish.

    Your ADF app should migrate smoothly to either versions.

  • stevef Tuesday, July 23, 2013

    Hi Shay,

    Do you know when a version of the Glassfish Extension for JDeveloper 12c will be available?



  • sai Wednesday, September 18, 2013

    Hi shay,

    Where can i get the glassfish extension for Jdev 12c and will the application developed on ver. 12c ADF Essentials support glassfish server for delopyment..?



  • sai Wednesday, September 18, 2013

    Hi shay,

    Can we use oracle dynamic shell template for developing enterprise applications using ADF Essentials without licensing..?



  • shay Saturday, September 21, 2013

    Sai, I didn't had time to update the extension to 12c yet - but you should be able to get its code and update it.

    ADF Essentials is available in 12c and runs on Glassfish and you can use the UI Shell template too.

  • Joel Monday, January 6, 2014

    To get this to work in 12c just modify the bundle.xml to include the 12c version. Eg:

    - unzip -d glass GlassFish_ext12.zip

    - nano glass/META_INF/bundle.xml

    - Change the maxVersion to 12.1.99 and save changes

    - zip -r Glass12c.zip glass/*

    - Upload to JDeveloper as normal

  • Felisberto Thursday, January 9, 2014

    thanks Joel for your info but i'm getting the following error

    An error occurred reading extension bundle bundle.xml. please help

  • esuu Monday, March 3, 2014

    Hi Shay.

    I am just did as your instruction. Firstly i created java EE Web Application and successfully deployed to GlassFish3 server. But when i create ADF Fusion Web Application and when i tried to deploy to GlassFish3, it shows following error

    "java.lang.Exception: java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: java.lang.RuntimeException: com.sun.faces.config.ConfigurationException: Factory 'javax.faces.context.ExceptionHandlerFactory' was not"

  • Shay Monday, March 3, 2014

    Esuu - you need to set up ADF Essentials on Glassfish first:


  • guest Tuesday, March 4, 2014

    Thank Shay.

    It works great. I solved my problem and problem was i am using JDev 12c with older version of Adf Essential.

  • Mohammed Saturday, December 27, 2014

    Hi Shay,

    Is there any plan to have the extension for 12.1.3?


  • Shay Tuesday, December 30, 2014
  • Mohammed Wednesday, December 31, 2014

    thanks Shay.

    this is working only on min max

    i use

    unfortunately, i can't use this version

  • Shay Wednesday, January 14, 2015

    Mohammed, there is now a new GlassFish Extension that also works in 12.1.3. Get it from the help->check for updates

  • Kunal Tuesday, May 17, 2016

    Hi Shay,

    Thanks for above post, it helped me a lot.

    I am not able to get Glassfish Extension for jDEveloper YOur last comment says its available from check for updates but unfortunately I am not able to locate it there.

  • Shay Shmeltzer Tuesday, May 17, 2016

    Kunal, If you can't see the extension in the check for update -> partners center then you can manually download the zip file from here - http://www.oracle.com/ocom/groups/public/@otn/documents/webcontent/130355.xml#com.javanme.gfext

    Then point the check-for-update to the local zip file to install the extension.

  • Kunal Thursday, May 19, 2016

    Thanks Shay.

Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.