启动
Tomcat时出现session persistence问题,抛出类似如下异常信息:
ERROR:IOException while
loading persisted
sessions: java.io.WriteAbortedException: writing aborted;
ERROR:
Exception loading sessions from persistent storage
可尝试办法:
修改Tomcat\conf\server.xml,添加如下内容
<context></context>
<manager classname="org.apache.catalina.session.PersistentManager" saveonrestart="false"></manager>
参考原因:在Session里面放置了com.abc.UserBean对象,这个类也没有实现java.io.Serializable。
User authentication information is stored both in the users's session data and in the context of a server or virtual host that is targeted by a Web Application. Using the session.invalidate() method, which is often used to log out a user, only invalidates the current session for a user—the user's authentication information still remains valid and is stored in the context of the server or virtual host. If the server or virtual host is hosting only one Web Application, the session.invalidate()method, in effect, logs out the user.
J2ee的session并没有要求session attribute必须要Serializable呀。原来这是tomcat 5的新功能,服务复位后自动恢复session。
如果要禁用这一特性,到apache-tomcat/conf/Catalina/localhost目录下找到webapp同名的xml,修改成:
<Context path="..." reloadable="..." docBase="..." workDir="...">
<Manager className="org.apache.catalina.session.PersistentManager" saveOnRestart="false"/>
</Context>
分享到:
相关推荐
PDF版 Tomcat: The Definitive Guide, 2nd Edition By: Jason Brittain;... Community interest fueled a strong demand for a Tomcat guide from O'Reilly. The result clearly exceeds expectations.
脚本调用: ./tomcat_monitor -u admin -p admin -h 127.0.0.1 -P 8080 返回信息: { "static_tomcat_version":8, "tomcat_server_status":1, "application0":{ "status":"running", "path":"/app1", "active_...
Tomcat 8的Redis会话 用于Redis会话的现有库在Tomcat 8中不能很好地工作,并且具有一些有趣的设计决策。 依存关系 该库利用与Redis一起工作。 这些Redis连接使用进行池。 该库是针对Java 8编译的。 会话存储方式 每...
virtual-art-sessions, "Virtual Art Sessions" Chrome 实验的源 虚拟艺术课程这个库镜像了活动的虚拟艺术会话站点( 代码 NAME 项目 Udon ),并已经打开了Apache许可 2.0,让任何感兴趣的人都可以发现它,看看它是...
9. Building Tomcat from Source . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 347 Installing Apache Ant 348 Obtaining the Source 349 Downloading Support Libraries 351 ...
Configure data sources and mail sessions using JNDI in Tomcat Configure logging for web applications deployed on Tomcat server Who this book is for This book is for those Web developers and/or ...
MobaXterm_20.5官方版.zip_sessions99个
Sessions 用于http服务器的简单,高性能,高度可定制的用户会话
前端开源库-client-sessions客户端会话,存储在cookie中的安全会话
在Web Services中管理Sessions 在Web service中通常采用两种公认技术来管理session,一种是借助HTTP和HTTP cookies,另一种是用SOAP headers。Axis能帮你实现这两种技术。
Paypal Sessions Viewer--for zencart1.5要自己数据库上再 写入一下就行啦
django-redis-sessions, 在Redis数据库中,用于存储会话的Django 会话后端 django-redis-sessions用于你的会话的Redis数据库后端 安装工具可用设置变更日志文件安装运行 pip install django-redis-sessions 或者另外...
Utilities for terminal services: qwinsta and rwinsta
红鸟Sessions类,用mysql数据库接管原来由文件系统支撑的php session,解决了session兼容性、虚拟主机无法自定义session等问题,内置gc函数,可以按概率触发删除过期session。...hn_sessions.sql:数据库sql文件;
log-sessions-2021-08-21-041328.session
paypal_sessions_viewer_3-02incl-pushorder
开源项目-adam-hanna-sessions.zip,Simple, performant, highly customizeable user sessions for http servers
Web Sessions Installation .docx
它的目的是替换和扩展 Tomcat 管理器,使得管理和监视 Apache Tomcat 的实例更容易。与许多其他服务器监控工具不同, psi-prob e 不需要对现有应用程序进行任何更改。它通过一个 Web 可访问的接口提供它的所有特性,...
log-sessions-2021-09-21-183121.session