ga

Sunday, February 24, 2008

Glassfish vs. Me & ExtTLD

I have been playing around with EJB3 and I wanted to use a JEE 5 compliant server, so I had 9 to choose from. Geronimo was my first choice, but I just can't get behind having to create a plan file. Maybe, I (as if I have time) could write a GBean that would automatically generate the plan file or it there was a plugin to the Geronimo Console where you can choose your dependencies at deployment time, that latter seems easier and more feasible.

Anyway, so I decided to use Glassfish (V2 UR1) and the EJB worked like a charm. But here are some of my complaints about Glassfish:

1. "asadmin.bat start-domain domain1". What is that? Why can't I just run asadmin.bat and be done with it. If I wanted to run a different domain then I should have to specify parameters.
2. I am not sure I remember it fully, but you run the jar file to extract and then you run an ant file. Why not just have the jar file do the install why the extra step?
3. Then final complaint isn't really a preference thing but a real problem. I was trying to play around with ExtTLD just to see how it works and on Glassfish I got this error.

org.apache.jasper.JasperException: /WEB-INF/tags/ext/body.tag(105,4) PWC6038: "${empty(extLocation)?"js/ext-2.0":extLocation}" contains invalid expression(s): javax.el.ELException: Error Parsing: ${empty(extLocation)?"js/ext-2.0":extLocation}

So, I opened the ExtTld tag file and changed the ?: to a and that line of code went through fine, but there was another similar error elsewhere. So I decided to remove the EJB reference and drop the war file on tomcat and it worked fine. So, unless I am mistaken Glassfish has a big problem with a tag they created (IIRC).

Next time, I will 'B' and moan about EJB 3.

3 comments:

B Hargett said...

One thing that I did find is that there is a whitespace parsing issue, must be with glassfish, but even after I corrected the spacing it did not work correctly. I wish I could get geronimo working properly.

Nazrul said...

Hi Bobby,

Thanks for trying GlassFish. Sorry to hear that you ran into some issues. Did you post the issues on the GlassFish forum? It is fairly active.

Re: "asadmin", it is the CLI that you may use to manage GlassFish (including clustering, etc.). See the available command references to learn more. There is also very feature rich management console (blog) that every one loves. I understand what you mean though about starting the single server instance in developer profile. Please advise how this can be improved for GlassFish V3. See the requirements here .

Re: Installer, this is on our radar. We plan to fix this for GlassFish V3 (see the installer requirements for V3). In the mean time, you may use the IzPack installer based distribution or
Sun's distribution. Sun's installer has non-open source framework. So, it is not available in the community.

Thanks again for all the feedbacks. Please give GlassFish V2 (blog) another spin and join the community.

-- Nazrul

Byron Nevins said...

You do NOT need to specify "domain1".
If there is one and only one domain, then
asadmin start-domain
will start it.