Netbeans, Glassfish with JSF dev with FreeNX

28 November 2007

So it works. OK I had to add 1Go RAM (1 Go wasn’t enough). I should have get 2Go from the beginning ! I had to install SUN JDK 6 because IcedTea didn’t work with Glassfish nor Netbeans, there is a strange security problem.

But now :

  • I can remotely connect to my home with FreeNX
  • Launch Netbeans 6, Glassfish, JavaDB and develop JSF
  • Epiphany is configured as the web browser (lighter than Firefox)
  • XFCE 4 as the desktop environment (again, lighter than Gnome or KDE)
  • Fedora 8 x64 with some services (FTP, HTTP …) running

If You P2P Download In France: No Internet For You

26 November 2007

It not that I am for piracy, but this :

French president Nicolas Sarkozy endorsed the deal with rhetoric that is bound to win him an Honorary Life Membership of both the RIAA and MPAA: “We run the risk of witnessing a genuine destruction of culture…The Internet must not become a high-tech Far West, a lawless zone where outlaws can pillage works with abandon or, worse, trade in them in total impunity. And on whose backs? On artists’ backs.” TechCrunch

Under the agreement — drawn up by a commission headed by the chief executive of FNAC, one of France’s biggest music and film retailers
France Sets Sanctions Against Internet Piracy

This is SO wrong ! The industry suffer from their inability to adapt to a new world. I used to buy the same albums in different formats : as tape, Vinyl, CD. They used to make easy money. Now, they will make money again when they bring something valuable to the customer. But it seems to be easier to spread some fallacies and get some government help, than finding a good idea.
I doubt that fighting against the customers is a good idea to bring them back. Not to mention that there is already a tax for all electronic storage devices …

As for the artists, they are turning their back on the “industry” (at least those who prefer people to listen than to buy and those who are not Sarkozy’s friends) :

The Inevitable March of Recorded Music Towards Free
Artists like Prince and Nine Inch Nails are flouting their labels and either giving music away or telling their fans to steal it. Another blow earlier this week: Radiohead, which is no longer controlled by their label, Capitol Records, put their new digital album on sale on the Internet for whatever price people want to pay for it.

Spaces, shards, scalability through horizontal partitioning

21 November 2007

I just read some GigaSpaces White Paper and application examples.

They sort of applied the database horizontal partitioning (or “Shards”) paradigm  to the application server.

But they tend to alleviate the inherent problem of designing “completely self-sufficient” units. Their example is completely obvious, but in real life partitioning isn’t straightforward !

Web frameworks peaking toward obsolescence ?

20 November 2007

More than a shocking title, there is an interesting debate : See Raible Design.

InfoQ asks Does the rise of Service Oriented UI (SOUI) means the death of server-assisted MVC? A similar thread was started on JavaLobby last week: Web frameworks peaking toward obsolescence. A month ago, TSS posted a whitepaper titled Life above the Service Tier.

I will take the time to read all this !

Fedora 8 upgrade and Java

16 November 2007

I upgraded from fedora 7 to 8. (Via yum : wasn’t exactly smoove, but not too bad).

Now I installed Java 1.7 IcedTea as per Mauriat Miranda tips and added the JDK as well (-devel) : sudo yum install java-1.7.0-icedtea java-1.7.0-icedtea-devel java-1.7.0-icedtea-plugin

I tested as per Gregory Gulick’s tips and it was not OK.

So I launched galternatives and selected Java-1.7.0 for Java. Then it was OK.

Next I installed Eclipse (yum install eclipse), launched it, checked that it was using Java 1.7 : OK, then did a quick “Hello World” example and it went well. After some thinking I don’t see a real plus in having a RPM managed Eclipse. I can download it via the standard Eclipse way and I will be able to update it more conveniently.

Then Netbeans 6 and Glassfish have a problem related to keytool and keystore :

[2007-11-16 12:50:43.772]: executing command: /home/brunox/bin/glassfish-v2/bin/asadmin create-domain --interactive=false --adminport 4848 --user admin --passwordfile /home/brunox/bin/glassfish-v2/nbi-14359.tmp --instanceport 8080 --domainproperties http.ssl.port=8181 --savemasterpassword=true domain1, in directory: /home/brunox/bin/glassfish-v2
[2007-11-16 12:50:45.519]: [stdout]: Using port 4848 for Admin.
[2007-11-16 12:50:45.519]: [stdout]: Using port 8080 for HTTP Instance.
[2007-11-16 12:50:45.519]: [stdout]: Using default port 7676 for JMS.
[2007-11-16 12:50:45.519]: [stdout]: Using default port 3700 for IIOP.
[2007-11-16 12:50:45.520]: [stdout]: Using port 8181 for HTTP_SSL.
[2007-11-16 12:50:45.520]: [stdout]: Using default port 3820 for IIOP_SSL.
[2007-11-16 12:50:45.520]: [stdout]: Using default port 3920 for IIOP_MUTUALAUTH.
[2007-11-16 12:50:45.520]: [stdout]: Using default port 8686 for JMX_ADMIN.
[2007-11-16 12:50:45.520]: [stdout]: Domain being created with profile:developer, as specified by variable AS_ADMIN_PROFILE in configuration file.
[2007-11-16 12:50:47.275]: [stdout]: Security Store uses: JKS
[2007-11-16 12:50:59.504]: [stdout]: keytool error: Invalid keystore format
[2007-11-16 12:50:59.504]: [stdout]:
[2007-11-16 12:50:59.504]: [stderr]: CLI130 Could not create domain, domain1
[2007-11-16 12:50:59.555]: [return]: 1
[2007-11-16 12:50:59.555]: ... command execution finished
[2007-11-16 12:50:59.557]: org.netbeans.installer.utils.exceptions.InstallationException: Failed to create the default domain
[2007-11-16 12:50:59.557]: at org.netbeans.installer.products.glassfish.ConfigurationLogic.install(
[2007-11-16 12:50:59.557]: at org.netbeans.installer.product.components.Product.install(
[2007-11-16 12:50:59.557]: at org.netbeans.installer.wizard.components.actions.InstallAction.execute(
[2007-11-16 12:50:59.558]: at org.netbeans.installer.wizard.components.WizardAction$
[2007-11-16 12:50:59.558]: Caused by: org.netbeans.installer.utils.applications.GlassFishUtils$DomainCreationException: "Could not create domain - error CLI130 occurred.
[2007-11-16 12:50:59.558]: at org.netbeans.installer.utils.applications.GlassFishUtils.createDomain(
[2007-11-16 12:50:59.558]: at org.netbeans.installer.utils.applications.GlassFishUtils.createDomain(
[2007-11-16 12:50:59.558]: at org.netbeans.installer.products.glassfish.ConfigurationLogic.install(
[2007-11-16 12:50:59.558]: ... 3 more

I guess  that I will simply install Sun Java 6.

All this through a FreeNX remote access.