JAVA and GlassFish server Upgrade steps for Linux:
Download the required Java (JDK J!" # J!" is not supported $% GlassFish server&'
(nstall the required Java version using following steps'
Login on Linux )a*hine using +UD, or !oot a**ess'
Verif% existing -ava version using this *o))and . -ava .version
/odif% the a**ess rights on Java exe*uta$le using . *h)od 0x -d1.2u23.linux.x24'$in
"xe*ute Java exe*uta$le to install . '-d1.2u23.linux.x24'$in
(5ote : . (n *ase the Java installer is rp) file6 %ou *an exe*ute this *o))and # rp) #ivh -d1.2u23.linux.x24'rp)&
7onfigure Java using rootsudo . alternatives ..install usr$in-ava -ava usrli$-v)-d18'2'9:23$in-ava ;999
alternatives ..*onfig -ava (+ele*t the new Java installation&'
5ow again verif% the Java version<<<
GlassFish server upgrade :
Download the required GlassFish pat*h and extra*t the sa)e in a folder'
Login on Linux ter)inal and +tart p1g'depotd dae)on on one ter)inal
7hange the glassfishp1g$in dire*tor%'
"xa)ple # *d u98glassfish=p1g$in
!un the following to start dae)on servi*e
.$ash.=';> 'p1g'depotd .d u98stage84?@94.8;linux.i=A2 .p =9999
,n another Linux ter)inal set http:prox% and pu$lisher (lo*al repositor%& using following *o))and''
.$ash.=';> export http:prox%Bhttp:$ur9;29=:=9999
.$ash.=';> 'p1g .! u98glassfish= set.pu$lisher .Ce ., http:$ur9;29=:=9999 lo*alpu$lisher
Dou *an verif% the availa$le pu$lisher $% the following *o))and''
.$ash.=';> 'p1g pu$lisher
CUEL(+F"! GDC" +GAGU+ U!(
lo*alpu$lisher (preferred& origin online http:$ur9;29=:=9999
*ontri$'glassfish'ora*le'*o) origin online http:p1g'ora*le'*o)glassfishv=*ontri$
*ontri$'glassfish'org origin online http:p1g'glassfish'orgv=*ontri$
sta$le'glassfish'org origin online http:p1g'glassfish'orgv=sta$le
.$ash.=';>
!un glassfish update tool6 it will dete*t the lo*al repositor% and update the server'
Domain Name
The unique domain name to use for the DAS (Domain Administration
Server ). The default name is domain1.
Admin Port
The port on which the GlassFish Server Admin Console will listen. The
default port is !!.
HTTP Port
The port on which the non"secure #TT$ server will listen. The default
port is !%!%. &ote that the port used for the secure #TT$ listener
is !1!1.
Username
The user name for administrative access to the GlassFish Server Admin
Console.
Password
The password for administrative access to the GlassFish Server Admin
Console. 'ou can leave this parameter empt( to ena)le unauthenticated
lo*ins to the Admin Console+ )ut ma,e sure that the -sername field has
.admin. as the input value. Specif(in* a password is hi*hl( recommended
if (ou are installin* GlassFish Server in a production environment.
Reenter Password
/eenter the password to verif( (our t(pin*.
Create Operating System Service for the domain
Specif( whether an operatin* s(stem service will )e created for the DAS.
The service will )e started when the operatin* s(stem is )ooted.
0f a service is not created here+ the DAS can )e started manuall( usin*
the asadmin start"domain su)command.
Note - The Create 1peratin* S(stem Service option is not availa)le on
2ac 1S 3 s(stems. Also note that on -ni4 or 5inu4 s(stems+ (ou must run
the installer as superuser or root if (ou want to create a s(stem
service for the domain.
asadmin ""host 6host7 ""port 6port7 ena)le"secure"admin
and restart the *lassfish server domain to ma,e chan*es.
Directory Server and Directory Proy Server !DAP and !DAPS Port N"m#ers
Specif( the port num)er for acceptin* 5DA$ connections. The standard port for
5DA$ communication is 8!9+ althou*h other ports can )e used. For e4ample+ if
(ou must )e a)le to start the server as a re*ular user+ use an unprivile*ed
port+ )( default 18!9. $ort num)ers less than 1%: require privile*ed access.
0f (ou use a port num)er that is less than 1%:+ certain 5DA$ commands must )e
run as root.
Specif( the port num)er for acceptin* SS5")ased connections. The standard port
for SS5")ased 5DA$ (5DA$S) communication is ;8;+ althou*h other ports can )e
used+ such as the default 1;8; when runnin* as a re*ular user. For e4ample+ an
unprivile*ed port mi*ht )e required so that the server can )e started as a
re*ular user.
0f (ou specif( a non"privile*ed port and a server instance is installed on a
s(stem to which other users have access+ (ou mi*ht e4pose the port to a hi<ac,
ris, )( another application. 0n other words+ another application can )ind to
the same address=port pair. The ro*ue application mi*ht then )e a)le to
process requests that are intended for the server. The application could also
)e used to capture passwords used in the authentication process+ to alter
client requests or server responses+ or to produce a denial of service attac,.
$erformin* the required confi*urations throu*h C50>
??????????????????????????????????????
Creatin* domain
???????????????
@4ecutin* command >C>A*lassfish8A*lassfishA)inAasadmin.)at ""user admin
""passwordfile " create"domain ""savelo*in ""chec,portsBfalse ""adminport !!
""instanceport !%!%
""domainpropertiesB<ms.portBC;C;>domain.<m4$ortB!;!;>or).listener.portB8C%%>ht
tp.ssl.portB!1!1>or).ssl.portB8!:%>or).mutualauth.portB89:% domain1
C>A*lassfish8A*lassfishA)inAasadmin.)at ""user admin ""passwordfile " create"
domain ""savelo*in ""chec,portsBfalse ""adminport !! ""instanceport !%!%
""domainpropertiesB<ms.portBC;C;>domain.<m4$ortB!;!;>or).listener.portB8C%%>ht
tp.ssl.portB!1!1>or).ssl.portB8!:%>or).mutualauth.portB89:% domain1 -sin* port
!! for Admin.
-sin* port !%!% for #TT$ 0nstance.
-sin* port C;C; for D2S.
-sin* port 8C%% for 001$.
-sin* port !1!1 for #TT$?SS5.
-sin* port 8!:% for 001$?SS5.
-sin* port 89:% for 001$?2-T-A5A-T#.
-sin* port !;!; for D23?AD20&.
-sin* default port ;;;; for 1SG0?S#@55.
-sin* default port 9%%9 for DAEA?D@F-GG@/.
Distin*uished &ame of the self"si*ned 3.G%9 Server Certificate is>
6C&Bslc%1eae.us.oracle.com+1-BGlassFish+1B1racle Corporation+5BSanta
Clara+STBCalifornia+CB-S7
Distin*uished &ame of the self"si*ned 3.G%9 Server Certificate is>
6C&Bslc%1eae.us.oracle.com"instance+1-BGlassFish+1B1racle Corporation+5BSanta
Clara+STBCalifornia+CB-S7
&o domain initialiHers found+ )(passin* customiHation step
Domain domain1 created.
Domain domain1 admin port is !!.
Domain domain1 admin user is .admin..
Admin lo*in information for host 6localhost7 and port 6!!7
is )ein* overwritten with credentials provided )ecause the
""savelo*in option was used durin* the create"domain command.
5o*in information relevant to admin user name 6admin7
for this domain 6domain17 stored at
6C>A-sersAasma(anA.asadminpass7 successfull(.
2a,e sure that this file remains protected.
0nformation stored in this file will )e used )(
asadmin commands to mana*e this domain.
Command create"domain e4ecuted successfull(.
Startin* domain
???????????????
@4ecutin* command >C>A*lassfish8A*lassfishA)inAasadmin.)at start"domain
domain1
C>A*lassfish8A*lassfishA)inAasadmin.)at start"domain domain1
Attemptin* to start domain1.... $lease loo, at the server lo* for more
details.....
Creating S"ffies
After (ou have created (our Director( Server instance+ (ou must create one or
more suffi4es for the serverIs Director( 0nformation Tree (D0T). The D0T
consists of all of the entries in (our server+ as identified )( their
distin*uished names (D&s). The hierarchical nature of a D& creates )ranches
and leaves that structure the data in the tree. The D0T is defined and mana*ed
administrativel( in terms of suffi4es and su)"suffi4es. DSCC provides controls
for creatin* and administerin* all of these elements. Alternativel(+ (ou can
use command"line tools.
J dsconf create"suffi4 "h host1 "p 18!9 dcBe4ample+dcBcom