• 启动tomcat和安装MSE遇到的两个小问题 - [学习笔记]

    2008-06-10

    版权声明:转载时请以超链接形式标明文章原始出处和作者信息及本声明
    http://sapphirestar.blogbus.com/logs/22629189.html

    P1
    启动tomcat报错:ERROR -- IOException while loading persisted sessions: java.io.EOFException
    提示原因:保存在硬盘上的session数据读取失败
    解决方法:删除\apache-tomcat-5.5.26\work\Catalina\localhost\_下面的*.ser文件。
    结果:解决。

    有人给出具体原因和方法如下,准备下次遇到类似问题的时候再验证:
    原因是session中的对象不是可序列化的:
    Whenver Catalina is shut down normally and restarted, or when an application reload is triggered, the standard Manager implementation will attempt to serialize all currently active sessions to a disk file located via the pathname attribute. All such saved sessions will then be deserialized and activated (assuming they have not expired in the mean time) when the application reload is completed.
    最简单的办法当然是让session中的对象的类实现Serializable接口。
    如果不想那么做的话,可以如下解决:
    在server.xml中用StandardManager替换默认的PersistentManager。
    Manager
    className="org.apache.catalina.session.StandardManager"
    pathname=""

    P2
    程序调试需要从office2003安装包中安装MSE,提示:"不能访问 windows installer 服务。可能是你在安全模式下运行 windows,或者windows installer 没有正确安装。请和你的支持人员联系以获得帮助。"
    依次尝试了google到的两个方法:
    1.重新安装Windows Installer。
    2.写个installer.reg文件,再运行msiexec /regserver 注册。(msiexec.exe是WindowsInstaller的一部分。用于安装WindowsInstaller安装包。)
    皆未果。索性打开管理工具中的服务,发现原来 Windows Installer 的启动类型被设为手动,服务并没有启动。启动服务,就能够正常安装了。haihai,也许开始就是因为没有自动启动服务导致,白白重启了好几次,真对不起我的电脑。


    随机文章:

    几件小事 2008-01-01
    朝花西拾2 2007-06-13
    翡翠岛 2006-07-07
    开心 2006-06-13

    收藏到:Del.icio.us




    评论

  • 我照做了,但是还是不行。我选择忽略该错误提示。然后,再次启动时,就没问题了。sigh