Showing posts with label jdeveloper. Show all posts
Showing posts with label jdeveloper. Show all posts

Thursday, June 14, 2012

JDeveloper could not establish connection to the Integrated Weblogic Server!

I was facing a problem, that I can start the JDeveloper Integrated WebLogic Server but when I want to deploy and start my application, I was getting the error that the server maybe does not run or is not started. Also on the left side you should be able to see something like this:

image

BUT in my case, I was always getting the error that connection could not be established. Playing around I figure out that the problem was something very silly;). Because I installed the plugins from the office, I had to add the Oracle proxy to the the configurations, like this:

image

This works perfect when you install the WebCenter Plugins but as you can see I had not exceptions for the proxy inside, so you have to modify the configurations to something like this:

image

Another option is to remove the use of the proxy when you install everything you need. Looks like this proxy configuration bother the JDeveloper to find the local WebLogic Instance. So if you use proxy into your company, do not forget to check on this.

Also this is very important when you do remote debugging with WebLogic Server installed somewhere else. You would need add the address of the WebLogic Server to the exceptions or remote the proxy use.

Tuesday, June 12, 2012

JDeveloper Performance Optimizations

I just read very interesting article about JDeveloper and performance improvement from Angelo’s blog, take a look HERE.

I played with the properties but I am not really sure if the speed is improved, my projects are also not big enough I suppose, but maybe you cant try it and see if it works for you. I also have a SSD hard drive and I must say since then JDeveloper is fast like FerrariSmile

Thursday, August 11, 2011

Building your first GWT application with JDeveloper

Since I do work also with JDeveloper I was wondering about solution and possibility to use GWT into the JDeveloper. This should not really be a problem, since GWT allows you to include the framework into every Web application, but there is no plugin available for JDeveloper at the moment, which allows you to use the GWT Framework like in Eclipse environment. Few years ago someone developed a plugin for JDeveloper with the name gDeveloper, which was giving such GWT+JDeveloper support, but this plugin does not exist anymore or is not really actively developed. Looking into the Oracle OTN archive I found a very nice article written in 2006 about using GWT together with JDeveloper, which you can find here. This article is unfortunately very old and I think is time for actualization.
 
I don’t want to spend time about how to write GWT applications here, I would use just the start up application which the GWT creates for you and I will import it into the JDeveloper.
 
Step 1: Download the GWT Framework from here. Download only the GWT SDK, you will not need the rest and unpack the zipped file.
 
Step 2: Run webAppCreator to create the GWT application. Just open a command line and go to the folder where you unzipped the GWT installation. The directory contains several scripts, in our case we would need just to run the webAppCreator and create the start application:
 
webAppCreator –out otn com.oracle.gwt.Otn
 
image
This will create a project with the name Otn and namespace com.oracle.gwt
 
Step 3: Open the project in JDeveloper. Now this part is more complicated. We would need to import the create project into the JDeveloper. To do so proceed with the following steps.
 
Lunch JDeveloper and create application first:
image
 
Type some application name and use as application package prefix the same namespace as you used to create the GWT project: com.oracle.gwt, and also select Generic Application, then click on next.
 
Type the name of the project, which is the same as the created GWT project and click on finish.
image
 
With this steps we now create a application which we can use to create our GWT project. In your JDeveloper you will see something like this:
 
 
image

 

As shown on the picture above click on the drop down menu and select New Project. This will open a new window, where you have to scroll down and select Web Project as shown on the screen bellow:


image












 
 
 
 
 
 
 
 
 
 
Click then on OK to proceed with the next step. Now on the next screen we do have several possibilities. We can select directly the folder where we create the GWT application or we can create new folder into the application and then copy our GWT project inside. I would go for the second step. So I type the project name to be the same as the name of the GWT Project.
 

image


On the next screen select the servlet support and click next.
image

On the Page Flow Technologies, just select None and click on next.


image

We do not need to include any special libraries here inside so ignore this step as well and click on next.


image

On the next window you have to change several properties. Your document root is going to end on war, then change the name of the application and the context root if you wish as well.
 

image

Click then on next and then on finish to complete with the creation. Now we do have a project folder which looks like this:

image
Having this we can copy our GWT project into here. Just get the folder where you create previously your GWT project and copy the content of the otn folder inside the JDeveloper Otn project folder. Now your project will look like this:


image
You’ll still get some errors, you have to add the GWT libraries to the project, as shown bellow.


image

Using the build-in Ant support in JDeveloper you can build and run your GWT application now.


image

In the next weeks I would try to research about how to configure the GWT applications to able to launch it directly from the JDeveloper. Using the knowledge about you can for example star and build portlets for WebCenter Portal using as UI the GWT Framework. I would try to follow this article and show you how to this.
You can also find the project I created above here.

Wednesday, August 10, 2011

Navigation shortcuts every JDeveloper programmer should know

I read this article and decide to make such an article for JDeveloper as well. I already post article about how to load the Eclipse shortcut schema in JDeveloper but if you want to use the standard JDeveloper schema here how to do it, so let’s start:

  • Open any file quickly without browsing Application Navigator: Ctrl+Alt+Minus

image

  • Open a type (e.g.: a class, an interface) without clicking through interminable list of packages: Ctrl-Minus

image

  • Go directly to a member (method, variable) of a huge class file, especially when a lot of methods are named similarly: Ctrl-Shift-Back Quote. Unfortunately on German keyboard is not really very useful so I change this for me to Ctrl-Alt-Dead Acute.

image

  • Go to line number N in the source file: Ctrl-G, enter line number.

image

  • Go to the last edit location: Ctrl-Shift-Backspace.
  • Go to a supertype/subtype: this function exist as well, but by default there is not shortcut for it, but you can assign your own. I use Ctrl-Alt-T, and the command name is View Type Hierarchy.
  • Go to other open editors: Ctrl-Tab

So as you can see you have the same possibilities in JDeveloper as well. For some of the commands there are no shortcuts by default so you can use your own configuration.

cheers

Tuesday, August 9, 2011

JDeveloper Shortcuts

I was looking about JDeveloper shortcuts, since I was developing a lot with Eclipse in the last project I wanted to have similar shortcuts also for JDeveloper and here the interesting part, you do have predefined Eclipse shortcuts which you can load into the JDeveloper. To do so do the following:

  • Start JDeveloper
  • Go to Tools->Preferences…

image

  • on the left side select Shortcut Keys

image

  • From the top right click on More Actions and then on Load Keyboard Schema…

image

  • From the new window select Eclipse and then click on OK. This will load the Eclipse shortcuts schema.

NOTE: When you do this, you will loose configurations your did before to your schema. So make sure that you duplicate your current schema if you made any changes to it, to prevent loosing them.

TIPP: I was looking for the Full Screen shortcut, which is normally in Eclipse Ctrl-M, so under JDeveloper this is the Ctrl-Alt-M. Also in JDeveloper the command name is Maximize Toggle.

cheers