Thursday Apr 19, 2007

GlassFish V1 in Ubuntu: Installation Steps, package information and Trivia

By now, you must have seen the tons of blogs about Java Stack in Ubuntu Feisty Fawn. It surely is a exciting day for me as I spent the last couple of months getting the GlassFish bits delivered into Ubuntu.
It has been a learning experience for me as I had never done any packaging work for any operating system (let alone Ubuntu).

The whole process started for us in late november at the Ubuntu Developer summit held in Mountain View. We were just exploring the packaging process at that particular time and work started in true earnest after the december break. We had to first make our GlassFish packaging module open source(packager-ext). This module was not open source - not because we did not want to, but we never got to it amongst other release commitments. Modifying our packaging structure to generate the bits for GlassFish turned out to be a lot more work than we anticipated.

Package Descriptions

We now deliver 4 packages called glassfish, glassfish-bin, imq and sunwderby into Ubuntu Multiverse

  • Glassfish package has pretty much all the glassfish packages.
  • Glassfish-bin has some binary (architecture dependent) components (for e.g. we need to have binary components to actually mask passwords entered on the screen - this functionality is not present in JDK 5 but is present in JDK 6).  Thus, the packages that you install work for i386 architecture today. Subsequent releases should work of JDK 6 and we will get rid of this binary package. Those who want to run on other architectures can still get the bits from the GlassFish home page.
  • Imq is Sun's Messaging Queue Product that GlassFish uses for messaging.
  • Sunwderby is a derby database package. We included this package as this is the derby release that GlassFish V1 had been tested end to end. 

 GlassFish depends on JDK 5 for installation. The reason was for this dependency was that GlassFish V1 has been fully tested and certified with JDK 5. We had released the V1 URI bits in November and these bits have been delivered into Feisty. Another reason for the delivery was  the extremely short release cycle and JDK 6 work was happening in parallel. This would have meant adding additional dependencies.

You can still go ahead and modify the configuration scripts to use this with JDK6.

Installation Instructions:

1. Make sure multiverse is a component declared in /etc/apt/sources.list

2. sudo apt-get install glassfish. Accept the license and glassfish, glassfish-bin, imq and sunwderby will be installed under /usr/share/sunappserver. Domains will be installed under /var/lib/sunappserver.

If you want to install domains under your home directory - there is a convenience script called /usr/bin/asadmin that will help you. It is recommended that you still use the /usr/share/sunappserver/bin/asadmin script to manage your installation.

Here is the snapshot of Synaptic package manager for GUI installation:


People Involved:

As with any release there are too many people to name who made this possible. Among the ones I can list are Anil Gaur, Abhijit Kumar who have supported and nurtured this from the beginning. Larry Freeman for writing some of the early packaging code, Prasad Subramanian for helping open source packager-ext module, Carla Carlson for program management, Ann Hillesland for documentation, Terena Chinn-Fujii for release management, Sathyan Catari, Sreeram and his group for testing. Tom Marble for his help in almost everything! Barton George, Ken Drachnik. Jeff Bailey, Daniel Holbach, Colin Watson and Etienne Goyer from Ubuntu.

Other Information

You can attend a Java One Talk about this on May 8th. Here is the session information

JavaOne Session

  • Session: TS 7361 Packaging Java Applications for Ubuntu
  • Speakers: Jeff Bailey (Ubuntu) and Harpreet Singh (Sun Microsystems)
  • Time: 3:20 PM, May 8th
  • Location: Esplanade 305, Moscone Center.

CommunityOne Day 

You can also attend the CommunityOne day for GlassFish on May 7th and hear about this. CommunityOne day is free and you can find registration information here.

Press Releases



Monday Apr 16, 2007

GlassFish Talk to Silicon Valley Web Jug and Silicon Valley JUG

 

There is a GlassFish talk on Apr 17th at GooglePlex in Mountain View. Myself, Ludovic Champenois, Arun GuptaShreedhar Ganapathy and Kedar Mhaswade from the GlassFish team will be presenting and demoing GlassFish v2 features. Hopefully, this is a small step towards a GlassFish Users group :-).

You can find more the details about the talk at the respective JUG pages.

 

Hope to see you there! Oh did I mention the event is free with free food.

You can also register for GlassFish day at JavaOne on May 7th. Learn and interact with GlassFish engineers at this event. Oh, did I mention that this event is free too.

Disclaimer: You can register for the event at the links below. You dont need to show up for the talk :-)

 

Talk Location

Google, Inc. (GooglePlex Map)

Tunis Conference Room, (Bldg. 43)

1600 Amphitheatre Parkway

Mountain View, CA 94043

Please enter from the north side of the building, in the middle of
the Google campus. Also, parking will be much easier to find in the
lots south of Bldg. 44 across the street from the main complex
 
 

 

Monday Nov 06, 2006

Enter the Java EE Contest to get a chance to win iPod Nano!

I am back with another one of those Java EE Contests. This time it is the iPod Nano. So what does one have to do to "get a chance to win an iPod Nano" as legal has repeatedly asked me to put it.

You need to fill in a survey that helps us identify your needs better. Fill in your rants, bugs, complaints and hopefully(!) some compliments and you will be entered to win the iPod Nano. Head over to the campaign home for more details.

You will also need the Java EE SDK, or an earlier J2EE SDK to participate.

The campaign was kicked off last week in conjunction with the new Java EE SDK . I have already seen some interesting comments. Sorry cannot release those :-) .

 
For those of you who might have wondered - I am not in marketing but am an engineer. I seem to have developed a reputation of being a "hobbyist marketeer" which leaves me amused. AFAIK, this gives me a license to come up with atrocious campaigns .

 

Friday Nov 03, 2006

GlassFish jumps from the Aquarium and swims in the Ubuntu pool!


I have been an Ubuntu fan (see earlier post) and am pleased to state that GlassFish swims in Ubuntu :-). Rich Sharples has a blog with screen shots that describe how to install GlassFish on Ubuntu. (This seems to be old news :-))

 

We wanted to try out the latest release GlassFish V1 UR1 in Ubuntu. We picked up the latest promoted build (build 14) and installed it in Ubuntu. Our SQE team (specifically Jagadesh ) ran our entire set Basic Acceptance Tests (BAT) of SQE tests and came back with a report that 98.92% of the SQE tests have run without any issues. There are some workarounds needed to make it work though.

Here are the steps as outlined by Jagadesh. Give it a spin...

Setup 

  1. Download GlassFish V1 UR1.
  2.  Follow steps oulined in the download page. Captured here for convenience:
    1. GlasssFish installation requires JDK 5.
      Run:
      java -Xmx256m -jar filename.jar
      cd glassfish
      Run:
      ant -f setup.xml
  3. $glassfish_home/bin/asadmin start-domain domain1. Thats it you are done.


     

    Known Issues:

    • OutOfMemory Exception : PermGen Space during the application runtime at server side. The exception will be in the server.log.
      • Solution: Set the following JVM option in the domain.xml and restart the server.
        • <jvm-options>-XX:MaxPermSize=128m</jvm-options>
        • Alternatively, you can set it through the Admin GUI 
          • Login to admin console .  And follow the steps:
            • Click Application Server (left frame) --> Click on JVM Settings Tab --> Click on JVM Options Tab --> Add JVM Option --> Cut and paste "-XX:MaxPermSize=128m"  --> Save


    • Passwords are echoed on the screen during the application server domain creation.
      • Currently there is no workaround for it.

     


    If you like to try out the Java EE SDK for a different platform you can find it here.

     



Monday Sep 11, 2006

OpenLaszlo on GlassFish and Sun Java Application Server 9.0

OpenLaszlo is a platform to create rich internet applications (read AJAX applications).

I configured OpenLaszlo to deploy and run on GlassFish/SJSAS9.0. I created a simple webservice through Netbeans and deployed on GlassFish/SJSAS9.0. I followed it up with an OpenLaszlo rich client to invoke the webservice using XML-RPC. The application mimics "Test" web service button in the GlassFish/SJSAS9.0 admin ui page. This was a simple proof of concept to test OpenLaszlo on GlassFish/SJSAS9.0.

Head over to GlassFish Wiki if you want to learn how to configure OpenLaszlo on GlassFish and see a snapshot of my client application.


Steps to Setup and Snapshots...

Wednesday Aug 02, 2006

Ubuntu Rocks!

Ubuntu - the easiest distribution ever! [Read More]

Thursday Apr 20, 2006

GlassFish on Intel-Mac

I have recently moved into the Mac world. I got myself the new MacBook Pro (Mac-Intel laptop). I have been always using Solaris 10 (and previously Linux) to do my development of Glassfish and Sun Java Application Server. My first step into the mac world was to see if we could install GlassFish and SJSAS 9.0 (to be released sometime soon) and run it on Intel Macs.

The results have been good. Here are the steps to install GlassFish on Intel-Mac.

  • Go to GlassFish Download page, download the latest promoted bits. https://glassfish.dev.java.net/public/downloadsindex.html
  • Follow the instructions given on the linked page. https://glassfish.dev.java.net/downloads/14Apr06.html. The server starts up without any problems. I deployed the sample war that comes with Sun Java Application Server 9.0 installation bits (I have used the internal promoted bits of the release that will be out soon).

    Recently Jerome Dochez had written a blog about changes he had to make in GlassFish builds to use the new universal binaries to support the jni libraries used to not echo the password. I am glad that thats done and I could use GlassFish without any issues.

    Essentially there are no changes and nothing special required to run GlassFish on the Intel-Mac. Thats pretty cool!!

  • Thursday Feb 16, 2006

    Download AS 8.2 and enter to win a Sony PlayStation Portable!


    Download J2EE 1.4 SDK and enter to win a Sony Playstation Portable



    The Application Server team recently released Sun Java Application Server 8.2 and J2EE 1.4 SDK . We have launched a campaign to help us spread the word about this fantastic product.
    Developers can download Application server 8.2 and can enter to win a Sony PlayStation Portable. Entering is as simple as submitting answers to 2 easy questions.
    The campaign resides here .

    Personally, it has been fairly exciting. I have been a developer in the application server world for 6 years now and this is one of the first marketing campaigns I have been involved in.
    If you have tried the Application Server before or never tried it all. Head over to the campaign and give it a shot.
    About

    harpreet

    Search

    Categories
    Archives
    « April 2014
    SunMonTueWedThuFriSat
      
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
       
           
    Today