jf 6.2.3 使用ehcache 系统报错

10-06-13 lhcli
板桥老师,你好:

我是jdon的新手,最近在看网站上下载的例子:Jdon On Rails 里面的jsh例子,利用原来的jdonframework,运行没有问题,我把这个例子移到6.2.3上以后,启动报错:

2010-6-13 13:50:52 org.apache.catalina.core.AprLifecycleListener init

信息: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Genuitec\Common\binary\com.sun.java.jdk.win32.x86_1.6.0.013\bin;C:\Program Files\Genuitec\Common\plugins\com.genuitec.eclipse.easie.tomcat.myeclipse_8.5.0.me201003121946\tomcat\bin

2010-6-13 13:50:52 org.apache.coyote.http11.Http11Protocol init

信息: Initializing Coyote HTTP/1.1 on http-8080

2010-6-13 13:50:52 org.apache.catalina.startup.Catalina load

信息: Initialization processed in 680 ms

2010-6-13 13:50:52 org.apache.catalina.core.StandardService start

信息: Starting service Catalina

2010-6-13 13:50:52 org.apache.catalina.core.StandardEngine start

信息: Starting Servlet Engine: Apache Tomcat/6.0.13

2010-6-13 13:50:53 org.apache.catalina.session.StandardManager doLoad

严重: IOException while loading persisted sessions: java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: com.jdon.container.pico.PicoContainerWrapper

java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: com.jdon.container.pico.PicoContainerWrapper

at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1333)

at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947)

at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871)

at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)

at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)

at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947)

at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871)

at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)

at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)

at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947)

at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871)

at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)

at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)

at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)

at org.apache.catalina.session.StandardSession.readObject(StandardSession.java:1439)

at org.apache.catalina.session.StandardSession.readObjectData(StandardSession.java:942)

at org.apache.catalina.session.StandardManager.doLoad(StandardManager.java:394)

at org.apache.catalina.session.StandardManager.load(StandardManager.java:321)

at org.apache.catalina.session.StandardManager.start(StandardManager.java:637)

at org.apache.catalina.core.ContainerBase.setManager(ContainerBase.java:438)

at org.apache.catalina.core.StandardContext.start(StandardContext.java:4255)

at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)

at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)

at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)

at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:920)

at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:883)

at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)

at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)

at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)

at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)

at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)

at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)

at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)

at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)

at org.apache.catalina.core.StandardService.start(StandardService.java:516)

at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)

at org.apache.catalina.startup.Catalina.start(Catalina.java:566)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:597)

at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)

at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)

Caused by: java.io.NotSerializableException: com.jdon.container.pico.PicoContainerWrapper

at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1156)

at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)

at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)

at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)

at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)

at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)

at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)

at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)

at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)

at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)

at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)

at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)

at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)

at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)

at org.apache.catalina.session.StandardSession.writeObject(StandardSession.java:1515)

at org.apache.catalina.session.StandardSession.writeObjectData(StandardSession.java:959)

at org.apache.catalina.session.StandardManager.doUnload(StandardManager.java:517)

at org.apache.catalina.session.StandardManager.unload(StandardManager.java:463)

at org.apache.catalina.session.StandardManager.stop(StandardManager.java:667)

at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4496)

at org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:924)

at org.apache.catalina.startup.HostConfig.undeployApps(HostConfig.java:1180)

at org.apache.catalina.startup.HostConfig.stop(HostConfig.java:1151)

at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:313)

at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)

at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1086)

at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1098)

at org.apache.catalina.core.StandardEngine.stop(StandardEngine.java:448)

at org.apache.catalina.core.StandardService.stop(StandardService.java:584)

at org.apache.catalina.core.StandardServer.stop(StandardServer.java:744)

at org.apache.catalina.startup.Catalina.stop(Catalina.java:616)

at org.apache.catalina.startup.Catalina.start(Catalina.java:591)

... 6 more

lhcli
2010-06-13 14:01
续:

2010-6-13 13:50:53 org.apache.catalina.session.StandardManager start

严重: Exception loading sessions from persistent storage

java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: com.jdon.container.pico.PicoContainerWrapper

at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1333)

at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947)

at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871)

at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)

at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)

at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947)

at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871)

at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)

at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)

at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947)

at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871)

at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)

at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)

at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)

at org.apache.catalina.session.StandardSession.readObject(StandardSession.java:1439)

at org.apache.catalina.session.StandardSession.readObjectData(StandardSession.java:942)

at org.apache.catalina.session.StandardManager.doLoad(StandardManager.java:394)

at org.apache.catalina.session.StandardManager.load(StandardManager.java:321)

at org.apache.catalina.session.StandardManager.start(StandardManager.java:637)

at org.apache.catalina.core.ContainerBase.setManager(ContainerBase.java:438)

at org.apache.catalina.core.StandardContext.start(StandardContext.java:4255)

at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)

at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)

at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)

at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:920)

at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:883)

at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)

at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)

at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)

at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)

at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)

at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)

at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)

at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)

at org.apache.catalina.core.StandardService.start(StandardService.java:516)

at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)

at org.apache.catalina.startup.Catalina.start(Catalina.java:566)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:597)

at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)

at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)

Caused by: java.io.NotSerializableException: com.jdon.container.pico.PicoContainerWrapper

at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1156)

at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)

at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)

at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)

at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)

at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)

at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)

at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)

at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)

at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)

at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)

at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)

at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)

at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)

at org.apache.catalina.session.StandardSession.writeObject(StandardSession.java:1515)

at org.apache.catalina.session.StandardSession.writeObjectData(StandardSession.java:959)

at org.apache.catalina.session.StandardManager.doUnload(StandardManager.java:517)

at org.apache.catalina.session.StandardManager.unload(StandardManager.java:463)

at org.apache.catalina.session.StandardManager.stop(StandardManager.java:667)

at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4496)

at org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:924)

at org.apache.catalina.startup.HostConfig.undeployApps(HostConfig.java:1180)

at org.apache.catalina.startup.HostConfig.stop(HostConfig.java:1151)

at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:313)

at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)

at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1086)

at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1098)

at org.apache.catalina.core.StandardEngine.stop(StandardEngine.java:448)

at org.apache.catalina.core.StandardService.stop(StandardService.java:584)

at org.apache.catalina.core.StandardServer.stop(StandardServer.java:744)

at org.apache.catalina.startup.Catalina.stop(Catalina.java:616)

at org.apache.catalina.startup.Catalina.start(Catalina.java:591)

... 6 more

2010-6-13 13:50:56 org.apache.coyote.http11.Http11Protocol start

信息: Starting Coyote HTTP/1.1 on http-8080

2010-6-13 13:50:56 org.apache.jk.common.ChannelSocket init

信息: JK: ajp13 listening on /0.0.0.0:8009

2010-6-13 13:50:56 org.apache.jk.server.JkMain start

信息: Jk running ID=0 time=0/31 config=null

2010-6-13 13:50:56 org.apache.catalina.startup.Catalina start

信息: Server startup in 3688 ms

我看了下大概是ehcache的问题,我就自己手动吧container.xml文件里面的cache换成了LRUCache,重启后错误消失,访问也正常了。

请问老师,如果要用ehcache需要做些其他什么工作呢?

谢谢!

banq
2010-06-17 17:50
2010年06月13日 14:00 "lhcli"的内容
OException while loading persisted sessions: java.io.WriteAbortedException: writing aborted; java.io.NotSerializableExce ...

这是tomcat的特别错误,关系不大。

lhcli
2010-06-18 16:18
好像有关系,因为运行程序的时候,不能正常工作。不过没关系先用LRUCache用着,等用到了,在去仔细看看ehcache。

猜你喜欢