1、没有想(意识)到清楚:resin下的web.xml 和tomcat下的web.xml是不同的。
2、对于connect读取配置文件以及连接数据库根本就没有意识。
/**
* 获取本系统DB配置的文件 * * @return */ private static Reader getDBConfigReader() { Reader reader = null; try { // IN Resin JAR for Web call interface, it works under the ../WEB-INF/ directory // There are conf, lib, classes directories here. reader = Resources.getResourceAsReader("../" + RESOURCE); if (reader != null) System.out.println("CRT: Initialize DB from Web Server Application."); } catch (IOException e) { try { //IN Application model reader = new FileReader(RESOURCE); }catch (Exception e1) {e1.printStackTrace();} } if (reader == null) System.out.println("CRT: Error while initializing DB."); return reader; }3、eclipse下的工程发布有问题,却没有按照路径去找,一个劲的瞎试。
4、映射配置等为题根本就不懂。
习惯决定未来