java.lang.IllegalArgumentException: Can't convert argument: null

[size=medium]在最近开发中,项目部署完启动的时候,后台报[/size]java.lang.IllegalArgumentException: Can't convert argument: null
[img]http://dl2.iteye.com/upload/attachment/0092/1400/a6d5048f-c2f8-3e37-8d6a-5ca67e220463.png[/img]
[size=medium]根据报的错误是web.xml文件参数不能转换。
再看web.xml文件里面多了好多[/size]
<context-param>   
<javaee:param-name>contextConfigLocation</javaee:param-name>
<javaee:param-value>classpath:beanRefFactory.xml</javaee:param-value>
</context-param>
<context-param>
<javaee:param-name>ssoCurrentApp</javaee:param-name>
<javaee:param-value>hollycrm</javaee:param-value>
</context-param>


[img]http://dl2.iteye.com/upload/attachment/0092/1402/3f135793-60b9-3acd-b886-818872406b7e.png[/img]

[size=medium] 之类的配置信息,这是由于eclipse在修改项目名的时候,eclipse自动更新部署了web.xml文件 并且重新生成了xml文件的头部声明. 新增了java的命名把这个javaee去掉就可以了.一般情况下他会修改servlet的配置。
修改项目后之后的web.xml仔细观察<init-param>标签下的子标签是否多了一个javaee你把这个删除掉就可以了。[/size]
<filter>  
<filter-name>CharacterEncoding</filter-name>
<filter-class>com.avonaco.test.filter.CharacterEncoding</filter-class>
<init-param>
<javaee:param-name>encoding</javaee:param-name>
<javaee:param-value>utf-8</javaee:param-value>
</init-param>
</filter>

[size=medium]
或是恢复之前的web.xml文件即可。[/size]
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值