Knowledge Base : Install Alfresco in Solaris GlassFish

Install Alfresco in Solaris GlassFish

Glassfish is included in standard Soalris 10 installation.

(optionally) Construct a zone

root@sol0-0 SOL0 /root# cat ZoneCfg/
create -b
set zonepath=/export/zones/glass1
set autoboot=true
set ip-type=shared
add fs
set dir=/usr/local
set special=/export/zones/local/glass1
set type=lofs
add fs
set dir=/home
set special=/export/home
set type=lofs
add options rw
add options nodevices
add net
set address=
set physical=e1000g0

(optionally in the zone), create default domain

root@glass1 Glass1 /var/appserver# asadmin create-domain –adminport 7070 –adminuser admin glass1
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 8080 for HTTP Instance.
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 glass1 created.

start domain

root@glass1 Glass1 /var/appserver# asadmin start-domain
Starting Domain glass1, please wait.
Log redirected to /var/appserver/domains/glass1/logs/server.log.
Please enter the master password>
Domain glass1 is ready to receive client requests. Additional services are being started in background.

root@glass1 Glass1 /var/appserver# asadmin list-domains

glass1 running
Command list-domains executed successfully.

access Web frontend

= install JDBC driver

You might be better off going to and choosing where to get it from.

Unpack this somewhere and copy mysql-connector-java-5.1.6-bin.jar to the Glassfish domain’s lib directory

$ cp mysql-connector-java-5.1.6-bin.jar /var/appserver/domains/domain1/lib

Create alfresco classes directory;

$ mkdir /var/appserver/domains/domain1/lib/classes/alfresco

= Copy and install Alfresco WAR Community Edition=

root@glass1 Glass1 /usr/src# cp /filer/Software/UNIX/Misc/alfresco-community-war-3.3g.tar.gz .
root@glass1 Glass1 /usr/src# gunzip alfresco-community-war-3.3g.tar.gz

Copy Alfresco class files

cp -Rp extensions /var/appserver/domains/glass1/lib/classes/alfresco/

configure Alfresco

dos2unix >

check for DB access and existance of alf_store

modify alfresco.war

cd /usr/src/alfresco/
mkdir WEB-INF

vi sun-web.xml

<?xml version=”1.0″ encoding=”UTF-8″?>
<!DOCTYPE sun-web-app PUBLIC “-//Sun Microsystems, Inc.//DTD Application Server 8.1 Servlet 2.4//EN”””>
<class-loader delegate=”false”/>
<property name=”useMyFaces” value=”true”/>

cd ..

jar uvf alfresco.war WEB-INF/sun-web.xml

deploy Alfresco to GlassFish

root@glass1 Glass1 /usr/src/alfresco# asadmin list-domains
glass1 running
Command list-domains executed successfully.

root@glass1 Glass1 /usr/src/alfresco# asadmin deploy –user admin –port 7070 alfresco.war

Please enter password>
Command deploy executed successfully.

see also: