bug宝典JAVA篇 Authentication failed for token
来源:互联网 发布:秋水到底喜欢谁知乎 编辑:程序博客网 时间:2024/05/17 08:39
异常信息:Authentication failed for token submission
,详细信息如下所示。这个问题并没有出现在我的eclipse环境,但是打成war放到tomcat下面却出现了这样的异常。
看来需要分析整个登录过程,我用的权限框架是apache shiro,下面是登录的代码截图,UsernamePasswordCaptchaToken是我封装的待验证码的token,然后我希望登录这个token进行登录。
将异常输出后,发现
Caused by: org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.dzmsoft.ucs.base.dao.UcsUserMapper.selectByExample at org.apache.ibatis.binding.MapperMethod$SqlCommand.<init>(MapperMethod.java:223) at org.apache.ibatis.binding.MapperMethod.<init>(MapperMethod.java:48) at org.apache.ibatis.binding.MapperProxy.cachedMapperMethod(MapperProxy.java:59) at org.apache.ibatis.binding.MapperProxy.invoke(MapperProxy.java:52) at com.sun.proxy.$Proxy44.selectByExample(Unknown Source) at com.dzmsoft.ucs.base.service.impl.UcsUserServiceImpl.selectByExample(UcsUserServiceImpl.java:180) at com.dzmsoft.ucs.base.service.impl.UcsUserServiceImpl.selectByUsername(UcsUserServiceImpl.java:132) at com.dzmsoft.ucs.base.service.impl.UcsUserServiceImpl$$FastClassBySpringCGLIB$$502ff820.invoke(<generated>)
问题已经很明显了,执行maven命令并没有mybatis的mapper.xml文件打到jar里面去。将参数化构建的jar下载下来一看,果然少了mapping文件,
下面是工程目录:
现在的问题变成了,mvn生成的jar为什么会将xml给弄丢了。参考:mvn 打不进去xml文件解决办法
0 0
- bug宝典JAVA篇 Authentication failed for token
- org.apache.shiro.authc.AuthenticationException: Authentication failed for token submission
- bug宝典hadoop篇 org.apache.hadoop.hdfs.server.datanode.DataNode: Initialization failed for Block pool <
- Authentication failed for
- 已解决[Authentication failed for token submission,Illegal hexadecimal charcter s at index 1]
- shiro登录认证以及未知错误:Authentication failed for token submission
- Authentication Failed For RDS backend
- java mail 的authentication failed
- PostgreSQL: IDENT authentication failed for user postgres
- pgpool authentication with pgpool failed for user
- error:password authentication failed for user
- Git fatal: Authentication failed for '***' 错误解决
- bug宝典JAVA篇 java.nio.charset.UnsupportedCharsetException: cp0
- intellij idea git fetch failed fatal:Authentication failed for
- bug宝典JAVA篇之构造函数问题
- bug宝典JAVA篇 Your password has expired
- bug宝典JAVA篇 maven打不进xml文件
- bug宝典JAVA篇 missed their scheduled fire-time
- 标准化,归一化和正则化
- LeetCode--1. Two Sum
- 第四章:怎样搭建一个完整的便于优化的网站
- CountDownLatch的使用
- windows下 hadoop2.4.0 eclipse 插件安装及配置
- bug宝典JAVA篇 Authentication failed for token
- Ubuntu16.04 python3.5.2 install OpenCV3
- 略谈多态
- 哈尔滨理工大学软件学院ACM程序设计全国邀请赛(网络同步赛)A Golds 最大流
- 单片机、CPU、指令集和操作系统的关系
- 去噪自动编码机
- Android的事件分发详解
- 相册获取、相机拍摄,裁剪圆形头像
- 常用的java代码段