i386 cpu=p4 ram=512mb disk=80G
軟件需求
win2k or win2003
weblogic platform 8.1sp3
pestore_1.3.1_02_bea.zip(在weblogic上安裝的petstore的模板)
petstore-1_3_1_02.zip(peststore的源碼)
安裝參數
1 把weblogic安裝到C:/bea下
解壓pestore_1.3.1_02_bea.zip,將petstore.domain.jar模板文件拷貝到:
/bea/weblogic81/common/templates/domains目錄下
(設置環境/bea/weblogic81/server/bin/setwlsenv.bat)
jar xvf pestore_1.3.1_02_bea.zip
2 啓動weblogic8.1的configuration wizard
3 選中缺省選項"create a new weblogic configuration"並且點擊next
4 選擇"petstore for weblogic"模板並點擊next
5 選擇"custom"配置並點擊next
6 點擊"next"一直到"database(jdbc) options"窗口.選擇"yes"並點擊next.
7 設置petstorepool口令:在user password和confirm user password中輸入"petstore"
(jdbc要設置正確pool和oraclepool其它默認選擇開發模式)
8 在同一個窗口中,選擇"oraclepetstorepool"標籤並且在user password和confirm user password中輸入"petstore"
9 點擊next直到"create weblogic configuration"窗口
10 點擊"create"按鈕在默認的位置/bea/user_projects/domains/petstore中創建新的域.
11 點擊"done"退出configuration wizard
12 打開一個命令行窗口啓動petstore:
administration server:/bea/user_projects/domains/petstore/startpet storeweblogic.cmd
13 再打開一個命令行窗口並且運行petstore域中的ant腳本初始化pointbase數據庫:
進入bea/user_projects/domains/petstore目錄
執行setpetstoreenv.cmd
執行do.setup
執行ant命令
14 停止petstore administration server服務器
創建和部署petstore
把文件petstore-1_3_1_02.zip拷貝到/petstore1.3.1_02目錄中
1 在編譯petstore應用之前,必須將/bea/user_projects/domains/petstore/src目錄中的文件
拷貝到/petstore1.3.1_02目錄中覆蓋原來文件
2 打開一個命令行窗口執行
cd /petstore1.3.1_02/src
3 編輯build.properties文件
weblogic.j2ee.home=/bea/weblogic81/server
4 保存對build.properties文件的修改
5 在執行下面命令
cd /bea/user_projects/domains/petstore
setpetstoreenv.cmd
cd /petstore1.3.1_02/src
ant
(build腳本將編譯petstore應用,將結構存放到/petstore1.3.1_02的子目錄中
6 拷貝編譯完的文件到/bea/user_projects/domains/petstore/applications目錄中:
copy /pestore1.3.1_02/src/apps/admin/build/petsoreadmin.ear
/bea/user_projects/domains/petstore/applications/
copy /pestore1.3.1_02/src/apps/opc/build/opc.ear
/bea/user_projects/domains/petstore/applications/
copy /pestore1.3.1_02/src/apps/petstore/build/petstore.ear
/bea/user_projects/domains/petstore/applications/
copy /pestore1.3.1_02/src/apps/supplier/build/supplier.ear
/bea/user_projects/domains/petstore/applications/
7 啓動petstore域administration server部署新的應用
cd /bea/user_projects/domains/petstore
startpetstoreweblogic.cmd
8 等待服務器啓動後就可以通過瀏覽器
http://localhost:7001/petstore訪問應用了