Installing Glassfish on Solaris 10

I just finished installing Glassfish on Solaris 10 and it was easy once I got past the ant snafu. Here is what I did for those interested.

  • Here is the page from which I downloaded the Glassfish JAR.
  • The instructions on this page work EXCEPT for number 4. ant was not executable for its own particular reason so I had to make it executable.

    cd /glassfish/lib/ant/bin

    NOTE: The directory path to ant on the instruction page is not the directory path I had. /bin was left off so check your path.

    From the /glassfish/lib/ant/bin directory, run:

    chmod +x ant

    This will make ant executable. NOW do step 4:

    ./ant -f /glassfish/setup.xml

    NOTE: I was still in the bin directory when I ran the command.

  • Here is the procedure to start the Glassfish server.

    UPDATE: Had to update this step which failed today. I got the following error message:

    /var/appserver/domains is not a directory

    when I ran:

    asadmin start-domain domain1

    and found this bug in the archives. So I did the following before running asadmin command.
    1. mkdir /var/appserver (I didn't have to do this but maybe you do.)
    2. mkdir /var/appserver/domains
    3. asadmin create-domain --domaindir /var/appserver/domains --adminport 4848 --instanceport 8080 --adminuser admin domain1

      I see:

      Please enter the admin password>
      Please enter the admin password again>
      Please enter the master password>
      Please enter the master password again>
      Using default port 7676 for JMS.
      Using default port 3700 for IIOP.
      Using default port 8181 for HTTP_SSL.
      Using default port 3820 for IIOP_SSL.
      Using default port 3920 for IIOP_MUTUALAUTH.
      Using default port 8686 for JMX_ADMIN.
      Domain domain1 created.

      admin password is adminadmin

      master password is changeit

      Now I run:

      asadmin start-domain domain1

      and move on to confirmation.
  • Here is the procedure to confirm the Glassfish server is running.
  • Here is the procedure to log in to the Glassfish server console.

And I'm in. I'll be installing OpenSSO in Glassfish next and I'll let you know how that goes.

Comments:

Hi, I followed your procedure but the server still failed to start. Did you have to do anything regarding localhost? I am running SXCE 70. Thanks.

Posted by W. Wayne Liauh on August 24, 2007 at 05:46 PM PDT #

Post a Comment:
Comments are closed for this entry.
About

docteger

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