websocket 在weblogic12c报错

尼坤神 2018-08-01 11:49:58
shiro+spring+mybatis 项目,在tomcat下面开发的测试的,完全没有问题。现在不熟到weblogic上面,websocket就死活报这个类型转化异常。请各位大佬帮忙分析一下是什么原因。
<2018-8-1 上午11时42分10,904秒 CST> <Error> <HTTP> <BEA-101017> <[ServletContext@975572849[app:omp module:omp path:null spec-version:3.1], request: weblogic.servlet.internal.ServletRequestImpl@4aa5939d[
GET /omp/socketServer HTTP/1.1
User-Agent: Compatible win32 186.204.113.88
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: zh-CN,zh;q=0.8,zh-TW;q=0.7,zh-HK;q=0.5,en-US;q=0.3,en;q=0.2
Accept-Encoding: gzip, deflate
Sec-WebSocket-Version: 13
Origin: http://localhost:7001
Sec-WebSocket-Extensions: permessage-deflate
Sec-WebSocket-Key: Q+saSd6H9b5VyGbipFnGhw==
Connection: keep-alive, Upgrade
Pragma: no-cache
Cache-Control: no-cache
Upgrade: websocket

]] Root cause of ServletException.
java.lang.ClassCastException: org.apache.shiro.web.servlet.ShiroHttpSession cannot be cast to weblogic.servlet.security.internal.SessionSecurityData
at weblogic.servlet.security.internal.SecurityModule.getCurrentUser(SecurityModule.java:197)
at weblogic.websocket.tyrus.TyrusServletFilter.doFilter(TyrusServletFilter.java:167)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:78)
at com.opensymphony.sitemesh.webapp.SiteMeshFilter.obtainContent(SiteMeshFilter.java:129)
at com.opensymphony.sitemesh.webapp.SiteMeshFilter.doFilter(SiteMeshFilter.java:77)
Truncated. see log file for complete stacktrace
>
...全文
341 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

81,092

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧