:初学者
我的版本: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就运行正确了!