tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "red phoenix" <rodphoe...@gmail.com>
Subject Tomcat6 start error for sometimes
Date Thu, 07 Dec 2006 05:10:14 GMT
When I start tomcat6,sometimes I find tomcat6 raise errors while tomcat
start,but sometimes I find tomcat6 don't raise errors while tomcat start,I
don't know why? Any body can tell the reason which raise following error and
how to correct it?

My JDK version is 6,Tomcat version is 6.I only add <resource...> into
tomcat6\conf\context.xml

Context.xml is follows:
<!-- The contents of this file will be loaded for each web application -->
<Context>

 <Resource name="jdbc/Scott"
  type="javax.sql.DataSource" auth="Container"
  driverClassName="oracle.jdbc.OracleDriver" maxActive="100"
  maxIdle="30" maxWait="10000"
  url="jdbc:oracle:thin:@localhost:1521:Orcle"
  username="scott" password="tiger" />

    <!-- Default set of monitored resources -->
    <WatchedResource>WEB-INF/web.xml</WatchedResource>

    <!-- Uncomment this to disable session persistence across Tomcat
restarts -->
    <!--
    <Manager pathname="" />
    -->

</Context>
The error is follows:
2006-12-7 13:00:44 org.apache.catalina.session.StandardManager doLoad
Fatal: IOException while loading persisted sessions:
java.io.WriteAbortedException: writing aborted;
java.io.NotSerializableException:
org.apache.catalina.core.ApplicationContextFacade
java.io.WriteAbortedException: writing aborted;
java.io.NotSerializableException:
org.apache.catalina.core.ApplicationContextFacade
 at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1333)
 at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1945)
 at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1869)
 at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java
:1753)
 at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
 at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1945)
 at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1869)
 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 java.util.ArrayList.readObject(ArrayList.java:593)
 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 java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:974)
 at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1846)
 at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java
:1753)
 at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
 at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1945)
 at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1869)
 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:1440)
 at org.apache.catalina.session.StandardSession.readObjectData(
StandardSession.java:943)
 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
:432)
 at org.apache.catalina.core.StandardContext.start(StandardContext.java
:4257)
 at org.apache.catalina.core.ContainerBase.addChildInternal(
ContainerBase.java:760)
 at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740)
 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:120)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)
 at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
 at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
 at org.apache.catalina.core.StandardService.start(StandardService.java:451)
 at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
 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:
org.apache.catalina.core.ApplicationContextFacade
 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.writeObject(ObjectOutputStream.java:326)
 at java.util.ArrayList.writeObject(ArrayList.java:570)
 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 java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:945)
 at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1461)
 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:1516)
 at org.apache.catalina.session.StandardSession.writeObjectData(
StandardSession.java:960)
 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:4498)
 at org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java
:893)
 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:120)
 at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1055)
 at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1067)
 at org.apache.catalina.core.StandardEngine.stop(StandardEngine.java:448)
 at org.apache.catalina.core.StandardService.stop(StandardService.java:513)
 at org.apache.catalina.core.StandardServer.stop(StandardServer.java:744)
 at org.apache.catalina.startup.Catalina.stop(Catalina.java:602)
 at org.apache.catalina.startup.Catalina$CatalinaShutdownHook.run(
Catalina.java:645)
2006-12-7 13:00:45 org.apache.catalina.session.StandardManager start
Fatal: Exception loading sessions from persistent storage
java.io.WriteAbortedException: writing aborted;
java.io.NotSerializableException:
org.apache.catalina.core.ApplicationContextFacade
 at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1333)
 at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1945)
 at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1869)
 at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java
:1753)
 at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
 at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1945)
 at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1869)
 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 java.util.ArrayList.readObject(ArrayList.java:593)
 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 java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:974)
 at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1846)
 at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java
:1753)
 at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
 at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1945)
 at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1869)
 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:1440)
 at org.apache.catalina.session.StandardSession.readObjectData(
StandardSession.java:943)
 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
:432)
 at org.apache.catalina.core.StandardContext.start(StandardContext.java
:4257)
 at org.apache.catalina.core.ContainerBase.addChildInternal(
ContainerBase.java:760)
 at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740)
 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:120)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)
 at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
 at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
 at org.apache.catalina.core.StandardService.start(StandardService.java:451)
 at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
 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:
org.apache.catalina.core.ApplicationContextFacade
 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.writeObject(ObjectOutputStream.java:326)
 at java.util.ArrayList.writeObject(ArrayList.java:570)
 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 java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:945)
 at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1461)
 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:1516)
 at org.apache.catalina.session.StandardSession.writeObjectData(
StandardSession.java:960)
 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:4498)
 at org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java
:893)
 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:120)
 at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1055)
 at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1067)
 at org.apache.catalina.core.StandardEngine.stop(StandardEngine.java:448)
 at org.apache.catalina.core.StandardService.stop(StandardService.java:513)
 at org.apache.catalina.core.StandardServer.stop(StandardServer.java:744)
 at org.apache.catalina.startup.Catalina.stop(Catalina.java:602)
 at org.apache.catalina.startup.Catalina$CatalinaShutdownHook.run(
Catalina.java:645)
2006-12-7 13:00:45
org.springframework.web.context.ContextLoaderinitWebApplicationContext
Info: Root WebApplicationContext: initialization started

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message