The method setItems(String) in the type ForTokensTag is not applicable for the arguments (Object)
2017-11-03 10:10
2486 查看
1. 问题
看到这个错误以为是貌似jsp页面有误,c:forTokens标签用错了??
但是测试和预生产环境没有出现该问题,是否环境有问题?
2. 解决方法
在网上看到有说jstl.jar冲突的,在项目lib中确实有jstl1.2.jar但是tomcat的lib库及jdk的lib库中均没有改jar;
也看到说去掉standard.jar的,去掉了该包后点击原来有问题的jsp,页面出来了,但是旁边的菜单等点不了了;
standard.jar与jstl.jar不冲突(百度里又说jstl1.2以上不要standard)
![](https://oscdn.geek-share.com/Uploads/Images/Content/201711/d8ce774337a835359adefa3834cea47a.jpg)
最终在新的服务器部署项目 好了(用的是standard1.1.2和jstl1.2.jar)。
回过头看到上图,maven中央仓库没有standard1.2.3,后换成jstl1.1。
可能是环境多少有点问题 如与其他地方有不和谐, 但是没按标准组合使用jar 可能也造成使用出现上述问题
看到这个错误以为是貌似jsp页面有误,c:forTokens标签用错了??
An error occurred at line: 444 in the jsp file: /WEB-INF/pages/countOrder/viewCountOrderDetails.jsp The method setItems(String) in the type ForTokensTag is not applicable for the arguments (Object) 441: </tr> 442: </thead> 443: <tbody> 444: <c:forTokens items="${carBizNumprizeBase.driverAwardCondition}" delims="-" 445: var="driverAwardCondition" varStatus="status">
但是测试和预生产环境没有出现该问题,是否环境有问题?
2. 解决方法
在网上看到有说jstl.jar冲突的,在项目lib中确实有jstl1.2.jar但是tomcat的lib库及jdk的lib库中均没有改jar;
也看到说去掉standard.jar的,去掉了该包后点击原来有问题的jsp,页面出来了,但是旁边的菜单等点不了了;
standard.jar与jstl.jar不冲突(百度里又说jstl1.2以上不要standard)
![](https://oscdn.geek-share.com/Uploads/Images/Content/201711/d8ce774337a835359adefa3834cea47a.jpg)
最终在新的服务器部署项目 好了(用的是standard1.1.2和jstl1.2.jar)。
回过头看到上图,maven中央仓库没有standard1.2.3,后换成jstl1.1。
可能是环境多少有点问题 如与其他地方有不和谐, 但是没按标准组合使用jar 可能也造成使用出现上述问题
相关文章推荐
- c:forTokens 报错 The method setItems(String) in the type ForTokensTag is not applicable for the argume
- The method setValue(String) in the type ParamTag is not applicable for the arguments (long)
- The method setClass(Context, Class<?>) in the type Intent is not applicable for the arguments (GameV
- The method setStatus(int) in the type Goods is not applicable for the arguments (Integer)
- The method setBackground(Drawable) in the type View is not applicable for the arguments (int)
- The method sendKeys(CharSequence[]) in the type WebElement is not applicable for the arguments (String)
- The method replace(int, Fragment, String) in the type FragmentTransaction is not applicable for the arguments (int, SettingFragment, String)
- The method setClass(Context, Class<?>) in the type Intent is not applicable for the arguments (GameV
- The method setPositiveButton(int, DialogInterface.OnClickListener) in the type AlertDialog.Builder is not applicable for the arguments
- The method setOnClickListener(View.OnClickListener) in the type View is not applicable for the argum
- The method add(int, Fragment) in the type FragmentTransaction is not applicable for the arguments (i
- The method makeText(Context, int, int) in the type Toast is not applicable for the arguments (new Vi
- 关于The method setMapperClass(Class<? extends Mapper>) in the type Job is not applicable for the argum
- [真理永垂不朽]The method XXX in the type FragmentTransaction is not applicable for the arguments XXX
- he method setAttribute(String,object)in the type HttpSession is not appl
- The method load(Class, Serializable) in the type Session is not applicable for the arguments (Class<
- The method setOnClickListener(View.OnClickListener) in the type View is not applicable for the argum
- The method setButton(int, CharSequence, Message) in the type AlertDialog is not applicable for the a
- The method add(Fragment) in the type ArrayList<Fragment> is not applicable for the arguments (ImageF
- he method get(Class, Serializable) in the type HibernateTemplate is not applicable for the arguments