当前位置: 代码迷 >> Java Web开发 >> 请高手指教,启动tomcat出错!
  详细解决方案

请高手指教,启动tomcat出错!

热度:188   发布时间:2010-03-30 11:20:23.0
请高手指教,启动tomcat出错!
2010-3-30 11:09:51 org.apache.catalina.core.AprLifecycleListener init
信息: The APR based Apache Tomcat Native library which allows optimal performanc
e in production environments was not found on the java.library.path: C:\Program
Files\Java\jdk1.6.0_07\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WIND
OWS;e:\oracle\ora90\bin;e:\oracle\ora90\Apache\Perl\5.00503\bin\mswin32-x86;C:\P
rogram Files\Oracle\jre\1.1.8\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\Syst
em32\Wbem;C:\Sybase\shared;C:\Program Files\Common Files\Thunder Network\KanKan\
Codecs
2010-3-30 11:09:51 org.apache.coyote.http11.Http11Protocol init
信息: Initializing Coyote HTTP/1.1 on http-8090
2010-3-30 11:09:51 org.apache.coyote.http11.Http11Protocol init
信息: Initializing Coyote HTTP/1.1 on http-8096
2010-3-30 11:09:51 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 612 ms
2010-3-30 11:09:51 org.apache.catalina.core.StandardService start
信息: Starting service Catalina
2010-3-30 11:09:51 org.apache.catalina.core.StandardEngine start
信息: Starting Servlet Engine: Apache Tomcat/6.0.18
2010-3-30 11:09:52 org.apache.catalina.session.StandardManager doLoad
严重: IOException while loading persisted sessions: java.io.EOFException
java.io.EOFException
        at java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputStream
.java:2281)
        at java.io.ObjectInputStream$BlockDataInputStream.readShort(ObjectInputS
tream.java:2750)
        at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:780
)
        at java.io.ObjectInputStream.<init>(ObjectInputStream.java:280)
        at org.apache.catalina.util.CustomObjectInputStream.<init>(CustomObjectI
nputStream.java:58)
        at org.apache.catalina.session.StandardManager.doLoad(StandardManager.ja
va:362)
        at org.apache.catalina.session.StandardManager.load(StandardManager.java
:321)
        at org.apache.catalina.session.StandardManager.start(StandardManager.jav
a:637)
        at org.apache.catalina.core.ContainerBase.setManager(ContainerBase.java:
438)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4
271)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
.java:791)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:77
1)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)

        at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.jav
a:926)
        at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.j
ava:889)
        at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492
)
        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149)
        at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java
:311)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.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:5
16)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:710
)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.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)
2010-3-30 11:09:52 org.apache.catalina.session.StandardManager start
严重: Exception loading sessions from persistent storage
java.io.EOFException
        at java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputStream
.java:2281)
        at java.io.ObjectInputStream$BlockDataInputStream.readShort(ObjectInputS
tream.java:2750)
        at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:780
)
        at java.io.ObjectInputStream.<init>(ObjectInputStream.java:280)
        at org.apache.catalina.util.CustomObjectInputStream.<init>(CustomObjectI
nputStream.java:58)
        at org.apache.catalina.session.StandardManager.doLoad(StandardManager.ja
va:362)
        at org.apache.catalina.session.StandardManager.load(StandardManager.java
:321)
        at org.apache.catalina.session.StandardManager.start(StandardManager.jav
a:637)
        at org.apache.catalina.core.ContainerBase.setManager(ContainerBase.java:
438)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4
271)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
.java:791)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:77
1)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)

        at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.jav
a:926)
        at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.j
ava:889)
        at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492
)
        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149)
        at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java
:311)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.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:5
16)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:710
)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.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)
- Unable to find required classes (javax.activation.DataHandler and javax.mail.i
nternet.MimeMultipart). Attachment support is disabled.
- Unable to find required classes (javax.activation.DataHandler and javax.mail.i
nternet.MimeMultipart). Attachment support is disabled.
2010-3-30 11:09:58 org.apache.coyote.http11.Http11Protocol start
信息: Starting Coyote HTTP/1.1 on http-8090
2010-3-30 11:09:58 org.apache.coyote.http11.Http11Protocol start
信息: Starting Coyote HTTP/1.1 on http-8096
2010-3-30 11:09:58 org.apache.jk.common.ChannelSocket init
信息: JK: ajp13 listening on /0.0.0.0:8009
2010-3-30 11:09:58 org.apache.jk.server.JkMain start
信息: Jk running ID=0 time=0/20  config=null
2010-3-30 11:09:58 org.apache.catalina.startup.Catalina start
信息: Server startup in 6391 ms

请高手告诉我什么错误!怎么解决!谢谢
搜索更多相关主题的帖子: 指教  tomcat  

----------------解决方案--------------------------------------------------------
java.io.EOFException,这个异常是由于某个配置文件是不全的,最简单的办法就是重新装一下tomcat。这个东西不大,几分钟就好了。
Unable to find required classes (javax.activation.DataHandler and javax.mail.i
nternet.MimeMultipart). Attachment support is disabled.
还有这里,你所需要的jar包也不全,记得不是把jar包完全拷贝到lib目录,只是外部引用的话,一定要配置classpath构建文件,否则是找不到的。
----------------解决方案--------------------------------------------------------
  相关解决方案