2008年5月27日 星期二

Eclipse/WTP Europa 記趣

兩件好玩的事情

1. Ubuntu 執行 Eclipse 的時候會抱怨

"Could not initialize the application's security component. The most likely cause is problems with files in your application's profile directory. Please check that this directory has no read/write restrictions and your hard disk is not full or close to full. It is recommended that you exit the application and fix the problem. If you continue to use this session, you might see incorrect application behaviour when accessing security features."

解決方式也很簡單根據 Bug #188380 in eclipse (Ubuntu) 的說法,只要在 ~/.mozilla 裡面建立一個叫作 eclipse 的目錄即可。

2. 搭配 JBoss AS 的時候這一的 WTP 居然不能直接部署 WAR 檔案必須要封裝成 EAR 檔案才可以

解決方式也很簡單裝上 JBoss Tools在定義 Server Runtime 的時候不要選 WTP 提供的 JBoss、JBoss v4.2用 JBoss, a division of Red Hat 裡面的 JBoss 4.2 Runtime這樣定義出來的 Server 就可以在 WTP 裡面直接將 Dynamic Web Project 拿來執行了