ZK 3.6.3 and ZK5.0rc with Glassfish V3 and EE6

15 11 2009

In my previous post I described how to get a EE6 web application using the ZK3.6.3 framework on Glassfish V3. I noted while redeploying or undeploying the web-application it made the GF instance plus the JVM crash (running Ubuntu 9.04,9.10 and JDK 1.6.b16).

This problem does NOT exist anymore with the latest build from last week. Make sure you update to build b72. Start the updatetool in glassfish-home/bin. (you might have to start it several times, I got several times time-out errors, or better click on the reminder if you choose the automatic update check feature).

SVH20091115_001

Glassfish V3b72





ZK 3.6.3 with Netbeans 6.8 Beta on Glassfish V3

6 11 2009

I am using Netbeans 6.8B for a few days and mainly testing if my existing JEE5 projects can be opened, deployed and executed on GF3. I am using ZK as Web/Ajax Framework. Usually the ZK team releases a new NB plugin to help you to create ZK based Java Web projects. Currently the plugin supports 3.6.2, some days back ZK 3.6.3 was released, so I guess in a few days time we will have a 3.6.3 plugin. The plugin creates a skeleton for a JEE5 webproject and I doubt they will support Java EE6 before EE6 is finally released (December?).

I was curious to see if I get the latest ZK running on GF V3 as a JEE6 application.

Part 1: ZK 3.6.2 with Netbeans 6.8B as EE5 Web Project

First, lets try first to add the 3.6.2. plugin to NB 6.8B

SVH20091105_001

ZK plugin 3.6.2

Read the rest of this entry »





News: Netbeans, Glassfish, EE6

13 06 2009
  • Netbeans RC2
    The second release candidate is available for download. Download at Netbeans.org (link) We should he seeing the final release soon in June.
  • EE6 Preview SDK
    Glassfish V3 preview comes together with samples and tutorials giving a preview on the upcoming EE6. Still most of it is based on JSR’s that are not final yet.
    Some feedback from JavaOne regarding release dates on Jim Whites’s Blog (link)




Tutorial: Glassfish running Groovy Scripts

2 06 2009

This is my very first screencast. Even I favor to read tutorials with screenshots, I believe it is easier to create screencasts than doing continuously screenshots and writing about them. In this tutorial I create a web application in Netbeans and add a very simple groovy script to it.

Ingredients:

  • Netbeans 6.5.1
  • Groovy 1.6.3
  • Glassfish V2
  • Chrome Browser

The embedded video on this blog does not support fullscreen. For fullscreen follow this link.

This video is created using Camtasia and hosted on screencast.com.

Resume: It is faster once you get used to the tools and talking to the screen ! So excuse me for the simple tutorial and wait for more sophisticated ones.





Daily Thoughts 5

20 03 2009
  • IBM to acquire SUN ?
    Its not really new that SUN is looking for someone with a big pocket to buy the whole shop. Among potential candidates are DELL, HP,.. and IBM, which seems to be more serious about the deal (link). What will it means ? I am not sure if I want to tune into the pessimistic mood, that you find in some forums (link). A lot of innovative and creative power will be grounded (or at least the financial backing of it). IBM has zero genuine interest in Open Source and IBM is NOT hip, they are old fashioned and ultra bureaucratic. Most of the (server) products will disappear (or merged into their websphere product line with usual high pricetags) and stuff like Netbeans will turned down (in favor of eclipse), aka “opened” to the community but disappear in irrelevance after a while. We wont know. I hope that doesnt create another Microsoft in the srver world.
  • 456,520 downloads of Glassfish
    That shows the appreciation and adoption of the product in comparison to a number of other (propietary) products. Would IBM call it GlassSphere, Websphere Glass or whatever.
    Link
  • Google Chrome Beta
    There is another beta available for download (link). Despite the rumors Google would trash the browser is still taking up. Certain features I really like, I guess it could take some shares of the user distribution in future. I dislike the persistent update application running in the background with an option to disable it. I still favor Firefox because of the huge number of plugins. I dislike its getting slower to startup and eats memory.




News: Glassfish, JEE6 and Ruby on Rails

18 03 2009
  • Glassfish v2.1
    This update release (end of January 09) should be the final release before moving on to V3 somewhere late in 2009.
    Download and more info at glassfish.dev.java.net
    The differences between Glassfish V 2.x and V3 here.
  • Ruby on Rails
    Release 2.3 is availble for download (link)
    Find all the details of this substantial update at rubyonrails.org.

  • JEE6 update
    The Public Review Ballot for JSR #316 was closed on February 23.
    A major milestone towards a release in 2009.
    More info at jcp.org




Glassfish V3 and Icefaces (2)

11 02 2009

Following Ted’s advice I de-installed Glassfish V3 (I already had installed JSF 2.0 update) and re-installed to get back the earlier version of JSF (1.2)

fdgh

Glassfish V3 with updated JSF 2.0

fghfgh

Initial installation of V3 prelude with JSF 1.2

This time I can place a couple of IceFaces components (without binding or any configuration) and run the project under V3 prelude.

fghfgh

Icefaces components

Now, I am going back to my CRUD sample project I initially wanted to explore. Placing a datatable on the JSF page. The datatable is shown.

dfg

Icefaces datatable

The problem start after I bind to a datasource (by dropping the table onto the datatable)

fghgfh

Drag and Drop table on datatable

Running the project gets me couple of errors, I need to sort out now.

ertet

Server Error


SEVERE: JSF1054: (Phase ID: RENDER_RESPONSE 6, View ID: /Page1.jsp) Exception thrown during phase execution: javax.faces.event.PhaseEvent[source=com.sun.faces.lifecycle.LifecycleImpl@498b0]
WARNING: JSF1053: (Listener: com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.afterPhase(), Phase ID: RENDER_RESPONSE 6,  View ID: /Page1.jsp) Exception thrown during phase-listener execution: com.sun.rave.web.ui.appbase.ApplicationException: The cachedRowSet property is null
WARNING: com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.cleanup(ViewHandlerImpl.java:537)
com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.afterPhase(ViewHandlerImpl.java:424)
com.sun.faces.lifecycle.Phase.handleAfterPhase(Phase.java:175)




Glassfish V3 and Icefaces

10 02 2009

I started using Glassfish V3 prelude for development. By the time my development cycles nears production release, V3 should be officially released. I downloaded/activated the ICEFaces plugin for NB 6.5 and created and run the simple CRUD sample which fails, despite successful deployment.

init:
deps-module-jar:
deps-ear-jar:
deps-jar:
library-inclusion-in-archive:
library-inclusion-in-manifest:
compile:
compile-jsps:
Undeploying ...
undeploy?name=CollaborativeCRUD running on GlassFish V3
undeploy?name=CollaborativeCRUD completed on GlassFish V3
In-place deployment at X:\svn_NOTYET_JAVA_VAR\CollaborativeCRUD\build\web
Initializing...
deploy?path=X:\svn_NOTYET_JAVA_VAR\CollaborativeCRUD\build\web&name=CollaborativeCRUD&force=true&properties=keepSessions=true running on GlassFish V3
deploy?path=X:\svn_NOTYET_JAVA_VAR\CollaborativeCRUD\build\web&name=CollaborativeCRUD&force=true&properties=keepSessions=true completed on GlassFish V3
run-deploy:
BUILD SUCCESSFUL (total time: 7 seconds)

INFO:
ICEsoft Technologies, Inc.
ICEfaces 1.7.2 SP1b
Build number: 1
Revision: 18093

Creating this error when running the project

SEVERE: StandardWrapperValve[Persistent Faces Servlet]: PWC1406: Servlet.service() for servlet Persistent Faces Servlet threw exception
java.lang.UnsupportedOperationException
        at javax.faces.context.FacesContext.setCurrentPhaseId(FacesContext.java:644)
        at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:87)
        at com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:107)

I dont have a solution yet, but to continue with V2 and wait for the production release 1.8 of ICEFaces which will support V3 fully (planned for this February).





Install Glassfish on a virtual server (Part 2)

18 01 2009

Using the same virtual server I tried to install Glassfish V3 (prelude) which comes in a 26MB zip-file. At least I would avoid the installer complaining about not enough memory available. After unzipping the server and with proper JAVA_HOME path all we need to do is to start the server with /glassfishv3-prelude/glassfish/bin/asadmin start-domain

Starting: java -jar -Xmx128m admin-cli.jar start-domain (here with 128MB setting)

I would get the same error in the logfile in domain1/logs/jvm.log

<tty>
<writer thread='-1209660528'/>
Error occurred during initialization of VM
Could not reserve enough space for object heap
<tty_done stamp='0.013'/>
</tty>
<hotspot_log_done stamp='0.013'/>
</hotspot_log>

Conclusion (again): You need more than the 256MB priced virtual server.

Links:
Glassfish V3 prelude
SUN Quickstart Guide





Install Glassfish on a virtual server

11 01 2009

If you happen to rent a virtual server, you might want to check the mem limits first before starting an endeavour to install Glassfish on it. The installer requires more than 256MB which is the confirmed available memory of my virtual box. I get this straight away:

h000000:/opt # sudo java -Xmx256m -jar glassfish-installer-v2ur2-b04-linux.jar
Error occurred during initialization of VM
Could not reserve enough space for object heap
Could not create the Java virtual machine.

Doesnt matter what mem value I assign, I get the same answer. I gave up on this and move on to another (bigger) V server.

Some Links:

  • SUN Installation Doc (link)
  • Plasticboy Blog (link)
  • Plugin Smithy Software Blog (link)