GlassFish Extension for Oracle JDeveloper

We just release a new version of Oracle JDeveloper - 11.1.2.3.

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.

Comments:

Does business rules support on glass fish ?

Posted by guest on September 25, 2012 at 12:58 PM PDT #

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.

Posted by Shay on September 25, 2012 at 01:23 PM PDT #

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?

thanks.

Posted by kangdi on September 26, 2012 at 01:00 AM PDT #

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.

Posted by Shay on September 27, 2012 at 08:55 AM PDT #

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

Posted by guest on October 04, 2012 at 01:01 AM PDT #

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.

Posted by Shay on October 05, 2012 at 11:35 AM PDT #

Hi,
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

Posted by guest on October 26, 2012 at 03:34 PM PDT #

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

Posted by shay on October 26, 2012 at 04:00 PM PDT #

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.

Regards.

Posted by Alexis Lopez on November 06, 2012 at 05:26 AM PST #

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

Ulrich

Posted by guest on December 03, 2012 at 12:18 PM PST #

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?

Regards,
Eric

Posted by Eric on December 18, 2012 at 02:47 PM PST #

Hi Shay,

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

Thanks,
Darren

Posted by Darren on July 16, 2013 at 07:45 PM PDT #

Darren,

You'll need 11.1.2.4 or 12c to be able to deploy to Glassfish.
Your ADF 11.1.1.6 app should migrate smoothly to either versions.

Posted by guest on July 17, 2013 at 12:49 PM PDT #

Hi Shay,

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

Regards,

Steve

Posted by stevef on July 23, 2013 at 08:04 AM PDT #

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..?

Regards,
Sai.

Posted by sai on September 18, 2013 at 05:17 AM PDT #

Hi shay,

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

Regards,
Sai.

Posted by sai on September 18, 2013 at 05:19 AM PDT #

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.

Posted by shay on September 21, 2013 at 12:11 PM PDT #

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

Posted by Joel on January 05, 2014 at 06:38 PM PST #

thanks Joel for your info but i'm getting the following error
An error occurred reading extension bundle bundle.xml. please help

Posted by Felisberto on January 09, 2014 at 07:03 AM PST #

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"

Posted by esuu on March 03, 2014 at 12:54 AM PST #

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

https://blogs.oracle.com/shay/entry/deploying_oracle_adf_applications_to

Posted by Shay on March 03, 2014 at 09:37 AM PST #

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

Posted by guest on March 03, 2014 at 07:21 PM PST #

Post a Comment:
  • HTML Syntax: NOT allowed
About

me
I'm a Director of Product Management for the Oracle Java Development Tools.
Follow me:
Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today