星期二, 1月 29, 2008

Install Pluto 1.1.4 on Geronimo 2.0.2

剛把pluto 1.1.4安裝到geronimo 2.0.2上,花掉一天以上的時間,在這裡作個記錄。

安裝環境
OS: Windows XP sp2 中文版
JDK: Sun jdk 5.0 update 12
Geronimo: 2.0.2
Pluto: 1.1.4

在安裝之前需要由pluto網站上下載pluto-current-bin.zip檔。

安裝share library
將以下檔案安裝為geronimo 的common library:

  • castor-1.1.1.jar

  • commons-logging-1.1.jar

  • pluto-container-1.1.4.jar

  • pluto-descriptor-api-1.1.4.jar

  • pluto-descriptor-impl-1.1.4.jar

  • pluto-taglib-1.1.4.jar



安裝pluto-portal
建立pluto-portal用的deployment plan,dependency中加入上述的common library以及xercesImpl 2.8.1版。正常狀況下,應該就能夠順利的安裝到geronimo中,能夠在http://localhost/pluto中看到pluto的登入畫面。

如果在安裝過程中發生Portlet init NullPointException,log中發現register 0 portlet的訊息,有可能是castor parse portlet.xml時發生問題,只需要把pluto-portal.war解開,將portlet.xml裡 tag的namespace拿掉,應該就能夠順利的部署上去。

安裝pluto-testsuite
pluto testsuite並不需要安裝額外的library,只需要在dependency中以classes的方式import pluto.pluto 的class以及pluto-taglib就行了,如果遇到register 0 portlet,和pluto-portal一樣,修改portlet.xml就能夠解決。

security config
在pluto-portal的deployement plan也需要註記security 的定義,定義如下

/pluto

geronimo-admin


class="org.apache.geronimo.security.realm.providers.GeronimoUserPrincipal"/>




class="org.apache.geronimo.security.realm.providers.GeronimoUserPrincipal"/>






pluto-testsuite的deployement plan中需包含下列片段:

/testsuite

geronimo-admin



class="org.apache.geronimo.security.realm.providers.GeronimoUserPrincipal"/>




class="org.apache.geronimo.security.realm.providers.GeronimoUserPrincipal"/>






如此應該就能夠順利把pluto 1.1.4安裝到geronimo上了。

沒有留言: