18328 [main] INFO lucene.LuceneConstant - lucene default dir :E:\Tomcat 6\webapps\ 18375 [main] INFO lucene.IndexFiles - 璺緞锛?E:\Tomcat 6\webapps\ecFile\datum 娌℃湁绱㈠紩锛岄娆″垱寤虹储寮?
A property claimed to start before zero, at -256! Resetting it to zero, and hoping for the best A property claimed to start before zero, at -256! Resetting it to zero, and hoping for the best 22344 [main] WARN lucene.IndexFiles - 璺緞锛?E:\Tomcat 6\webapps\ecFile\datum寤虹珛绱㈠紩瀹屾瘯,鑰楁椂3969姣 22688 [main] INFO lucene.IndexFiles - 璺緞锛?E:\Tomcat 6\webapps\ecFile\datum\lawfile 娌℃湁绱㈠紩锛岄娆″垱寤虹储寮? 22781 [main] WARN lucene.IndexFiles - adding E:\Tomcat 6\webapps\ecFile\datum\lawfile\indexFile\segments.gen 22781 [main] INFO lucene.FileDocument - 娣诲姞涓?鏉$储寮曪紝棰勬绫诲瀷锛?indexFile 璺緞E:\Tomcat 6\webapps\ecFile\datum\lawfile\indexFile\segments.gen 22781 [main] WARN lucene.FileDocument - 涓嶆敮鎸?segments.gen 22781 [main] WARN lucene.IndexFiles - adding E:\Tomcat 6\webapps\ecFile\datum\lawfile\indexFile\segments_1 22781 [main] INFO lucene.FileDocument - 娣诲姞涓?鏉$储寮曪紝棰勬绫诲瀷锛?indexFile 璺緞E:\Tomcat 6\webapps\ecFile\datum\lawfile\indexFile\segments_1 22781 [main] WARN lucene.FileDocument - 涓嶆敮鎸?segments_1 22781 [main] WARN lucene.IndexFiles - adding E:\Tomcat 6\webapps\ecFile\datum\lawfile\indexFile\write.lock 22781 [main] INFO lucene.FileDocument - 娣诲姞涓?鏉$储寮曪紝棰勬绫诲瀷锛?indexFile 璺緞E:\Tomcat 6\webapps\ecFile\datum\lawfile\indexFile\write.lock 22781 [main] WARN lucene.FileDocument - 涓嶆敮鎸?write.lock
同事提醒需要升级zk插件,在MyEclipse下,点击 help -- softupdate -- find -- for new,地址为:http://studioupdate.zkoss.org/studio/update,更新即可。
后来,发现 Lucene是apache软件基金会 jakarta项目组的一个子项目,是一个开放源代码的全文检索引擎工具包,即它不是一个完整的全文检索引擎,而是一个全文检索引擎的架构,提供了完整的查询引擎和索引引擎,部分文本分析引擎(英文与德文两种西方语言)。Lucene的目的是为软件开发人员提供一个简单易用的工具包,以方便的在目标系统中实现全文检索的功能,或者是以此为基础建立起完整的全文检索引擎。想到可能是文件中的乱码,果然,将项目字符编码打开一看是GBK,改为UTF-8,恢复正常,哎…………
新的zk项目,为了减少和zk框架的耦合,使用Spring下面的包取Service的实现类:
webapp = WebApplicationContextUtils .getWebApplicationContext((ServletContext) Executions .getCurrent().getDesktop().getWebApp() .getNativeContext()); usersService = (UsersService) webapp.getBean("usersService");