注册 | 登录 忘记密码? 51cto首页 | 博客 | 论坛 | 招聘
热点文章 Exchange服务器系列课程之..
 帮助

[zz]WebSphere下spring 的上下文加载问题


2008-07-14 19:36:32
 标签:WebSphere   [推送到技术圈]

错误日志:
[08–3−20 18:44:03:469 CST] 00000036 ServletWrappe E SRVE0100E: 未识别出由 servlet context 抛出的 init() 异常:org.springframework.beans.FatalBeanException: Unable to determine validation mode for ServletContext resource [/WEB-INF/classes/applicationContext-jdbc.xml]. Did you attempt to load directly from a SAX InputSource?; nested exception is sun.io.MalformedInputException: null sun.io.MalformedInputException

at sun.io.ByteToCharGB18030.convert(ByteToCharGB18030.java(Compiled Code))
at sun.nio.cs.StreamDecoder$ConverterSD.convertInto(StreamDecoder.java(Inlined Compiled Code))
at sun.nio.cs.StreamDecoder$ConverterSD.implRead(StreamDecoder.java(Compiled Code))
at sun.nio.cs.StreamDecoder.read(StreamDecoder.java(Compiled Code))
at java.io.InputStreamReader.read(InputStreamReader.java(Compiled Code))
at java.io.BufferedReader.fill(BufferedReader.java(Compiled Code))
at java.io.BufferedReader.readLine(BufferedReader.java(Compiled Code))
at java.io.BufferedReader.readLine(BufferedReader.java(Compiled Code))
…….
at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminaters(NewConnectionInitialReadCallback.java:207)
at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:109)
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java:566)
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java(Compiled Code))
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java:952)
at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java:1039)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java(Compiled Code))


这个异常产生的原因是IBM在JDK 1.4版本中为了追求对io通道的高效率改变了JDK 1.3中对io通道中异常处理的策略。IBM JDK 1.4中对于io通道的异常处理更加严格,因此系统中会报上面的错误。 解决这一问题的办法是不使用IBM JDK 1.4中默认的io通道,而使用nio通道。具体的做法如下:
1.打开管理控制台,找到并选择运行这个JSP的应用服务器
2.依次选择进程定义,java虚拟机,一般JVM自变量
3.添加-Dibm.stream.nio=true
4.确定,保存
5.重新启动该服务器




    文章评论
 
2008-09-01 15:00:33
大哥,照你改了,控制台进不去了。
[ServletException in:/secure/isclite/tiles/iscnavigatorLayout.jsp] null'

怎么改回来啊。哪个配置文件?

博主回复:
啊?SORRY~~我这里出现这种情况,按照上面的方法修改是OK的~

后来,又有一个问题是因为内存设置太小的原因,把内存设置大一些就OK了
2008-10-14 10:51:17

2008-10-23 10:35:36
我也出现这个问题,设置了JVM后,控制台报错了[ServletException in:/secure/isclite/tiles/iscnavigatorLayout.jsp] null'

内存设置太小是指哪里的内存,系统的?还是webshphere里面的设置?

博主回复:
Webspher里面的设置
2008-10-29 11:34:20

2008-11-22 20:57:34
楼主org.springframework.beans.FatalBeanException: Unable to determine validation mode for ServletContext resource [/WEB-INF/classes/applicationContext-jdbc.xml]. Did you attempt to load directly from a SAX InputSource?; nested exception is sun.io.MalformedInputException: null sun.io.MalformedInputException
这个问题 你说是JDK版本问题,不是主要原因 主要原因是这句话
at sun.io.ByteToCharGB18030.convert(ByteToCharGB18030.java(Compiled Code))
把SPRING配置文件里的中文注释去掉就可以了。转码时出错了。

 

发表评论

昵   称:
验证码:  点击图片可刷新验证码  博客过2级,无需填写验证码
内   容: