webSphere log信息:
————————————————
[05-6-18 16:13:47:456 CST] 7764541b SystemErr R javax.naming.NameNotFoundException: Name "comp/env/jdbcfjtw" not found in context "java:".
[05-6-18 16:13:47:503 CST] 7764541b SystemErr R at com.ibm.ws.naming.ipbase.NameSpace.lookupInternal(NameSpace.java:1021)
[05-6-18 16:13:47:503 CST] 7764541b SystemErr R at com.ibm.ws.naming.ipbase.NameSpace.lookup(NameSpace.java:932)
[05-6-18 16:13:47:503 CST] 7764541b SystemErr R at com.ibm.ws.naming.urlbase.UrlContextImpl.lookup(UrlContextImpl.java:1261)
[05-6-18 16:13:47:503 CST] 7764541b SystemErr R at com.ibm.ws.naming.java.javaURLContextRoot.lookup(javaURLContextRoot.java:194)
[05-6-18 16:13:47:503 CST] 7764541b SystemErr R at com.ibm.ws.naming.java.javaURLContextRoot.lookup(javaURLContextRoot.java:135)
[05-6-18 16:13:47:503 CST] 7764541b SystemErr R at javax.naming.InitialContext.lookup(InitialContext.java:360)
[05-6-18 16:13:47:503 CST] 7764541b SystemErr R at servlet.Servlet1.doGet(Servlet1.java:52)
[05-6-18 16:13:47:503 CST] 7764541b SystemErr R at servlet.Servlet1.doPost(Servlet1.java:126)
————————————————
[05-6-18 16:13:47:456 CST] 7764541b SystemErr R javax.naming.NameNotFoundException: Name "comp/env/jdbcfjtw" not found in context "java:".
[05-6-18 16:13:47:503 CST] 7764541b SystemErr R at com.ibm.ws.naming.ipbase.NameSpace.lookupInternal(NameSpace.java:1021)
[05-6-18 16:13:47:503 CST] 7764541b SystemErr R at com.ibm.ws.naming.ipbase.NameSpace.lookup(NameSpace.java:932)
[05-6-18 16:13:47:503 CST] 7764541b SystemErr R at com.ibm.ws.naming.urlbase.UrlContextImpl.lookup(UrlContextImpl.java:1261)
[05-6-18 16:13:47:503 CST] 7764541b SystemErr R at com.ibm.ws.naming.java.javaURLContextRoot.lookup(javaURLContextRoot.java:194)
[05-6-18 16:13:47:503 CST] 7764541b SystemErr R at com.ibm.ws.naming.java.javaURLContextRoot.lookup(javaURLContextRoot.java:135)
[05-6-18 16:13:47:503 CST] 7764541b SystemErr R at javax.naming.InitialContext.lookup(InitialContext.java:360)
[05-6-18 16:13:47:503 CST] 7764541b SystemErr R at servlet.Servlet1.doGet(Servlet1.java:52)
[05-6-18 16:13:47:503 CST] 7764541b SystemErr R at servlet.Servlet1.doPost(Servlet1.java:126)
解决方案 »
- java 获得默认网关 和 子网掩码 本机 在线等
- Servlet中异常怎么处理
- S2SH整合中的一个错误 大侠们帮我看看啊
- 夏昕.深入浅出Hibernate
- Hibernate删除list问题
- 用jbuilder调试程序时出现source file and class file are out of sync错误,是怎么回事?在线等,急
- 谁可以比较一下Jbuilder2005和WSAD5?
- 疯掉了,ant 使用出现如下错误!
- 今天考试用JBuilder8遇到些问题?
- 如何用java实现间繁转换
- 关于对象流的两个问题
- 新建一个servlet的例子,接着用http://127.0.0.1:8080/myweb/hwz访问,但是一直出现404错误
很麻烦的,还要一堆包的支持,在websphere安装目录下都有
Properties properties = new Properties();properties.put(Context.INITIAL_CONTEXT_FACTORY, "com.ibm.websphere.naming.WsnInitialContextFactory");properties.put(Context.PROVIDER_URL, "iiop://localhost:9001");Context ctx = new InitialContext(properties);
在客户端和服务器端有什么区别
具体怎么做谢谢~~!