<h4>RidolIDE+TPM安裝運行</h4> <p><strong>一 、</strong><b>RidolIDE</b><strong>安裝</strong></p> <blockquote> <p>1. 解壓最新版的RidolIDE.zip到D盤。</p> <p>2. 將Oracle驅動 解壓到D:\RiDolIDE\jboss\modules\com 文件夾下 。 </p> <p><a href="http://static.oschina.net/uploads/img/201307/09182421_kphE.gif"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="clip_image002" border="0" alt="clip_image002" src="http://static.oschina.net/uploads/img/201307/09182442_x2mQ.gif" width="76" height="50" /></a></p> <p>3. 將standalone.xml 文件拷貝D:\RiDolIDE\jboss\standalone\configuration文件夾下。</p> <p><a href="http://static.oschina.net/uploads/img/201307/09182443_smqO.gif"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="clip_image004" border="0" alt="clip_image004" src="http://static.oschina.net/uploads/img/201307/09182443_DagG.gif" width="106" height="50" /></a></p> <p>4. Maven配置</p> <p>i. 將setting.xml拷貝到D:\RiDolIDE\maven\conf文件夾下</p> <p><a href="http://static.oschina.net/uploads/img/201307/09182443_jIeg.gif"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="clip_image006" border="0" alt="clip_image006" src="http://static.oschina.net/uploads/img/201307/09182443_bpvR.gif" width="91" height="50" /></a></p> <p>ii. 啓動RidolIDE的eclipse。設置Windows—Preference—Maven的選項以下圖所示:</p> <p><a href="http://static.oschina.net/uploads/img/201307/09182445_XLLs.jpg"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="clip_image008" border="0" alt="clip_image008" src="http://static.oschina.net/uploads/img/201307/09182445_5nNp.jpg" width="244" height="110" /></a></p> <p>iii. 設置Windows—Preference—Maven—Archetype。點擊Add Remote Catalog,添加Maven遠程資源庫地址,點擊Verify驗證,驗證成功後點擊Ok。</p> <p><a href="http://static.oschina.net/uploads/img/201307/09182446_PP7O.jpg"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="clip_image010" border="0" alt="clip_image010" src="http://static.oschina.net/uploads/img/201307/09182446_ae6H.jpg" width="244" height="77" /></a></p> <p>Maven資源庫地址:<a href="http://172.16.6.67/nexus/service/local/repositories/RiDol-releases/content/archetype-catalog.xml">http://172.16.6.67/nexus/service/local/repositories/RiDol-releases/content/archetype-catalog.xml</a></p> <p>iv. 設置Maven Build。打開Run—Run Configration—Maven Build。右鍵點擊Maven Build,點擊New。在Main標籤頁中設置Base directory 爲${workspace_loc:/${project_name}} 。設置Goals爲clean install。勾選Skip Tests。在Common標籤頁中勾選Run和Debug。</p> <p><a href="http://static.oschina.net/uploads/img/201307/09182447_rzmR.jpg"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="clip_image012" border="0" alt="clip_image012" src="http://static.oschina.net/uploads/img/201307/09182448_SfWq.jpg" width="244" height="101" /></a></p> </blockquote> <p><b>二 、TPM安裝</b><strong></strong></p> <blockquote> <p>1. 下載 TPM。打開eclipse的svn資源庫 窗口。新建資源庫位置: svn://172.16.128.142/TPM 。右鍵檢出爲—做爲工做空間項目檢出。</p> <p>2. 在eclipse的File—Import—General—Existing Project Into Workspace中,依次加入tpm-jsf,tpm-service,tpm-web 項目。</p> <p>3. 運行Maven Build—Clean & Install。因爲是第一次運行Clean & Install,eclipse須要從Maven資源庫下載TPM運行所需依賴包。待第一次Clean & Install 完成後,確認項目不報錯,代表TPM依賴包下載完畢。</p> <p>4. 添加JBoss。在Server窗口中,右鍵New—Server。選擇Jboss 7.x ,點擊Finish。而後在JBoss 7.0 Runtime Server中添加tpm-jsf項目。</p> </blockquote> <p><b>三 、TPM運行</b><strong></strong></p> <blockquote> <p>1. 點擊tpm項目,運行Maven Build—Clean & Install。</p> <p>2. 待Clean & Install 成功後(約30s),刷新tpm和tpm-jsf項目。</p> <p>3. 待刷新完成後(約5s),在Server窗口中,右鍵點擊tpm-jsf項目,點擊Full Publish。</p> <p>4. 待Full Publish 完成後(約5s),在Server窗口中,點擊JBoss 7.0 Runtime Server,而後點擊Run <a href="http://static.oschina.net/uploads/img/201307/09182448_fxg3.jpg"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="clip_image014" border="0" alt="clip_image014" src="http://static.oschina.net/uploads/img/201307/09182448_qLht.jpg" width="26" height="27" /></a>或者Debug<a href="http://static.oschina.net/uploads/img/201307/09182448_xUMG.jpg"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="clip_image016" border="0" alt="clip_image016" src="http://static.oschina.net/uploads/img/201307/09182448_8XOW.jpg" width="27" height="27" /></a>按鈕。</p> <p>待Console 窗口輸出完畢(約30s),並出現以下字樣:</p> <p><a href="http://static.oschina.net/uploads/img/201307/09182449_LBn5.jpg"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="clip_image018" border="0" alt="clip_image018" src="http://static.oschina.net/uploads/img/201307/09182450_9FFD.jpg" width="244" height="57" /></a></p> <p>則表明TPM運行成功。</p> <p>5. 在瀏覽器中輸入 <a href="http://127.0.0.1:8080/tpm-jsf">http://127.0.0.1:8080/tpm-jsf</a> 。輸入用戶名 :admin,輸入密碼:111111,輸入驗證碼,點擊登陸,便可登陸到TPM系統。</p> </blockquote> <h4 align="center">RidolIDE安裝運行BUG解決</h4> <table border="1" cellspacing="0" cellpadding="0"><tbody> <tr> <td width="11%"> <p><b>問題編號</b></p> </td> <td valign="top" width="48%"> <p><b>問題描述</b></p> </td> <td valign="top" width="40%"> <p><b>解決方案</b></p> </td> </tr> <tr> <td width="11%"> <p>RIDOL-0000001</p> </td> <td valign="top" width="48%"> <p>運行時Console報錯:New Missing Ojdbc Driver.</p> </td> <td valign="top" width="40%"> <p>將Oracle驅動 解壓到D:\RiDolIDE\jboss\modules\com 文件夾下</p> </td> </tr> <tr> <td width="11%"> <p>RIDOL-0000002</p> </td> <td valign="top" width="48%"> <p>Eclipse Markers錯誤:</p> <p><a href="http://static.oschina.net/uploads/img/201307/09182450_hFCz.jpg"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="clip_image020" border="0" alt="clip_image020" src="http://static.oschina.net/uploads/img/201307/09182451_Dc8r.jpg" width="244" height="53" /></a></p> </td> <td valign="top" width="40%"> <p>1. 檢查是否將setting.xml拷貝到D:\RiDolIDE\maven\conf文件夾下。</p> <p>2. 檢查Windows—Preference—Maven選項是否勾選Down load Artifact resource和Download repository index updates on startup。</p> <p>3. 檢查Windows—Preference—Maven—Archetype是否添加了遠程資源庫。</p> </td> </tr> <tr> <td width="11%"> <p>RIDOL-0000003</p> </td> <td valign="top" width="48%"> <p>Eclipse Markers錯誤:</p> <p><a href="http://static.oschina.net/uploads/img/201307/09182451_z74r.jpg"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="clip_image022" border="0" alt="clip_image022" src="http://static.oschina.net/uploads/img/201307/09182452_LNjn.jpg" width="244" height="53" /></a></p> </td> <td valign="top" width="40%"> <p>Maven指向問題。檢查Windows—Preference—Maven—User Settings 的路徑是不是:</p> <p>D:\RiDolIDE\maven\conf\settings.xml</p> </td> </tr> <tr> <td width="11%"> <p>RIDOL-0000004</p> </td> <td valign="top" width="48%"> <p>Clean and Install 時 Maven資源包下載速度很慢。</p> </td> <td valign="top" width="40%"> <p>有多是Maven服務器掛掉了。聯繫Maven服務器的維護人員。可先將Windows—Preference—Maven選項中的Offline勾選,離線使用。</p> </td> </tr> <tr> <td width="11%"> <p>RIDOL-0000005</p> </td> <td valign="top" width="48%"> <p>登錄時界面報錯:系統異常。同時Console報錯:</p> <p><a href="http://static.oschina.net/uploads/img/201307/09182452_orVC.jpg"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="clip_image024" border="0" alt="clip_image024" src="http://static.oschina.net/uploads/img/201307/09182452_TKH6.jpg" width="244" height="23" /></a></p> <p><a href="http://static.oschina.net/uploads/img/201307/09182452_ektq.jpg"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="clip_image026" border="0" alt="clip_image026" src="http://static.oschina.net/uploads/img/201307/09182453_Z5bp.jpg" width="244" height="24" /></a></p> </td> <td valign="top" width="40%"> <p>打開D:\RiDolIDE\jboss\standalone\deployments 文件夾。刪除tpm-jsf.war和tpm-jsf.war.deployed。從新執行Clean &Install、刷新、Full Publish,Run Server 、登陸 的流程。</p> </td> </tr> <tr> <td width="11%"> <p>RIDOL-0000006</p> </td> <td valign="top" width="48%"> <p>運行時卡在:<a href="http://static.oschina.net/uploads/img/201307/09182453_TOYj.jpg"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="clip_image028" border="0" alt="clip_image028" src="http://static.oschina.net/uploads/img/201307/09182453_f7Aq.jpg" width="244" height="18" /></a></p> <p><a href="http://static.oschina.net/uploads/img/201307/09182453_rWDL.jpg"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="clip_image030" border="0" alt="clip_image030" src="http://static.oschina.net/uploads/img/201307/09182454_HccB.jpg" width="244" height="26" /></a></p> <p><a href="http://static.oschina.net/uploads/img/201307/09182455_7cct.jpg"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="clip_image032" border="0" alt="clip_image032" src="http://static.oschina.net/uploads/img/201307/09182455_skso.jpg" width="244" height="21" /></a></p> <p>而不往下執行。</p> </td> <td valign="top" width="40%"> <p>關閉eclipse。關閉javaw進程。從新啓動eclipse,從新運行項目。</p> </td> </tr> <tr> <td width="11%">RIDOL-0000007</td> <td valign="top" width="48%"><a href="http://static.oschina.net/uploads/img/201307/17153301_yBuU.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="QQ圖片20130717152723" border="0" alt="QQ圖片20130717152723" src="http://static.oschina.net/uploads/img/201307/17153301_XAvF.jpg" width="679" height="119" /></a> </td> <td valign="top" width="40%">暫無解方案</td> </tr> </tbody></table> <table border="0" cellspacing="0" cellpadding="2" width="1431"><tbody> <tr> <td valign="top" width="156"> </td> <td valign="top" width="695"> </td> <td valign="top" width="578"> </td> </tr> <tr> <td valign="top" width="156"> </td> <td valign="top" width="695"> </td> <td valign="top" width="578"> </td> </tr> <tr> <td valign="top" width="156"> </td> <td valign="top" width="695"> </td> <td valign="top" width="578"> </td> </tr> </tbody></table>java