WebSphere中发布spring 的配置文件加载问题

来源:互联网 发布:html webgl 书籍 知乎 编辑:程序博客网 时间:2024/05/16 17:54

 WebSphere中发布spring 的配置文件加载问题报

 ContextLoader E   TRAS0014I: 下列异常已记录 org.springframework.beans.factory.BeanDefinitionStoreException: Unable to determine validation mode for [class path resource [applicationContext-dataSource.xml]]: an error occurred whilst reading from the InputStream.; nested exception is sun.io.MalformedInputException
Caused by: sun.io.MalformedInputException

 

解决办法:

1.打开管理控制台,找到并选择运行这个JSP的应用服务器
2.依次选择进程定义,java虚拟机
3.在通用JVM参数中添加-Dibm.stream.nio=true
4.确定,保存
5.重新启动该服务器

 

不过我用的是windows的websphere6.0,增加通用JVM参数后,重起 WebSphere应用服务器,进控制台左边菜单报内部服务器500错误.

不知道怎么解决???

在linux下无此问题

原创粉丝点击