You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Paul Christmann <pc...@gmail.com> on 2004/12/22 20:02:08 UTC

WAR serialization problem

I'm playing with my first cocoon-based web application, and I am
having problems trying to deploy it to Tomcat (5.0.30) with the
unpackWARS attribute of my <Host> element set to "false".

With unpackWARS set to "true", the webapp (named reports.war) is
properly unpacked and everything works like a charm.

But with unpackWARS set to "false", the webapp is not unpacked (so
far, so good) but I get an exception when trying to access my "main"
page.  When I do, I get an "Internal Server Error" page showing a
NullPointerException:

stacktrace

java.lang.NullPointerException
	at org.eclipse.jdt.internal.compiler.parser.Scanner.setSource(Scanner.java:2979)
	at org.eclipse.jdt.internal.compiler.parser.Parser.parse(Parser.java:7106)
	at org.eclipse.jdt.internal.compiler.parser.Parser.dietParse(Parser.java:4733)
(lots more omitted)

The top of the stack trace that is logged by Tomcat is:

12/22/2004 12:19:49.991 [Thread-0] ERROR session.ManagerBase -
IOException while loading persisted sessions:
java.io.WriteAbortedException: writing aborted;
java.io.NotSerializableException:
org.apache.cocoon.components.flow.javascript.fom.CompilingClassLoader
java.io.WriteAbortedException: writing aborted;
java.io.NotSerializableException:
org.apache.cocoon.components.flow.javascript.fom.CompilingClassLoader

Having seen other found emails describing this error, I've 
+ grepped around for all instances of "session.setAttribute" in java
code and javascript, and only found two: both of them are setting a
String valued attribute.
+ Looked for sessions in my
TOMCAT_HOME/work/Catalina/localhost/reports folder.  While Tomcat is
running, there is a tldCache.ser, and when I stop Tomcat a
SESSIONS.ser appears.  I'm not sure what to make of the presence of
these files.  I've tried deleting stopping Tomcat, deleting them and
restarting, just to see if it mattered (and it didn't).

I'm not sure where to look next, so thanks for any help or pointers.

-- 
PC

Paul Christmann
Prior Artisans, LLC
mailto:paul@priorartisans.com
504-587-9072

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org