New Java Blog!

Thursday 19th June, 2008

I opend my new Java Blog: http://www-02.imixs.com:8081/roller/ralphsjavablog/


Comments [0]

Ubuntu - using Dolphin File Manager instad of Gnome Nautilus

Friday 30th May, 2008

I am using Ubuntu 8.04 with gnome deskopt. After I saw a live demo from KDE 4.1 and Dolphin File browser I decide to change my default file browser form Nautilus to Dolphin.
Installing Dolphin in Gnome is no problem - applications are now runnable in both desktops!

To change the default browser form Nautilus to Dolphin you have to edit the file

/usr/share/applications/nautilus-folder-handler.desktop

and change "nautilus --no-desktop %U" to "d3lphin" and it should cause all file handling to be done by d3lphin. This worked perfect. See also :

http://ubuntuforums.org/showthread.php?t=665156

 

Comments [0]

Eclipse - WTP - Maven

Wednesday 28th May, 2008

As I use Eclipse and Maven I now added WTP Support to my multi-modul maven project.

This works after I followed this introduction:

http://www.jroller.com/JOKe/entry/configure_eclipse_3_3_wtp

So I added just the plugin tag into my pom.xml as described by jroller and than I added the M2_REPO variable to my eclipse environment

 

  1. open >window->preferences
  2. got to Java->Build Path->Classpath Variable
  3. add "M2_REPO" and select your repository folder '$USER/.m2/repository'

No I added a new "Run-As" Target under the maven build target and called it "eclispe-wtp" - Goal= eclipse:eclipse

and alos a second target called "eclipse-wtp-clear" with goal="eclipse:clear"

Now I can easily add WTP support to my web project. 

Do not forget to refresh your project after the maven eclipse:eclipse goal!

 

Comments [0]

Facelet WebApp will not work properply

Monday 12th May, 2008

As I stumbled again in a problem I saw before during developing a JSF app using faclets and myfaces I will write my solution down here:

Problem:

If you call a page which is properply workign fine more then once you get the error:

An Error Occurred:
Component ID dataForm_worklist:j_id37:j_id66  has already been found in the view....

As I now spent a long time to solve this issue I will write down here what I have done to get it work:

Solution:

1.) make sure that in your faces-config.xml the default ressource bundle is defined.
   in the application tag add a tag "message-bundle" with the name of the default message bundle

 	 

2.)  make sure the you use the newest Versions of myFaces and Faclets!
  everything works fine if I am using the following versions:

  • jsf-facelets-1.1.13.jar
  • myfaces-api-1.2.0.jar
  • myfaces-impl-1.2.0.jar
  • tomahawk-1.1.6.jar

As I am using maven (which is really cool)  I add the following dependencies into my pom.xml:

		groupId=	org.apache.myfaces.core
artifactId= myfaces-api
version=1.2.0

groupId= org.apache.myfaces.core
artifactId= myfaces-impl
version=1.2.0

groupId=org.apache.myfaces.tomahawk
artifactId= tomahawk
version=1.1.6

groupId=com.sun.facelets
artifactId= jsf-facelets
version=1.1.13
  

Comments [1]

Out of Memory Problem with Eclipse in Ubuntu

Tuesday 6th May, 2008

If you are using al lot of Plugins in Elcipse (like WTP) eclipse may shutdown without error messages. In .log file you will find something like: "out of memory"

 So if you add the followin configuration in eclipse.ini file eclipse will run on ubuntu without problems

~$ cat eclipse33/eclipse.ini
-showsplash
org.eclipse.platform
-vmargs
-Xms512m
-Xmx512m
-XX:MaxPermSize=256m
-XX:PermSize=128m

 

 

Comments [0]

Installing Java JDK on Linux Ubuntu 8.04 (Hardy Heron)

Sunday 27th April, 2008

After I installed Ubuntu 8.04 I was surprised that now OpenJDK and also Sun JDK 1.6.0_06 is available via Synaptic apt-install

But STOP! If you need to work with Eclipse or Glassfish this will not help you!

Glassfish is not installable using OpenJDK 

And Eclipse 3.3.2 will not run with Sun JDK 1.6.0_06 

So what should you do? Do not use Synaptic and install JDK 1.6.0_03 manually.

  1. Download JDK from the Sun Download Archive  http://java.sun.com/products/archive/
    chose JDK/JRE - 6  Version 6 update 3 (this version I have tested. Not sure if update 4 or 5 will also work)
  2. copy 'jdk-6u3-linux-i586.bin' into /opt/java
  3. install JDK
    >sudo ./jdk-6u3-linux-i586.bin
  4. Now Change the standard link to java and java_vm in Ubuntu /usr/bin
    >sudo mv /usr/bin/java_vm java_vm_default
    >sudo mv /usr/bin/java java_default
    >sudo ln -s /opt/java/jdk1.6.0_03/bin/java /usr/bin/java
    >sudo ln -s /opt/java/jdk1.6.0_03/jre/bin/java_vm /usr/bin/java_vm

Ok now you can check your new installed Version of Java. Close all Terminal windows and check Java version with

>java -version

You should see :

java version "1.6.0_03"
Java(TM) SE Runtime Environment (build 1.6.0_03-b05)
Java HotSpot(TM) Client VM (build 1.6.0_03-b05, mixed mode, sharing)

Finished! Now Eclipse and Glassfish will work 

 

 

 

Comments [3]

Using Domino LDAP to authenticate against Glassfish Server

Saturday 23rd February, 2008

First the god news : it works !

The main information how to setup an LDAP Realm for your WebApplication on Glassfish is from Krishnan Viswanath's Blog

For a basic configuration it is necessary that your Domino LDAP Schema supports the attribute "uid" which mapps to the shortName. I think in all current Domino releases since 6.0 this attriubte is supported per default in the LDAP Schema. You can check this with a ldap browser

So to configure an LDAP Realm in Glassfisch using a Domino LDAP Server set the Directory param to your domino server:

Directory: ldap://www.imixs.com:389

Next set the Base DN to your Organisation Unit

Base DN: O=MYCOMPANY  

 Now the authentication works ! - But... there is a problem. You can not authenticate against Groups - which is realy necessary in a JEE App.

The reason is that domino organizes groups in the root of the ldap tree. And glassfisch configuration allows not to configure an empty Base DN or group-base-dn.

So the solution I used was to name all my Access Groups for Glassfisch : GroupName/GROUP/MYCOMPANY. So the BaseDN for Groups become "OU=GROUP,O=MYCOMPANY"

So finaly I added only this two additional parameters in my LDAP Realm Configuration:

group-base-dn: OU=GROUP,O=MYCOMPANY

group-search-filter: member=%d 

The last parameter "group-search-filter" is also very significant as per default the member entries are expected in uniquemember but in Domino the corresponding field is "member". And don't forget the "%d" which takes me a long time....

Comments [0]

Warum ist Windows ein so schlechtes Betriebssystem?

Friday 22nd February, 2008

Warum ist Windows eigentlich ein so schlechtes Betriebssystem?

Ich denke, dass es eigentlich nur mit der Masse an Leuten zu tun hat die dieses Betriebssystem benutzen. Wen man Sotware schreibt macht man das in der Regel weil man Spass daran hat. Das ist bei Microsoft im Grunde nicht anders. Wen eine Software jedoch von sehr vielen Menschen verwendet wird, muß man anfangen diese Software an die individuellen Bedürfnisse dieser Menschen anzupassen. Der Spass beleibt dabei auf der Strecke. Windows wurde irgenwan von extrem vielen Menschen verwendet. Dadurch entstand das Problem das man heute warnimmt. Die Software "Windows" ist relativ stark verfrickelt.  Soll heissen es wurden über die Jahre immer merhr Bedürfnisse für Nutzer implementiert die vermutlich gar keinen Sinn gemacht haben. Die Nuter, für die diese Dinge letztendlich programmiert wurden schimpfen warscheinlich am lautersten über Windows. Aber letzendlich ist es der natürliche werdegang von Software die einfach für zu viele Menschen programmiert wurde. Das ist mit Software die man heute für die Raumstation programmiert vermutlich ganz anders. Diese wird für eine Hand voll Leuten geschrieben und funktioniert vermutlich perfekt.

Es stellt sich mir die Frage wie das jetzt eigentlich mit Linux ist. Linux funktioniert so gut weil es im Grunde für wenige Leute geschrieben wurde. Es wurde auch nie Rücksicht auf einzelne Nutzer genommen die das ganze System massgeblich beinflusst hätten. Aber was passiert jetzt mit Linux. Kann es sein das - nun wo Linux schon von sehr vielen Leuten verwendet wird - es jetzt beginnt ein schlechtes Betriebssystem zu werden?

hm... hoffentlich passiert das nicht....! 

Comments [0]

Install Domino 8.0 on Ubuntu 7.10

Tuesday 5th February, 2008

Hi,

today I tried to install Domino 8.0 on Ubuntu. I followed this way:

first download the isntaller tar file. unpack it with
>tar -xvf c13njen.tar

next I followed the install introductions at:
http://coort.wordpress.com/

they are realy helpfull.
I am not sure if it is necessary to enable the root user. Maybe this will be an issue for Debian Server. But I am not sure - I try this later on Debian 4.0.

Also it seems ok to use an Java JRE 1.5.0_13 or higher.

Run the installer as sudo and console mode

>sudo ./install -console
At the end of the installation wizzard choose "remote setup" to setup your server remotly.

After installation has fineshed the server will automatical be started in a remote mode. So now you can setup the server.

A god discription about that steps I found here:
http://www-12.lotus.com/ldd/doc/domino_notes/Rnext/help6_admin.nsf


You need not to start the server as this was done by the installer.
So copy the java libs to your client:

  • From a Windows client, copy the remote setup files CFGDOMSERVER.JAR, JHALL.JAR, and REMOTESETUP.CMD from the server to the directory you created on the client system. These files are in C:\Domino program directory on the server.
  • From a UNIX workstation, copy the remote setup files CFGDOMSERVER.JAR, JHALL.JAR, and REMOTESETUP from the server to the directory you created on the workstation. These files are in /Domino program directory/lotus/notes/latest/ibmpow/ on an AIX server, /Domino program directory/lotus/notes/latest/linux/ on a Linux server, and /Domino program directory/lotus/notes/latest/sunspa/ on a Solaris server.

After that you can start a cool java setup client


  • On a Windows client, enter remotesetup.cmd
  • On a UNIX workstation, enter remotesetup

Follow the setup wizzard - and finish installation.

Comments [1]

Running Compiz on IBM Thinkpad T43 with 3D ATI Driver

Sunday 18th November, 2007

I installed ubuntu 7.10 on my IBM Thinkpad T43. Out of the box compiz works fine. But when I tried to use the restricted 3D ATI graphic driver compiz and 3D desktop effects will not run.

Today I found the solution . It is necessary to add the xserver-xgl package. after I added this package erverything works great!  

Comments [0]