Friday Oct 31, 2008

Alfresco 3.0 Installation

Awalnya saya mengalami kesulitan pada saat melakukan instalasi pada Alfresco versi 3.0. Munculnya pesan error seperti dibawah ini :

Caused by: org.springframework.beans.BeanInstantiationException: Could not insta
ntiate bean class [org.apache.cxf.wsdl11.WSDLManagerImpl]: Constructor threw exc
eption; nested exception is java.lang.LinkageError: JAXB 2.0 API is being loaded
from the bootstrap classloader, but this RI (from jar:file:/C:/Alfresco.3.0/tom
cat/webapps/alfresco/WEB-INF/lib/jaxb-impl-2.1.7.jar!/com/sun/xml/bind/v2/model/
impl/ModelBuilder.class) needs 2.1 API. Use the endorsed directory mechanism to
place jaxb-api.jar in the bootstrap classloader. (See http://java.sun.com/j2se/1
.5.0/docs/guide/standards/)
Caused by: java.lang.LinkageError: JAXB 2.0 API is being loaded from the bootstr
ap classloader, but this RI (from jar:file:/C:/Alfresco.3.0/tomcat/webapps/alfre
sco/WEB-INF/lib/jaxb-impl-2.1.7.jar!/com/sun/xml/bind/v2/model/impl/ModelBuilder
.class) needs 2.1 API. Use the endorsed directory mechanism to place jaxb-api.ja
r in the bootstrap classloader. (See http://java.sun.com/j2se/1.5.0/docs/guide/s
tandards/)


Dan kemudian saya coba downgrade jdk saya dari 1.6 ke 1.5
Setelah jdk 1.5 selesai diinstal lalu tidak lupa java home saya koreksi.
Pada file SetPaths.bat atau SetPaths.sh diedit dengan mengganti alamat java home.

Apabila ingin menambahkan docasu amp, tinggal mengcopy docasu.amp yang sudah didownload dan kemudian dipaste ke dalam folder amps. Kemudian jalankan perintah apply_amps.bat untuk windows atau apply_amps.sh untuk linux. Selesai menjalankan perintah apply_amps maka tampilan docasu sudah bisa dinikmati di alfresco kita. Di browser ketikkan saja http://localhost:8080/alfresco/wcs/docasu/ui untuk melihat tampilan docasu tersebut.