This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Tomcat and the fly likes local_host error-HELP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "local_host error-HELP" Watch "local_host error-HELP" New topic

local_host error-HELP


Joined: Mar 18, 2004
Posts: 4
I am able to get to the index page through the browser, but the catalina batch file shuts down automatically when I click on a link in the application.
Error log for localhost
2004-03-19 00:02:10 StandardManager IOException while loading persisted sessions: Caught EOFException while reading the stream header Caught EOFException while reading the stream header
at org.apache.catalina.util.CustomObjectInputStream.<init>(
at org.apache.catalina.session.StandardManager.load(
at org.apache.catalina.session.StandardManager.start(
at org.apache.catalina.core.ContainerBase.start(
at org.apache.catalina.core.StandardContext.start(
at org.apache.catalina.core.ContainerBase.addChild(
at org.apache.catalina.core.StandardHost.addChild(
at org.apache.catalina.core.StandardHost.install(
at org.apache.catalina.startup.HostConfig.deployApps(
at org.apache.catalina.startup.HostConfig.start(
at org.apache.catalina.startup.HostConfig.lifecycleEvent(
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(
at org.apache.catalina.core.ContainerBase.start(
at org.apache.catalina.core.StandardHost.start(
at org.apache.catalina.core.ContainerBase.start(
at org.apache.catalina.core.StandardEngine.start(
at org.apache.catalina.core.StandardService.start(
at org.apache.catalina.core.StandardServer.start(
at org.apache.catalina.startup.Catalina.start(
at org.apache.catalina.startup.Catalina.execute(
at org.apache.catalina.startup.Catalina.process(
at java.lang.reflect.Method.invoke(Native Method)
at org.apache.catalina.startup.Bootstrap.main(
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 12761
It appears that your Tomcat is configured to use persistent sessions and that an attempt to reload one is crashing the system. Now, I have not used persisent sessions, but if this was my problem I would comment out the section of your server.xml that decares persistent sessions to be in use. In my server.xml this is a section that looks like:
<Manager className="org.apache.catalina.session.PersistentManager"
<Store className="org.apache.catalina.session.FileStore"/>
Hopefully, if it does not see that configuration, it won't try to reload the session.
Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

the other thing you could do is clean out the SESSIONS.ser file in your work directories. That's the persisted session file (the one that is apparently corrupt).
[ March 19, 2004: Message edited by: Mike Curwen ]

Joined: Mar 18, 2004
Posts: 4
Thanks, but, no. These sggestions did not help.
From a big picture perspective, I am able to perform "catalina start" and open the index page of my application using the browser.
But the apache program shuts down automatically when I click on a functional link in the index page.
Could someone explain why it shuts down automatically?
It is sorta covered in the JavaRanch Style Guide.
subject: local_host error-HELP
Similar Threads
java.IO.EOFException when deploying war file
EOFException: Exception loading sessions from persistent storage
Please help correct error in localost_log
IOException while loading persisted sessions
Why this stand alone app cannot communicate with servlet