天天看點

Shark1.0中JSPClient的配置Bug

讀者對象

:初學者

我的版本

:Shark1.0(使用的是shark-1.0-1.zip,“/”為Shark的主目錄)

問題

:配置好/configure.properties(沒有使用預設的資料庫),運作/configure.bat後,在/JSPClient檔案夾下生成了sharkworklisthandler.war,如果将此Web應用在Tomcat下運作,前台會報"SharkEngineManager -> Can not work - Problems while configuring InstancePersistenceManager!"錯誤.

原因

:使用configure.bat生成的/JSPClient/src/conf下的Shark.conf檔案有錯誤,DatabaseManager.DB.sharkdb.Connection.Url屬性不是你配置的資料源URL,這就導緻sharkworklisthandler.war裡conf中的Shark.conf檔案不正确。(注意:/conf下的Shark.conf檔案是正确的,不知道為什麼!)

解決

:将sharkworklisthandler.war裡conf中的Shark.conf檔案中DatabaseManager.DB.sharkdb.Connection.Url修改正确(可以參考/conf下的Shark.conf檔案)。這樣JSPClient就運作正确了!