用了shiro后,再添加quartz出错的问题

项目中用了apache的shiro,spring的mvc.整个项目非常正常。
后来因业务需求加上了quartz,结果在quartz中保存数据时,出现如下异常

org.apache.shiro.UnavailableSecurityManagerException: No SecurityManager accessible to the calling code, either bound to the org.apache.shiro.util.ThreadContext or as a vm static singleton. This is an invalid application configuration.

具体表现在quartz启动后,调用相关方法取得数据,然后调用save的时候就报错,未检查出问题,但是在去掉quartz后,整个项目一切正常。

所以,我想请问一下,在quartz中是否还有针对shiro的处理。

这个问题原因是存在两个不同版本的quartz-scheduler依赖,shiro依赖 org.opensymphony.quartz 1.6.1,opensymphony关闭之后,quartz以独立的开源项目运行,两个版本的代码结构不一致造成的。
http://shiro.apache.org/static/1.2.3/shiro-quartz/dependencies.html

你解决了吗?有解决方案的话能否发我邮箱下?tanghom@qq.com,谢谢

https://git.oschina.net/tanghom/baiding今天有人发邮件给我说这个问题,我几周前解决了,但是我忘了怎么解决的了,这是我解决后的项目,大家可以参考看看