博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
tomcat下iims的配置感悟
阅读量:6942 次
发布时间:2019-06-27

本文共 765 字,大约阅读时间需要 2 分钟。

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、映射配置等为题根本就不懂。

 

 

习惯决定未来

转载地址:http://kfinl.baihongyu.com/

你可能感兴趣的文章
ISCSI工作流程target和initiator
查看>>
Oracle密码过期the password has expired
查看>>
linux grep常用参数
查看>>
button 按钮,结合onclick事件,验证和提交表单
查看>>
<转>python字典排序 关于sort()、reversed()、sorted()
查看>>
java中Token验证
查看>>
医保业务的相关概念
查看>>
【Mac使用系列】【转载】十几个Mac实用工具
查看>>
网易七鱼 Android 高性能日志写入方案
查看>>
微软Visual Studio 2010架构设计功能应用(转)
查看>>
干净的代码是改出来的
查看>>
微软面试题附答案(转)
查看>>
你必须要知道的架构知识~第三章 接口用来制定操作的统一性
查看>>
关于下拉菜单和iframe的问题
查看>>
ASP.NET File.Delete只读文件引起的访问被拒绝,设置文件属性为Normal
查看>>
Sharepoint学习笔记—ECMAScript对象模型系列-- 11、 Enable/Disable Ribbon上的Button
查看>>
python类库26[sqlite]
查看>>
苹果与三星的专利纠纷
查看>>
boost库在工作(36)网络服务端之六
查看>>
关于java.lang.IllegalArgumentException: View not attached to window manager 错误的分析
查看>>