-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Mike,
Mike wrote: | I'm trying to set up connection pooling for Tomcat 5.5 but it | doesn't work. When I start Tomcat, it shows in the Catalina log this: | | SEVERE: Exception loading sessions from persistent storage | | java.io.WriteAbortedException: writing aborted; | java.io.NotSerializableException: javax.naming.InitialContext While I don't disagree with any of the suggestions already made, I think the primary cause for /this/ exception is that you are storing an InitialContext object in the session of one of your users. There is no need to do this, as InitialContext objects are cheap to create whenever you need them. Also, as you can see, they have problems with serialization. You should look through your code for a place where you put the JNDI context into a session and remove it. Instead of using the session as a cache for Context objects, simply create new ones from scratch when you need them. - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkg/Ea8ACgkQ9CaO5/Lv0PDyTACfXxzauq5Qq2tI3T2Wl+kc8+Ej YgAAnRSl3fXG9FZ2HvwgWxD8CNg/Sf2o =yVfr -----END PGP SIGNATURE----- --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]