JavaWorld@TW the best professional Java site in Taiwan
      註冊 | 登入 | 全文檢索 | 排行榜  

» JavaWorld@TW » Java Tools  

按列印兼容模式列印這個話題 列印話題    把這個話題寄給朋友 寄給朋友   
reply to topicthreaded modego to previous topicgo to next topic
己加入精華區
by jini at 2005-12-18 05:50
本主題所含的標籤
無標籤
作者 Jetspeed-2 心得隨筆(1)-安裝 [精華]
wayyoung





發文: 21
積分: 1
於 2005-12-09 00:48 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
Jetspeed-2網址: http://portals.apache.org/jetspeed-2/

小弟並不是portal的專家,如果有什麼錯誤的地方,請大家指正,謝謝
Jetspeed-2的Windows安裝(就是網頁上的"Getting Started"):
1. 下載並安裝JDK 1.5,ex=>c:\jdk1.5,並在環境變數加上JAVA_HOME=c:\jdk1.5

2. 下載並安裝Tomcat 5.5.x (5.5.12),ex=>c:\tomcat
2.1 修改c:\tomcat\conf\tomcat-users.xml,把manager這個role加給tomcat,如下:
<user name="tomcat" password="tomcat" roles="tomcat,manager" />
2.2 修改c:\tomcat\conf\context.xml,如下:
<Context antiJARLocking="true">

3. 下載並安裝Maven 1.x (maven-1.1-beta-2.exe),ex=>c:\maven,在環境變數加上MAVEN_HOME=c:\maven,同時把c:\maven\bin加到PATH上

4. Check out Jetspeed-2的source,url=>http://svn.apache.org/repos/asf/portals/jetspeed-2/trunk,ex=>c:\svn\j2

5. 在自已的user home內建立一個build.properties,內容如下 (注意要把前幾行comment掉,斜線也要注意,##!!!!後的部份是因為我後來安裝有問題才加的):
# required portal configuration properties
#org.apache.jetspeed.portal.home =
#org.apache.jetspeed.portal.groupId = myprojects
#org.apache.jetspeed.portal.artifactId = myportal
#org.apache.jetspeed.portal.name = My Test Portal
#org.apache.jetspeed.portal.currentVersion = 1.0

# required application server properties
org.apache.jetspeed.server.home = c:/tomcat
org.apache.jetspeed.server.shared = ${org.apache.jetspeed.server.home}/shared/lib/
org.apache.jetspeed.deploy.war.dir = ${org.apache.jetspeed.server.home}/webapps/
org.apache.jetspeed.services.autodeployment.user = tomcat
org.apache.jetspeed.services.autodeployment.password = tomcat
org.apache.jetspeed.catalina.version.major = 5.5

maven.repo.remote = http://www.bluesunrise.com/maven/, http://www.ibiblio.org/maven/,http://dist.codehaus.org/, http://cvs.apache.org/repository
org.apache.jetspeed.project.home = c:/svn/j2

6. 在c:\svn\j2下輸入maven initMavenPlugin (好久哦 /_\ ) =>BUILD SUCCESSFUL

7. 在c:\svn\j2下輸入maven allClean allBuild (又好久哦 /_\) =>BUILD SUCCESSFUL

8. 在c:\svn\j2下輸入start maven j2:start.production.server,會啟動內定的HSQL server

9. 在c:\svn\j2下輸入maven j2:quickStart,會開始Jetspeed-2的deploy (還是好久哦 /_\) =>BUILD SUCCESSFUL

10. 把C:\svn\j2\etc\log4j\log4j.properties拷至c:\tomcat\common\classes

11.把自已user home下的.maven\repository\hsqldb\jars\hsqldb-1.8.0.2.jar拷至c:\tomcat\common\lib下

12.啟動tomcat,等到全部deploy完後( 要等一下 ),透過browser連上http://localhost:8080/jetspeed,應該能順利看到Jetspeed-2的首頁。Default有一個 admin / admin的帳號

後記:
maven有時候跑一跑會停下來,就Ctrl+C掉再跑跑看


vote up 0 vote down
wayyoung edited on 2005-12-12 16:52
reply to postreply to post
作者 Re:Jetspeed-2 心得隨筆(1)-安裝 [Re:wayyoung]
robin

雞排小弟



發文: 481
積分: 1
於 2006-03-29 17:21 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
不好意思,最近按照你的方法安裝,啓動Jetspeed 後却發生
java.lang.IllegalArgumentException: WEB-INF/portlet.xml
不知我是那個地方有弄錯?
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
org.apache.jetspeed.deployment.DeploymentException: 
java.lang.IllegalArgumentException: WEB-INF/portlet.xml
        at 
org.apache.jetspeed.deployment.impl.DeployPortletAppEventListener.deployPortletApplication(DeployPortletAppEventListener.java:173)
        at 
org.apache.jetspeed.deployment.impl.DeployPortletAppEventListener.invokeDeploy(DeployPortletAppEventListener.java:158)
        at 
org.apache.jetspeed.deployment.impl.StandardDeploymentManager.dispatch(StandardDeploymentManager.java:257)
        at 
org.apache.jetspeed.deployment.impl.StandardDeploymentManager.deploy(StandardDeploymentManager.java:168)
        at 
org.apache.jetspeed.deployment.impl.StandardDeploymentManager.fireDeploymentEvent(StandardDeploymentManager.java:202)
        at 
org.apache.jetspeed.deployment.impl.StandardDeploymentManager$FileSystemScanner.run(StandardDeploymentManager.java:342)
Caused by: java.lang.IllegalArgumentException: WEB-INF/portlet.xml
        at 
org.apache.jetspeed.tools.deploy.JetspeedDeploy.<init>(JetspeedDeploy.java:142)
        at 
org.apache.jetspeed.deployment.impl.DeployPortletAppEventListener.deployPortletApplication(DeployPortletAppEventListener.java:168)
        ... 5 more


vote up 0 vote down
reply to postreply to post

» JavaWorld@TW »  Java Tools

reply to topicthreaded modego to previous topicgo to next topic
  已讀文章
  新的文章
  被刪除的文章
Jump to the top of page

JavaWorld@TW


Powered by Powerful JuteForum® Version Jute 1.5.8
Copyright© 2002-2003 Rainman Zhu,Zua,Netboy,Scott. All Rights Reserved.