Friday, November 27, 2009

Change login screen for Gnome

Since Fedora 11 the Gnome theme always show the available users in a list.
This is a risk because people can see which user(s) there are available on a system.

This behavior can be changed by the following command:
su -
gconftool-2 --config-source xml:readwrite:/etc/gconf/gconf.xml.defaults --direct --type bool --set /apps/gdm/simple-greeter/disable_user_list true

With this the "normal" login screen is returned.
Only the "others" is still availbale for selection
You need to know the username and the password B-)

Friday, November 20, 2009

Fedora 12 and dual screen with Gnome panels (and how to move them)

After installing Fedora 12 in my installation the panels stayed on the screen of my laptop. While the monitor setup beside it is the primary window to work on. So I could not drag them to the other screen.

After some googling I found this link and this works for me:
In short the solution is one of the following:
  1. press ALT and then click the panel and move it to the position you want
  2. Right mouse click on the panel and select properties. Then unmark the 'expand' property. This will enable you to drag them to any place on the screen. When all is positioned check the 'expand' property back again and all will work fine.
This helps a lot in the way to work.

Wednesday, November 11, 2009

Wednesday, July 8, 2009

Install Oracle XE on Fedora 11 x86_64

In order to install the oracle xe database on Fedora x86_64.
Download the oracle-xe-univ-10.2.0.1-1.0.i386.rpm.

In the installation guide is stated that the following packages are necessary.
  • glibc – 2.3.2
  • libaio – 0.3.96
So I installed these packages:
yum install glibc libaio

The installed the rpm : rpm -ivh oracle-xe-univ-10.2.0.1-1.0.i386.rpm
And then executed
"/etc/init.d/oracle-xe configure"
Which successfully ran with given answers to the questions.

After this I tried to start the database and got many different error messages.
Tried to start the database but nothing was started.
But there was nothing coming up.

Also tried "sqlplus /NOLOG"
connect / as sysdba
startdb

Then the errors stated there was not INITXE.ORA, so created the initXE.ora.
The following errors where the database files were not located.....

After numerous attempts and failing every time I uninstalled the rpm.
rpm -e oracle-xe-univ-10.2.0.1-1.0.i386.rpm

And removing all installed files "rm -rf /usr/lib/oracle/xe"

After some googling... It came to mind I am running a 64bit machine and the rpm is for a i386.
So I installed also the i586 packages:
yum install glibc.i686 libaio.i586

After this reinstalled the rpm : rpm -ivh oracle-xe-univ-10.2.0.1-1.0.i386.rpm

and configured the database.
Now all is running perfectly.....


Monday, July 6, 2009

Changing the font of JDeveloper 11R1 on Linux

Just installing the new release of JDeveloper 11.

But when running on Linux the font size seems a little bit off.
In order to make this better to look at a chane is needed in the ide.properties.

This file is located at:   ~/.jdeveloper/system11.1.1.1.33.54.07/o.jdeveloper
There is a commented field "#      Ide.FontSize=11"
Changed it to 'Ide.FontSize=10' and then started JDeveloper that looked a lot better........







Tuesday, March 24, 2009

Howto run ADF with a Node Manager


I am working now more and more with weblogic.
So I normally ran simple ADF web applications from JDeveloper.

Now I tried to deploy an ADF webapplication on a server running an AdminServer and a Managed Server set-up to be recovered by the node manager.
But during deploy the only error received is a "java.lang.ClassNotFoundException: "

Either on "oracle.adf.share.weblogic.listeners.ADFApplicationLifecycleListener" or on "javax.faces.webapp.FacesServlet".

But when running the Managed Server from the commandline all seem to work fine..........

The catch is in the classpath.
The nodemanager is NOT using the same startup script as available in your domain directory (see further below).

So a change needs to be made to the nodemanager:
Add the following code in the <WLS_HOME>/server/bin/startNodeManger.sh (or .cmd).

ORACLE_HOME="/opt/products/oracle/WLS103/jdeveloper"
export ORACLE_HOME

ADF_CLASSPATH="${ORACLE_HOME}/modules/features/adf.share_11.1.1.jar"
export ADF_CLASSPATH

set -x
CLASSPATH="${WEBLOGIC_CLASSPATH}${CLASSPATHSEP}${CLASSPATH}${CLASSPATHSEP}${BEA_HOME}${CLASSPATHSEP}${ADF_CLASSPATH}"
export CLASSPATH

By doing so the start of a managed server is made ADF aware and therefor deployments will result in a deployment on a server that uses the nodemanager...

There is a second solution to this problem.
The nodemanager.properties can be adjusted.
The properties for start and stop scripts needs to be enabled.

StopScriptEnabled=true
StartScriptEnabled=true


By this the classpath is set through the scripts created when the domain is also created...


Thursday, February 19, 2009

Open a file in a JDeveloper Extension.

Since a few months I now run Linux.
And I am using the PMD plugin for JDeveloper.
After the upgrade of JDeveloper to the latest version 11.1.1.0.1 the preferences are always gone.
So I wanted to import my settings again, but the file selector did not come up!

So looking into the log I saw the following stacktrace:
Exception occurred during event dispatching:
java.lang.ClassCastException: sun.awt.NullComponentPeer cannot be cast to sun.awt.X11.XChoicePeer
at sun.awt.X11.XFileDialogPeer.init(XFileDialogPeer.java:264)
at sun.awt.X11.XFileDialogPeer.show(XFileDialogPeer.java:726)
with the following code to open the dialog
final FileDialog fdlg = new FileDialog(new Frame(), "Import", FileDialog.LOAD);
fdlg.setVisible(true);
Looking throug a lot of (blog) post I could not get a fix for this.
So the thing that intrigued by the fact that the JDeveloper File chooser was working.
But that was not the Java default file chooser.

Then the question arises how can I use the JDeveloper file chooser?

A quest was up to get through the knowledge where a description is on the JDeveloper File Chooser.

I finally found it in an extension I also did some work on, the search extension.

It is needed to use the following code:
    public String getPath(String windowText, String currPath)
{
String returnPath = "";

URL url = URLFactory.newDirURL( Ide.getSystemDirectory() );
URLChooser chooser = DialogUtil.newURLChooser( url );
chooser.setSelectionMode( URLChooser.SINGLE_SELECTION );
chooser.setSelectionMode( URLChooser.FILES_ONLY);
int ret = chooser.showOpenDialog( Ide.getMainWindow(), windowText);
if ( ret == URLChooser.APPROVE_OPTION )
{
URL selectedURL = chooser.getSelectedURL();
returnPath = URLFileSystem.getPlatformPathName( selectedURL ) ;
}
return returnPath;
}
With this also on Linux it will work to import or export files into the PMD plugin.